Stopping Each Player From Rolling Every Check?

This is a problem that many a DM has faced, but only one I've run aground of recently. I'm running a campaign with a group of fairly new gamers, and as such they are playing to win. And I mean win at everything. They focus down every target, and considers the personal slaughter of every enemy they run across the utmost of victories. But that's just a normal murder-hobo party. Their problem is that they cannot accept a failed check. If one fails their check (which happens rather often just from poor rolling), every player in order down the table that can rolls the check until one makes it. A perception check is made by everyone- a common exchange is  DM: Roll a perception check Player 1: 8+3, so 11! DM: Ok, nothing catches your eye. So as you're walkin- Player 2: Actually, I'm going to take a look around too! fails check DM: Still nothing from you either. So again, you're wa- Player 3: I'd like to as well!  Now, this happens many, many times, and chews up much of our time. Any time that I cut them off from making these checks, about half the group shuts down RP-wise, and the other half just double down on it. Things I have tried  Cutting off the check after 1-3 (depending on the check) Giving consequences immediately upon failure/success of check Making them list marching order then giving checks according to that Made a prereq for the check (must be proficient in X) Talking to them (sort of session 0 mark 2) Trying to show them that 'winning' the check won't always get them something  The two most effective so far are the second and last. The second worked because I threw them into an enormous combat afterwards, so they were too focused to become sullen. The last was effective because it demonstrated to them that, as a DM, I might be a bit trickier and might not always make every check important. I consider them effective because the behavior slackened slightly, or at least didn't intensify. Calling out the behavior actually sort of backfired, as it brought the behavior fully into their conscious minds rather than leaving it as subconscious. At one point they even began to plot out the order of taking the checks! Side note- I accomplished the last one by making them perform checks when nothing was there. So even after a natural 19 on a perception check, they might not discover anything. I really like this group, and it isn't any one player that is the problem, nor their common murder-hobo mindset. It is how they go about it. As I am used to DMing an experienced group, I am at a loss on how to proceed. In addition, I really like this campaign, so I'm not really looking for answers that would lead to dissolving either the specific group or the campaign. What I am looking for is how to make this behavior cease while keeping that fresh enthusiasm found so often in new players, rather than them shutting down. Both gameplay and interpersonal solutions are acceptable.


How to edit the system/user dictionary in Windows 8?

