For documents with a lot of footnotes, particularly if some are short, it can be nice to have multiple on the same line, e.g.:        this is the first footnote 2. this is the second footnote 3. this   if the third footnote 4. finally, we begin to wrap around.      Rather than having it:        First footnote   Second footnote   Etc.      Is there a way to achieve this in LaTeX?  (This is not a duplicate of  because I'm asking about regular full page environment.)


Which topics should be covered in a teaching statement?

In mathematics, submitting a teaching statement (also called teaching philosophy or similar names) is part of the application package for any teaching jobs (and most research jobs). I suspect it is a part of the application for academic jobs in other disciplines too. I have written a teaching statement and I rewrite and modify it every now and then. Since I wrote it myself I think it is perfect and I cannot detect its possible flaws and mistakes. Therefore, I am looking for tips and advice for improving my teaching statement. I particularly appreciate any advices from people who are involved in hiring committees. My questions are:  Which topics would members of search committees like to see in a teaching statement? or alternatively, which mistakes in a teaching statement can ruin an applicants' chances for getting an interview?  In order to make this Q&A useful for others, I didn't restrict it to mathematicians. However, I'll appreciate if someone has a specific advice for writing teaching statements for mathematics jobs.


mysql outfile how more records then the count

this is probably a crazy question but I am curious if anyone else has seen this. I have a database with 150 fields and 717002 records in it. If I do a count on business type like this: SELECT COUNT(*) FROM contractors WHERE BusinessTypeString LIKE '%A5%';  I get 60898 records which is fine. But when I write out a statement to add in the headers and write it to an outfile I get 60604 which is 294 records less. No errors Below is the statement I used. SELECT   'BusinessName', 'DbaName', 'PhysicalAddressLine1', 'PhysicalAddressLine2',    'PhysicalAddressCity', 'PhysicalAddressProvinceOrState', 'PhysicalAddressZipPostalCode',    'PhysicalAddressZipCodePlus4', 'PhysicalAddressCountryCode', 'CorporateUrl',    '1stBusPocFirstName', '1stBusPocMiddleInitial', '1stBusPocLastName', '1stBusPocUsPhone',    '1stBusPocUsPhoneExt', '1stBusPocEmail' UNION (SELECT   BusinessName, DbaName, PhysicalAddressLine1, PhysicalAddressLine2,   PhysicalAddressCity, PhysicalAddressProvinceOrState, PhysicalAddressZipPostalCode,    PhysicalAddressZipCodePlus4, PhysicalAddressCountryCode, CorporateUrl,    1 stBusPocFirstName, 1 stBusPocMiddleInitial, 1 stBusPocLastName, 1 stBusPocUsPhone,    1 stBusPocUsPhoneExt, 1 stBusPocEmail    INTO OUTFILE '/home/VOB_Full.csv' FIELDS TERMINATED BY ','    OPTIONALLY ENCLOSED BY '"' FROM contractors WHERE BusinessTypeString LIKE '%A5%');  Any ideas?


When executing the following command, I get the error "Data tag parsing failed: unbalanced quotation"  /give @p leather_helmet 1 0 {display:{Name:"Nightslash Helm",Lore:["Legendary helmet found only in a secret hideout."]},ench:[{id:0,lvl:9999},{id:1,lvl:99999},{id:2,lvl:99999},{id:3,lvl:999999},{id:4,lvl:999999},{id:5,lvl:99999},{id:6,lvl:999},{id:7,lvl:99}],Unbreakable:1}   I don't see why the command would be wrong. What should I change for this error to go away?


If a prime p divides a -b, show that p^2 divides a^p - b^p.

Im stuck on where to go from what I have. My proof so far is "If p|a-b then a is congruent to b mod p. Then by fermat's last theorem then a^p is congruent to a mod p and same for b^p. This leads to a^p - b^ p being congruent to a - b mod p." but i dunno where to go from there or even if what I have is on the right track. I know what p^2 wont necessarily be a prime but it will still be divisible by p.


FWTools Python ImportError: DLL load failed:parameter is incorrect

Please, can anyone help me solve this issue? Please find the attached snapshot  for your reference. I am working on a Windows 7 Professional, Service Pack 1, 32-bit laptop.


Serialization - Manually defining a SerialVersionUID required?

I'm currently trying to justify the removal of the rule in findbugs/sonar that classifies making a class serializable, or in most of our cases, extending our base class that makes the classes serializable without the dev realising, then not defining a SerialVersionUID a critical error! This of course makes our muggle management (read management that are not developers) panic, thinking we have critical bugs that must be fixed!  My argument is that in the current versions of Java, you do not need to provide a SerialVersionUID as the JVM will do that for you in cases where you serialize a class, but can anybody point any reasons why in todays day and age we should still provide a UID ourselves rather than leave it to the JVM? Looking on the web, the only reasoning I can really find for providing a UID nowadays is that not doing it is 'bad practice'.  Any ideas?


Are we travelling at a speed close to the light speed?

This is a question which has been puzzling me quite a while.  There was a news report saying that the farthest galaxy spotted so far is at 13.3 billion light-years away, and it is said that the galaxy can show us how the universe at about 500 million years old was looked like.  It is commonly accepted that the universe was started from a single point some 13.8 billion years ago, and continuously expanding since then. Therefore, the new discovered farthest known galaxy should be much closer to us, or, at least to the materials forming our galaxy, at 13.3 billion years ago.  It implies, if the universe has been expanding in a constant speed, then we must be traveling away from the farthest known galaxy at 13.3/13.8, or 96%, of the light speed!  If the universe's expanding speed is not constant (it is said that the universe's expanding is accelerating due to the dark energy), then we must traveling away from the farthest known galaxy at an even greater speed.  But we know, it is not possible.  So, what is wrong here? Is my calculation (96% c) wrong, or the assertion of that the farthest known galaxy reflecting the universe in 13.3 billion years ago wrong?