Windows 8 has system-wide spell-check/autocorrect:    Users can also choose to add unknown words to their own custom dictionary:    I believe the dictionary is one of the settings that is synced/roamed as well.  So, how is one to edit the dictionary to, for example, remove words added by mistake? (In case the methods differ for Windows and IE, I'd like to know about both.)


I read conflicting information about the megapixel - subpixel relationship when it comes to sensors in digital cameras. I read that megapixel is number of sub pixels and I also read megapixel is number of pixels where each pixel is made out of 3 or 4 sub pixels, which one is true?  Considering the square patern of pixels in modern sensors, each pixel is made from 2 green sub pixels and 1 blue & green sub pixel. If the megapixel number means the number of sub pixels, then true pixel number is 1/4 of the megapixel number. On other hand if the megapixel is the number of true pixels, then the sub pixel number is 4x higher than megapixel number.


Running a script when users connect through ssh

I am installing a server; I am preparing it for SSH traffic. I would like a script to be run (a dialog with the freshly connected user) every time a user from a certain group connects. How do I do this (kind of like in the SSH hook post)?  I want a certain a group, which i will just call users, who just want to launch a game server or something like that, to be able to do so with minimal headache. And my idea is to make a script, which launches everytime they connect, that takes their hand and allows them to execute different actions, all centered around that game server thing. I don't want admins to be bothered every time by that script.


Can I create BASH function that will hold text block that can then be called for output to FILE and SCREEN to cut down on code block repetition

I have a BASH utility that outputs measurements to screen live as it runs and writes the result to file at the same time. I am having to repeat the same code twice (see below).  Once to write to screen, and  Once to write to file.  This seems like a lot of redundancy to me.  Can I put one text block into something like a function then call it to be written to screen and file at the same time?  This would cut down on a lot of re-keying.   Example below   ###### write out to file : push end time at end ################ echo >> $file_name echo "End time: "$end_time >> $file_name echo >> $file_name echo >> $file_name echo >> $file_name  ######  print to screen : push end time at end  #################  echo  echo "End time: "$end_time  echo echo echo   So I'd be looking for someting like this  funtion text_block{ ######  print to screen : push end time at end  ################# echo  echo "End time: "$end_time  echo echo echo }   Then a command that does something like this  "command print text_block to screen, print text_block to file"


When a Company was expected and then made a profit of X $ then that X$ increased it's share price. or those the Sellers and Buyers

When a Company was expected and then made a profit of X $ then      That X$ increased it's share price. or those the Sellers and Buyers?   Is it because Company A did a profit of X amount, so X is now Added to valuation of the company and since Company is valued by its share it thus increases the value of each share.    Is it just the buyers and sellers that decide the value or price of each share  Thanks in advance.


I am coding a MVC 5 internet application and have a question in regards to JavaScript caching (and caching in general).  Currently, when I update a JavaScript file that is referenced in a view, when I browse to the view, the old JavaScript code is used. If I then refresh the browser, the updated JavaScript code is then used.  This is not ideal, as a user may often browse to a view that has an old JavaScript file, and as such, the view may not be displayed correctly.  I am currently referencing JavaScript files as follows:  @section Scripts{     <script src="~/Scripts/filename.js"></script> }   Is there a web.config setting that controls caching? Is there a NuGet package that can help with caching?  How can I resolve this situation?


What is the relation between terminal potential difference and e.m.f?

Their relation is V=E-Ir. But while charging of secondary cell  It become V=E+It.Why is there a change in sign of the equation?


Can an object be transformed into a shapechanger using True Polymorph?

Can an object be transformed into a werebear (a shapechanger) using True Polymorph? Werebears have a particular kind of "shapechanger" ability that allow it to transform into a bear or just half-bear.  We know that "Shapechangers aren't affected by this spell." But would this stop the spell from making a shapechanger?


What is the problem inside my work, I tried to use a UI Thread.    private void btn_Call_Click(object sender, EventArgs e)     {         MakeCall();     }  private void MakeCall()     {         try         {             //Get the IP we want to call.             otherPartyIP = new IPEndPoint(IPAddress.Parse(txtCallToIP.Text), 1450);             otherPartyEP = (EndPoint)otherPartyIP;              //Get the vocoder to be used.             if (cmbCodecs.SelectedText == "A-Law")             {                 vocoder = Vocoder.ALaw;             }                else if (cmbCodecs.SelectedText == "u-Law")             {                 vocoder = Vocoder.uLaw;             }             else if (cmbCodecs.SelectedText == "None")             {                 vocoder = Vocoder.None;             }              //Send an invite message.             SendMessage(Command.Invite, otherPartyEP);                      }         catch (Exception ex)         {             MessageBox.Show(ex.Message, "VoiceChat-Call ()", MessageBoxButtons.OK, MessageBoxIcon.Error);         }               }   That returns the error:     Cross-thread operation not valid: Control ‘btn_Call’ accessed from a   thread other than the thread it was created on


Can't compute the value of Resistance of Operational Transconductance Amplifier

I have the following Operational Transconductance Amplifier that I need to implement in LTSpice. I need to choose a value for \$R_2\$ and \$C_{inf}\$ in order to have a (theoretical)gain value \$A_v=1500\$.    What I found is that:     \$I_{C5}=I_{C6}=I_{C7}=I_{C8}=(V_{cc} - V_{be})/R_2\$;     \$I_{C1}=I_{C2} = (I_{C7} / 2 ) \cdot  (\beta /(\beta+1))\$; \$I_{C4}=I_{C2}-I_{C5}\$;   \$I_{C3}=I_{C1}-I_{C3}-I_{C4}\$;    β in my case it's ~180 because I'm using an BC847A transistor. \$A=V_o/V_g = g_{m_{_{Q2}}} \cdot  \beta_{q5} \cdot  R_1\$ \$g_{m_{_{Q2}}}=I_{C2} / V_t\$ that it's aprox \$40\cdot I_{C2}\$.  I need to implement the following circuit in LTSpice but I don't know if my schematic is ok and what values \$C_{inf}\$ and \$R_2\$ should be.   The following constraints are imposed:    \$V_{CC}=10V\$  \$V_{CM} = 1.5V\$ \$R_1= 15k\Omega\$ \$Vg\$ is  a  sine  wave  with  a  frequency  of  1  kHz, whose amplitude  will  be  chosen  so  as  to ensure minimal distortion of the output signal (i.e. \$v_0\$ should also be a sine wave);   The first picture is the schematic and the second one the LTSpice implementation.  Did I did something wrong here?


How can I stop sharing Find/Replace fields between apps?

For some baffling reason, Apple thinks that whatever I search for in one app will be the same thing that I want to search for in another app.  This results in my actual search terms being overwritten in (for example) my text editor just because I searched for something on a web page or in iTunes.  Having my carefully-craft regex replaced with "Pink Floyd" is aggravating, to say the least, especially when using a text editor without a search history. The user-interface thinking that led Apple to this decision is beyond my ability to comprehend, but I really would like a way to turn it off.  How can I disable this?  PS:  raises a similar question but the answer offered there only applies to the specific scenario of the question, and to BBEdit as an application. I‘m looking for a way to control this behavior in general.


Aparently, encoding japanese emails is somewhat challenging, which I am slowly discovering myself. In case there are any experts (even those with limited experience will do), can I please have some guidelines as to how to do it, how to test it and how to verify it?  Bear in mind that I've never set foot anywhere near Japan, it is simply that the product I'm developing is used there, among other places.  What (I think) I know so far is following: - Japanese emails should be encoded in ISO-2022-JP, Japanese JIS codepage 50220 or possibly SHIFT_JIS codepage 932 - Email transfer encoding should be set to Base64 for plain text and 7Bit for Html - Email subject should be encoded separately to start with "=?ISO-2022-JP?B?" (don't know what this is supposed to mean). I've tried encoding the subject with    "=?ISO-2022-JP?B?" + Convert.ToBase64String(Encoding.Unicode.GetBytes(subject))   which basically gives the encoded string as expected but it doesn't get presented as any japanese text in an email program - I've tested in Outlook 2003, Outlook Express and GMail    Any help would be greatly appreciated    Ok, so to post a short update, thanks to the two helpful answers, I've managed to get the right format and encoding. Now, Outlook gives something that resembles the correct subject: =?iso-2022-jp?B?6  Japanese test に各々の視点で語ってもらった。  6相当の防水?=  However, the exact same email in Outlook Express gives subject like this: =?iso-2022-jp?B?6  Japanese test 縺ｫ蜷・・・隕也せ縺ｧ隱槭▲縺ｦ繧ゅｉ縺｣縺溘・ 6逶ｸ蠖薙・髦ｲ豌ｴ?=  Furthermore, when viewed in the Inbox view in Outlook Express, the email subject is even more weird, like this: =?iso-2022-jp?B?6  Japanese test ??????????????? 6???????=  Gmail seems to be working in the similar fashion to Outlook, which looks correct.  I just can't get my head around this one.


Connectedness of set with $\sin(1/x)$ function

Let $A$ be the set of points $(x,y)\in\mathbb{R}^2$ with $x=0,|y|\leq 1$, and let $B$ be the set with $x>0,y=\sin 1/x$. Is $A\cup B$ connected?  From the picture, I think it should be connected, because the points in $B$ oscillates between $y=-1$ and $y=1$ as $x$ approaches $0$, and the points in $A$ cover all of the range $[-1,1]$ for $x=0$. However, to prove it rigorously, I must show that there doesn't exist disjoint, nonempty, open sets $C, D$ such that $A\cup B=C\cup D$. How can I show that?


How to display Trash and Home folder icons?

I've googled quite a bit but nothing I've found works. I just want to display the Trash, Home folder, Computer etc icons on my Desktop in Ubuntu.  The closest I've come is installing dconf-tools, running it, going to org -> gnome -> desktop -> background and checking show-desktop-icons then org -> gnome -> nautilus -> desktop and checking the icons I want to show.  Nothing happens.  I've also tried looking in compizconfig-settings-manager and gconf-editor but can't find anything there.  Ideas?


Automorphisms $\mathbb R\to\mathbb R$ with $\mathbb R$ as ordered field

What are the automorphisms $(\mathbb R, 0, 1, +, \cdot, \leq)\to (\mathbb R, 0, 1, +, \cdot, \leq)$ and how many are there?


I am looking to install SQL developer  I downloaded the .app file.  When I try and open it I get  “SQLDeveloper.app” can’t be opened because the identity of the developer cannot be confirmed.


tikzscale not working with externalize using named only

I found a weird behavior when using tikzscale in combination with the externalize-library:  When I configure externalize with only named = true, but do not set /pgfsetnextfilename for an image, this image is not being scaled anymore.  MWE:  \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[     only named=true, ] \usepackage{tikzscale} \usepackage{filecontents}  \begin{document}  \begin{filecontents}{simple.tikz}     \begin{tikzpicture}[show background rectangle]         \draw (1,0) -- (0,1);     \end{tikzpicture} \end{filecontents}  \tikzsetnextfilename{simple}  % no scaling is happening once this line is commented out \includegraphics[width=10cm]{simple.tikz}  \end{document}   Is this an expected behavior, or did I miss something/ do something wrong?  EDIT: As expected, putting a tikzexternaldisable before the \includegraphics solves this problem.


Difference in length of lines computed with GeoPandas or in QGIS

So, first of all, here is a test file:   The column length was added using QGIS (v 3.10 A Coruña), field calculator and adding parameter $length.   If the file is opened with geopandas (v 0.6.1), the property length outputs this:  a.length Out[8]:  0    1581.729679 1     899.177689 2      38.054220 3      47.333848 4     189.591771 5     275.946388 dtype: float64  the values obtained by qgis are:  a['length'] Out[9]:  0    1580.830737 1     898.686067 2      38.033291 3      47.307854 4     189.489982 5     275.796306 Name: length, dtype: float64  As you can see there is a difference of a few centimeters.   Has anyone else experienced this?


Unnecessary option when decrypting HDD before booting

I've just performed a clean install of OS X Yosemite 10.10.3 on my new hard drive. Before installing i formatted the disk as an encrypted drive. When i start up my machine now i get to select between my account and button showing a question mark stating update required before the actual booting starts. I assume this is for decrypting the drive. When selecting my personal account the machine boots right into the operating system without a detour. When selecting the question mark i get prompted to select my personal account after the process of booting is finished.  I am certain that this unnecessary second option is due to the encryption of the hard drive as it first showed after restarting during the installation process when no user account had yet been created. However i have no idea how to get rid of it. Help therefore is appreciated.


Statistical test for comparing two frequencies with R

i have this situation. A set of 5000 objects, 4950 blue and 50 green. From this set two people (person A and person B) fish separately 100 objects each and i would like to know if one of the two people has tricked me (not fishing blinded).     person A fished one set of 100 objects, 90 blue and 10 green.   person B fished one set of 100 objects, 99 blue and 1 green (that would be expected by chance)    Which test should i use? Could someone point me to a R example/solution about it? Thanks in advance


What happened to the "very low quality" flag reason?

Possible Duplicate:          I see a  to receive a "very low quality" flag by me.  It's just a link pointing elsewhere basically saying, "try this." I generally do this for answers I see that are like this and have been successful every time so far.  I save "not a real answer" flag for other cases such as someone asking another question in an answer or "thanks" answers.  I want to flag it as "VLQ" but I don't see that as an option*.  In fact, I don't see it as an option anymore on any site throughout the Stack Exchange network.  * This was not possible before when I initially posted this. Michael's observation on the needed downvote seems to be the reason it didn't show up.  Did it just get phased out as being unnecessary?  Should I be using "NARA" as the flag reason for this case now?  I'm not sure if the "NARA" explanation really covers this case well: (emphasis mine)     This was posted as an answer, but it does not answer the question. It should possibly be an edit, a comment, another question, or deleted altogether.   These sorts of answers can answer the question in general.  The site linked to might very well completely answer the question.  (in this particular case, maybe not however)  It's just that the answerer really should do something to improve the answer.  It's not like it's a "This question is a duplicate of this [onsite question] post" or some other general spam.  Those cases are clearly "NARA"/spam.  There was a  regarding the necessity of this flag reason.  Answers point out that it is needed and I agree.  There hasn't been anything mentioned (that I am aware of) in terms of removing it by the team.  Was this officially removed now in favor of other flagging reasons?  Or is this just a bug and it was "accidentally" removed?


Polyline is not pointing to correct langitude.latitude data in Leaflet

I am trying to add polyline in my existing leaflet map. But unfortunately its not overlapping the correct coordinates.    this.testd = [             [26.946345158021394, 45.30658810117468], [31.74737690870502, 58.27657611253403], [3.572373155835759, 50.87794848675696]         ]          this.pathLine = L.polyline(this.testd);         this.allLayers.addLayer(this.pathLine);         this.allLayers.addTo(this.map);    Please let me know how to make it work.


What does '#AT' mean in early versions of D&D and AD&D?

In many early D&D and AD&D modules, NPCs, monsters, and other creatures are often listed with an attribute of #AT followed by a number.  What does that mean?  For example, from the AD&D 2nd edition T1-4 module compilation, Temple of Elemental Evil, page 7:     Farmer; AC 7; Level 0; hp 6; #AT 1; D 2-8; XP 16


Should all link-only answers be considered very low quality?

My "very low quality" flag of  has been declined, with a note that     The correct procedure here is to comment, down-vote or even edit.   I don't think there is much to comment on an answer consisting of a single word, hyperlinked to the correct page. What could my comment possibly say? "Please embed your link into a better answer"?  Downvoting this answer would be inappropriate, too, because the link leads you to the correct page.  Finally, editing a single-word answer is very much like making a stone soup - it is the same as writing a brand-new answer.  Should there be a rule that all answers consisting of a single link without meaningful explanation be considered very low quality?


Image of first quadrant under $f(z)=\frac{z-i}{z+i}$


Convert 2.9V to 5V to operate relay using limited resources

I brought a relay module which works when 5V are given to its input pin to switch on high voltage.  But my raspberry pi GPIO pins give out only 2.9V (measured from multimeter, it was supposed to give 3.3V).  I have only below mentioned things available in my locality :- BC-557 (PNP), BC-548b (NPN), LM-317t (Voltage Regulator), some resistors.  How do I operate relay using above mentioned electronics components? Please keep the circuit simple BUT safe for my raspberry pi.


How do we prove that a sphere maximizes the volume enclosed among all simple closed surfaces of given surface area?

How do we prove that among all closed surfaces with a given surface area, the sphere is the one that encloses the largest volume, and not do it by cases?  so far I've tried is that I know the formula for the surface of the sphere and volume of sphere


What is shortest way to rename files in bash

I have following files with names like:  Selection_Test_from_120118_1140118.txt Selection_Test_from_monthly_120118_1140118.txt   how we can rename both files by removing string from file:  string1 --> Selection_Test.txt (remove "_from_120118_1140118") string2 --> Selection_Test.txt (remove "_from_monthly_120118_1140118")   I want to use parameter expansion method instead of traditional cut command here


Windows partition tool will only allow me to format partitions as NTFS or exFat. How do I install Kubuntu on the partition I've made for it?

I have just partitioned my hard drive in Windows to dual-boot Kubuntu and Windows 10. I can't format it in FAT or FAT32... The only options are NTFS and exFat.   I want to use Kubuntu and windows at the same time. Can I install Kubuntu on an exFat partition?


How can I get code syntax highlighting in Google Docs?

Is there way to switch on syntax highlighting in ?   Personally I use it for editing and collaborating on C++ files, but PHP or SQL syntax highlighting also would be interesting.


How can I know if my Asus Nexus 7 is 1st or 2nd gen?

I was given an Asus Nexus 7. How can I tell if it is the 1st or the 2nd gen?


Running GUI app on startup Lubuntu LiveCD

i want to run Chromium in kiosk mode on startup (Lubuntu). Browser is GUI App and runing it from rc.local not working. Is any way to run GUI Apps on startup on LiveCD? Im using this tutorial to make ISO


How do you calculate the likelihood of drawing certain cards in your opening hand?

In Magic, at the start of the game, you draw 7 cards. How would you calculate the likelihood of drawing a specific card in your opening hand?  For example, let's say I have a 60 card deck, and I'm running 4 . What is the percent chance that I will have at least one Bird in my opening hand?


LCM and divisibility: $\,a,b\mid c\Rightarrow {\rm lcm}(a,b)\mid c$

Let $c \in \mathbb Z$ and $k=LCM(a,b)$.   Show that for every $a,b \in \mathbb Z$ \ {$0$} if  $a\mid c$ and  $b\mid c$ then also $k\mid c$.  Please dont give me the solution just a tip. My thoughts were that $c \ge LCM(a,b)$ so $c$ is a multiple of $k$ $\Rightarrow$ $c=LCM(a,b)*m$ with $m \in \mathbb N$. Then I have to look at to cases:   Case 1:  $c=LCM(a,b)$  then $a$ divides $c$, $b$ divides $c$ and then also $k$ divides $c$.   Case 2:  $c\gt LCM(a,b)$  a divides c and b divides c $\Rightarrow ax=c=by $ with $x,y \in \mathbb Z$ and a,b divides $LCM(a,b)$ then a,b divides also the multiple of $LCM(a,b)*ax*by*n$ with $n \in \mathbb N$.   Im pretty sure at Case 1 but not at Case 2. Does it make sense? please give me rate and a tip. Thank you!


Why my String is returning as a blank string?(JAVA)

I am trying to return a string with time but somehow the returned string blank. I don't know what is the right way to do it.   static String timeConversion(String s) {       int hr=Integer.parseInt(s.substring(0,2));      String min=(s.substring(3,5));      String sec=(s.substring(6,8));      String ap=s.substring(8,10);      String res="";      if(ap=="AM")      {          if(hr==12)          {              res.concat("00"+":"+min+":"+sec);          }          else          {              res.concat(hr+":"+min+":"+sec);          }      }      else if(ap=="PM")      {          hr=hr+12;          res.concat(hr+":"+min+":"+sec);      }      return res; }


Single-word synonym for "immensely valuable"?

I am looking for some (may be rarely know to nonnative English speakers) synonyms for  "immensely valuable" or "extremely valuable".


Is there any official PPA for Adobe Brackets in Ubuntu 16.04 ? I currently download .deb files from their website and install it manually. I want to automate the updating processing like Atom.


How can I delete the contents of a local folder in Python?  The current project is for Windows, but I would like to see *nix also.


If I use a 5A power pack for 3 led strips 2A will the power pack burn

I'm trying to make a light and I'm using 2A 12v aluminium led strip lights.   But I need to know how to select the power supply for this.  I'm using 8 led strips:  4 strips 2.5 feet  4 strips 1.5 feet  6 pc cooling fan   I have a 12v 5A power pack can I use it for this?


Replicate zirconia material in blender-cycles (tooth material)

I"m trying to replicate the material in the shown image. Can anyone help me, please? It's called zirconia and used in dental crowns.


My function doesn't change the value of the output variable

I'm new to coding so apologies for the really basic question. I have made a javascript function called ErrorType that checks whether my variables 'correct' and 'response' equal 70 and 68 respectively. If they do, then I want to set 'correct_rule_wrong_resp' to 1. My problem is that when I call the function, it has no effect on the value of 'correct_rule_wrong_resp'. Where am I going wrong?     correct = 70;     response = 68;     correct_rule_wrong_resp = null;      function ErrorType (a, b, c){         if (correct == a && response == b){             c = 1         }     }      ErrorType (70, 68, correct_rule_wrong_resp)


Why did my credit score plummet in a week?

I check my credit score on Credit Karma every week just to make sure everything is ok. Every now and then the score goes up a point, sometimes based on utilization it goes down a point or so.  However, today I open it up and my score has dropped by 20 points! From 753 to 733 in a week. The "changes" section says it is because my balance went up on a credit card, to nearly 50% utilization, but I wouldn't think that is worth 20 points. Especially when it's only ~8% total credit card utilization.     Why would this change be so dramatic so quickly? I already paid the card off (as I do every month) should the score return to normal or will I have to fight for those 20 points one at a time again?  Edit: Roughly a month later (via CreditKarma) my score jumped the full 20 points back all at once. So it appears it was indeed a temporary jump.


Where are temporary files in Chrome stored?

Internet Explorer stores .flv temp files in temporary folder when viewing YouTube. So it's easy to find a copy of that .flv file.  How about Google Chrome? Where does it store browsing temp data?


Determine whether $(x_n)$ converges or diverges

Given $x_1 := a > 0$ and $x_{n+1} := x_n + \frac{1}{x_n}$ for $n \in \mathbb{N}$, determine whether $(x_n)$ converges or diverges.   Since $x_1 > 0$,  it seems obvious that the sequence is strictly increasing and always positive because we are always adding a positive number to each subsequent element in the sequence.   The trickier part is to show whether $(x_n)$ is bounded or not. If $(x_n)$ is bounded, then $\exists M \in \mathbb{R}$ such that   \begin{align}|x_n| \leq M ~\forall n \in \mathbb{N}\tag{1} \end{align}  Alternatively, I think this means that $M$ could be a supremum of the sequence and another way to rewrite $(1)$ is given any $\epsilon > 0$  \begin{align} x_n + \epsilon \leq M \tag{2}\end{align}  Choose $\epsilon = \frac{1}{x_n}$. Then   \begin{align} x_{n+1} = x_n + \frac{1}{x_n} \leq M \implies x_n + \epsilon \leq M \tag{3}\end{align}  Thus I conclude that the inequality holds $\forall n \in \mathbb{N}$ and that $(x_n)$ is convergent. Thus by the Monotone Sequence Convergence Theorem, $(x_n)$ is convergent.    The part I am not sure about is my reasoning to show that $x_n$ being bounded is correct or not.


How to make dynamic paint effect distinctly visible?

I was trying to create a painting effect (a simple brush rolled over a surface changes the color of the surface to that of the brush) with dynamic paint. So, I added a canvas and a brush, kept the Dynamic Paint advanced surface type to Paint, and use the object's material to paint. But as you can see in the picture the paint effect is hardly visible, in fact its not even sure whether it's a small reflection from the shader or actually the paint effect. So, how do you make the paint effect distinct? Any suggestion is appreciated  .Thanks


Anyone tell me the name of this half-remembered sci-fi story about a genius teaboy?

It was either a short story or a novel. I read it about 20 years ago, and some vague memory of it stuck.  It's set in a future where everyone's allotted role is decided by a series of tests once they reach a certain age. They are then classified into a group which decides what jobs they will do.  Our hero rather controversially gets a perfect score in the tests. Nobody had done that in a long time. and at first he worries about what this might mean. He is sent to work for the mysterious scientists who maintain the computer that runs society. Most people don't know they exist. He is disappointed to learn he has to be their tea boy, and learn a tea making ceremony perfectly.  In the process he learns how to fool the machine, and eventually to circumvent the controls society has placed on him. He makes several visits to an area outside the control of the machine - where people are living in poverty and lawlessness.  Can't remember the author, or the name, just that basic idea, and the fact that early in the book is a very grand "tea ceremony" where he must make the tea perfectly.


Is microtype fully supported now by XeLaTeX? If not, how can I keep myself up-to-date?

Is microtype fully supported now by XeLaTeX? If not, how can I keep myself up-to-date on this argument?


On doing the following Gibbs free energy being zero merely: $$Pressure \ constant$$ $$Temperature \ constant$$ $$dU=TdS-pdV$$ $$dU + d(pV) = TdS +VdP$$ $$dH=TdS+VdP$$ $$VdP=0 \ as \ dP=0$$ $$dH-TdS = dG = 0$$


Solving A Problem Involving Pythagorean Theorem And Polynomials

I don't know how to solve this problem. What I've done so far is to construct 3 equations. However, I don't know how to solve those 3 equations:   Let y be the distance between the box and the ladder, and z be the length of the portion of the ladder that is beneath the top of the box:   $(x-1)^2+1=(10-z)^2$  $(y)^2+1=z^2$  $(x)^2+(1+y)^2=(10)^2$  I don't know how to proceed from here, however.


Apache2 virtualhost configuration trouble

This is my situation:  I have Redmine and Gitlab in my server which does not have a domain associated, because I will use the server IP address.   I want to configure two virtualhosts in apache2 with SSL in order to serve the above web applications, so I can access them like this:  https://x.y.z/redmine   which is located in /var/www/  https://x.y.z/gitlab   located in /home/git/github/public  I have configured apache by enabling two files in site-enabled: github.vhost and gitlab.vhost. The problem is that I cannot set gitlab to be accessible with  https://x.y.z/github   but only in   https://x.y.z   probably beacuse I do not use a domain but only the IP address of the server, and I don't know exactly how to manage it.  I would need some suggestion on how to correctly set the two vhost files.  Any suggestion?


How do I convert a geometry group input node input to an integer

I am currently following a tutorial on how to make procedural buildings with the new geometry nodes and the YouTuber that I am watching has a integer input when he uses the slider but mines a float


tense agreement: "I was talking how the people who had been (have been) brave enough to take part in WW2 were (are) people we should look up to."

Just the other day, I was talking to my mom about how the people who had been brave enough to take part in world war 2 were people we should look up to. Just the other day, I was talking to my mom about how the people who have been brave enough to take part in world war 2 were people we should look up to. Just the other day, I was talking to my mom about how the people who had been brave enough to take part in world war 2 are people we should up to.  Which one amongst the above sentences is grammatically the most accurate? I asked this question once before, I still am kinda doubtful as to whether the first one is the best one to use.


Find the value of $~\lim_{n\to\infty}\sum_{k=1}^n \frac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}~$

Question: Find the value of $$\lim_{n\to\infty}\sum_{k=1}^n \dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}~.$$  My work: Let $~~a_n=\dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}=\dfrac{1\cdot 2\cdot 3\cdots 2k}{3^k(1\cdot 2\cdot 3\cdots k)\cdot 2^k(1\cdot 2\cdot 3\cdots k)}=\dfrac{(2k)!}{6^k\cdot(k~!)^2}~.$ Hence our problem becomes $$L=\lim_{n\to\infty}~\sum_{k=1}^n \dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}~=\lim_{n\to\infty}~\sum_{k=1}^n\dfrac{(2k)!}{6^k\cdot(k~!)^2}=\lim_{n\to\infty}~\sum_{k=1}^n \binom {2k}k \dfrac{1}{6^k}.$$ Now we know that , then $$L=\lim_{n\to\infty}~\left[-1+\sum_{k=0}^n \binom {2k}k \left(\dfrac{1}{6}\right)^k\right]=-1+\lim_{n\to\infty}\sum_{k=0}^n \binom {2k}k \left(\dfrac{1}{6}\right)^{k}=-1+\left(1-\frac 46\right)^{-1/2}=~\sqrt 3 -1~.$$ Is the whole process described here is okay now ? Special thanks to @Integrand & Z Ahmed


Standard way to embed version into Python package?

Is there a standard way to associate version string with a Python package in such way that I could do the following? import foo print foo.version  I would imagine there's some way to retrieve that data without any extra hardcoding, since minor/major strings are specified in setup.py already. Alternative solution that I found was to have import __version__ in my foo/__init__.py and then have __version__.py generated by setup.py.


Do While Cells(i, 1).Value <> ""     ....      End If     i = i + 1 Loop End Sub   Right. It works fine with numbers and stop perfectly. But With Text. It does not stop.  Ideally I want to stop at the last row of my content rather than my last row in Excel. I manage to make it work fine with numbers, but I cannot fix it with Text.  Any help would be great as I am a beginner in VBA.  Sub checkRoutine() Dim i As Integer Dim LastRow As Long  i = 1   Do While Cells(i, 1).Value <> ""     If IsNumeric(Cells(i, 1).Value) Then Cells(i, 2).Value = Cells(i, 1).Value & " " & Cells(7, 5).Value      If Not IsNumeric(Cells(i, 1).Value) Then         LastRow = Range("A" & Rows.Count).End(xlUp).row + 1         ActiveSheet.Cells(LastRow, "A").Value = Cells(i, 1).Value & " " & Cells(7, 5).Value     End If     i = i + 1 Loop End Sub