Q-Q plot - Why do we choose the empirical distribution $F_n(x) = \frac {\#\{y \in S \mid y \le x\}} n$, $S$ is sample, for comparison with normal?

When using Q-Q plot, why do we choose the empirical distribution $F_n(x) = \frac {\#\{y \in S \mid y \le x\}}  n$, $S$ is sample, for comparison with normal?  Let $S$ be our sample of size $n$. Then we form the empirical distribution  $F_n$ as defined above. We then use a Q-Q plot to compare $F_n$ to $N(0,1)$ to see if there might be a linear relationship.   Why do we choose $F_n$ as the empirical distribution for our sample? Could we get other results if we did not choose $F_n$ as the empirical distribution? For the fractile of $p \in (0,1)$ we choose the midpoint $x$ of the interval corresponding to $p$. Why do we choose the midpoint?


What is the correspondence symbol with a hat or wedge over equals?

I would like to produce a new equal symbol looking like this. .  What is the best way to do that ? Pure TeX ? TiKz ?  I'm looking for ways to do that rather than to a ready to use solution such as to be able to other new symbols alone.


Evaluate the definite integral using idea of periodic functions

Evaluate  $\int_{\frac{25\pi}{4}}^{\frac{53\pi}{4}}\frac{1}{\left(1+2^{\sin x}\right) \left(1+2^{\cos x}\right)}dx$  My Attempt:  I tried using the property that $\int_{a}^{b}f\left(a+b-x\right)dx=\int_{a}^{b}f(x)dx$ and properties of periodic functions but ended up with a mess. The answer is $\frac{7\pi}{4}$


English not my native language. I'm trying to understand what would be correct in British English.  If I want to use a car for some time. I can say, "I want to rent a car". But from my knowledge there may be a  misunderstanding. I can say the same words if I want to give a car to someone to use for some time and I want to receive payment.  So what would be correct and not misunderstanding?   1) I want to use a car for some time = "I want to hire a car" 2) I want to give a car to someone to use for some time = "rent out a car"   Is my understanding correct?


Where do I ask a question with no obvious site?

I have a question on Microsoft Partner Network benefits but I can't find an obvious site to ask the question without probably getting down-votes. Should I just pick a site and hope for the best? My question is,  My company is a member of the Microsoft Partner Network (MPN) and I would like to submit a Windows Azure technical support ticket using these benefits, something we've never done before. When trying to submit a technical support ticket through Azure's support system, via a Program Benefits Support link that's specifically meant for MPN members, it leads me to a dead end by asking for an Account ID and Contract ID which I don't know. I have tried to contact both the MPN support and Azure billing support channels to understand how to proceed past this, but both support channels are referring me to the other support channel. I am stuck in an endless support feedback loop Where or how can I obtain the Account ID and Contract ID?  I am questioning whether any SE sites can help me with this question, not trying to decide for MPN whether they should or shouldn't be using SE as their support system.


Dividing an infinite power series by another infinite power series

Let's say I have two power series $\,\mathrm{F}\left(x\right) = \sum_{n = 0}^{\infty}\,a_{n}\,x^{n}$ and $\,\mathrm{G}\left(x\right) = \sum_{n = 0}^{\infty}\,b_{n}\,x^{n}$.  If I define the function $\displaystyle{\,\mathrm{H}\left(x\right) = \frac{\mathrm{F}\left(x\right)}{\mathrm{G}\left(x\right)} = \frac{\sum_{n = 0}^{\infty}\, a_{n}\,x^{n}}{\sum_{n = 0}^{\infty}\, b_{n}\, x^{n}}}$, is there a general way to expand $\,\mathrm{H}$ such that $\,\mathrm{H}\left(x\right) = \sum_{n=0}^{\infty}\,c_{n}\,x^{n}$ ?.  I guess, what i'm asking is if there is a way to get the first few $c_{n}$ coefficients ?. I'm dealing with a physics problem in which I have two such functions $\,\mathrm{F}$, $\,\mathrm{G}$ and I'd like to get the first few terms in the power series $\,\mathrm{H}$.


Can't install freeglut3-dev or libglfw-dev due to unity-control-center dependency issues

I'm trying to install 2 different packages: libglfw-dev and freeglut3-dev  When I run:  sudo apt-get install libglfw-dev   or  sudo apt-get install freeglut3-dev   I get the following error:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   I've tried  sudo apt-get -f install sudo apt-get update sudo apt-get upgrade   but nothing changes. Unity's control-center works fine running from console and from launcher. It just won't let me install these two packages.


What is the best way to create a 3d effect text ( see pic )

I'm trying to recreate a similar effect,  I've tried to copy the text 6 times ( as the colours are ) and then use the pathfinder, to find the intersection, and color that in black, but it just doesn't work as nicely as this... any suggestions?  Many Many thanks, Giulia


use the return value of a python function through a c++ script

I would like to call a  python function through  a c++ script. I know how to call a c++ function in a python code but no the other way. for example, I would like to use the return value of this python function in a c++ script like this:   import pandas as pd def concat(x1,x2): a = pd.DataFrame(pd.concat([pd.DataFrame(x1), pd.DataFrame(x2)], axis=1)) return a   #  void Foot::update(){ ccerr << "Merge " << PLate->me->vertIncl << endl; con[a] = concat(model->getA(),model->getB())}   Is it possible?


Allocation of shares of expenditure to dependants on Standard Visitor visa applications

My family is applying for Standard Visitor visas. They are going together as a family, however each person has to fill out the form.   In the income/expenditure section of the form should they divide the cost of the trip equally among all four applications? For dependants in the family, how does one split monthly expenditure? Technically they don't have an income and rely on the head of the family to provide for the expenditures.    Has anyone else filled the forms in a similar situation?


The metalic look of the material looks opaque

My final renders look "opaque", "poor","doll", "boring" in comparison with my viewport shading and i don't know what to do to improve it. (I use Cycles render) The metalic look of car with its physics and the lighting goes away in the final render... and the window is opaque black and doesn't react to light at all, al the normals are correct and i didn't use any texture for the materials, i used procedual materials with nodes, i didn't took pictures of my node trees but don't think that's the problem,(i even used blender's Glass BSDF) but i'll show you guys what i mean...   Can you see the differences between the 2 images? please any tip would do just fine! here is 3 a.m. ATM and i'll go to sleep, but tomorrow i'll read the comments! good night everyone!


How do I get iWork / iMovie / Garage Band free of charge?

Everything that I have read says that iWorks/ iMovie etc should be free for Mac users after 1 September 2013.   I already bought Pages but want Numbers and iMovie. My MacBook Pro with retina is early 2015 and I am being charged.    Why is this please?


Can abilities with a [Click] cost be used during a run?

Some abilities have a [Click] cost to them, such as Crypsis' ability to add a virus counter to it.  Does it count as a "paid ability" for the purposes of the ? I.e. could I, mid-run, add a virus counter to Crypsis for the cost of one [Click]?


know how many watts a USB device is consuming

I know it's possible to do some electric hack to know how much current a device is using... but that would be a 1 time usage so it would be a waste of money and parts.  Is it possible to know that using software in Mac OS?  There's no BIOS in Mac OS, but I presume through EFI the OS should be able to access that kind of low level info.


Publish graphic icon into geoserver from QGIS

I want to publish graphic icon (point) into geoserver by using maki style. Below is the coding,  <UserStyle>   <se:Name>streetlight_u4</se:Name>   <se:FeatureTypeStyle>     <se:Rule>       <se:Name>Single symbol</se:Name>       <se:PointSymbolizer>         <se:Graphic>           <se:ExternalGraphic>             <se:OnlineResource xlink:type="simple" xlink:href="file:///maki/park-alt1-15.svg"/>             <se:Format>image/svg+xml</se:Format>           </se:ExternalGraphic>   But, the result turns like below:-    Which is the actual graphic point is like below :-    Can anyone help?


What is the best way to get security token of a API Only user?

API only users cannot login and choose 'Reset my security token'. Right now, in my company, we select a System Administrator profile for users, log in for the first time, choose 'Reset my security token', then change the profile to a custom profile which has API only enabled.  The other way of doing it is, modifying the profile to not have API only user checked initially and then turn it on once the security token is received.  Is there a recommend way to do this? Is there an option to force the security token to be sent  when the user is created with a profile which has API user enabled?


Why does Hawking radiation outside the Schwarzschild radius decrease a black hole's mass?

When a pair of virtual particles is created outside the event horizon of black hole, there is a chance for one of the particles to escape. Zero chance on the surface of the event horizon and my question is why doesn't this Hawking radiation make a black hole gain mass but the opposite? Just what is the edge of black hole?


QGIS SAGA Channel network error: Input layers do not have the same grid extent

I am trying to follow along with  using my own DEM.  I have done the first step, creating the catchment area, with no trouble. When I try to run the Channel network algorithm, however, I get the error message “Input layers do not have the same grid extent.”  I don’t see anywhere to specify a change in extent or cell size, so I’m puzzled about why the extents are different at all. And then if they are different, how can I get them to be the same? I’ve tried using the raster layer clipping to make new layers from the DEM and the catchment area to the same extent, but this gave me the same error.  I did try running the Channel network and drainage basins algorithm, and this worked but the channels seemed to be incomplete − it looked like only the top two order channels were there, with nothing below these.  I’m using QGIS 2.6.0 on Windows 8.1.    I’ve been using TauDEM to do this work since I haven’t resolved the issue described above.


Chat shouldn't suspend me in rooms not associated with the site where I'm suspended

Chat has many problems.   (Wut? I'm not suspended here!)  I think chat should be redone. The URL is weird, sometimes its chat.stackexchange.com sometimes its chat.SITE.stackexchange.com. Then here its chat.meta.stackexchange.com and the chat profile on other sites is not linked here.  I think we should use one site, and its chat.stackexchange.com. That way, there's no funny suspension issues.  Instead, it should be like chat.stackexchange.com/?site=SITE. Sites like stackoverflow will be just as the name is for SITE, not chat.stackoverflow.com.  Then for the suspension detection thing, it should not check the referrer, otherwise that ^ happens. Instead, it should look at the site for the room and check if the user is trying to chat.  and say "Hey! You're not suspended here! Chat!" or "Sorry, you're suspended. No chatting for you :(". Also, the caching issue with SE 1.0 sites needs to be fixed.  Also, this makes all chat profiles one, not have multiple. Also, based on the site part of the URL, the CSS changes according the the site.  Here's how to get it.   Get a test account suspended. Go to a room like chat.SE.com/rooms/35/the-bridge Click "all rooms" Go to a random room on a different site. You're still suspended and can't chat.   This needs to be so that its not suspended on "chat.SE.com" but it checks on the site for the room. Example: I can't chat in Arqade rooms but I can chat in the charcoal chatbot sandbox room. Otherwise I can only chat on chat.SO.com and chat.meta.SE.com.    Ok if you don't like "redo" then lets go with "change some stuff"


Converting address to coordinates using OpenLayers 3?

Is it possible to convert address to coordinate using OpenLayers 3?  I can to it a bad way by taking address and search it in the planet_osm_points table and get osm_id and after that search the osm_id in planet_osm_node table. But this is a bad way. I am pretty sure that OpenLyers3 have to do it, but can't find anything on web.


Functions that are always less than their derivatives

I was wondering if there are functions for which $$f'(x) > f(x)$$ for all $x$. Only examples I could think of were $e^x - c$ and simply $- c$ in which $c > 0$. Also, is there any significance in a function that is always less than its derivative?    Edit: Thank you very much for all the replies. It seems almost all functions that apply are exponential by nature...  Are there more examples like - 1/x?  Again are there any applications/physical manifestations of these functions? [for example an object with a velocity that is always greater than its position/acceleration  is always greater than its velocity]


Boot folder is almost full, how to give it more space?

My boot folder or whatever it is dev/sda1/boot only has about 300mb of memory and it's about full. I'm not sure why it has so little memory. I have a toshiba laptop and removed the windows and installed ubuntu with a flashdrive. Is there a way I can move memory to the boot folder so it has plenty of room for future updates etc etc?


Is ubuntu 20.04 + android studio can run with 4GB of ram?

I have never used ubuntu before. For the first time I'm going install ubuntu 20.04 on my PC. I checked the system requirements for 20.04 version - it requires 4GB of memory & my PC has only 4GB of memory. I need to run the Android Studio on it but Android Studio usually consumes a lot of memory. So my question is, Is 4GB RAM enough to run both ubuntu 20.04 version & Android Studio?


Bootstrap 4 flex-fill not filling height

I want to have a header div on the top (which i can fill with other crap), and a footer div on the bottom. In the middle there should be a div with variable height to fill the whole screen.  Here is my code:

Header

This should be variable in height

Footer

   If you execute this, you will see that the yellow line is never filled and it has the same height as both the header and the footer. You can also see that the whole website has a brown background.  Can you help me with that?


Are there "3+ dimensional" complex numbers?

As an engineer, I learned a lot about how to use complex numbers. One way I have heard $i$, the unit complex number, defined is:     It is orthogonal to the real number line. Because $\frac{\mathrm{d}}{\mathrm{d}x} e^{x} = e^{x}$, we can clearly see $e^{\pi i} = -1.$   and the professor draws the unit circle.  However, this is not a unique definition of $i$. Whereas real 1 is $\hat{x}$ and $i$ represents $\hat{y}$ on the whiteboard, there are $\hat{z}$, $\hat{w}$, etc. which also satisfy the equations above.  We can use rotation to translate $\hat{z}$ to $\hat{y}$. Therefore it is still possible to use the "two-dimensional" definition $\mathbb{C}(a) <=> \hat{x} \Re(a) + \hat{y}(-\Im^2(a))$. In other words, if only care that $i^2 = -1$, then it does not matter which from the infinite set of $i$s you choose.  However we could consider $?(a) <=> \hat{x} \bullet a + \hat{y} \bullet a + \hat{z} \bullet a$ which satisfies $e^{\pi \hat{y}} = -\hat{x}$, $e^{\pi \hat{z}} = -\hat{x}$, and $e^{\pi \hat{y}\hat{z}} = -\hat{x}$.  Are these considered numbers in any way more useful than the normal complex numbers?  Note: I am not asking about $\mathbb{C}^3$, $\mathbb{C}^4$, ... as discussed at


Are there only 81 levels in Tiny death Star?

I have built 10/10/10/10/24/16 stages and I have no more options to build new ones.  I have a bit more than 2,000,000 cash and under service i can see that there is a stage but it is locked...  Can anyone tell me if there is an option to go on in the game? It is totally boring to collect money build and build and can't get anything more...


I need an equation for random forest so that I can score fresh data I receive every week, based on beta estimates I got after building model using this ensemble methodology.   Every week I do not want to build random forest model again and then score it using following commands in Python. Because I have build 15 such models and I need to score them every week. So easiest way is to get the equation (betas I already have) and score.  # importing the ensemble libraries from `numpy` import `genfromtxt` from `sklearn.metrics` import `classification_report`  #importing the dataset  dataset = genfromtxt(open('~//win_5050_6oct.csv','r'))[1:]    target = [x[1] for x in dataset] train = [x[2:] for x in dataset] test = genfromtxt(open('~\\win_act_6oct.csv','r'))[1:]  val = [x[2:] for x in test] y_act = [x[1] for x in test] Gst_i=[x[0] for x in test]  #building random forest model  rf = RandomForestClassifier(n_estimators=100) rf.fit(train, target)


Years ago I contributed to two Roth IRAs.  At some point I combined them into one.  I am now trying to determine how much in total I contributed to Roth IRAs over those years, but alas, my paperwork is incomplete.    Does the IRS keep a record of Roth IRA deposits?


Where are Minecraft worlds located on mac?

I have a Minecraft world called "hotel", but when i open up my saves folder, the world isn't in it. I am on a mac. Where can I find it?


I didn't see a place to put this on Stack Exchange, so how does one go about suggesting a new site associated with Stack Exchange? For instance, CatOverflow would be amazing IMO.


TeX4ebook handles accented characters incorrectly

I'm trying TeX4ebook on the following minimal LaTeX file: \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{csquotes}  \title{Título} \author{Autor} \date{Fecha}  \begin{document}  \maketitle  \textquote{¡Hola, mundo!} áéíóúÁÉÍÓÚüÜñÑ.  \end{document}  Accented characters appear in the epub file as á´aé´eí´ıó´oú´uÁ´AÉ´EÍ´IÓ´OÚ´UüÜñ˜nÑ˜N. Umlauts are fine.  Following the suggestions , I'm calling tex4ebook with the following options: tex4ebook -t tex4ebook-test-spanish.tex "html5,charset=utf-8" " -cunihtf -utf8"  All messages from tex4ebook seem to be fine: [STATUS]  tex4ebook: Conversion started [STATUS]  tex4ebook: Input file: tex4ebook-test-spanish.tex HTML Tidy for Linux version 5.6.0 [STATUS]  tex4ebook: Conversion finished  I'm using the TeXLive version that comes packaged with Ubuntu 20.04.


I tried to prove but I confused. Can you help me, please?

Prove by induction:  $2^n\ge n^2$ for all $n\ge 5$.


How to wrap a loop around an if statement

I'm coding a program that asks whether or not the user wants to give his name. If the user responds 'yes', the question is asked; on 'no' the program quits. If the users enter anything else, they are reminded to say either 'yes' or 'no'.  My code so far:  puts "Would you like to give us your name? (type yes or no)" answer = gets.chomp  if answer == "yes"   print "What's your name?"   name = gets.chomp   puts "Nice to meet you, #{name}" elsif answer == "no"   puts "Oh, ok. Good bye" else   puts "You need to answer yes or no" end   I need start over, if the user does not enter 'yes' or 'no' for the initial question.


Should I choose ActivePerl or Strawberry Perl for Windows?

I'm totally new to Perl, but I'd like to try it out. I read about two rival distributions available for Windows platform (I guess there's just Perl on other OSes :).   says that  comes with additional development tools to compile CPAN modules if necessary. It sounds pretty good to me.  It also says that  has a lot of prepackaged modules which are easier to install with PPM. It sounds great too!  There's a clear trade-off between those two. And I wonder: What should I pick to get started? If I pick one how hard, is it to migrate to the other?    I gave both distributions a run for a couple of weeks. I actually liked both which is a good thing! One can't go wrong with either of these. I ended up going with ActivePerl simply because it comes with offline documentation(in HTML) - a great life-savior for those who are on the road or just not always connected. It was super-easy for me to get started with Perl language while I was on vacation when I wasn't always online.  Strawberry Perl is at least as great if not greater. So I can totally recommend it, too. And I have to say one should just learn Perl - it's a very beautiful language. Give it a try!


Autosmooth script fails in edit mode but works in object mode

Here is a script I did to automate autosmooth and set the degree. Pretty simple. It works in object mode great, however in edit mode it fails. What I do not understand is why. It does not matter if I am in edit or object mode when I use the regular buttons in Blenders UI.    class SetAutoSmooth(bpy.types.Operator):     bl_idname ="set.autosmooth"     bl_label ="Set Autosmooth"      def execute(self, context):         bpy.ops.object.shade_smooth()         bpy.context.object.data.use_auto_smooth = True         bpy.context.object.data.auto_smooth_angle = 0.523599          return {'FINISHED'}   Here is the error I get. It states that context is incorrect.      Traceback (most recent call last):         File "C:\Users\info\Desktop\Coding.blend\class Pie.py", line 14, in execute         File "C:\Users\info\Desktop\blender-2.76.0-git.d330162-AMD64\2.76\scripts\modules\bpy\ops.py", line 189, in call           ret = op_call(self.idname_py(), None, kw)       RuntimeError: Operator bpy.ops.object.shade_smooth.poll() failed, context is incorrect       location: :-1


$A^2=A^*A$. Why is matrix $A$ Hermitian?

Let $A$ be $n \times n$ matrix and $A^2=A^*A$.  Why is $A$ a Hermitian matrix?


Story or Book that features the Tree of life from the Garden of Eden

All I remember off the top of my head was the tree would alter the elderly people into a new form of protector. When we were exiled we were cut off from the tree and were forced to grow old and die instead


What is the linux version that best fits my system to install?

I would like to ask if you can tell me , what is the linux version that best fits my system to install ?!  Intel Pentium 4 CPU 3.40GHz 1 GB RAM Nvidia 6600  Pending your reply , Thank you very much !


Consider the question, .  The answers say, "an elementary particle" and not much else. They don't actually answer the question. Moreover, the question is flagged as a duplicate of,  – the answers there don't tell me what a photon is either. Nor do any of the answers to  mentioned in the comments. When I search on , I can't find anything useful. Questions such as,  look promising, but bear no fruit.  say things like, "the photon is an excitation of the photon field." That tells me  nothing. Nor does the , which says:     The photon is the quantum of the electromagnetic four-potential, and therefore the massless bosonic particle associated with the electromagnetic force, commonly also called the 'particle of light'...   I'd say that's less than helpful because it gives the impression that photons are forever popping into existence and flying back and forth exerting force. This same concept is in the  too - but it isn't true. As , "Virtual particles only exist in the mathematics of the model." So, who can tell me what a real photon is, or refer me to some kind of authoritative informative definition that is accepted and trusted by particle physicists? I say all this because I think it's of paramount importance. If we have no clear idea of what a photon actually is, we lack foundation. It's like what :     Photons seem to be one of the foundation ideas of quantum mechanics, so I am concerned that without a clear definition or set of concrete examples, the basis for understanding quantum experiments is a little fuzzy.   I second that, only more so. How can we understand pair production if we don't understand what the photon is? Or the electron? Or the electromagnetic field? Or everything else? It all starts with the photon.   I will give a 400-point bounty to the least-worst answer to the question. One answer will get the bounty, even if I don't like it. And the question is this:    What exactly is a photon?


$2AB$ is a perfect square and $A+B$ is not a perfect square

If :$A=1!2!\cdots 1002!$, and $B=1004 ! 1005!\cdots2006!$, how to prove that:  a) $2AB$  is a perfect square   b) $A+B$ is not a perfect square


Check if the following series converge or diverge:$\sum_\limits{n=1}^{\infty}(1-\cos(\frac{\pi}{n}))$   I have tried the integral test since the series are decreasing to zero as $n\to\infty$, but $\int_1^\infty 1-\cos(\frac{\pi}{n}) dn=n-\sin(\frac{\pi}{n})|_0^\infty$, which diverges. I am not seeing what test could I applied that would deliver me the desired result convergence, since the book solution states that the series converge.  Question:  What do you think of the series? What test shall I use?  Thanks in advance!


I am labelling my first table and then referencing it later, but the number that comes up when I reference it is completely different from the one in the caption. I am expecting Table 1, but I am getting Table 1.1. Here are the relevant parts of the table and how I reference the table   \begin{table} \begin{center} \begin{tabular}{l r r l r c c c c}  \end{tabular} \end{center} \label{table:a} \caption{This is a cool caption} \end{table} Table~\ref{table:firstOne}


Allow comments from public in public posts

Is there any way to allow people which aren't my friends to comment on my public posts (the ones which they can see)? I've looked for it, but to no avail.


Omitting the subsectioning bullets in the headline of the frame in Beamer

How is it possible to remove the bullets and make the size of the headline  (sectioning names) in a suitable height?  \documentclass[demo]{beamer} \usefonttheme{professionalfonts} \useoutertheme{infolines} \setbeamersize{text margin left=8mm,text margin right=8mm}  \titlegraphic{\includegraphics[width=3cm]{fig1}} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \usepackage{textpos} \newenvironment<>{examplefirst}[1]{% \centering   \setbeamercolor{block title}{fg=white,bg=green!40!black}%   \begin{block}#2{#1}}{\end{block}} \mode<presentation> {  % Block defenition  \newenvironment<>{varblock}[2][.9\textwidth]{%   \setlength{\textwidth}{#1}   \begin{actionenv}#3%     \def\insertblocktitle{#2}%     \par%     \usebeamertemplate{block begin}}   {\par%     \usebeamertemplate{block end}%   \end{actionenv}}   \addtobeamertemplate{frametitle}{}{% \begin{textblock*}{100mm}(.95\textwidth,-1cm) \includegraphics[height=1cm,width=4cm]{fig1} \end{textblock*}}     \setbeamertemplate{headline} {%   \begin{beamercolorbox}[ht=3.5ex,dp=1.125ex,%       leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}      \insertsectionhead   \end{beamercolorbox}% }  \usetheme{Frankfurt}  }  \usepackage{graphicx} % Allows including images \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables  %---------------------------------------------------------------------------------------- %   TITLE PAGE %----------------------------------------------------------------------------------------  \title[Short title]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page  \author{Sthephen} % Your name \institute[UC] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space { UC \\ % Your institution for the title page \medskip \textit{a} % Your email address } \date{\today} % Date, can be changed to a custom date  \begin{document}  \begin{frame} \titlepage % Print the title page as the first slide \end{frame}  \begin{frame} \frametitle{Overview} % Table of contents slide, comment this block out to remove it \tableofcontents % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation \end{frame}  %---------------------------------------------------------------------------------------- %   PRESENTATION SLIDES %----------------------------------------------------------------------------------------  \setbeamertemplate{headline} {%   \begin{beamercolorbox}[ht=3.5ex,dp=1.125ex,%       leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}      \insertsectionhead   \end{beamercolorbox}% } %------------------------------------------------ \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk %------------------------------------------------    \begin{frame} \frametitle{Paragraphs of Text} a \end{frame}   %------------------------------------------------  \begin{frame} \frametitle{Multiple Columns} \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment  \column{.45\textwidth} % Left column and width \textbf{Heading} \begin{enumerate} \item Statement \item Explanation \item Example \end{enumerate}  \column{.5\textwidth} % Right column and width a \end{columns} \end{frame}  %------------------------------------------------ \section{Second Section} %------------------------------------------------   \end{document}


Expressing a Polynomial as a Sum of Squares Of Polynomials

Let $P(x)$ be a polynomial with real coefficients such that $P(\alpha)\ge0$ for all real $\alpha$. Show that there exists polynomials with real coefficients $Q_1(x)^2, Q_2(x)^2,....Q_n(x)^2$ such that              $P(x) = Q_1(x)^2 + Q_2(x)^2 + ... + Q_n(x)^2$


Which Lie groups have Lie algebras admitting an Ad-invariant inner product?

I am trying to answer the following question:     Which Lie groups have a Lie algebra admitting an $\text{Ad}$-invariant inner product?   First of all, all compact Lie groups satisfy this condition because one can average an arbitrary inner product on the algebra over the group.  This means that all Lie groups that have the same Lie algebra as some compact group also satisfy the condition. Indeed, the group is then locally isomorphic to a compact group, and taking "the same" inner product on the Lie algebra, we see that this inner product is invariant under all $\text{Ad}_g$ for $g$ in some neighbourhood of the identity, but this neighbourhood generates the whole group, from which the claim follows. Another approach would be to show that an inner product is $\text{Ad}$-invariant precisely if it is $\text{ad}$-invariant (like , although there may be an issue with connectedness of the group) and conclude that the Lie algebra completely characterizes whether or not an invariant inner product exists.  I suspect these are all the Lie groups that answer the question, because  (the second property, at "this property characterizes compact Lie algebras"). However, the reference given is just "SpringerLink", which is of no use.     Could somebody confirm that the answer to the above question is "all Lie groups with a compact Lie algebra"?   I have consulted multiple sources, but none of them completely establish the result I'm looking for. For example, Lie groups beyond an introduction by Knapp establishes what I already know (that it works for groups with a compact Lie algebra), and establishes the converse only in case the inner product is actually the Killing form.


How about a 'public' upvote counter, just above the normal upvote one.  This counter is to count is for public people so anyone who doesn't have SE account can upvote an answer he had a use of it.  Maybe make it replace the normal upvote counter when a guest is surfing, and when logged in, normal upvote takes place again  EDIT: I think SE can use Local Storage to store some id or something so the answer doesn't get re-publicly-upvoted due to dynamic IP change


Mount a Second Partition of a USB Drive on Windows

I have a Pen-drive of 8GB, I have 2 partitions on it, one of 15MB and another of the remaining (7GB+).   I know that Windows only recognizes the first partition, is there any way to mount the second partition on Windows.


Render Z Depth Pass as PNG? (render becomes completely white?!)

How do I render a Z Depth Pass as PNG without everything in the scene becoming white? Everything in my Z Depth Pass-render that's farther away than 1 meter or so becomes completely white... Is there any way to set the Z Depth Pass range, so the things closest to the camera becomes black and only the thing that's the furthest away from the camera becomes white?


How to make group of vertices solid/frozen/rigid

My apologies, my question may be a duplicate but I can't seem to find the correct terminology to phrase my question correctly.  During editing, is it possible to select a group of vertices and cause them to become 'solid'? As in, make it so that if I translate 1 vertex from the group, the entire group translates together, or if 1 vertex is rotated, the whole group rotates with it as a solid object.  Specifics: I have a model (model and example of what I'm aiming for included below) that I've been making and essentially I want to bend most of it into an arc shape, but I want a section of it to remain rigid so that it doesn't warp while I rotate the rest of it.


Size of partitions during Ubuntu install

I think it would be very helpful to users, if they could know beforehand exactly how much disk space they should allocate while opting for advanced partition method during an Ubuntu installation.   That would be helpful for** /, /boot, /home, swap **and other partitions.


How was Carol Marcus able to be (successfully) beamed while moving?

When Marcus was beaming his daughter on board she was running while it was happening.   How did she not die if you're supposed to stay still when you're energizing?


A limit ordinal $\gamma>0$ is said to be indecomposable iff $\nexists\alpha,\beta<\gamma$ such that $\alpha+\beta=\gamma$.  In view of this definition, I’m trying to prove the equivalence of the following statements for limit ordinals $\gamma$:  (1) $\gamma$ is indecomposable.  (2) $\alpha+\gamma=\gamma$ $\forall\alpha<\gamma$.  (3) $\gamma=\omega^\alpha$ for some $\alpha\in\mathrm{ON}$.  I’ve been able to get $(1)\implies(2)$ and $(3)\implies(1)$, but I have nothing more than scratch work for $(2)\implies(3)$.  Any suggestions would be appreciated.


I'm building a full adder circuit using transistors. I am only doing it for fun, that's why I'm not using IC gates. I am feeding it 5V and I'm getting really strange outputs. And it isn't even consistent, sometimes it does one thing and other times, other things. The outputs are around 3-4V, the LEDs sometimes shine normally, sometimes very faintly, sometimes not at all. And I just can't get it working. Can you see something off in my schematic? And yes, I checked my PCB, I soldered everything good, there are no bridges. I tried removing the resistors before the grounds, (R1, R6, R9, R18, R21, R26, R29, R32, R33) but it still doesn't work. Here is the schematic:


How to execute at a player holding a specific item in Minecraft?

I'm trying to direct /execute to the location of a player who is holding a specific item. In this case, an item with the name "Gun". This is the script I'm trying to use:  /execute @e {SelectedItem:{tag:{display:{Name:"Firestarter"}}}} ~ ~ ~  /summon Fireball ~ ~ ~ {ExplosionPower:0,direction:[0.0,0.0,0.0]}   Unfortunately, this doesn't work. I've compiled the script from two working scripts:  /execute @p ~ ~ ~  /summon Fireball ~ ~ ~ {ExplosionPower:0,direction:[0.0,0.0,0.0]}   and  /testfor @e {SelectedItem:{tag:{display:{Name:"Gun"}}}}   Does anyone know how to put these together? The output of the command block is "that entity cannot be found"


Showing that a closed unit ball is not compact

Let $B[0, 1]$ be the space of all bounded functions on $[0, 1]$. Show that the closed unit ball $D = \{f \in B[0, 1] : \|f\| \leq 1 \}$ is not compact in $(B[0, 1], \|.\|_{\infty})$.  can we reason as follows. If a closed unit ball which is bounded  of a Normed Linear Space is compact then the space should be finite dimesional. But $X=B[0,1]$ is not finite dimensional. Hence it is not compact? Will this work?


What determines the direction of precession of a gyroscope?

I understand how torque mathematically causes a change to the direction of angular momentum, thus precessing the .  However, the direction, either clockwise or counterclockwise, of this precession seems to me a bit arbitrary beyond mathematical definitions. (What if torque were defined by a "left hand rule", for example?).  What's the fundamental physical reason that the precession of a gyroscope would be directed in a certain direction?


How can I gain reputation in order to go to chatrooms, and what is the difference between votes and reputation?


Water world short story - maybe called Kraken - using basic chemistry to rebuild society

I remember reading an anthology/collection of sci/fi and fantasy stories sometime between 1990-1996 which had as its first(?) story one called 'Kraken' or 'The Kraken' maybe.  It was about a post apocalyptic water world where the only surviving people were living on floating islands of junk and seaweed. The most interesting theme to me was that the protagonist rediscovered ways of resynthesising metals and chemicals from the sea and the sun using crude chemistry principles.


Unicode issue in sql server, some characters cannot be saved in a varchar field

I'm dealing with unicode stuff in my DB. I have a data field defined as varchar(max), and I'm preventing user to save unknown characters in this field, like "≤" for example (all unicode above U+00FF). While doing so, I found that some characters if sent to be saved in this field would be displayed as "?", so I thought that all unicode characters above "U+00FF" will all be displayed like this, but then I found that "U+201B" which is "‛" is displayed "?" but the next character "U+201C" which is "“" is displayed as "“".  Can someone please explain to me why is that?  Update: Sorry if I was not clear, but I do not want to convert to nvarchar, I want to keep my field as varchar.  What I need to understand is why a character like "‛" is displayed as "?" in a "varchar" field while the next unicode character "“" is displayed properly?


PostGIS - Linestring doesn't contain a Point - Problem

I have a problem to check if a Linestring contains a Point. I consider the straight line y = 0.1 x , and take by it a segment l='Linestring( 0 0 ,  4 0.4 )' and a Point p on segment l, p = 'Point(1.5 0.15)'. If I check ST_Contains(l,p) the result is false and the distance  ST_Distance(l,p) is near to zero, but this is wrong because the Point is on the Linestring. If I try with p= 'Point(2 0.2)' the result is right.  What is the problem?  WITH       l AS (            SELECT ST_GeomFromText('Linestring( 0 0 ,  4 0.4 )') AS geom          -- segment of the straight line y = 0.1 x        ),      p AS (        SELECT ST_GeomFromText('Point(1.5 0.15)') AS geom                     -- point on the straight line y = 0.1 x        )   SELECT ST_AsText(ST_Intersection(p.geom,l.geom)) as ST_Intersection,         ST_Distance(p.geom,l.geom),         ST_Contains(l.geom,p.geom),         ST_Intersects(p.geom,l.geom),         ST_AsText(ST_Line_Interpolate_Point(l.geom,1.5/4)) as ST_Substring       -- point in position 1.5/4 of l   FROM l,p     EDIT: My origin problem was: LineString L1 contains Linestring L2 but if I do ST_SymDifference(l1.geom,l2.geom) the result is incorrect.  WITH       l1 AS (            SELECT ST_GeomFromText('Linestring( 0 0 ,  4 0.4 )') AS geom          -- segment of the straight line y = 0.1 x        ),      l2 AS (        SELECT ST_GeomFromText('LineString(0 0 , 1.5 0.15)') AS geom             -- segment of the straight line y = 0.1 x        )   SELECT ST_AsText(ST_SymDifference(l1.geom,l2.geom)) as ST_Intersection       FROM l1,l2


Should I tell my advisor that I have an autism spectrum disorder?

I am a graduate student and as the title says, I have an autism spectrum disorder. My advisor is a very nice person, at least, that is the impression I have gotten. The last few months however, I worry that I have made myself misunderstood many times because of my failure of communicating or not following certain social codes. I have not done anything that is inappropriate at all, I just might have come off at times a tiny, tiny bit rude, which I did not mean to be! In social situations I often get nervous and I think it might have shown in some situations. I am considering whether I should tell him about my autism spectrum disorder or not - I don't want to have it as an excuse for any behaviour, just more of an explanation and maybe better understanding in the future.  Are there any general guidelines on what to do in cases like these?


The usual way to reference a sheet is  but how do you reference a sheet when the sheet's name is a value in a cell?  For example,   A1 = "Sheet number two" B1 = A1&"!B4"   Here I want B1 to display the value in 'Sheet number two'!B4 but it's not working for me.  Any ideas?


Let $k$ be a natural number . Then $3k+1$ , $4k+1$ and $6k+1$ cannot all be square numbers.

Let $k$ be a natural number. Then $3k+1$ , $4k+1$ and $6k+1$ cannot all be square numbers.  I tried to prove this by supposing one of them is a square number and by substituting the corresponding $k$ value. But I failed to prove it. If we ignore one term, we can make the remaining terms squares.  For example, $3k+1$ and $4k+1$ are both squares if $k=56$ (they are $13^2$ and $15^2$); $3k+1$ and $6k+1$ are both squares if $k=8$ (they are $5^2$ and $7^2$); $4k+1$ and $6k+1$ are both squares if $k=20$ (they are $9^2$ and $11^2$).


Did most people in the Star Wars galaxy know of Luke Skywalker's role in destroying the Death Star?

Did most people throughout the galaxy know of Luke Skywalker's role in destroying the first Death Star?  I would suspect the rebellion would keep his role a secret since they would not want the empire to target him.


I'm uing ubuntu 12.04 desktop. I have 3 users: user1(administrator), user2(standard) and guest. I wanted to disable user1 and enable user2 which auto logs on with no password but after I did that I can't login to user1 and user2 accounts except the guest session user. I'm striped off every administrative privileges. I don't know which options are available to me and how do I enable root or user which is an administrator?


I'm taking an intro to topology course, and am having trouble with this question. What is the fundamental group of $\mathbb{C^*}/\{e,a\}$, where $e$ is the identity homomorphism and $az=\overline{z}$.   My thoughts are that $\mathbb{C^*}$ is a $G$-space with $G=\{e,a\}$, so if I know what $\mathbb{C^*}/\{e,a\}$ is isomorphic to then I'll be able to figure out the fundamental group for this quotient space. But so far, we only know the fundamental group of simply-connected spaces, the circle, and products of spaces, so I guess it has to be isomorphic to one of these spaces.   Can someone please help out?


Multiple GPU limitations with OpenCL and cycles?

I'm trying to make blender work with 20 GPU's, however I'm able to concurenntly force only 13 of them to work together while rendering one frame(13 tiles, one gpu per tile). Is there any limitation of GPU's that can run together?  I know octane have/had 12 GPu's limitation, however i can not find any piece of information about limits in cycles.


Why does the standard deviation square numbers?

I wanted to measure the "average distance from the average value", but I can't understand the "standard deviation". Many text books say the standard deviation is used to "summarize" the deviation, but I have trouble understanding why it uses squares to do it. If I have many x numbers the formula is: $$\sigma = (\frac{1}{N} \sum_i \lvert x_i - avg \rvert^\color{red}{2.0})^{1/\color{red}{2.0}}$$ So, there it is... that magic number 2.0. It shows up twice. What is so magic about it? Can't I use 1, 3, 4, or 6? or even 1.9, or 2.1? Why 2.0? Edit: I just learned that 1 is called "mean deviation".


Actually i am sending ajax requests with in a interval of 4-5 seconds to update a digital display table.   Should i use ajax GET or POST What is ajax cache:true/false If i populate DOM elements(some are marque) after each ajax call(in 4 seconds) then will it affect performance   My code is something like :
 <?php for(i=0; $i<=10; $i++) { ?>
     <span id="span-<?php echo $i;?>-1>	     <span id="span-<?php echo $i;?>-2>>	     <span id="span-<?php echo $i;?>-2>>	     <marque id="td-<?php echo $i;?>-4>></marque>
 <?php } ?>     And array returned as json from server is like  array ( 0 => array('status'=>2), 1 => array('status'=>1,'name'=>'xyz','type'=>'t1','des'=>'jfhj.....'), 2 => array('status'=>1,'name'=>'abc','type'=>'t2','des'=>'llll.....'), 3 => array('status'=>1,'name'=>'def','type'=>'t1','des'=>'ffhj.....'), 4 => array('status'=>2), 5 => array('status'=>1,'name'=>'jkl','type'=>'t4','des'=>'llol.....'), 6 => array('status'=>2), 7 => array('status'=>1,'name'=>'aaa','type'=>'t3','des'=>'lojl.....'), 8 => array('status'=>1,'name'=>'bbb','type'=>'t4','des'=>'loll.....'), 9 => array('status'=>1,'name'=>'lll','type'=>'t1','des'=>'lhol.....'), )


Exceeding the speed of light in view of special theory of relativity

Is there any rigorous way to show that it is impossible to have any inertial reference frame with the speed of light apart from the blow up of the Lorentz factor?


we got two inductive riddles for homework. I need a hint to get me started. So the first one is related to the Fibonacci numbers:     Let Dn be the number of possible ways to cover a table of size 2*n   with domino bricks of size 2*1 (no overlapping), then 1+Dn = Fn.    Prove using an induction   *1+Fn is a Fibonacci number  The second riddle is:     I have a chocolate bar of n cubes and I break it to two smaller bars.   I keep doing so until I have n separated chocolate cubes. Prove using   a complete induction that the process will end after exactly n-1   "breaking steps"...   Like I said, this is homework so I only want a hint to point me in the right direction. Thanks a lot!


Irritating auto-changing column types in Windows Explorer in case of audio/video files

I have an empty folder with regular details view. File name, file size, file type columns are shown and I am happy.   Then I put some MP3 or WAV files in. Windows Explorer "kindly" changes the column types. It will show Genre, media length, Album and other metadata tags, but does not show the file size anymore. If I do not like it, I have to manually change the columns back. It is very irritating.  How can I turn this automatic behavior off?


How to buy plane tickets for job interviews?

I am currently on the academic job market, and scheduling on-campus interviews with institutions that might want to hire me.  Suppose I am invited to an on-campus interview at the University of X, and must travel there by air.  They handle travel on a reimbursement basis: I buy the plane ticket, and then they reimburse me.  However, the interview is a few weeks away.  Since the job market sometimes moves fast, there is a chance that by the time of the scheduled interview, I may have already accepted another offer (say from the University of Y).  Of course I should then decline the interview at X, but I would have already bought the plane ticket.  How should I plan for this contingency?   I could buy a refundable ticket to X.  However, these are normally several times the price of a non-refundable ticket, and if I do end up traveling to X, they might balk at reimbursing me for such an expensive fare. I could buy a non-refundable ticket to X.  If I end up not going there, I could ask X to reimburse me for the cost of the ticket (or at least the "change fee" charged by the airline to let me use the ticket's value for a future flight).  However, I suspect they will be reluctant to reimburse me for a trip I'm not making, and might refuse to do so altogether, in which case I am out-of-pocket. I could wait until the last minute to buy a non-refundable ticket for X.  But it may still be expensive for them (or may exceed their limits), and the most convenient flights may be sold out. I could contact University of X and ask them for guidance.  I'm a bit hesitant to do this, as I am afraid that if I bring up the possibility that I might accept another position, they might think I am not seriously interested in theirs.   Is there a standard way to handle this situation?  This is in the United States, if it matters.


Installing hooks as pre-push instead of pre-commit

I have a pre-commit hook defined as follows in a pre-commit-config.yaml file located in the root of my repository - repos: -   repo: https://gitlab.com/pycqa/flake8     rev: 3.7.9     hooks:     - id: flake8  This works as expected and blocks any commit if I am now following flake8 rules. However, I want to do this for a git push and not for a git commit. One way I found is to add a pre-push file inside .git/hooks/ and do flake8 . from inside. This does the job but now I can't share that file with anyone through git since the .git folder is not tracked by git. Is there any file/config that I can put in the root of the repo that will act as a pre-push hook?


pdo prepared statement execute() inserts blanks ("?")

(php 7.4) Here is what this code should do: Let the user pick a table, a column, then pick a search term. Return results. What it actually does: nothing. It seems to not actually bind any variables into the statement. The reason I use a prepared statement is to prevent SQL-injection. $table = $_GET["t"]; $column = $_GET["c"]; $term = $_GET["s"];  echo "t: '$table' "; echo "c: '$column' "; echo "s: '$term' ";  $stmt = $pdo->prepare("SELECT `:col` FROM `:table` WHERE `:col` LIKE ':term%';") $stmt->execute([   ':col'   => $column,   ':table' => $table,   ':term'  => $term ]);  $results = $stmt->fetchAll(PDO::FETCH_COLUMN, 0);  echo json_encode($results);  Sample output: t: 'testtable' c: 'testcol' s: 'hello wo'  Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dvwatch.?' doesn't exist in /srv/http/autocomplete.php:26 Stack trace: #0 /srv/http/autocomplete.php(45): get_autocompletions() #1 {main} thrown in /srv/http/autocomplete.php on line 26  As you can see, it put [database_name].? instead of [db_name].testtable Yes, the table exists. Yes it's populated.


Show a stretch of numbers are composite/ not prime

Let $n\in\mathbb{N}$ with $n\geq2$. Consider the numbers $n!+2,n!+3,...,n!+ n$. Show that none of them is prime. Deduce that for each positive integer $N$ there is a stretch of $N$ consecutive composite numbers.  The only idea I have is to show they are composite numbers you have to find a non-prime factor. Would anyone be kind enough to start me off?  What I don't understand is what happens when n=2 and you work out n! + 3=5 which is prime.


Infinity, is clearly not . But there is some dissent on whether or not zero is finite. I have seen authors use "finite" to indicate the value of $0$ is excluded as well as infinity.  Is there any rule about this?


How can i create a script on a windows box that retrieves data from the Linux box by executing cmds against the remote Linux box?   I have got putty and Plink on the win box but not sure how to fire the cmds from a script eg a bat file and get the results written back to a txt file on the win box.  Any ideas how i would do this for something simple like a grep or LS cmd for example?


I added a portal to the the window and put the size to 9.353, and also rendered the samples at 2000 and there is still noise. do I need to portals for this?


ENV: C#, VStudio 2013, 4.5 Framework, Winforms, nHapi 2.3 dll  I really need help on this. I have tried soo many things and did alot of research with my best friend google ;-). But no luck.  I'm building a HL7 sender tools and I'm reading files from a folder. My files come from multiple sources and I found that they have different encoding : I have open them with notepadd++ and they can be ainsi, utf8 et utf8 witout BOM. My files also contains special caracters like é,à,ç,ô, .... but they always put weird caracter when I read the file with this line : var hl7message = File.ReadAllText(e.Node.Name);  The only time I don't have any problem is when the source file is encoded in UTF8 with the BOM.  Is there a way that no matter what the source file encoding is, I can alway read the file in a string and have the special caracter show correctly.  This is the main portion of my code :  var hl7message = File.ReadAllText(FileName); var llphl7message = Convert.ToChar(11).ToString() + newmessage + Convert.ToChar(28).ToString() + Convert.ToChar(13).ToString();  // Get the size of the message that we have to send. Byte[] bytesSent = Encoding.Default.GetBytes(llphl7message); Byte[] bytesReceived = new Byte[256];  // Create a socket connection with the specified server and port. Socket s = ConnectSocket(txtParamServer.Text, Convert.ToInt32(txtParamPort.Text)); // If the socket could not get a connection, then return false. if (s == null) {                     txtLog.Text = txtLog.Text + "[" + DateTime.Now + "] [ERR] Serveur " + txtParamServer.Text + " sur le port " + txtParamPort.Text + " est non disponible" + "\r\n";                     return false; }  // Send message to the server. s.Send(bytesSent, bytesSent.Length, 0);   Thank you for you help Sorry for the bad english : not my main language  Richard


Did they come to you and immediately make you feel a relationship was   being offered with the Russians that you’d like to develop? Or did you   seek it from your end?   I found the phrase in this article:


Watermark for textarea textbox using JQuery

i am trying to use watermark for the asp.net textbox control with jquery and below is the code i have, i see the title on my textarea textbox but when i focus or click on the textbox the watermark does not clear.  i got the script from here.   <asp:TextBox runat="server" ID="txtNew" class="auto-hint" title="Enter here ..."  TextMode="MultiLine" Rows="7" Width="100%"></asp:TextBox>   <script type="text/javascript">     $(document).ready(function () {         // Focus auto-focus fields         $('.auto-focus:first').focus();          // Initialize auto-hint fields          $('INPUT.auto-hint, TEXTAREA.auto-hint').focus(function () {             if ($(this).val() == $(this).attr('title')) {                 $(this).val('');                 $(this).removeClass('auto-hint');             }         });          $('INPUT.auto-hint, TEXTAREA.auto-hint').blur(function () {             if ($(this).val() == '' && $(this).attr('title') != '') {                 $(this).val($(this).attr('title'));                 $(this).addClass('auto-hint');             }         });          $('INPUT.auto-hint, TEXTAREA.auto-hint').each(function () {             if ($(this).attr('title') == '') { return; }             if ($(this).val() == '') { $(this).val($(this).attr('title')); }             else { $(this).removeClass('auto-hint'); }         });      });  </script>


I have just bought a nokia 7 plus and I can't disable the multilingual typing. I tried going into settings for gboard under "text corrections" but the option to enable/disable multilingual typing isn't even there. How can I disable it? Please help!


Formula for top self intersection of exceptional divisor

Let $X$ be a projective variety over $\mathbf{C}$ of dimension $n$. Let $\pi: Y \to X$ be the blow-up of a smooth point $x \in X$. Is there a nice formula for the intersection number $E^n$?


I am printing my QGIS Print Composer maps in black and white, and I want to make sure that all the different attributes are distinguishable. But I can't select 5 colors that all look distinct from each other in black and white. Is there any way to add like a striped texture or a dotted texture into the QGIS print composer?


Arriving in Vienna the night before visa validity begin

I am planning to travel to Vienna on 13th August from Vietnam with Qatar Airways and expect to arrive in Vienna at 20:25. However, my visa is only valid from 14th August. So will this prevent me from boarding and entering the country? I have tried contacting the airline regarding this issue but haven't been able to get in touch with them.  Thank you in advance!


How do I find my follower if and when they leave me?

I had parked my follower at an inn with a bunch of valuable items that I didn't want to carry. I guess I have been out a bit too long as this message appears:      Your follower tires of waiting and leaves.    There have been other situations where my follower has mysteriously disappeared as well.  How can I find my follower when they get up and leave or disappear into thin air?


I created a website one year ago and a friend joined me on the project seven months later. So i worked one year on it and he worked four months.  I searched on many website to understand the differences between the two words but i still not sure.  I would like to know if :   - i am the founder and he is a developper ?  - i am the founder and he is the cofounder ?  - i am a co founder and he is a co founder too ?  - or anything else  Thanks


Deleting new line when beginning new theorem in a list

I am using the package amsthm to type my assignments and I have encountered the following problem. Here's the code I use:  \newtheorem{claim}{Claim} : : \begin{enumerate}   \item \begin{claim}     $lefthalf(L) := \{w_1 :  \exists w_2 \in \Sigma^*.w_1w_2 \in L.|w_1| = |w_2|\}$. \end{claim}  \item  {\textbf{Claim 1.}} $lefthalf(L) := \{w_1 :  \exists w_2 \in \Sigma^*.w_1w_2 \in L.|w_1| = |w_2|\}$.  \end{enumerate}   This gives the following result:    As you can see in (a), the claim begins on the second line. I would like my claim to be as in (b) where I simulate the style I want. Is there any way I could get rid of this extra newline occuring when I use newthm in a list? I have tried to change theoremstyle but couldn't get it to work.  Any ideas on how to solve this problem?  Thanks a lot.


What happens to parts or materials taken off of (true) polymorphed creatures?

As a DM with a wizard PC dangerously close to asking me that question I figured I'd try and find some primary source on this.  Neither  nor  state what happens to bits and pieces that detach from a polymorphed (or true polymorphed) creature prior to it "dying".   A plan my players off-handedly discussed was True-polymorphing a party member into a  and harvesting his blood for a half-dragon ritual.  Are there any official sources (also accepting older editions) that specify what happens to the true polymorph-sourced blood in this scenario?  Does any source make a distinction between what happens with Lvl 4 polymorphed vs Lvl 9 true polymorphed (and perhaps even permanent) parts?


I'm having a devil of a time trying to get Windows 8.x into safe mode.  From what I've read it seems nigh impossible to do this without doing a jig and catching a leprechaun first.  The shift-(mash)F8 just doesn't do the trick.  I've tried this on about 10 computers so far ranging from various 8 and 8.1 editions with no joy.  Is there a sure fire mechanism to trigger safe mode now?  I'm even open to the idea of some CD/ISO that is set up to trigger this by modifying the boot.ini or such if you know of a tool like this.  There are way too many situations where I'm needing safe mode to keep going on like this otherwise.


Why didn't my name show up when I marked a question duplicate?

Earlier today, I marked a question on Stack Overflow as a duplicate. Then I waited about 5-10 minutes and it showed 5 people. However, my name wasn't included.  I also remember that the question that was linked on top was the same question that I selected.  Now I'm not trying to ask for the "spotlight" but I just want to know how does this naming system work? Do they go in order or do they go by reputation?


Problem: Find all functions $f\colon\Bbb R\to \Bbb R$ that satisfy $|f(x)-f(y)| =3|x-y|$ for all $x,y \in \mathbb{R}$.   My Solution: Take two cases.  Case 1: Assume that $f(x)-f(y)=3(x-y)$. Then $f(x)-3x=f(y)-3y$ and therefore $f(x)=3x+c$.  Case 2: Assume that $f(x)-f(y)=3(y-x)$. Then $f(x)+3x=f(y)+3y$ and therefore $f(x)=-3x+c$.  Is there any problem with my solution?I want to mean is it necessary to state that f is continuous , one-one ,monotone? What is wrong with my argument?


Identify a short story about post-apocalyptic household robots

Media: Short story collection When I read it: 2011 but the story itself was much older (unsure how much) so this information only serves to clarify that it is by no means new. Plot summary: A futuristic home with household robots that help around the house (cooking, cleaning etc.), we learn about their routines and behaviour and later on it's revealed that nobody is home, in fact everyone is dead, and a description of the outside seems to imply post-nuclear apocalypse. Setting: I seem to remember snow or winter What it isn't: with Google I stumbled upon  by Ray Bradbury, and  is very similar, and the beginning made me think "Bingo!", but I do not remember there being a fire in the story I read, and I also remember a view from a briefly opened door, or window, of a snowy setting, so while it may be that I am confusing elements of another story, or my imagination, with There Will Come Soft Rains, I would still like to run this through here as a question, because I'm not convinced. Additional info: The short story collection had other short stories that I will include as I remember them, details will be fuzzy:   Meteor, by John Wyndham , by Charlotte Perkins Gilman A short story about a man who is driving a car and it is revealed in the end that he was dead the whole time , by Charles Dickens


Error mounting NTFS partition after hybrid shutdown with Windows 8

I've got this error and I can't access my files located in a different partition when I'm using Ubuntu, but when I'm using Windows 8 my files are accessible. I'm using Ubuntu as my main OS. I tried shutting down Windows 8 properly but still nothing happened. Is there any way where this can be fixed?  Error mounting /dev/sda4 at /media/kris/BackUp Files:  Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda4" "/media/kris/BackUp Files"' exited with non-zero exit status 14:  The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.


I do not know if this correct. So I ask.  Given a number $n\geq 2$, can we find a Galois extension of $\mathbb Q$ such that the group has order $n$? Similarly, given $n\in \mathbb N$ can we find a totally imaginary number field that is a Galois extension of $\mathbb Q$ and for which the order of its Galois group is $2n$?


Sum of alternating series $\sum_{i=1}^n \frac{(-1)^{i-1}}{2i-1}$ with accuracy of $\pm .05$.

The series is:      $$\sum_{i=1}^n \frac{(-1)^{i-1}}{2i-1}$$   I have already shown that it converges but am lost on finding the sum. I need to find the sum to within $\pm .05$.


Is content on SE licensed under CC-BY-SA v3 or v4 now?

The footer on the website says CC-BY-SA 3.0:    However the  page link to CC-BY-SA 4.0:    So which one is it now officially? V3 or V4?


The mathabx package provides a square version of \subset (namely \sqsubset). However I don't think there is a square version of \in. Does anyone know of one? If not, what is the best way to create it?


Change string to Byte Array without conversion

I have a JSON formatted object, and the byte array is coming through as a string. I need to change that string to a byte array, but without converting the char's.      static byte[] GetBytes(string str)     {         return str.Select(Convert.ToByte).ToArray();     }   The above code half solves the issue, unfortunately it's still converting each char to it's respective byte.  For completness, here is my string  "PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+PGh0bWw+PGhlYWQ+PE1FVEEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTE2Ij48dGl0bGU+Q2l2aWwgUHJvY2VkdXJlIGluIE1hZ2lzdHJhdGVzJyBDb3VydHM8L3RpdGxlPjxsaW5rIHR5cGU9InRleHQvY3NzIiByZWw9InN0eWxlc2hlZXQiIGhyZWY9Ii4uL1N0eWxlcy9CV0NvbW1vbi5jc3MiPjxsaW5rIHR5cGU9InRleHQvY3NzIiByZWw9InN0eWxlc2hlZXQiIGhyZWY9Ii4uL1N0eWxlcy9TaXRlQ29tbW9uLmNzcyI+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0iLi4vc2NyaXB0cy9qcXVlcnktMS42LjIubWluLmpzIj48L3NjcmlwdD48c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgc3JjPSIuLi9zY3JpcHRzL3BvcHVwLmpzIj48L3NjcmlwdD48c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgc3JjPSIuLi9zY3JpcHRzL2hvdmVyYm94LmpzIj48L3NjcmlwdD48c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgc3JjPSIuLi9TY3JpcHRzL2pxdWVyeS5wcmludEVsZW1lbnQuanMiPjwvc2NyaXB0PjwvaGVhZD48Ym9keSBvbmxvYWQ9ImlmKHBhcmVudC5zZXRUb29scylwYXJlbnQuc2V0VG9vbHMoKSI+PGRpdiBpZD0iY29udGVudCI+PHAgY2xhc3M9IkdlbmVyYXRvci1IZWFkaW5nIj5Db250ZW50czwvcD48cCBjbGFzcz0iR2VuZXJhdG9yLUl0ZW0iIHN0eWxlPSJtYXJnaW4tbGVmdDoxNXB0Ij48YSBocmVmPSIjIiBvbmNsaWNrPSJsb2FkQ29udGVudCgnLi4vMWInLCBmYWxzZSk7Ij5DaXZpbCBQcm9jZWR1cmU8L2E+PC9wPjxwIGNsYXNzPSJHZW5lcmF0b3ItSXRlbSIgc3R5bGU9Im1hcmdpbi1sZWZ0OjE1cHQ7Y29sb3I6IzAwMjY3RjttYXJnaW4tdG9wOjEycHQiPjxiPsKgwqA8aW1nIHN0eWxlPSJib3JkZXI6MCIgd2lkdGg9IjgiIGhlaWdodD0iOSIgc3JjPSIuLi9SZXNvdXJjZXMvSW1hZ2VzL2Fycm93cy5naWYiIGFsdD0iIj7CoMKgQ2l2aWwgUHJvY2VkdXJlIGluIE1hZ2lzdHJhdGVzJyBDb3VydHM8L2I+PC9wPjxwIGNsYXNzPSJHZW5lcmF0b3ItSXRlbSIgc3R5bGU9Im1hcmdpbi1sZWZ0OjQ1cHQ7Y29sb3I6IzAwMjY3RjttYXJnaW4tYm90dG9tOjEycHQiPjxiPkF1dGhvcnFxcTogPC9iPkVkaXRvcnM6IERSIEhhcm1zLCBBZHZvY2F0ZSBvZiB0aGUgSGlnaCBDb3VydCwgTWVtYmVyIG9mIHRoZSBQcmV0b3JpYSBCYXI7IEYgU291dGh3b29kLiBGb3JtZXIgQ29udHJpYnV0b3JzOiBJIHZhbiBkZXIgV2FsdCwgQWR2b2NhdGUgb2YgdGhlIEhpZ2ggQ291cnQsIE1lbWJlciBvZiB0aGUgUHJldG9yaWEgQmFyOyBDIExvdXcsIEFkdm9jYXRlIG9mIHRoZSBIaWdoIENvdXJ0LCBNZW1iZXIgb2YgdGhlIFByZXRvcmlhIEJhcjsgQnJlbmRhIE5ldWtpcmNoZXIsIEFkdm9jYXRlIG9mIHRoZSBIaWdoIENvdXJ0LCBNZW1iZXIgb2YgdGhlIFByZXRvcmlhIEJhcjsgSkEgRmFyaXMsIFByb2Zlc3NvciBvZiBMYXcsIFVuaXZlcnNpdHkgb2YgU291dGggQWZyaWNhPGJyPjxiPkxhc3QgVXBkYXRlZDogPC9iPk9jdG9iZXIgMjAxMyAtIFNJIDMyLiBQcm9kdWN0IGRldmVsb3BlcjogQ3JhaWdlbiBTdXJhamxhbGw8L3A+PHA+PGJyPjxicj48L3A+PHA+PGJyPjxicj48L3A+PC9kaXY+PGRpdiBpZD0iY29udGV4dE1lbnUiPjwvZGl2PjwvYm9keT48c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+dHJ5e3dpbmRvdy5wYXJlbnQuc2V0RnJhbWVIZWlnaHQoIE1hdGgubWF4KE1hdGgubWF4KGRvY3VtZW50LmJvZHkuc2Nyb2xsSGVpZ2h0LCBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc2Nyb2xsSGVpZ2h0KSwgTWF0aC5tYXgoZG9jdW1lbnQuYm9keS5vZmZzZXRIZWlnaHQsIGRvY3VtZW50LmRvY3VtZW50RWxlbWVudC5vZmZzZXRIZWlnaHQpLCBNYXRoLm1heChkb2N1bWVudC5ib2R5LmNsaWVudEhlaWdodCwgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LmNsaWVudEhlaWdodCkpKTt9Y2F0Y2goZSl7fTwvc2NyaXB0PjwvaHRtbD4="   I need to change that to a byte array, such as  ['P','C','F'] etc, without converting each char to it's respective byte    This is not and edit of:   In that question, the string is being converted. It's literally in the title that I do not want to convert


How exactly do counter-knife mechanics work in Battlefield 4?

I have more than a thousand knife kills but I have yet to understand if I should hold down the F button(R3 on ps controller) or if I should just press it once.


How can I diagnose/debug "maximum number of clients reached" X errors?

I'm hitting a problem whereby X prevents processes from creating windows, uttering something like the following into ~/.xsession-errors:  cannot open display: :0.0 Maximum number of clients reached   Searching around there are lots of examples of people facing this problem, and sometimes people identify which program they are running is using up all the client slots. See e.g.  (Firefox),   (gnome-screensaver).  For what it's worth, I run gnome-terminal, thunderbird, chromium-browser, empathy, tomboy and virtualbox nearly all the time, on top of the normal stuff you get with the GNOME desktop, and occasionally some other bits and pieces.  However my question is not "which of my programs is causing this problem" but rather, how can one go about diagnosing this problem?  In the above (and other) bugs, forum reports, etc., a number of tools are suggested:   xlsclients - lists the client applications for the given display, but I don't think that corresponds to 'X clients' xrestop - a top-style X resources tool, one row per X client. Lots of '' clients, not shown in xlsclients output xwininfo -root -children lists X window objects   From what I can gather, the problem might not be too many clients at all, but rather resources kept around in the X server for clients who have long-since detached.  But it would also appear that you cannot (easily?) relate X resources back to their client.  Can one effectively diagnose this issue once it has started to occur, or is a tedious divide-and-conquer approach for the apps I run the only approach open to me?  Update Jan 2011: I think I have resolved this issue.  For the benefit of anyone stumbling across this, nautilus and/or compiz or something in that chain of software was segfaulting due to a wallpaper I had.  I had chosen an XML file as my wallpaper, which defined a rotating gallery of images.  It was hand-made, but based on /usr/share/backgrounds/contest/background-1.xml or similar.   Disabling the wallpaper and I have not had a crash since.  I'm not marking this as answered yet, since the actual specific problem was not my question, but how to diagnose it was.   Unfortunately this was mostly trial-and-error which sucks.


How to vertically center text next to image?

I have the following code and I want to center the text vertically next to the image.    .section_content {     width: 400px; }  .section_content > ul > li > img {     width: 40px;     height: 40px;     padding: 5px; }  .section_content > ul > li > a {     vertical-align: top; }  .section_content > ul > li {     list-style-type: none; }  .section_content > ul {     list-style-type: none;      padding-top: 45px;     padding-left: 5px; }

LinkedIn

GitHUb


How to disambiguate when grabbing filename by the middle and there are several matches?

In zsh with oh-my-zsh, I like how I can, within this directory for instance:  mydir/   app.component.html   app.component.ts   app.module.ts   app-routing.module.ts    type ./html<tab> and have it automatically expanded as ./app.component.html, even though the filename doesn't actually start with html, but it is a part that is characteristic.  Also, I can ./rout<tab> to get ./app-routing.module.ts with a middle clue.  If I use something ambiguous, like ./ts<tab>, the experience is a bit weirder, since   1. it first expands to the longest common part ./|.ts (where | represents my cursor's position). 2. on a second press to <tab> (why not the first?), I get a list of options displayed below:   $ ./|.ts app.component.ts       app.module.ts    3. on a third press to <tab> (why a third?), the first item of the list get selected. 4. then, after one last <tab>, I finally get my expansion to ./app.module.ts.   I understand that zsh needs more input since my initial clue was ambiguous, but I'm sure that 2 <tabs> would have been saved in the above process if the first <tab> directly resulted in 3. instead of 1. Is there anything I can configure about this?  Finally, if I use a non-terminal ambiguous clue, things start feeling clumsy. For instance ./mod<tab> results in   1. ./|d.module.ts (not sure where this d comes from). 2. a second <tab> just shifts the cursor to the end: ./d.module.ts|. +∞. pressing <tab> does not change anything from this point on, or propose a list of options like it did before. So I end up scrolling back and fixing the filename myself.   I would have expected a list of options to be offered in only one <tab>, like in the previous case.  Is this expected behaviour? Have I not understood quite well the way autocompletion is supposed to work? Is this something I can configure, and how?


Shell script directory change with variable

I know this question has been asked several times, but yet I failed to find a suitable solution for me. Consider me somewhat new to it. I want to change the directory using a variable 'var' in the script file 'test.sh' instead of using cd /dir/dir1/dir2.  Question: file example: test.sh  #!/bin/bash var=/dir/dir1/dir2 echo "$var"   -> works(displays the value of var) cd var     or     cd $var    -> none works, either stay in the same directory or shows error directory doesn't exsist   The directory I wanted to use:  /home/username/Downloads  /boot/extlinux  I have already checked various forums or solutions, but none provided the result. Please help me here.


Consider the below code or check this .  var obj = {     name: "abc",     age: 20 }  var objTwo;  console.log(obj.age); objTwo = obj; objTwo.age = 10; console.log(obj.age);   I have created an object with name obj and it has two properties. Now I assign obj to another object named objTwo. Now I update one of the properties in objTwo. The same change is reflecting on obj as well. How can I assign values from one object to another without creating reference?


Prove regarding number of distinct polynomial roots

Prove that for any g(x) in a $\mathbb{Z}/p\mathbb{Z}[x]$ field, the degree of $\gcd{(x^p-x,g(x))}$ is equal to the number of distinct roots of g(x) First of all, I am assuming that the "number of distinct roots" refer to the number of distinct roots of g(x) in the mod p field Secondly, where should I start to go about proving this?


Use of "have/has" when you don't know if the subject will be singular or plural

I have a log message in my application which depends on a list which may contain one or several elements. The string I am trying to create to show in the logs is like this:  "The key(s) {listOfKeys} have an odd length"  Given that the list of keys may have a minimum of 1 element, and hence I don't know if the subject will be singular or plural, should I use "have" or "has"? Or maybe something like "have/has"? Note: I know that I can rephrase the sentence to avoid this problem, maybe something like "Invalid length for the key(s) {listOfKeys}", or even introduce a condition to write the sentence one way or another depending on the length of the key list, but I'm just curious to know how this problem is solved in English if I had no other option.


how do I install GKSU or other program to edit as root to save changes in grub file at /etc/default to enable nomodeset bootup?

20 March 2019 inquiry  In November I got a response to  from karel to consult   I initially opened grub from etc/default and changed:  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"   to:  GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"   It wouldn't let me save the changes though! It opened it in leafpad, but I didn't have the permissions!  Karel's followup comment suggested I run it as root to get permission via this command in the terminal:  sudo nano /etc/default/grub   I am sure most would recommend getting familiarity with the terminal. I did figure it out, because I changed it (keyboard arrows only to navigate, no mouseclicks!) and upon exiting it prompted me to save, and I did, and then ran `sudo update grub afterward as both the wiki and Karel said to.  I was searching more on the topic and found  where in 2013 someone recommended using something called gksu to edit as root. Is this still around? I couldn't find it in Synaptic Package Manager when I searched it.  I'm looking for alternative means of root editing (perhaps via Leadpad, which is how grub opened by default when I double clicked it) which are a little easier on the eyes and mind than editing in the terminal is.  For now I am going to reboot and see if this fixed things. Would anyone know about the issue raised at  and if there is some special considerations for /boot/grub/grub.cfg? in selecting what graphic drivers to run at startup?  I get this message when I do "Advanced Options" and then "Recovery Mode" then "Resume Boot"     some graphics drivers require a full graphical boot and so will fail when resuming from recovery   I assume doing this 'nomodeset' is similar, except rather than the drivers failing, they don't try to initiate at all, so I could do a regular startup. I will be trying this now and will update with results.


Android app crash bug, clicking comment under achievements view

I haven't quite been able to put my finger on this bug. What I've observed is that if the achievements view is expanded the app very often crashes if I "miss" when trying to push the button to close the view and instead touch some portion of the view with no active components. It also seems that touches in that general vicinity are interpreted as being meant for the views beneath the achievements view, because I've noticed that sometimes I end up clicking buttons in the question I was looking at at the time that are behind the achievements view.  I'm using the beta version of the app on a Samsung galaxy S4. The OS version is 4.4.2.  Edit: I've been able to reproduce it consistently. It happens when the click beneath the achievements view would have highlighted a comment.


Disable mouse (not touchpad!) in Xorg while idle

I am an avid keyboard user, but I still need the mouse every now and then.  To minimize the hand travel, I have the mouse located below my keyboard.  (On a side note, using the mouse this way feels more natural to my hand.)  I am currently using  to hide the pointer while I don’t use the mouse.  Unfortunately, I am nudging it at times while typing, which causes the pointer to reappear.  Sometimes this will move the pointer over another window, which in turn takes the focus away from my current window.  (I am using sloppy focus, and changing this is not an option.)  I am now searching for a possibility to not only hide the pointer after a certain amount of idle time, but disable the mouse altogether.  Clicking any mouse button or using the mouse wheel should then re-enable the mouse.


Ffmpeg - How to zoomin a video from the center

I'm trying to make a video from an image and I want to add a zoom effect on the center. The input image is 640x360.  The command I'm using is:     ffmpeg -framerate 25 -loop 1 -i 46686405.jpg -vf   "zoompan=z='min(zoom+0.0015,1.4)':x=320:y=180:d=150" -t 6 -c:v mpeg2video   -b:v 700k -s 640x360 -y 46686405.mpeg   My goal is to have a video mpeg of 6 seconds with size 640x360 and 25fps. The zoom effect should start from the center and the maximum zoom I want is 40% of the image.   Actually I'm able to generate a video, but it's jerky. I noticed that if zoom starts from top left (x=y=0), it was fluid. In both cases I receive errors like that  [swscaler @ 0x28794a0] deprecated pixel format used, make sure you did set range correctly   Where am I wrong? Thank you for any help.  This is my complete console output:  ffmpeg version 2.3.git Copyright (c) 2000-2014 the FFmpeg developers   built on Aug  7 2014 18:14:20 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)   configuration: --prefix=/home/stuzzo/ffmpeg_build --extra-cflags=-I/home/stuzzo/ffmpeg_build/include --extra-ldflags=-L/home/stuzzo/ffmpeg_build/lib --bindir=/home/stuzzo/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-nonfree   libavutil      52. 98.100 / 52. 98.100   libavcodec     55. 72.102 / 55. 72.102   libavformat    55. 51.101 / 55. 51.101   libavdevice    55. 13.102 / 55. 13.102   libavfilter     4. 11.102 /  4. 11.102   libswscale      2.  6.100 /  2.  6.100   libswresample   0. 19.100 /  0. 19.100   libpostproc    52.  3.100 / 52.  3.100 Input #0, image2, from '/home/stuzzo/Videos/test/46686405-1400593167_temp.jpg':   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg), 640x360 [SAR 96:96 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc [swscaler @ 0x22699e0] deprecated pixel format used, make sure you did set range correctly [mpeg @ 0x22789e0] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to '/home/stuzzo/Videos/test/46686405-1400593167_temp_temp.mpeg':   Metadata:     encoder         : Lavf55.51.101     Stream #0:0: Video: mpeg2video, yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 700 kb/s, 25 fps, 90k tbn, 25 tbc     Metadata:       encoder         : Lavc55.72.102 mpeg2video Stream mapping:   Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg2video (native)) Press [q] to stop, [?] for help [swscaler @ 0x28794a0] deprecated pixel format used, make sure you did set range correctly     Last message repeated 1 times [swscaler @ 0x28794a0] Warning: data is not aligned! This can lead to a speedloss [swscaler @ 0x28794a0] deprecated pixel format used, make sure you did set range correctly     Last message repeated 11 times [swscaler @ 0x288aaa0] deprecated pixel format used, make sure you did set range correctly     Last message repeated 85 times [output stream 0:0 @ 0x22611e0] 100 buffers queued in output stream 0:0, something may be wrong. [swscaler @ 0x288aaa0] deprecated pixel format used, make sure you did set range correctly     Last message repeated 49 times [swscaler @ 0x28826a0] deprecated pixel format used, make sure you did set range correctly     Last message repeated 1 times frame=  150 fps=0.0 q=14.0 Lsize=     708kB time=00:00:05.96 bitrate= 973.1kbits/s     video:701kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.941622%


Remapping layers in QGIS project to other folders?

I created a QGIS project containing several layers which are on my PC. I saved the project to my local drive and then I saved it to the network and copied all the relevent project layers into a folder except the osmap shp files which are on a separate network drive.  I then hunted for a way to remap the QGIS project layers so it points to the network copies and not my local drive.  In AutoCAD this is easy, but I can't find a way to do it in QGIS.  I then tried just deleting the layers from the project and then re-adding them from the new location, but I got a minidump crash every time.  I ended up saving the print composers as templates, exporting the layer styles. Then I created a new project, using the files on the network, and created new print composers from the saved templates.  Is there an easier way to make this project available to other users?  I've seen some info about mapping bad layers, but I couldn't find a dialogue box to do that.  If nothing else, everything on the network will eventually end up on the archive drive and we need to be able to keep projects together.  For example, in CAD if I open a project and someone has moved a file into a new folder, it will tell me that it can't find the external reference. I then open the x-refs window, scroll to the saved path, click browse, then find the file in its new folder and click on it. That saves the changed path.    Based on responses so far, I now know that I need to know how to set a path to relative AND how to remap a path to a different folder. One response gives a plugin for the latter, so I will try that. I am close to understanding the former.  The answer seems to be as follows -  Save project. Then use the save button again which creates a project home folder. Use Qpackage to copy the shp files to the new destination. Than open that new project and save to create a new project home folder. Then use change data source to remap all the layers to the project home folder (as QGIS does NOT save anything as relative at all. It saves all paths as absolute.)


How many possible four of a kind hands are there in poker?

How many four of a kind hands are there? This is how I answered that:   You have $52$ options for the first card you pick. Now you have to pick four more cards: exactly three of those have to be of the same suit as the first card, and since there are only four cards per suit you only have one choice for those three cards.   The last card you can pick to be any one of the remaining cards; you've already picked four, so you have $48$ choices.   So there are $52 * 48$ four of a kind hands.   But apparently the answer is $13*48$, which makes sense if you just think of picking a suit. But what is wrong with my way of thinking that led to the wrong answer?


How do I put footnotes without putting any reference numerical mark on it?

\footnotetext{TOV: Tolman, Oppenheimer, Volkoff (1939)} \footnotetext{Richard C. Tolman: Phys. Rev 55 (1939), 364-373. Static Solutions of Einstein's Firld Equations for mass of Fluid.} \footnotetext{ J.R Oppenheimer \& G. M Volkoff, phys Rev 55 (1939), 374-381. On Massive Stellar Core}   These footnote texts come up with superscripts and subscript numerical values. How do I get them cleaned?


My question is that   A double cone ( also named as "circular cone") is not a surface.   I know its reason. But I cannot show this mathematically.     Suppose $\sigma : U \to S\cap W$ Is a surface patch.   Because the vertex $(0,0,0,)$ is a problem,  S is not a surface.   I can see it. But I cannot express it in the mathematical way.   When I remove the vertex point $(0,0,0)$, the double cone is a surface.   Please can someone show/write these mathematically?


Regexp_replace : Remove dupliactes from '+' dilimited string in Oracle

I have a string in a table column delimited by '+'. I need to remove the duplicates.  Illustration :  My data:  a+a+a+b+b+c+c   Expectation:  a+b+c   I tried with REGEXP_REPLACE but not able to escape the + character as it is reserved.  I am successful with comma separated value but need help with + or ? separated values.  Working Code with comma separated value:  SELECT REGEXP_REPLACE ('a,a,a,b,b,c,c', '([^,]+)(,\1)+', '\1') FROM DUAL;


How to remove my ubuntu without installing any operating system?

i m having UBUNTU 14.04 in my pc. now i want to remove ubuntu and install windows8.1. I have Booted Windows in my Pendrive.. While installing It is not able to use my Hard drive space which i m using in UBUNTU says that Its is formatted in unknown format. That should be NTFS .. Now What i should do to remove UBUNTU and INStall WINDOWS?  plzz answer me. its urgent


Temporarily launch dhcp server for point to point ethernet connection

I have a headless computer configured to use a dhcp client which is directly connected to my laptop using an ethernet cable. I'm virtually sure I have seen a one liner before (using dnsmasq?) which would enable me to launch a dhcp server on that interface on my laptop, so that the headless computer would connect to it. This oneliner kept running in the foreground and displayed dhcp requests, so that I would see when the headless computer connected and would know its ip address. Could you tell me what that oneliner is? I tried searching for quick/temporary dns setups and skimmed dnsmasq's manpage, but couldn't find anything.


How to search questions with only one specific tag?

I can search question with target using [target] but the result questions also include question tagged with other tags.   How to get the question with only one specific tag?


Touchpad right click doesn't work on touchpad, only the buttons above it. Thinkpad E480 Ubuntu 18.04 LTS

Installed fresh 18.04 LTS. Everything works fine except the touchpad. Thinkpad has toucpad buttons above it and they work fine, but the buttons under touchpad at the bottom only work as one left click. There is no option in settings to change that, it did work on Fedora 27 though. Is there anything I can change to add this funcionality?


What is Disk Active Time and how do I decrease it?

Looking at Task Manager in Windows, I see my hard drive is pretty maxed out on "Active Time"    Empirically that seems to relate to when my hard drive is locked up, apps go grey, etc. (the rest of my resources are pretty low usage on the graph).  My questions are:   What exactly is "disk active time"? If reducing it would in fact improve my responsiveness, how do I resolve this?   What properties in a hard drive should I buy to speed this up? (The disk transfer rate doesn't seem to relate) Are certain apps going to cause a higher active time versus others?


Create, Insert, Update or Delete XML using PHP

So completed my uni stuff using a little help from you fantastic programmers out there and a few all nighters to go as far as I could with manipulating XML data through Javascript. Now I'm done for the summer and my dear old mother has asked me to create her a basic site for her maths tutoring service with info and prices etc... I was thinking as she doesn't need much I would go in for using XML again but this time not restricted on the use of PHP to Create new elements/nodes, update or delete.  I was going to create her a basic booking system with a little admin panel for editing entries etc... As the information doesn't really need to be too secure the use of XML seems to be alright for the purpose.  My question is Does anyone know of any clean basic functions that can be used to this end with XML using PHP ?? In terms of functions I would mean things like Create/Insert, Edit/Update, Delete etc...  Any help or even a site that has a decent tutorial on it would be great as I've gone through youtube and there isn't anything decent or clean and simple.  Thanks in advance!


When is every matrix in the span of two matrices singular?

Given two square matrices $A, B$, when is $$\det(A+tB) = 0$$ for all $t\in \mathbb{R}$?  An easy sufficient condition is that $A$ and $B$'s kernels have nontrivial intersection. Per Henning's comment below, this is not also necessary.  Does there exist a nice necessary and sufficient characterization?


How to add a plugin-architecture in my Java application?

I have a Java  command-line-application, which creates a report file after running some steps defined in the source-code. Now I want to separate those steps from the core functionality of my application, because I want that the  application can run dynamically loaded "steps". This means, the core functionality of my application is to create the report file. And the separated "steps" should provide the content of the report.  I decided to realize those steps as plug-ins in my application. Everyone, who uses  the application can extend it with already existing or own written plug-ins.  Now my question is, what is the best way - in my case - to develop a plug-in system for my application? I researched a lot and got to much input. I can't decide how should I resolve the problem.  Interesting question from SO:       During my research I collected some informations how i could resolve it:   Using ServiceLoader: a simple service-provider loading facility. Using org.openide.util.Lookup from NetBeans(dynamic registration and lookup of components) Defining a own Plug-in interface, which must be implemented from the plug-ins. And then using the Java ClassLoader to  load those classes and create instances of them. Using OSGi, but I think it is to "big" for my purpose.   What is the best way to solve my problem with:   a elegant plug-in architecture (perhaps with use of some design patterns), easy to maintain source-code, and easy to develop plug-ins.   Is my approach with a plug-in system correct? Or is there something else what could i use?


How to install/connect Miniature Circuit Breakers ( MCB )

What's the best way to connect the Miniature Circuit Breakers ?   Is it when the Line is coming downward or upwards ? I am confused as I have seen two different wiring's.  I want to know where I should connect an incoming and outgoing supply ?