wifi not working in ubuntu 13.04 on lenovo g430

I have lenovo g430 system in which my wireless card is bcm4312 . i just installed ubuntu 13.04 on my lenovo system along with windows 7 . All things are working properly except my wireless not detecting any wifi connection .   From what i do till now is:   when i write "iwconfig" on terminal it shows me "no wireless found" i tried to install my wireless driver using software update in system setting in the additional driver option . its shows my wireless but cant update it   please help me regarding this issue . thanks in advance :)


Kenda cyclo cross 27 x 1 3/8 fit on 27 x 1 1/4 rim?

Will the kenda K161 cyclocross tires (27x1 3/8s) fit on a 27x1 1/4 rim?  I havent been successful at finding this question on here or on google, apologies if it has been asked a million times.  Thanks!


What is the goal of "accepted answer mark"

As in , votes can already mark better answer (though not always work especially when there are a lot of answers). Then except for giving asker 2 reps and answerer 15 reps, are there other benefits (BTW are the 2 and 15 reps really a benefit for the site?) of this feature? Obviously "mark an answer right or wrong" is not a benefit, since a feature like "tag any answer as right/wrong" will do a better job.


How general relativity gets to an inverse-square law

I understand that a general interpretation of the $1/r^2$ interactions is that virtual particles are exchanged, and to conserve their flux through spheres of different radii, one must assume the inverse-square law. This fundamentally relies on the 3D nature of space.  General relativity does not suppose that zero-mass particles exchanged. What is the interpretation, in GR, of the $1/r^2$ law for gravity? Is it come sort of flux that is conserved as well? Is it a postulate?  Note that I am not really interested in a complete derivation (I don't know GR enough). A physical interpretation would be better.  Related question:


NullPointerException while trying to set click listener on button which is on bottomsheet

i have recyclerview in my App and when list item is pressed bottomsheet dialog expends where i have two buttons but i can't set click listeners to it. This is onClick method in adapter  BottomSheetDialog offer_info_dialog; RelativeLayout rel; Button Yes,No; View parentView; @Override public void onClick(View view) {     rel = (RelativeLayout) activity.findViewById(R.id.bottomsheet);     Yes = (Button) offer_info_dialog.findViewById(R.id.confirm_btn_on_info);     No = (Button) offer_info_dialog.findViewById(R.id.cancel_btn_on_info);         offer_info_dialog = new BottomSheetDialog(context);         LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE );         parentView = inflater.inflate(R.layout.offer_info_layout, null);         offer_info_dialog.setContentView(parentView);         ((View) parentView.getParent()).setBackgroundColor(context.getResources().getColor(android.R.color.transparent));         offer_info_dialog.show();         rel.setVisibility(View.INVISIBLE);      Yes.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             MainActivity.removeCheatOfferMarkers(2);         }     });      No.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from((View) parentView.getParent());             bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);         }     });     offer_info_dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {         @Override         public void onDismiss(DialogInterface dialog) {             rel.setVisibility(View.VISIBLE);         }     });  }   and this is an error:  java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.design.widget.BottomSheetDialog.findViewById(int)' on a null object reference


Column vs Field: have I been using these terms incorrectly?

I feel kind of embarrassed here, I've always used the terms "column" and "field" completely interchangeably, which recently caused some confusion in a technical discussion.   I was told, though, that this wasn't correct, that it should be (translating each term into spreadsheet terminology, ignoring data types and all the other stuff that make databases useful):   Database Column: like a spreadsheet column  Database Record: like a spreadsheet row Database Field: like a spreadsheet "cell" (a specific column of a specific row)   Is this right? I could have sworn that column and field are used more interchangeably than that. I certainly have been.  So we don't add fields to a table, we add columns to a table, and fields are only relevant when talking about data within a record?  Other thoughts on column vs field?  Edit: to clarify, the current context is MS SQL Server. My background before SQL server was MS Access, which might influence my use of these terms.


How do i find the product key of Windows 10 (OEM Sticker Erased)

I have upgraded from windows 7. MY OEM sticker has been Erased. I want save my Product key of windows 10. I am going to clean install it. what is command or Gui method to find the Product which is already installed.


$R>r>0$ , $||a||,||b||R$ ; pulls back volume form to itself?

Let $n>1$ , consider $\mathbb R^n$ with standard volume form $\omega _0 =dx_1 \wedge ...\wedge dx_n$ ; let $r,R$ be two positive real numbers with $R>r$ . Then is it true that for every $a,b \in B(0;r)$ , $\exists$ a diffeomorphism $f:\mathbb R^n \to \mathbb R^n $ such that $f(a)=b ; f(x)=x , \forall x \in \mathbb R^n $ with $||x||>R$ and $f^*\omega _0=\omega _0$ ?   As $f^*(dx_1 \wedge ...\wedge dx_n)=(det f' )(dx_1 \wedge ...\wedge dx_n)$ , so basically given $R>r>0$ and $||a||,||b||<r$ , we have to find a diffeomorphism $f : \mathbb R^n \to \mathbb R^n  $ with $f(a)=b$ ; $f|_{\mathbb R^n \setminus B[0;R]}=Id$ and $det f'(p)=1 , \forall p \in \mathbb R^n $ .  Definitely this cannot work out in $\mathbb R$ , because the only differentiable function satisfying $det f'(p)=1 , \forall p$ and $f(a)=b$ is $f(x)=x+b-a$ and this function never gives identity unless $a =b$


netplan configuration on Ubuntu 17.04 virtual machine

I'm running VirtualBox with 2 network adapters: standard NAT (enp0s3) and a Host-only Adapter (enp0s8). I use the NAT to access the internet and the Host-only Adapter to SSH in from my local machine.  The box boots up with both adapters enabled, both have IP addresses, everything looking good.    I can SSH into this box over the host-only adapter, no issues there. But I can't get on the internet with it. However, if I disable the host-only adapter, then I can access the internet (but obviously I can no longer SSH into it over the local tunnel).    And finally, here is my netplan yaml config:  # This file describes the network interfaces available on your system # For more information, see netplan(5). network:   version: 2   renderer: networkd ethernets:   enp0s3:     dhcp4: yes     dhcp6: yes   enp0s8:       dhcp4: no     dhcp6: no     addresses: [192.168.52.101/24]     gateway4: 192.168.52.101   Any ideas? It seems like maybe all my outbound traffic is routing through the host-only adapter somehow.  Edit: attaching the output of ip route list in case it helps.  default via 192.168.52.101 dev enp0s8 proto static default via 10.0.2.2 dev enp0s3 proto dhcp src 10.0.2.15 metric 100 10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 10.0.2.2 dev enp0s3 proto dhcp scope link src 10.0.2.15 metric 100 192.168.52.0/24 dev enp0s8 proto kernel scope link src 192.168.52.101


Could someone tell me what the species of this beautiful insect is? Location: Chennai, India.   Thank you!


My computer isn't loading GRUB when I boot

I use a TOSHIBA Satellite A300 laptop with Windows 8.1 Pro installed.  I made a live USB using Universal USB Installer 1.9.6.1 from which I can boot Ubuntu 15.04 using the ISO image from Ubuntu website.  My laptop successfully booted from the USB memory and ubuntu successfully ran without trouble.  On the desktop (I suppose it's called desktop) there was a file/program with the name "Install Ubuntu 15.04," which I opened.  During the installation I chose a drive which I already had decided to allocate for Ubuntu and changed its filesystem type to ext4`` and installed Ubuntu onto this drive. When the installation finished I was asked to restart my computer, which I did but instead my computer directly booted my windows 8.1. The partition on which ubuntu is installed is now invisible to windows but it says "healthy" in the Disk Management tab in the computer management window of Windows 8.1 . I saw during the installation of ubuntu the status "Installing GRUB" or something similar, I did some research then found out that GRUB is a multiboot manager from FSF. However, it seems that it doesn't exist and I can't reach to boot Ubuntu installed on the HDD no matter what I do.  I'd like your help to know what I should do to:   Make my computer detect Ubuntu so I can boot it. Ask each time for which OS I'd like to boot.   thank you very much


I'm using window.getSelection().anchorOffset and focusOffset to turn selected area into an element. It works fine the first time. But then the parent element divided by new element and getSelection() start count from new element. I don't know how to get current element of getSelection(), this is the only way I can think of to fix this.  var temp = window.getSelection();     if (temp.anchorOffset < temp.focusOffset) {         var start = temp.anchorOffset;         var end = temp.focusOffset;     }else{         var end = temp.anchorOffset;         var start = temp.focusOffset;     }      var mid = text.substring(start,end);      $(".main-element").html(text.substring(0,start)+"<b>"+mid+"</b>"+ text.substring(end)); });


When should an org invest in a private infrastructure as opposed to a partially or fully hosted solution?

Not referring to militaries or governments, but for other organizations or shops that needs an IT infrastructure (who doesn't nowadays). Similar to  question, but purely in regard to hardware and/or services, such as servers, storage, email services, etc.  I don't imagine it's cut and dry for every org, because every organization is different. Should they consider:   Size of the org and what resources are required Whether or not the org has in house IT support Recurring cost of replacing hardware vs. hardware 'subscription' Of course there are security concerns, such as 'Is this service from <provider> compliant with <security standard> If going with a hosted option, what's the exit strategy if all of a sudden the agreement can't go forward, for whatever reason. Options for backups, with either choice.   There's of course more to consider than just cost. I ask this because you have small 1-2 employee shops that need services such as email or file services, all the way up to huge organizations, but those huge organizations aren't IT shops, their production may be basket-weaving or something, should they invest in a private infrastructure to host their basket-weaving drawings, documents and the like? How is that a value add for them?  Update  Not necessarily cloud, colocation is an option as well.


Questions with a score of -1000 and lower are not rounded in the iOS app

Questions with a score of 1000 or higher are rounded, e.g. 1380 becomes 1.4k. This doesn't happen for questions with score of -1000 or lower, resulting in a very small text (it's readable in the screenshot below, but mostly because mobile screens tend to have a high screen density and their screenshots blow up when uploaded). I'd expect the score to be shown as -1.5k.  This is not a duplicate of  as this question is about the iOS app, while that question is about the mobile website. The two things use different methods to render the scores: the score for the mobile website gets rendered server-side (IIRC a combination of C# and HTML), while the app gets its data from the  and performs the rounding client-side in native iOS code.    I do know app development is  and that the Stack Exchange employees have more pressing matters at hand.


I have never came across a state that allows "working" (in the meaning of a "doing a job") in its vicinity for tourist visa holders but I have came across many countries that don't allow it.  And yet, when someone works with a laptop for customers outside that country, I don't think it really reflects the meaning of "working" or "doing a job" in that country and therefore a place for interpretation becomes existent.  Is working from a laptop when travelling to countries with a tourist visa formally illegal all over the world?


I have a simple donut chart that I created using d3. My code is very simple and I have a text inside the donut chart that I added using <text> element. Something similar like this example , but much simpler.           var style = {                 'font-size': fontSize,                 'text-anchor': 'middle'             };              svg.append("text")                 .attr("dy", dy)                 .style(style)                 .attr("class", "dataText")                 .text("100%");         }   Everything works fine, however when I tested in Windows high contrast mode (alt + left shift + Print screen) this text doesn't show up. If I change my text to yellow, this will show in high contrast. However, for normal user, I need this to be black.  What I tried so far: 1) I tried to detect high contrast mode using @media query suggested in  and change fill color to be yellow during high contrast mode only, but seems like FF has a bug about this. 2) From this , they suggested to set color / border to be transparent. No luck still.  Anyone encountered this issue before? What did you do to make this accessible? I tried to open NVD3 (using D3) examples page in high contrast and looks like they are having issue for their text element as well.  Pie chart in normal mode:   Pie chart in high contrast mode (text doesn't show):


What's the difference between using black and white mode in-camera, and converting in post?

For black and white photography, will there be any quality difference between using the built-in black and white mode, or shooting in color initially and then removing the color later using Photoshop (or similar application)?  I have a high-end compact camera, the .


Tapping on the UIPageControl under "About this app" does not change the page, but moves the dot

Steps to reproduce:   Navigate to the "About this app" screen from the menu. Tap "Tricks & Tips" item. Tap the page control.   Expected behavior:  Nothing, or navigate to the page tapped.  Actual behavior:  The dot of the page control moves, but the view does not scroll to the selected item.         App Version: 1.6.1.2 Device: iPhone 6 OS Version: Version 9.3.4 (Build 13G35)


NullPointerException in Opening Android Activity

When I cast my elements from the other layout I got this error.  final  Spinner mainIng = (Spinner) findViewById(R.id.spinner); final  EditText sub1 = (EditText) findViewById(R.id.sub1); final  EditText sub2 = (EditText) findViewById(R.id.sub2); final  EditText sub3 = (EditText) findViewById(R.id.sub3); final  EditText sub4 = (EditText) findViewById(R.id.sub4); final  EditText sub5 = (EditText) findViewById(R.id.sub5); final  EditText sub6 = (EditText) findViewById(R.id.sub6);   heres my error     Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'android.view.View android.view.Window.findViewById(int)' on a   null object reference


Sentences with two verbs with the second verb negative

I have a problem with these sentences. They have two verbs and the second verb is negative. Where should not go?   try to not waste food try not to waste food   and   try to not take it personally try not to take it personally


A method won't move into an if-else statement, but it's will run up to that point?

First off, I know this might have been answered SOMEWHERE but I can't seem to search for the correct terms to get an answer. Also, I'm pretty new to coding, and obvious here, so this probably won't be the best written 'question'.  Quick backstory: I'm coding a sorting game in BlueJ(I know... shitty, but it's what we are learning in school), and for a method I'm creating for any yes/no questions I need isn't working properly. At first, I was having an issue with it allowing to to have the user input save as a String, now I'm having an issue with that String used in the if-else statement parameters. This is what I have right now:  public void userAnswer(int method)                 //used for yes/no questions {     System.out.println("Please type 'y' for yes and 'n' for no.");     String answer = keyboard.next();     answer.toLowerCase();     System.out.println(answer + "worked");     if(answer == "y")     {         System.out.println("worked2");         if(method == 0)             completeOrNot();         if(method == 1)             usersMove(theArray);     }     else if(answer == "n")     {         System.out.println("worked3");         System.out.print("\n");     } }   I'm completely stuck as to why it's not moving into the if-else statement. I test to see if it would print the String, and it will, but it won't convert it to lower case. I just don't know what to do. Any and all help would be appreciated!


Is it correct to say the interval of real numbers from 0 to 1 is more dense than that from 0 to n?

If the cardinality of the set of real numbers in the interval $[0, 1]$ is $c$, and the cardinality of another set of real numbers, say those in the interval $[0, n]$ where $n>1$ is also $c$, then is it correct to say that the first interval must be more dense than the second?


Windows Administrator doesn't have permission on SQL Server

My previous system administrator created a SQL Server 2008 instance on my local machine with his domain User.  Now, I cannot create, delete, or view any databases or tables on that instance. Even with my domain User, or Windows local administrator.  It says "CREATE DATABASE permission denied in master".  The users section in Management studio shows only two users 'BUILTIN\Users' and 'sa' which is disabled. 'Builtin\Users' has only public role. It seems no user have permission to this instance. How can my Local Administrator get permission to it ?  I cannot delete the instance as it has important databases.


How are whiskers in a Boxplot of different lengths?

The formula for calculating the position of the whiskers is   Q3+1.5IQR  and Q1-1.5IQR  But doesn't that mean that the length of the whiskers should be of the same length? How are they of different lengths in some boxplots?


Are any magical acts ever claimed on behalf of The Seven?

Even though the texts of The Song of Ice and Fire series do not confirm whether or not the various gods exist, there are certainly many magical acts claimed on their behalf by their adherents. The gods of Essos very clearly have acts claimed by their adherents, and the Old Gods are seen as active in the north (though I'm not sure if it's explicitly stated that they are responsible for the skinchangers.)  Does the series ever present any magical acts as being caused by The Seven?  And though the Ironborn gods are nowhere near as prominent, the same can be asked for them: are any magical acts claimed to be their work?


I have following data structure in MySQL database:  { date: text name: text }   and a data set:  "2016-01-01" "a1" "2016-01-02" "a2" "2016-01-02" "a3" "2016-01-03" "a4"   I would like to combine "name" field, if the "date" is a same in different rows. So at the end to have something like:  "2016-01-01" "a1" "2016-01-02" "a2, a3" "2016-01-03" "a4"   Of course I could iterate over results-array and build a new structure, like this one, programmatically.. but maybe its a faster way to do this directly in SQL Query?


Estimating partial sums $\sum_{n = 1}^m \frac{1}{\sqrt{n}}$

Apostol's Calculus, exercise number I 4.7 13.     Prove that if $n \geq 1$, then   $$ 2(\sqrt{n+1} - \sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n} - \sqrt{n-1}) $$   and use this to prove that if $m \geq 2$, then   $$ 2 \sqrt{m} - 2 < \sum_{n = 1}^m \frac{1}{\sqrt{n}} < 2\sqrt{m} - 1 $$   In particular, when $m = 10^6$ the sum lies between $1998$ and $1999$.   After establishing the trivial case, for $n=1$, I can't think of a way to perform the inductive step:  assuming $2(\sqrt{n+1} - \sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n} - \sqrt{n-1})$ and using this, deducing the same for $n+1$ is true as well:  $2(\sqrt{n+2} - \sqrt{n+1}) < \frac{1}{\sqrt{n+1}} < 2(\sqrt{n+1} - \sqrt{n})$  Any help is very appreciated, thanks


Why do the wavefornts of water waves always come out to be circular irrespective of the shape of the stone?

When we drop a stone in a pond, we see waves of water spreading over a distance.   Often did I see the geometry of the waves, it is mostly circular.   So no matter how the geometry of the stone is varied the waves seemed to me, a circular one.   Taking an irregular shaped middle sized stone and dropping in the water we see the phenomenon of circular waves spreading out, why is it that we always see circular one? If it's not always the case, please guide me so. Thanks in advance!


I am a beginner in Java and have just started writing core java codes. I went through the access control table in the page :   According the table, for a subclass, access to method of the Super class is restricted IF the method does not have a modifier (lets call this CASE-1).  If the method is declared using "protected", then access is granted to the sub class (lets call this CASE-2).  I prepared the following codes to test CASE-1 and CASE-2. Super class : Test_1 code :  package com.nc.test;  public class Test_1 {     protected void test_3_print()      {       System.out.println("Test 3 print.");     }     public static void main(String[] args) {       // TODO Auto-generated method stub       System.out.println("Test 1 MAIN CLASS.");     } }   Sub class : subTest_1 code:  package com.nc.test1; import com.nc.test.Test_1; class subTest_1 extends Test_1 {    public static void main(String[] args)    {     System.out.println("FROM SUB CLASS.");     Test_1 t11 = new Test_1();     t11.test_3_print();   } }   Method being tested : test_3_print   When test_3_print does not contain any modifier ( only void..this is CASE-1 ), then I encounter the error :  "The method test_3_print() from the type Test_1 is not visible"  This is in accordance with the table I mentioned above. But, when the modifier of test_3_print is set to "protected" as it is in the above code, I still get the same error. This is contradicting with the table.  Am I doing something wrong or am I missing something?


Does Clark Kent need to get a new shirt every time he turns into Superman?

I was recently watching an episode of Smallville where Clark rips open his shirt and a button pinged off a wall. Besides making me laugh, it made me think: shirts don't open that easily without the buttons flying all over the place and needing to be repaired/replaced. Maybe there are velcro shirts he would use?  On the same track, where does he keep his clothes when he's in the red and blue?


How to echo output of a top into a text file?

I want to write batch or something, that will write output of top into a file on login.  I did top >> output-file, but it contains some strange character!  Can somebody give a simple tutorial about how to write batch file in Linux?


How to suppress page numbers from bib-File if given in cite?

in citations (not in the bibliograpy) I want to supress the page numbers from the bib-File if a number is given with the cite.  What I get:   What I want:     1 Emma Sigfridsson und Ulf Ryde. Comparison of methods for deriving   atomic chargesfrom the electrostatic potential and moments. In:   Journal of Computational Chemistry 19.4(1998), S. 377-395, S. 591.   My mwe:  \documentclass[ngerman]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{csquotes}  \usepackage[backend=biber,   style=ext-verbose-ibid,   isbn=false, url=false, doi=false, eprint=false,   dashed=false, ]{biblatex}  \addbibresource{biblatex-examples.bib}  \begin{document} Lorem\autocite[591]{sigfridsson} ipsum\autocite[123]{sigfridsson} dolor\autocite[592]{sigfridsson} \printbibliography \end{document}


How to pass data from JavaScript to PHP and then on to MySQL

I'm having some troubles to pass a JS variable to a PHP variable and then to a sql query.. take a look at the code:  The following val() method displays the selected value of the combobox and passes the js variable to a php variable properly:  <script>   function val() {     player = document.getElementById("combo").value;     document.getElementById("demo").innerHTML = "<?php $player_name = '"+player+"'; echo "Player selected: "; echo $player_name;?>";   } </script>   Ok, so now $player_name is the option selected in the combobox.  <form method="POST">   <select onchange="val()" id="combo"">   <?php       foreach($names as $namearray => $value) {    ?>   <option value="<?php echo $value;?>"><?php echo $value;     ?></option>   <?php      }    ?>    </select>   <input type="hidden" name="selected_text" id="selected_text" value="" /> </form>   Now, that's what's gonna happen after the user clicks the Send Button: ($player_name will be null, therefore, the sql query won't be executed properly)    <?php     if(isset($_POST['send'])) {       $sql = "SELECT roleid FROM listrole WHERE name = '$player_name'";       $result = $conn->query($sql);        // output data of each row       while($row = $result->fetch_assoc()) {         $role_id = $row['roleid'];         echo $role_id;       }   ?>    <input style='height:30px;' type='submit' name='send' value='Send'> </form>


What will happen if I declare main in java non-static

I recently started learning Java and the first doubt I encountered is main is declared static in java so that JVM don't have to initialize the class for accessing main. But my question is why JVM avoid initializing the class which has main? What cost does it incur if we declare main as non-static?


weak limit similiar to central limit theorem

I need to calclulate $$\lim_{n\to \infty} \frac{1}{n}\sum_{i=1}^n \frac{S_i }{\sqrt{n}}$$ where $$ S_i=\sum_{i=1}^n X_i$$ for i.i.d $X_1,X_2,...$ with Expectation 0 and variance 1. I know from the CLT that $\sum_{i=1}^n \frac{X_i }{\sqrt{n}}$ converges to the Standard-Normal distribution. Note that I need to calculate the weak limit. What does that even mean?  Solved by


I am playing a level 13 sorcerer and take 1 level in artificer, how does that affect my spells known and spell slots of each class?


Could you please help me download Ubuntu 18.04 LTS Desktop.   I am new to this, and I really need help. I have a step by step guide I printed from the website, and on Step 4, it is asking me to to insert the DVD or the USB and reboot the machine.  Do I do that after I download the 18.04 LTS? I will have to burn the download to the DVD first. My main reason for downloading Ubuntu is to build a server and use Hyper-V to run. Will there be a server that is already built that I can download?  Please help me realizing this.


I was writing a toString() for a class in Java the other day by manually writing out each element of the class to a String and it occurred to me that using reflection it might be possible to create a generic toString() method that could work on ALL classes. I.E. it would figure out the field names and values and send them out to a String.  Getting the field names is fairly simple, here is what a co-worker came up with:  public static List initFieldArray(String className) throws ClassNotFoundException {      Class c = Class.forName(className);     Field field[] = c.getFields();     List<String> classFields = new ArrayList(field.length);      for (int i = 0; i < field.length; i++) {         String cf = field[i].toString();         classFields.add(cf.substring(cf.lastIndexOf(".") + 1));     }      return classFields; }   Using a factory I could reduce the performance overhead by storing the fields once, the first time the toString() is called. However finding the values could be a lot more expensive.  Due to the performance of reflection this may be more hypothetical then practical. But I am interested in the idea of reflection and how I can use it to improve my everyday programming.


I have been refused a visit Schengen visa for Germany. Does it affect any attempt to apply for Schengen visa next year

I have just been refused a visit Schengen visa from the German embassy in Pakistan. The reason given is I could not prove sufficient family ties to my home country. The intention of my visit other than holidays was to visit both of my parents who reside in Germany.  I am almost 40 years old and divorced with a daughter who lives with her mother.   Despite telling the visa officer that I see my daughter every week and have taken out an insurance policy in her name (submitting the relevant documents) it clearly didn’t help my case. Neither did the fact that my father is 81 years old, cant travel and that I haven’t seen him in five years.   The line of questioning was highly personal and something I wasn’t prepared for. Frankly I didn’t have any convincing answers and that is partly the reason I wanted to visit Germany.   I have a stable job and a property investment for which I furnished the requisite documented proof. I have decided not to file a remonstrance, since by the time it’s sorted out my holidays will be over and even if in the unlikely case I get a visa it wouldn’t serve any purpose. I might try again next year.  However, I am concerned that the refusal will affect any further visa application that I might make for Schengen states in the coming years. Additionally, part of the reason for my visit was highly personal and would have allowed me to resolve some family issues as I mentioned earlier.  I understand why the German embassy would refuse my application but should I write them a letter clarifying my circumstances and highlighting the personal nature of the visit that I wasn’t allowed to make. The intention is not for a reversal of decision since I mentioned it won’t do me any good, but the off chance of improving my chances for a future application and partly to express how bureaucratic protocols can affect personal relations and deny one an opportunity for closure.


Does a UK refugee passport holder need a visa to enter France?

I have a UK Refugee passport. Do I need a visa to go to France?   I want to go for two days with my husband, but I'm not quite sure if I can go without a visa.


I am not sure because that element sign under the intersection sign is not aligned. Every time I use \bigcap, \limits, for instance,  $$N(G) = \bigcap \limits_{H\in \Sigma} N_G(H)$$.


Trouble installing Ubuntu 16.04 since I got GTX 1070

I was running ubuntu with windows, and once I got my GTX 1070, and installed the nvidia drivers on windows it caused Ubuntu to go black screen whenever I would load it from grub. Additionally my asus monitor has a box that says "out of range" whenever I tried to run Ubuntu with the black screen. When I ran ubuntu it would be the black screen with the box that says "out of range", but I could still hear it going to the login screen.  I erased my SSD and reinstalled windows with the nvidia drivers and now when I try to install ubuntu it loads up from my usb, and it turns black once at the install screen. I have never had this problem until I got the GTX 1070. Does anyone know how to fix this?


public class Combo {          public void list() throws SQLException{        ResultSet rs=connexion.getStats().executeQuery("select * from GROUP_FILIÈRE ");       // ResultSetMetaData rsm=rs.getMetaData();          String nom_fil[] = null; int i=0;           while( rs.next()){             nom_fil[i]=rs.getObject(1).toString();             System.out.println(' '+nom_fil[i]);             i ++;        }       }        public static void main(String args[]) throws SQLException{            Combo cb=new Combo();             cb.list();      }  }   the problem is i don't know where is the problem  but what i want to do is geting some informations from database in a procedure and call this procedure in main


I have a .pdf that I am trying to send to our printer which has a few color images in the manuscript.  These few high resolution images are appearing to have a weird grid in them that was not present before. What is causing the appearance of this grid and how can I get rid of it?    Also, I pulled down the proof and looked at with Acrobat Pitstop combo and I am realizing that the images are quite massive.  It's telling me that the image is a collection of images (each one in the grid box is a separate image that each have something like 900 x 900 px.  Could this be relevant?


I used to manage plugins in Chrome by visiting chrome://plugins/ but version 57 it says:     The webpage at chrome://plugins/ might be temporarily down or it may have moved permanently to a new web address.   Is there a way to manage plugins in the newest versions of Chrome?


Prove that two distinct numbers of the form $a^{2^{n}} + 1$ and $a^{2^{m}} + 1$ are relatively prime if $a$ is even and have $\gcd=2$ if $a$ is odd.   My attempt: If $a$ is even, let $a = 2^{s}k$ for some integers $k, s$ Then, $$a^{2^{n}} + 1 = 2^{2^{n}s}\cdot k^{2^n} + 1$$ and $$a^{2^{m}}  + 1 = 2^{2^{m}s}\cdot k^{2^m} + 1$$ To prove that they're relatively prime, we need to show that their gcd = 1. And I was stuck here, how could I prove that gcd of two numbers is $1$?     A hint would be sufficient. Thanks.


How to display the number of employees in each department with each salary in oracle  something like this   department_id salar_equal_1000  salar_equal_20000 city_boston city_detroit city_none 10            2                 3                 2           1            2 20            1                 2                 1           2            0   table contains data like this   department_id   salary city 10              1000   boston 10              1000   boston 10              2000   detroit 10              2000    10              2000    20              1000   boston 20              2000   detroit 20              2000   detroit   I guess i have to use the pivot statement but i am not sure need some help on this


I know if I pump enough energy to a bunch of electrons so that they are all in their excited states, then I can introduce some photons to start off a chain reaction resulting in simulated emission. Can a star do so too?


What is SIM Toolkit and how do I remove it?

I've had this app (SIM Toolkit) since forever and can't seem to find a way to remove it.    (Click image to enlarge)


PostgreSQL 12.5/ pgAdmin - postgis. Error: column p.proisagg does not exist

pgAdminIII reports errors related with a column missing after installing postgis in postgres 12.5 and ubuntu 20.04 Error column proisagg does not exist where perhaps you meant pr.proisagg people reported this error en previous versions and phpadmin  Solution there does not work Note /usr/share/phpPgAdmin/classes/database/ does not exist in my installation


How to fetch names having multiple values in a single query in sql

I have two tables: Person, PersonType      Person                         PersonType                          PersonTypeMapping personId   name                 typeId     typeName                tId   personId   typeId   101         p1                  1        Student                 123       101       1   102         p2                  2        Employee                124       102       1   103         p3                                                   125       102       2                                                                    126       103       1                                                                    127       103       2   Now I need to fetch the person names and their corresponding typeNames.   This is my query   SELECT Person.personId, Person.name,PersonType.typeName  from Person      INNER JOIN PersonTypeMapping ON PersonTypeMapping.personId = Person.personId      INNER JOIN PersonType ON PersonType.typeId = PersonTypeMapping.typeId;    My Output:     personId       name        typeName    101             p1          Student    102             p2          Student    102             p2          Employee    103             p3          Student    103             p3          Employee   But I need output like this:     personId       name        typeName    101             p1          Student    102             p2          Student, Employee    103             p3          Student, Employee   What can be done for this?


How to solve date and time problem in a system with both Windows 8 and Ubuntu?

I have installed Ubuntu in my system last week which was defaultly installed with Windows 8. Whenever I boot to Windows after a visit to Ubuntu the date and time has changed and vice versa. I have to change the date and time every time when I boot to the OS.Help me to solve this issue..


Python 3: How to shorten list of "if" and "elif" statements?

I need help or an explanation as to how I would shorten this code?  I thought about just combining the two, but when I tried, I just keep getting errors  Any ideas?  Thank You!  import random  fave_word = 'hello' + "world"  rand_num = random.randint(0,3)  if rand_num == 0:     fave_word += ''  elif rand_num == 1:     fave_word += 'Bob' elif rand_num == 2:     fave_word += 'BobBob' elif rand_num == 3:     fave_word += 'BobBobBob' else:     fave_word += '' print(fave_word)  fave_word_2 = 'csc108' + "world" if rand_num == 0:     fave_word_2 += '' elif rand_num == 1:     fave_word_2 += 'Bob' elif rand_num == 2:     fave_word_2 += 'BobBob' elif rand_num == 3:     fave_word_2 += 'BobBobBob' else:     fave_word_2 += '' print(fave_word_2)


How to use a software without installing it on a computer?

I hope my question fits superuser. I am a PhD student and I must use a software on my computer at the faculty's office but unfortunately, the informaticians are not at the university since a quite long time and I can not install the software myself because the computer requires an administrator password in order to install softwares.  Is there any way to open and use a software without installing it to the computer ? For example, installing the software on the USB key ? or another method ?  Any help highly appreciated.


If someone says to me,  "I would like that" would I answer by saying "I as well or me too?


Anyone know how to write in r code to find the upper limit, $y,$ for $\int_0^y f(x) \, dx= \operatorname{unif}(1,0,1)$?  EDIT:    For example, $f(x)=2x+x^3$ and $\operatorname{unif}(1,0,1)=0.6$    So, $\int_0^y f(x) \, dx = y^2 + \frac{y^4}{4} = 0.6$     Therefore, $y^2 + \frac{y^4}{4} - 0.6 = 0$ and let $u=y^2$ gives $u^2 + 4u - 2.4 = 0$ then solved it and get $y=0.7279$ and $y=\sqrt{-4.5298}$    But my $f(x)$ is not as simple as in the example. I need a general r coding for any function, $f(x)$, in which can get the upper limit of integration, $y$, when the area of the integration is randomly generated by the uniform distribution in between 0 and 1.


I have a template class as follows.  template <typename KeyType> class Manager {   Manager(std::string name ); };  template<typename KeyType> Manager<keyType>::Manager(std::string name) {   //Do something; }   When I tried to create an object of this class, I am getting unresolved external symbol error. Anybody tell me what is the problem with my code.  std::string name; Manager<std::string> manager(name);


Run exe which is packaged inside jar file

I am executing an exe through my java program. The path is hardcoded in Java.  I have packaged my the exe in the jar.  But am stuck as I have the path name hardcoded in the Java file, so I am not able to execute my jar as a stand alone program.  Any hints for packaging such jar i.e having an exe inside and able to run it as a stand alone program?


Query that fetches all table names & column names in a schema

I want to retrieve all table names and column names IN A SCHEMA. So if I am in schema scott it should only show all the tables present in scott.  And can the query below only retrieve the tables in a schema?  Select * from tab;


How to post to Google+ Business Page from Google+ Profile?

I'm the admin of a Google+ Business Page. If I post to it from my Google+ profile by choosing it from the circle drop-down menu, the posting shows as John Doe Shared a post with you instead of normal post entry. Is there a way to post to a Google+ Business Page from a Google+ Profile?


How can we use ago with Past perfect? Are below lines correct?  The boy’s father had separated from the family many years ago while his mother worked as a gardener in Mukesh’s school.  Above lines taken from below link of Times of India article. 8/may/2018.


Displaying a form on clicking a file download link?

In D7, is it possible to implement the following scenario: user clicks a file link and is redirected to a generated form that must be filled before actual file download starts. File downloads are made private. I tried to use  for that purpose but it obviously should be used for checking user permissions rather than displaying any forms so I'm kinda lost. How should one handle such situations? I'm looking forward to both general advice and (if possible) actual code snippets.


Picturing the how the covariant derivative acts on vector fields

I am curious how people picture geometrically how the covariant derivative acts with regards to vector fields. I understand that it is merely an object which has been defined for some use and obeys certain conditions but how would you picture such a thing geometrically? In other words, when someone asks you what the covariant derivative is, how do you explain it in absence of a formal definition?


What's the Equivalent of ALT+F4 in Ubuntu?

And how to set it up as ALT+F4? (With the intended effect of closing windows)  PS: the "another question" asks for the purpose of it and doesn't address the need to make it to be ALT+F4.


Can I apply for a Schengen visa at a different consulate if no appointment dates are available?

I am planning to travel to visit my friends in Amsterdam on April 2nd week ( I just got a holiday confirmed ) and also go to Munich and Barcelona for 10 days. I would be in Amsterdam for 6 days, 2 days in Barcelona and 2 days in Munich. There are no appointment dates available for either the Spanish consulate or the Netherlands consulate at San Fransisco until mid May. Can I apply the Schengan visa at the German consulate? Any other option which might enable me to go in mid April? Any ideas/suggestions are welcome. I can slightly modify my travel plans. I am an Indian citizen living in USA on a H1B visa.


Returning an 'any kind of input iterator' instead of a vector::iterator or a list::iterator

Suppose I want to implement in C++ a data-structure to store oriented graphs. Arcs will be stored in Nodes thanks to STL containers.  I'd like users to be able to iterate over the arcs of a node, in an STL-like way.  The issue I have is that I don't want to expose in the Node class (that will actually be an abstract base class) which STL container I will actually use in the concrete class.  I therefore don't want to have my methods return std::list::iterator or std::vector::iterator...  I tried this:  class Arc;  typedef std::iterator<std::random_access_iterator_tag, Arc*> ArcIterator;  // Wrong!  class Node { public:   ArcIterator incomingArcsBegin() const {     return _incomingArcs.begin();   } private:   std::vector<Arc*> _incomingArcs; };   But this is not correct because a vector::const_iterator can't be used to create an ArcIterator.  So what can be this ArcIterator?  I found this paper about  but it did not help.  I must be a bit heavy today... ;)


Why did people constructed Quadratic Gauss Sum?

I was studying number theory these days where Quadratic Gauss sum came up.   My question was that:   What motivated them to construct Gauss Sum in the first place. Why did they use $(\frac{t}{p})l^{at}$ rather than simply say $(\frac{t}{p})l^{t}$ in the first place.


Why can other people lift you up but you can't lift yourself up?

I know that the reason I couldn't lift myself up(without the help of any items or a pulley system)was due to that my force was internal and there is a reaction force. However, assuming that somebody attempts to lift me up, wouldn't there also be a reaction force that prevents him from doing so?


Story in which a city had to move steadily over all terrains to remain the same height

People had to move their entire city towards the (horizon?). They traveled over all terrains--water, mountains, deserts. As they traveled they remained the same height. If they slowed down or sped up their bodies would get longer or shorter. I read it at least 20 years ago


I have two lists of objects. Each list is already sorted by a property of the object that is of the datetime type. I would like to combine the two lists into one sorted list. Is the best way just to do a sort or is there a smarter way to do this in Python?


Splitting field in ArcGIS field calculator using Python Parser?

I'm using field calculator in ArcGIS Desktop 10.2.1.  I have field1 which has a values of "A_B" (example).  I created two fields out of this, values to the left of the underscore go in fielda and to the right of the underscore go in fieldb.  I used the code below in field calculator to separate them out into two fields.  fielda =  field1.split("_")[-1]   fieldb =  `field1.split("_")[-1]`   I now have field1 with values of A_B_C_D.  I need to separate the A_B_C_D into four separate fields using field calculator.  fielda = A, fieldb = B, fieldc = C and so on. I'm not sure how to go about this.  I basically need to parse the values by the underscore.


Is using 15 amp components on a 20 amp breaker against code?

I have noticed in a few different houses in Oklahoma that 20 amp breakers are used, but all of the outlets and switches only seem to be rated for 15 amps. This goes against everything I know to be proper and safe. The wire used is 12 gauge, so at least that is fine.  I have started to replace all of the switches and outlets with the decorative switches (the rectangular ones) and have found it very difficult to find switches that are rated for 20 amps. As for the outlets, I have can find them rated for 20 amps, but not in the 10 packs that I see for the 15 amp versions. To be clear I am not speaking about the shape of the plug, rather I am talking about the rating of the internal components of the outlet.  Is there something about electrical code that I am missing?


How can you explain long lifetime of the Rydberg atoms?

Long lifetimes of the Rydberg atoms seems counterintuitive to me.  Intuitive explanation: the higher electron was excited, the more levels below became available for spontaneous decay. So the first thought is the probability of decay should increase.  But the experiments say that highly excited Rydberg atoms are extremely stable (lifetimes ~ seconds). Moreover, the lifetime tends to grow with the increase of quantum number n.  Is there any mistake in my intuitive explanation?  Edited: I do not agree that my question duplicates the one some users pointed at. My question is about possible ways to deal with inconsistency between intuitive explanation and experimental facts.


Lines with `shorten >` don't count towards image size

I use  to extend a line through two points: using shorten > and shorten < with negative values.  However, the part of the lines that is generated by theses shorten commands doesn't seem to be taken into account for the size of the whole image. Therefore these parts can overlap with the figure caption or even surrounding text, see image below. (I indicated the size of the image by show background image.)  How can the size of the image be automatically adjusted?  (When typing the question  showed up - however, it didn't ask for a solution but just mentioned the problem.)  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{backgrounds} \tikzset{extended/.style = { red, shorten >=-1cm, shorten <=-1cm } }   \begin{document}  \begin{figure}   \centering   \begin{tikzpicture}[show background rectangle, background rectangle/.style={fill=lightgray}, tight background]     \coordinate (A) at (-0.5,0);     \coordinate (B) at (1.5,-0.2);     \coordinate (C) at (0.3,1.5);      \draw[extended] (A) -- (B);     \draw[extended] (B) -- (C);     \draw[extended] (C) -- (A);   \end{tikzpicture}   \caption{lorem ipsum} \end{figure}  \end{document}


My Ubuntu LTS 12.04 has vim editor. If I open a file, move to a paragraph and reopen vim, then the cursor goes to beginning of the file always.   This is not the expected behavior.  How the vim can remember last read position after closing a file?  I tried vi also, but the result is the same.


I have an undesirable black area on my glass shader/object

(Using Principled BDSF)   I'm aware that glasses are naturally going to have a bit of black anyway, and I have no problem with the black sections around the base of the main section and the beginning of the handles, but the rim just can't be correct, can it? It started out from following the BlenderGuru tutorial, but his looks nothing like what I ended up with.  If you look at the .blend and image you'll see there is definitely a problem there (at least I hope so - I'd rather a fixable problem than a generally incorrect model/scene). Rotating around shows that, even when the rim has only 2 layers opposed to 4 for the light to pass through, the problem is always there on the rim. Thickness of the glass and how many layers it passes through is not what is affecting the rim. Those 2 things do affect the base/handles, but I'm happy with that.  I have tried adjusting geometry and applied the first layer of Subsurf as other posts said to - no change.   I tried adjusting the bounce levels on light paths, under both Path and Branched Path Tracing - caustics and transmissions etc etc - but nothing seemed to happen.   I added an HDRI in case lighting was an issue, but again, no change in the rim.  The only thing that seemed to do anything is applying a Solidify modifier at a very low thickness above Subsurf in the stack, but this surely isn't the correct solution and the IOR seems off to me after doing so. I have already applied thickness to the model anyway, so it's not like I have a paper-thin glass.


Can a 5th level Pact of the blade warlock, use his action to grapple, then attack twice with his pact weapon?

By RAW, when I use a grapple:  "Grappling When you want to grab a creature or wrestle with it, you can use the Attack action..."  And the 5th level eldrich invocation:  "Thirsting Blade Prerequisite: 5th level, Pact o f the Blade feature You can attack with your pact weapon twice, instead of once, whenever you take the Attack action on your turn."  So, by RAW: If it says "instead", then otherwise (A.K.A. without that eldrich invocation) the rule would be: "You can attack with your pact weapon once whenever you take the Attack action on your turn." And that would allow the player to grapple and attack with his pact weapon. Because when he grapples he uses the attack action, and then trigger the eldrich invocation. From that perspective, with this eldrich invocation, you can grapple and then attack with your pact weapon twice. Is that interpretation right?


My bluetooth is acting weird, can't connect or find any device

I am new to the Ubuntu world. I've just installed newest version of Ubuntu, but I have one, very big problem. The thing is I can't connect to any bluetooth device, my phone doesn't see the notebook, even though it says it's on, also the "visible" option in Ubuntu is on. I also can't connect to my Microsoft Sculpt Comfort Mouse, it's not listed in the system, but phone sees it. The notebook model is Asus R556L. lsusb output:  Bus 003 Device 002: ID 8087:8000 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 006: ID 04ca:2006 Lite-On Technology Corp. Bus 001 Device 002: ID 04f2:b483 Chicony Electronics Co., Ltd Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  uname -r output:  3.19.0-30-generic  lspci -knn | grep Net -A2 output:  03:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) Subsystem: Lite-On Communications Inc Device [11ad:6675] Kernel driver in use: wl


Short circuit evaluation should be faster than bitwise evaluation, but it is not. Why?

To compare how short circuit evaluation logical operators, for example &&, perform compared to bitwise evaluation logical operators, i.e. &, I wrote this example and ran it:  package examples1;  import java.util.Scanner;  public class ShortCircuitOperatorsVSBitwiseOperators {     public static void main(String[] args) {         Scanner scanner = new Scanner(System.in);         System.out.print("Enter A: "); boolean a = scanner.nextBoolean();         System.out.print("Enter B: "); boolean b = scanner.nextBoolean();         long startTimeShortCircuited = System.currentTimeMillis();         boolean resultShortCircuited = true;         for(long i = 0; i < 10000000000L; i++) {             resultShortCircuited = a && b;         }         long endTimeShortCircuited = System.currentTimeMillis();         System.out.println(resultShortCircuited + " in " + (endTimeShortCircuited - startTimeShortCircuited) + " milliseconds, short-circuited");          long startTimeBitwise = System.currentTimeMillis();         boolean resultBitwise = true;         for(long i = 0; i < 10000000000L; i++) {             resultBitwise = a & b;         }         long endTimeBitwise = System.currentTimeMillis();         System.out.println(resultBitwise + " in " + (endTimeBitwise - startTimeBitwise) + " milliseconds, bitwise");         scanner.close();     } }   An example run shows the following:  java examples1/ShortCircuitOperatorsVSBitwiseOperators Enter A: false Enter B: true false in 4829 milliseconds, short-circuited false in 3276 milliseconds, bitwise   This doesn't make sense. I would expect the short circuit evaluation to be faster since it doesn't evaluate the right side of the && in this case if the left side was false. What is the reason for the counter-intuitive results?


Is it Ok to approve suggested-edits with the purpose of remove chatty things; greatings, and salutations?

It has been determined that  should be removed from posts. However for a lot of users who are aware of this topic and have > 2k reputation on Stack Overflow, such edits should always be rejected because they are too minor, letting things like "please help me!" remain inside posts.    In the same time, it is rare that my suggestions which only consist of removing "thank you" are rejected.  I know this may look as duplicate of , which confirmed such things should be removed from posts. But many peoples on meta who saw it still consider it only cover edits of users who have the edit privilege, and not suggested ones.  Should such edits should be approved or rejected?


Vector Space Structures over ($\mathbb{R}$,+)

Consider the abelian group ($\mathbb{R}$,+) of real numbers with the usual addition. Is there a scalar multiplication \begin{equation} \cdot : \mathbb{R} \times \mathbb{R} \rightarrow \mathbb{R}, \end{equation} other than the usual multiplication, which makes ($\mathbb{R}$,+,$ \cdot $) a real vector space?


How can I use OpenSSL from Linux Terminal to encrypt all files in one folder to another folder?  Hello,  I am using OpenSSL from a Linux Terminal.  I have a folder "A" and I want to encrypt all files from that folder into folder "B" using AES256.  Anyone knows how to do this?  Vesa


Do employers receive any financial benefit from offering a RRSP/401K matching program?

I understand that companies that offer RRSP matching programs may be more attractive to work for/have better employee retention, and the employers may get warm fuzzies from offering it to their employees, but do they receive any kind of direct financial benefit from doing so?  Specifically interested in Canada, but curious about the US as well if anyone has relevant info.


VirtualBox fails with "Implementation of the USB 2.0 controller not found" after upgrading

Since upgrading to Ubuntu 14.04, When I launch my VirtualBox virtual machine I get:  Failed to open a session for the virtual machine win7pro32bit. Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be  started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack'  or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).  Result Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}   The solution to the  does NOT fix the problem:  sudo apt-get purge virtualbox sudo apt-get autoremove sudo apt-get update sudo apt-get install virtualbox   UPDATE: Also happens when upgrading VirtualBox itself to 5.0, within existing Ubuntu 14.04.


This is an extension of question from . I just want to verify if the following is actually safe enough for production use.  List<string> lists = new List<string>(); //Code to retrieve lists from DB     foreach (string list in lists) {     Button btn = new Button();     btn.Click += new EventHandler(delegate { MessageBox.Show(list); }); }   I only run through the above once per startup. For now it seems to work alright. As Jon has mentioned about counterintuitive result in some case. So what do I need to watch out here? Will it be ok if the list is run through more than once?


If Anakin Skywalker didn't get what he wanted as a Sith (to save Padmé), why was he still a Sith?

In the prequels, the primary reason Anakin was willing to become  is because he wanted to save Padmé;     ANAKIN: I will do whatever you ask.       PALPATINE: Good.       ANAKIN: Just help me save Padme's life. I can't live without her. If she dies, I don't know what I will do.      PALPATINE: To cheat death is a power only one has achieved, but if we work together, I know we can discover the secret.       ANAKIN kneels before PALPATINE.       ANAKIN: I pledge myself to your teachings. To the ways of the Sith.   Given that he didn't manage to save her, why did he still become a Sith?


I had 6 GB RAM, now Windows is telling me I have only 2 GB. Where's the other 4 gone?

Is there anything I can do to see what happened to it? Is there a chance it came loose? How can I check if it's fried?  Edit: nobody stole my RAM. I didn't physically do anything to it. I have a Dell Studio Laptop. I'm running 64-bit Windows 7. I don't know exactly what else to specify, I'm not familiar with dealing with RAM.  Update:    I ran a MemTest but it did nothing except confirm that I had 2 gigs of RAM that worked.   I opened the laptop and took out the 2 GB module, putting the 4 gig module in its place. I powered up the laptop, and it reported 4 GB.  Then I put the 2 GB module in the old 4 gig slot, powered up, and the laptop reported 6 GB.    The short story is that I don't know what the problem was, but it's no longer manifesting itself. Don't buy Dell.


Prove $\sqrt{2\sqrt{3\sqrt{\cdots\sqrt{n}}}}<3$ by induction.

Problem: prove $\sqrt{2\sqrt{3\sqrt{\cdots\sqrt{n}}}}<3$ by induction. I tried some, but stopped in $\sqrt[2^n]{n+1}$. Also tried with $2\sqrt{3\cdots}<3^2$ and so on.


How to skip the next iteration in for loop, python?

co1=["CM","CD","XC","XL","IX","IV"] s='AAMCML'  for i,j in enumerate(s):     if i<len(s)-1 and ((j+s[i+1]) in co1):         print(j+s[i+1])         **SKIP NEXT LOOP VALUE (I don't need the next value in loop to be printed.                                                                 Here it would be M)**     print(j)   I want the result to be printed like [A A M CM L] (it need not be necessarily a list, just print). In this case M after C should not be printed in the output. Any suggestions would be helpful!


As I am getting today, the styles of careers.stackoverflow.com seems broken. The home page and other pages all seems not getting the correct styles/scripts, I guess. Here is a screenshot:    Any idea when we can expect it fixed?


Range of Validity of a Number Theory Corollary

I was going through  paper. On Page 6, it's written  Corollary 2.3. For any positive integers $a_1$, $a_2$, $\ldots$, $a_n$, there exist integers $x_1$, $x_2$, $\ldots$, $x_n$, such that $$a_1x_1+a_2x_2+\cdots+a_nx_n = gcd(a_1, a_2, \ldots, a_n)$$  So, I was wondering if it is true for all $n≥0$ i.e. is it universal, or are there any constraints?


Can someone help me install Virtual box on my Ubuntu machine? (12.10). I know you can install it from the software centre but I read somewhere that their are more files to add or something? Can someone help me please? All help will be greatly appreciated! Thank you so very much! Have a wonderful day!   Cody.


Probably a moth larvae but better to confirm

What I know, It reacts to light the red seems to be blood but can't say for sure 1 to 10 mm it has a casing of something soft fabric possibly it grabs to walls


Should SE/SO notify downvoters that the post has been edit?

Should down voters be notified about your improvements? It seems like the who down votes your post will not come back and see what you have done.   My Reasons  For many new users like me, we do not automatically understand the the right approach to ask questions. (So we deserve to be down voted for that reason). But as we read and understand feedback from other experienced users, we can improve our post. But the down votes we received from previous newbie mistakes has already impacted us.   1. We are already in the verge of question ban after our first question.      2. We risk to get question banned if we want to ask another question.  3. Down voters who don't leave feed back does not allow new users to understand what is needed to be improved. 4. It would take some time for down voted post to gain some positive votes.    //by that time, the answer you were seeking for is less valued.   As a  that has the simliar mindset.  Lastly, If your post is receiving many down votes with no reasoning, should you delete your post or continue revising and take the risk of losing asking question privileges?