Autokey (autokey-qt) not listening to key commands but works fine from mouse menu

I'm running kubuntu and have been using autokey successfully for years, but a while back a system update broke it. I originally tried to just wait it out and see if a fix would be pushed.   Now, 6 months later, I'm still unable to auto insert text using key command cues.  However, if I click on the autokey symbol in the system tray and select the phrase I'm trying to insert it works fine.  Running autokey-qt from the shell produces the following:  enter<class 'Xlib.protocol.request.QueryExtension'> <class 'Xlib.protocol.request.QueryExtension'> Exception in thread KeypressHandler-thread: Traceback (most recent call last):   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner     self.run()   File "/usr/lib/python2.7/dist-packages/autokey/iomediator.py", line 204, in run     target.handle_keypress(rawKey, modifiers, key, windowName, windowClass)   File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 179, in handle_keypress     currentInput, windowInfo, True)   File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 304, in __checkTextMatches     if item.check_input(buffer, windowInfo):   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 735, in check_input     abbr = self._should_trigger_abbreviation(buffer)   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 134, in _should_trigger_abbreviation     if self.__checkInput(buffer, abbr):   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 147, in __checkInput     stringBefore, typedAbbr, stringAfter = self._partition_input(buffer, abbr)   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 194, in _partition_input     stringBefore, typedAbbr, stringAfter = currentString.rpartition(abbr) ValueError: empty separator   How can I get autokey to recognize text based cues again?


Could a website force the browser to go into fullscreen mode?

I want to run a psychological study for which participants have to look at large images.  The experiment is done on the web and therefore in a browser window. Is it possible to tell the browser to go into fullscreen, for example on button press?  I know there is the possibility to open a fixed-size popup window. Do you think this would be a feasable alternative? And if, what would be the best way to do it? Are there elegant ways of detecting a popup-blocker, to fallback and run the study in the original browser window.  The main concern is that the participants of this study are not familiar with technical details and should not be bothered by them.


What does the following sequence converge to?

Does the following sequence converge or diverge? If it converges, find its limit.  $\frac{1^1}{n^2}+\frac{2^1}{n^2}+........+\frac{n^1}{n^2}$  I tried to get a general formula for this sequence and simply got:  $\frac{n}{n^2}$ or $\frac{1}{n}$  This led me to think that the sequence converges to $0$ since the limit of this function is $0$. But this limit is incorrect. This tells me the general formula I got for the sequence is incorrect. But I am not sure why.  Any help?


Is CAT5 cable good enough for RS-485 vs "true" RS-485 cable

I have a serial comms project coming up.  A number of boards with RS-485 interfaces need to communicate.  Date rate is 57600bps and cable length will be less than a few hundred feet.  Will shielded CAT5 cable work well enough in this situation or should I pay the extra for "true" RS-485 cable such as ?    I cannot easily visit the install site ahead of time as it's interstate.  I do have the same boards here in the lab I can test with however.


Changing the horizontal scroll speed on a corded Apple mouse

I have the latest MacBook Pro running the latest version of OS X and I am using the corded mouse.   The horizontal scroll speed using the mouse wheel is dead slow. The vertical scroll speed is OK for scrolling regular websites, etc., but when I try to scroll something like a Trello board, the horizontal scroll speed is unbearable and I have to tilt the mouse wheel multiple times to get from one card to the other.  Is there a way to increase the horizontal scroll speed, or am I stuck with a single speed for both axes?  Hacking system files or config files is OK with me if that's what it takes!


I need to prove that $X=Z(xy-1)\subset \mathbb{A}_k^2$ is not isomorphic to $\mathbb{A}^1_k$.  I solved an exercise where I proved that, for instance, some $X\subset \mathbb{A}_k^3$ is isomorphic to $\mathbb{A}^2_k$, by constructing a morphism and showing that it is bijection (is the idea correct?).  However, I am stucked to show that is not isomorphic.  Well, I thought that $\mathbb{A}^1_k$ being a field and $X$ not (because $(0,0)\not\in X$), so they are not isomorphic.   However, this is as I've done with homomorphisms (rings, etc.), not morphisms between algebraic sets. I do not know if I can consider such thing as be or not a field.  Many thanks in advance!


I am trying to delete a line from xml file by comparing resource name tab value from same xml file, the below bash script works if I put logfilename as Mansing but gets failed when I keep the value as 'jdbc/test'. Any help?  bash code:   logfilename="jdbc/test"  sed -i "/\<$logfilename\>/d" /home/test/test.xml   test.xml file is as below:  <a> <Resource name="jdbc/test" auth="container" url="localhost:8080" <Resource name="Mansing" auth="container" url="localhost:8080" </a>


Cronjob stopped working. But cron and php script still work?

I did a ImageMagick install on my CentOS webserver and afterwards my cronjobs do not work anymore. I have cronjobs that executes php files. For example one cronjob execute every 15 minutes a php file that reads a json file and insert variables in my mysql database. I did not change the php files and they still work from the command line with php -q /home/admin/domains/domain.nl/public_html/command/myfile.php The status of my cron is: [admin@server domains]$ service crond status Redirecting to /bin/systemctl status crond.service ● crond.service - Command Scheduler    Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)    Active: active (running) since Fri 2020-07-10 22:52:30 CEST; 10h ago  Main PID: 13519 (crond)    CGroup: /system.slice/crond.service            └─13519 /usr/sbin/crond -n  I have tried to restart my server, I have restart my cron service without result. My /var/log/cron looks like Jul 11 09:13:01 server CROND[11480]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:14:01 server CROND[11629]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:15:01 server CROND[11792]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:15:01 server CROND[11791]: (admin) CMD (php -q /home/admin/domains/domain.nl/public_html/command/myfile.php) Jul 11 09:16:01 server CROND[11931]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:17:01 server CROND[12075]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:18:01 server CROND[12244]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:19:01 server CROND[12375]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:19:43 server crontab[13932]: (root) LIST (admin) Jul 11 09:20:01 server CROND[13993]: (root) CMD (/usr/lib64/sa/sa1 1 1) Jul 11 09:20:01 server CROND[13994]: (root) CMD (/usr/local/directadmin/dataskq) Jul 11 09:21:01 server CROND[14168]: (root) CMD (/usr/local/directadmin/dataskq)  With  php -q /home/admin/domains/domain.nl/public_html/command/myfile.php 2>&1 >>php -q /home/admin/domains/domain.nl/public_html/command/errorlog.txt  I try to view an extra error log, but the output to errorlog.txt is empty (but the file is made!). So I do not understand why the php file is doing nothing? What steps can I do to find the problem with the cronjob? Installing imageMagick was not easy. I also used the command: mount -o remount,exec /tmp


How does one calculate  $$\lim_{n\to\infty}e^{-n}\sum_{k=0}^{n-1}\frac{n^k}{k!}?$$ Numerically it is somewhat close to $\frac12$. But to prove that I am going around a circle! Thanks for any help.


bash needs another newline to execute pasted lines

My usual shell is bash, my usual terminal is xterm, on Debian Sid. Following a recent release of bash, when I use button-2 to paste some text (selected by clicking and dragging button-1) into the bash command line I have that new lines in the pasted text are, so to say, inactive and I have to give an additional newline from the keyboard to execute the pasted text. It seems to me something that Debian newly configured in bash, because if I use another shell (e.g., dash) the pasted lines are immediately executed, as it happened in bash and in all the shells I've previously used. Is it possible to revert bash behaviour to the old one?  from dpkg -l ii  bash           5.1-2        amd64        GNU Bourne Again SHell ii  xterm          363-1        amd64        X terminal emulator  from uname -a Linux debian 5.10.0-1-amd64 #1 SMP Debian 5.10.5-1 (2021-01-09) x86_64 GNU/Linux


Disabling SMART Disk Utility Warning Message

The Disk Utility pop-up the same message so many times and too many at a time. The message is the same "Hard Disk Problem Detected. A hard disk is reporting health problems." The hard disk has previous bad sectors and S.M.A.R.T. ran out of allocated resource to replace them. The hard disk it still usable (being using it with 10.10 for half a year without any problem.  How can I turn off this annoying pop up.


We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's?


Calculate bounding box coordinates of a selected polygon with QGIS

I just manually (and somewhat inaccurately I'm sure) retrieved the bounding box coordinates for a county polygon, which is a selection from a larger layer of county shapes. I'd like to be able to use a QGIS plugin or other function to calculate this quickly and not-by-hand. This is almost certainly possible but I couldn't find anything with a Google search


Prove that $n^2+n+41$ is prime for $n<40$

Here's a problem that showed up on an exam I took, I'm interested in seeing if there are other ways to approach it.     Let $n\in\{0,1,...,39\}$. Prove that $n^2+n+41$ is prime.    I shall provide my own solution, though I am curious does anyone know how to do this without using PIDs?


Is there a standard way to do an fopen with a unicode string file path?


Find $\lim_{x,y \rightarrow 0,0} (x^2y)/(x^4+y^4)$ so I want to do this using polar coordinates and I get for x=rcosk;  y=rsink; (x,y)->(0,0)=>r->0  $\lim_{r \rightarrow 0} (r^3cos^2k (sink)/(r^4(cos^4k+sin^4k)))$ =  $\lim_{r \rightarrow 0} ((cos^2k)sink)/(r(cos^4k+sin^4k)$=something/0= ∞. But using wolframalpha I get it doesn't exist, because it depends on k. I got something / r, and I wrote it up, so it depends on r, too. What am I missing?


How to solve 'Exception in thread "main" java.lang.NullPointerException'

Exception in thread "main" java.lang.NullPointerException      at Module.addStudentMark(Module.java:23)      at Module.main(Module.java:12)  This question is asked for getting student marks Can someone help me to fix the error? Because I cannot find the variable which cause runtime exception. import java.util.Scanner;  class Module {      //limit size of array      final static int SIZE = 10;       public static void main(String args[]){          //Declaration          StudentMark studentMarkList[] = new StudentMark[SIZE];          int count = 0;               addStudentMark(studentMarkList);      }       public Module(){          StudentMark studentMarkList[] = new StudentMark[SIZE];      }       private static void addStudentMark(StudentMark studentMarkList[]){          Scanner sc = new Scanner(System.in);          for(int i = 0; i < SIZE; i++){              System.out.print("Enter Student " + (i + 1) + " ID: ");              studentMarkList[i].setId(sc.nextLine());              System.out.print("Enter Student " + (i + 1) + " marks: ");              studentMarkList[i].setMark(sc.nextInt());          }      }  }


I have a table in which i need to include 20-30 columns in every row with proper font-size and padding. The Problem is few columns of the table will go out of screen. Is there any alternate for design such types of large columns table which is good for usability also. Scrolling horizontally out of the screen is not a good option.  Thanks In Advance......


Adding indented text after a 2nd-level list in a nested list messes up the spacing of the outer list

If I have a bulleted list and I want to add some indented text after a certain element, I do something like this: - Point 1 - Point 2    Indented text  - Point 3  ..which renders like this:  Point 1  Point 2 Indented text  Point 3   So for, so good.  Now, if I have a second-level list like this:  Point 1  Point 1.1 point 1.2   Point 2  ..and I want to add some indented text before Point 2, I do something like this: - Point 1   - Point 1.1   - point 1.2      Indented text - Point 2  I expect to see some spacing above Indented text just like the first example. However, when I do that, the line spacing gets messed up; no spacing above Indented text and some additional spacing is added above the child/2nd-level list. See it in action:


1980s movie or TV series about a sentient computer that controls people by implanting microchips in the backs of their heads

I remember seeing this movie, it could even have been a TV series, in the early 1980s but the movie, or TV series, was clearly older probably '70s.  It seemed to be European.  I can't remember the name. The plot was about a computer that becomes sentient, and starts controlling humans by implanting a chip in the backs of their heads.  It aimed to control all of humanity.  Some people are aware of this and try to stop it.


I encountered a question that I really can't figure out:  Suppose your hypothesis class(H) consists of decision trees with 7 nodes that splits on only one feature. How to calculate the VC dimension of H?  I understand all the trees in the hypothesis class have 7 binary splits. But I really don't understand how to calculate the VC dimension of H?  Thank you!


It's hard to imagine a pine tree wishing it was an oak. It's hard to imagine a pine tree wishing it were an oak. Which is correct sentence?


Embedded quotes in arcpy.CalculateField_management expression

I'm using arcpy.CalculateField_management to populate a field.  The expression:  "'https://anystate.gov/someportal/DisplayQueryResults.aspx?Prompts=Spill%20Number="!ID!"&Database=OfficeDocs&Query=DEP_Spill_Projects&QuerySet=Portal_Queries&User=Portal.DEP&Password=DEPPortal1'"   will work when entered into the Calculate Field Tool.  The url is completed by pulling in values from the ID field.  However, the Python code snippet pasted into my script results in a syntax error. It's worth noting the expression is bounded by """"'....'"""" (4 double quotes outside a single quote.  I tried Midavalo's suggestion a couple of different ways. First attempt set  expression = 'https://anystate.gov/someserver/…{0}&Database=OfficeDocs&Query=DEP_Spill_Projects&QuerySet=Portal_Queries&User=Portal.DEP&Password=DEPPortal1'.format(!ID!)   Resulting in invalid syntax  Based on the Python link, the second try included single quotes:   'https://....'.format('!ID!')    But the result was a syntax error


my wireless network is not working. i have my wireless info results. what should i do next?

This is the link to my wireless script info file.  I do not know how to proceed further. I tried updating my network drivers but it didnt work.


Instruction while drinking milk - Don't spill the milk; what about solid food?

I instruct my daughter when she's drinking milk     Take care; don't spill it.   How do we do the same for food i.e. solid food?     Take care; don't _______ it.   To my mind comes the only option - drop. But I also feel that 'dropping' suits more when the bowl is broken. Say - She dropped the bowl and broke it.   The problem further grows when we have 'specific' food  For french fries...     Take care; don't _____ the fries   For steak...     Take care; don't _____ the steak   For popcorn...     Take care; don't _____ popcorn   For burger...     Take care; don't _____ burger (I mean some pieces or inner content of it...maybe, some onion or sauce or anything that is 'inside' it).   Do we have different words for different 'shapes' of food? Say little pieces (popcorn), steak (one large piece), fries (long pieces)...and so on?  I'd like to have more options, if any.   spill is also used for solid food. For instance, spill the beans. But I feel    The beauty is in my mother tongue, we have a common term used for everything!


Making  a new environment combining equation and split

I'm trying to define a new environment that consists of a split environment inside an equation environment. But I'm getting an error. Here's what I'm doing:  \documentclass[a4paper,12pt]{article} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \newenvironment{example}{\begin{equation}\begin{split}}{\end{split}\end{equation}}  \begin{document} \begin{example}oi\end{example} \end{document}   And the error message I'm getting is:   ERROR: LaTeX Error: \begin{split} on input line 8 ended by \end{example}.   I then tried a few other cases. If I remove the splits and define example to be just equation, it runs fine. If I remove the equations and define example to be just split, I get the exact same error message.  In other words: I only get this error when split is involved. Is there a way to make this work?  EDIT: The reason I'm doing this, is because I want a convenient way to create split-equations. I know it's similar to align. I prefer split-equations because the entire line of equations gets a single number for referencing (it's even placed in the middle line). align, however, will force me to \notag each line, otherwise I get a number for each line in the equation (which tends to get messy when equations are long and numerous). It's not the end of the world, but the split-equation combination is just quicker and easier (if I can manage to define a command for it).  Alternatively, the multline environment is not appropriate either, because it doesn't let you manually align each line (like aligning the equal signs). Instead it only lets you push everything left or right.  EDIT2: I just tried this:  \newenvironment{example}{ \begin{equation}\split}{\endsplit \end{equation}}   and got this error  ERROR: LaTeX Error: \begin{equation} on input line 8 ended by \end{example}.   Which is weird, because removing \split and \endsplit entirely doesn't return any errors (so it's not equation's fault).


Where should I ask for open source license choice

Where should I put my question about which open source license is best for my project?


$|G':G''| \le p^2$ implies $G'$ is abelian

If $G$ is a finite $p$-group, and $|G':G''| \le p^2$, then $G'$ is an   abelian group.   I'm reading its proof but I cannot understand a part: Suppose $G''\neq1$, then by a theorem, there exists a normal subgroup $K$ of $G$ contained as a subgroup of index $p$ in $G''$. Then $(G/K)'=G'/K$ and $(G/K)''=G''/K \neq 1$. So by another theorem, the center $Z/K$ of $G'/K$ is not cyclic, and so $|Z:K| \ge p^2$. "" Hence $|G':Z| \le p$ "", and so $G'/K/Z/K$ is cyclic. Thus $G'/K$ is abelian, contradiction.  Why is it true that $|G':Z| \le p$?  cf. The above proof looks simple but uses other theorems a lot. Does anyone know another good proof?


I am confused between selection of limits for joint distribution

I am given the following joint distribution of two random variables X and Y:  $$            f(x,y)=2y   \\   0<y<1, 0<x<y         $$  Now I need to find the marginal PDF of X but how do I select the limits? I am really confused. What is the general method for selection of limits?


Can I change the environment on a per-process basis on Windows (like on Unix)?

On Unix operative systems I can start a process with additional environment variables like this:  $ DEBUG=1 VERBOSE=3 python myscript.py  Does the Windows CMD have an equivalent for this? I'm stuck developing on a Windows computer and I want to test release-behaviour without having to build the project or permanently change the env variables in my CMD session.


How do I fully install Ubuntu on a USB Flash Drive?

I need to Install Ubuntu on a Flash Drive because I don't have enough space on my Laptop to Dual-Boot. I need to Fully Install Ubuntu on a flash drive.


I am interested in modeling a continuous variable (e.g., second language learners' English proficiency measured in TOEFL scores) as a function of a number of predictors some of which are continuous while others are count-based proportions or ratios (e.g., number of nouns per sentence or the ratio of infrequent words in their essays). Intuition tells me that the observations with larger denominator values (e.g., 10/200) in those proportions and ratios should be weighted more than those with smaller denominator values (e.g., 1/20) in estimating the coefficient associated with the predictor. Is there a way to account for such a difference in the uncertainty in predictor values? I thought it might be related to measurement error models, but have not been able to find relevant information.


Why can't I write $P(X>5|X>1) = P(X>5)$?

I have a confusion with the memorylessness property of exponential distribution.  If exponential distribution is memoryless (i.e. the past has no bearing on its future behavior), why can't I write $P(X>5|X>1) = P(X>5)$? Why  $P(X>5|X>1) = P(X>4)$?  Can anyone kindly explain it to me?


How acceptable are self-citations? I noticed that my advisor cites his own work quite much, even when the cited articles are not directly related, e.g. type of analysed data is different. Actually, I did not notice this myself - it was pointed out by a reviewer (I authored my first paper with him just now). Looking at his citation records, I found out that he has papers with about 15 citations, of which about ~10 are typically from himself. Our field existed before my grandmother was born, so I'm a little alerted.. This puts the offer to do a PhD with himself to a new light.


Why do credit card companies want people with good credit scores?

In order to get approved for most credit cards, you need to have a good credit score. But why do the credit card companies want people with good credit scores (which indicate that you're more likely to pay bills on time), when they make the most money off of charging interest on late payments?  I can think of two possible reasons, but neither seems like a complete explanation...  1) They don't want to run the risk of people completely defaulting on debt - But it seems like the easy answer here is to approve people with medium credit scores (i.e., people who generally pay bills late, but won't default)  2) They need cash on hand to supply credit - But it seems like they could get this by having a balance of people who pay on time, with those who don't.  I understand that credit card companies can still make money in other ways, but my question is different: why do they actively seek people who pay their bills on time (as evidence by requiring good credit scores to get approved for a card), instead of they opposite?


Why is my membership length only "Six months"?

I was viewing the  and I noticed that I've apparently only had my account for six months, which is news to me... I opened my first site account here in February of 2014.  My account is much older than this, what's causing this bug?  To add some detail... On the per-site list, it does line up the "member for X" text with my actual membership time on that site. For example, when I look at the Meta Stack Exchange leaderboard, it shows me as a member for 2 years, 10 months. This is expected.  Update. With some work, today, I've managed to exceed my Interpersonal Skills hat count of with my Meta Stack Exchange hat count. This has changed my account age to match my MSE account age...  Still not reflective of my actual age... but better.


How to calculate Public Key exponent if I have p, q, Dp, Dq, QInv?

I have a private key components p, q, Dp, Dq, and QInv. I need to calculate the public key modulus and exponent. Modulus was super simple p*q, but exponent I can't figure out. Have searched all the articles and often found how to go opposite way - generating public private key once you pick the exponenet.  I have been trying ModInverse from p-1 and q-1, and solve x with GCD on all the componenets, but nothing gave me the right value (I know the value I should get is x010001). Seems to be a little bit more complex that this...  Im really in to the code and less in math, so if I could get the answer which use simple math operations as 'Add', 'Sub', 'Multiply', 'Mod', 'ModInverse', 'GCD' etc. would be great!


I have an armature associated with a mesh. In Pose Mode I have oriented the armature the way I want, so I press A to select the entire armature and then I press I to insert keyframes.  I've done this successfully on simple models while following tutorials, but back in my real model I'm getting the following error and I don't understand what context is being looked for.     No suitable context info for active keying set   What constitutes a "context" in Pose mode?  What should I be looking for in my model structure that is leading to such an error?


Construct a command by putting a string into a tty

I managed to do this  echo -n "command" > /dev/tty1  The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin).  Edit:  In the middle of the below screenshot, you see why I see the use of this. (The line with a red caption, right below the line with a yellow caption.) As it is now, you are not really "editing" the note text; you are just asked to write a new text, which will replace the text of the note you are (not really) editing. Thus, I thought it could be remedied by simply pasting the old text into the tty: if the user hits enter, no modification is made. (This program is in Perl/MySQL, but I thought it would be more interesting to ask for a general solution than "how do I do this in Perl".)    Edit 2:  Here is the Perl code, that uses the C code below (works exactly as intended), as well as a new screenshot – hopefully this will clarify things beyond doubt :) Again, look at the middle of the screenshot, where the edit is made to the note text - this time around, the old text is there, for example if you just wanted to fix a typo, you won't have to retype the entire note text.  my $edit_note_text = $edit_note_data[2]; print BOLD, RED, " new text: ", RESET; system("writevt /dev/tty \"$edit_note_text\""); my $new_text = <$in>; $new_text = fix_input($new_text); my $set_text = "UPDATE notes SET note = \"$new_text\" WHERE id = $edit_note_id"; $db->do($set_text);


The word viz. that is often met in English texts, is an abbreviation for videlicet, a latin word meaning namely or as follows. It is constructed from the first letters vi and an symbol for the suffix -et. So where comes the z from? Originally, the suffix was abbreviated using a medieval  that looks like that: ⁊. It has unicode U+204A. The z is used because of the limitations of old typewriters. I haven't found anything useful so far to use it in LaTeX.  states that there is nothing in LaTeX for U+204A. Does anyone know how to use the original symbol in a document?


I was listening to BBC while reading the script and the announcer said...  "Then I heard one of them say his parents were dinosaurs"  Is that correct?  I don't think so.


How to print an Excel sheet in a multi-column layout?

In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.  What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per page would be enough. Currently, I'm doing it by copying the values out of Excel, inserting it into a Word document and then use the multi-column layout function of Word. Isn't there a way to achieve that directly in Excel?  To clarify my problem: Currently my pages look like that  A B C A B C A B C A B C . . .   But what I want is this:  A B C     A B C     A B C A B C     A B C     A B C A B C     A B C     A B C . . .     . . .     . . .


best book for real analysis for undergraduate

I am in under graduate first year. I want to learn some advanced real analysis. Can you give me some suggestions? One suggestion I got is Rudin's mathematical analysis. Can I buy that?


What is the name of this game involving racing to the other side of the board and putting down barriers?

Does anyone recognize this game, where players take turns in a square board, each turn a player can move his pawn or place a wall and the objective is to reach the other side of the board before the other player.  Here is a picture of a near end game.


Entering California on a bus after a 10year ban

I'd like to go to California.  The problem is that: last time, I got into the US with a 3 months tourist permit(I didn't even need to apply for it, since I'm Italian) and I overstayed 4 years in California.; that's why I can't get another tourist visa, or can I?  I left the US IN March 2005, almost 12 years ago. I wasn't kicked out and I didn't try to re-enter till now.  I'm an EU citizen.  1) I want to come back,  as a tourist (probably just 3-4 weeks) and this time I have to obey all laws, I would never try to overstay.  I don't know if this is a difficult situation. Now that the Ban should be well over expired could I easily come back as a tourist for up to 90 days, as before I ever came to the US (with the VWP)? In the meantime, during these 12 years, I never tried to come to the US, my OLD passport expired, so I made a new one which has got different codes/numbers on it (apart from my generalities).  Can I easily obtain an ESTA and use the VWP?  I just want to avoid the ordeal of having to apply for b2 visas or those kind of things (and perhaps don't even get it).  2)If I enter the US from Mexico with my passport, riding one of your buses, will I be simply asked to fill out paper-work at the boarder?  or will they require me an ESTA? or any type of visa?(given the fact that I overstayed in the past.  I don't want to do anything illegal, but at the same time I want to avoid the stress, time and money waste that may come by not doing the best option.  I don't want to overstay, I just want to enter with ease, I just want to avoid the ordeal of having to apply for any visa (and perhaps don't even get it).  Thanks


H,K be two abelian subgroups of G.Will HK be a subgroup of G?

Let $G$ be a non-abelian group and $H$,$K$ be two abelian subgroups of $G$.   Then will $$HK=\{hk:h\in H, k\in K\}$$ be a subgroup of $G$ ?


So my original problem was that I couldn't get the ubuntu software centre to startup, it would just freeze for a while loading and then would crash. So i tried to remove USC : Successfully When I came to re-install I ran into a problem with the sudo-apt install / get and loads of other commands. This is what i get when i enter sudo apt-get update  E: Malformed line 56 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read.  I looked into the folder /etc/apt/sources.list.d/ and there seems to be no source list file, however there appears to be one in its parent folder. I'm still new to this and I couldn't find a solution anywhere on the forums. Help is greatly appreciated :) Thanks !


Why is it necessary to add extra text when editing posts?

Why is adding some text necessary when editing posts on Stack Overflow when the editing can be done by removing some extra words and sentences?   I tried to edit to remove the word "WTF" because I don't think it should be allowed here at this platform. So when I removed the word from it and tried to save my edit, it asked me to add some fixed number of characters, even though there was no need to add extra characters.


Sites disappear when changing position in your sites

When changing the position of sites in the your site menu of the app, sites disappear when a site is moved above them. It's only the edit ui as the sites still exist in the normal menu. I'm using a Galaxy S5.


Let $u$ be a solution of $\Delta u=u^3-u$ on a bounded domain $\Omega$. I want to show that $u\in[-1,1]$ throughout $\Omega$ and find out if $u$ can attain the values $-1,1$.  This is an exercise from Rogers - "An Introduction to PDEs". I assume that the problem can be solved using some form of the maximum principle for elliptic equations as this exercise is from this section.  I wrote the equation in a form for which the maximum principles were stated, that is $Lu=\Delta u + u =u^3$  corresponding to the general form of the equations treated in this chapter $$Lu=a_{ij}(x)\frac{\partial^2 u}{\partial x_i\partial x_j}+b_i(x)\frac{\partial u}{\partial x_i}+c(x)u$$  where Einstein Summation is used. This means for my equation that $c=1,b=0$ and $a_{ij}=\delta_{ij}$. So we have a semilinear elliptic equation.  I am stuck here, as most of the theorems require that $Lu\le 0$ or $Lu\ge0$ to begin with. And even if a condition like this was satisfied, I am unsure of how to show that the range lies in an interval.


The below code is changing the value of the list K automatically, please help me know why  1 4 1 2 4 3   I gave the above input  The output is this  [1, 2, 3, 4] [1, 2, 3, 4] 1 [1, 2, 3, 4] 2 1 1 [1, 2, 3, 4] 2 2 2 [1, 2, 3, 4] 2 3 4 [1, 2, 3, 4] 2 4 3 [1, 2, 4, 3] [1, 2, 4, 3] 1 [1, 2, 4, 3] 2 1 1 [1, 2, 4, 3] 2 2 2 [1, 2, 4, 3] 2 4 4 [1, 2, 4, 4] 2 4 3 [1, 2, 4, 4] [1, 2, 4, 4]   In the last steps the value of list k changed automatically.  This was done on PyPy 3 and python 3.7  t=int(input()) while t!=0:     t-=1     n=int(input())     h=[0]*n     lt=[0]*n     c=0     l=[int(i) for i in input().split()]     k=[i for i in range(1,n+1)]     print(k)     while c!=7:         print(k, end=" ")         print("1")         c+=1         for i in range(n):             print(k, end=" ")             print("2")             lt[l[i]-1]=k[i]             print(k[i],end =" ")             print(l[i])         k=lt         print(k)         for i in range(n):             if k[i]==l[i] and h[k[i]-1]==0:                 h[k[i]-1]=c     print(*h,sep=" ")


Q: if $R$ is a ring such that for every $x\in R$ , $x^4=x$, then prove $R$ is commutative. What I've tried: First we notice that $-x=(-x)^4=x^4=x$. $x+x=2x=0$ Then we can show that $x^2+x$ is is a central because $(x^2+x)^2=x^4+2x^3+x^2=x^2+x$ ($x^2+x$ is idempotent) Now I can't proceed from here. :( Any help is much appreciated!


I work as a java dev so I know java and I'm learning python. Is this enough for developing ubuntu desktop apps or I need more? I would like to focus on good gui builders and I know kava swing is pretty poor.


Pigeonhole Principle - Pairs of Sets with distinct sums

(a) Each of 15 men and 15 woman is given an integer between 1 and 100 inclusive with no integer appearing more than once. The value of a man-woman pair is the sum of their numbers. Prove that there are two man-woman pairs with the same value.   (b) Suppose there are 14 men and 14 women as above. Prove that there are still two man-woman pairs with the same value.  (c) Give an example with 13 men and 13 women where the value of every man-woman pair is unique.   I can prove (a), namely that the set of possible sums is $S$ = {$3,4,5,...,197,198,199$} with |$S$| = $197$. With 15 men and women there are $15\cdot 15 = 225$ pairs so by the pigeonhole principle there will be at least two pairs with the same sums because $225>197$.  With 14 men and women there are $14\cdot 14 = 196$ possible pairs but this is not larger than |$S$| = $197$. I assume that due to the way this is set up it is impossible to have certain pairs together so the actual amount of sums you could have is less than 197 but I don't know how to prove this.  For (c) I really have no clue how to come up with the lists without brute-force which isn't really working for me.  Edit: A basically identical problem has already been asked and solved here:


what is actually better to use with LuaLaTex: Babel or Polyglossia?  I read everywhere that we should prefer Polyglossia over Babel when using  LuaLaTex because LuaLaTex did not completely support Babel. But these statements i read are some years old and many things have changed. So the support for Babel is maybe better?  Therefore i want to know what package i should prefer and why? thanks!


How to reference studies mentioned in a paper without having to read the original papers?

I'm review the literature at the moment. Now I'm reading a paper that mention other studies. How can I reference them without reading the original papers?


Understanding Liskov Substituion Principle

My sample program like below;      public class Animal     {         public virtual string MakeSound()         {             return "General Sound";         }     }      public class Dog : Animal     {         public override string MakeSound()         {             return "Bow..Bow..";         }     } }          static void Main(string[] args)         {             Animal obj1 = new Animal();             Console.WriteLine("General Animal's sound id " + obj1.MakeSound());              Dog obj2 = new Dog();             Console.WriteLine("Dog Animal's sound id " + obj2.MakeSound());              //Violate LSP             Animal obj3 = new Dog();             Console.WriteLine("Animal's sound id " + obj3.MakeSound());              Console.ReadKey();         }   Here as my understanding when we create Dog instance for Animal like obj3, we are violating LSP. Please confirm my understanding. If yes, please tell me how to achieve in this case to understand better. I think my coding is conceptionwise correct


“Run as administrator” prevents applications from autostart

I've been running into a problem where some of the applications from the startup menu don't actually start upon login. After looking at the list of the applications I've noticed that actually only the exe files that I've set in properties to "Run as administrator" (in compatibility tab) don't run (and also a .cmd file).  How do I run those apps during startup?


Below is a code for ordering a pizza. One thing I didn't clearly understand is that getSubTotal has a parameter itemCount and at the end of the line when the function getSubTotal is called the argument inside it is orderCount and not the parameter itemCount. Is it because orderCount is  the argument for the itemCount?  Hope I explained my question clearly.  var orderCount = 0;  function takeOrder(topping, crustType) {   console.log('Order: ' + crustType + ' crust topped with ' + topping);   orderCount = orderCount + 1; }  function getSubTotal(itemCount) {   return itemCount * 7.5; }  takeOrder('bacon', 'thin'); takeOrder('pepperoni', 'regular'); takeOrder('pesto', 'thin');  console.log(getSubTotal(orderCount));   Thank you.


The C preprocessor is justifiably feared and shunned by the C++ community. In-lined functions, consts and templates are usually a safer and superior alternative to a #define.  The following macro:   #define SUCCEEDED(hr) ((HRESULT)(hr) >= 0)     is in no way superior to the type safe:  inline bool succeeded(int hr) { return hr >= 0; }   But macros do have their place, please list the uses you find for macros that you can't do without the preprocessor.   Please put each use-cases in a seperate answer so it can be voted up and if you know of how to achieve one of the answers without the preprosessor point out how in that answer's comments.


Would you please tell me what "than that of" means here?

"Look into the motives which have induced men, once united by their   common needs in a general society, to unite themselves still more   intimately by means of civil societies: you will find no other motive   than that of assuring the property, life and liberty of each member by   the protection of all."   Would anyone please tell me what the following means?, or what does than that of assuring mean?     ... than that of assuring the property, life and liberty of each member   by the protection of all."   And, Would you possibly elaborate this:assuring the property, life and liberty of each member by the protection of all.


Why "\newcommand{\bal}{\begin{align}} doesn't work?

I have this string in my preamble:  \def\bala#1\eala{\begin{align*}#1\end{align*}}   and I tried to rewrite it as:  \def\bala{\begin{align*}} \def\eala{\end{align*}}   or as:  \newcommand{\bala}{\begin{align*}} \newcommand{\eala}{\end{align*}}   but I noticed that it doesn't work for the align ambient (starred or not). It works for others math ambients like eqnarray, equation etc.  This is a Minimal NOT working Example:  \documentclass[11pt]{article} \usepackage{amsmath}  \newcommand{\bala}{\begin{align}}  \newcommand{\eala}{\end{align}}  \begin{document} My aligned equations \bala 1+1&=2\\ 2+2&=4 \eala  \end{document}   But the next one works:  \documentclass[11pt]{article} \usepackage{amsmath}  \newcommand{\bala}{\begin{eqnarray}}  \newcommand{\eala}{\end{eqnarray}}  \begin{document} My aligned equations \bala 1+1&=&2\\ 2+2&=&4 \eala  \end{document}


Numbering many equations automatically plus allowing to add new equations

I'm facing a problem with my document that has many equations. The problem with the labelling issue if I decide to modify or add new equations. Basically so far, I'm using \label{eq4.1} where 4 for the chapter four and 1 for the first equation. With this approach, if I decide later to add new equations before eq4.1, then I have to change all subsequent equations to reflect this change. I'm looking for a better and flexible approach to cope with this problem.   \documentclass{article} \usepackage{amsmath}  \begin{document}  \begin{align} x &= 2^{100}, \label{eq4.1} \\ y &= 2^{100}, \label{eq4.2} \\ z &= 2^{100}. \label{eq4.3} \end{align}  These are \eqref{eq4.1} and \eqref{eq4.2} and \eqref{eq4.3}.   \end{document}


how find all groups of subsets of set A? Set partitions in Python

I want to find an algorithm that given a set A to find all groups of subsets that satisfy the following condition:     x ∪ y ∪ .... z = A, where x, y, ... z ∈ Group   and      ∀ x,y ∈ Group: x ⊆ A, y ⊆ A, x ∩ y = ∅ = {}   and      ∀ x ∈ Group: x != ∅   Note: I hope to define it well, I'm not good with math symbols  I made the following approach to search groups of two subsets only:  from itertools import product, combinations  def my_combos(A):   subsets = []   for i in xrange(1, len(A)):     subsets.append(list(combinations(A,i)))   combos = []   for i in xrange(1, 1+len(subsets)/2):     combos.extend(list(product(subsets[i-1], subsets[-i])))   if not len(A) % 2:     combos.extend(list(combinations(subsets[len(A)/2-1], 2)))   return [combo for combo in combos if not set(combo[0]) & set(combo[1])]  my_combos({1,2,3,4})   I get the following output, these are all groups composed of two subsets  [   ((1,), (2, 3, 4)),    ((2,), (1, 3, 4)),    ((3,), (1, 2, 4)),    ((4,), (1, 2, 3)),    ((1, 2), (3, 4)),    ((1, 3), (2, 4)),    ((1, 4), (2, 3)) ]   ..... but, groups composed of one, three, four subsets ....   Question:  how may i find a general solution?   for example the following expected output:  my_combos({1,2,3,4})  [   ((1,2,3,4)),   ((1,2,3),(4,)),   ((1,2,4),(3,)),   ((1,3,4),(2,)),   ((2,3,4),(1,)),   ((1,2),(3,4)),   ((1,3),(2,4)),   ((1,4),(2,3)),   ((1,2),(3,),(4,)),   ((1,3),(2,),(4,)),   ((1,4),(2,),(3,)),   ((1,),(2,),(3,4)),   ((1,),(3,),(2,4)),   ((1,),(4,),(2,3)),   ((1,),(4,),(2,),(3,)) ]


Regenerative braking with electric bicycle hub motor

What kind of circuit would be required to implement a regenerative braking system on a electrical assisted bicycle with a motor like this?   The motor is brushless and the kit comes with a big ESC box. Regenerative braking was not an advertised feature.  As far as 'why do this': you could use it with a small battery for using energy (on the next hill) that would otherwise be waisted in burning up your brakes during long down hill stretches


Boot drops to a (initramfs) prompts busybox

This question duplicated with . I asked for answer this question. Because I cannot answer the original question because I don't have 10 reputations.  After hard reset I've encountered with:  BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)


Windows 8 setup asks for the product key at the beginning of the setup without letting you install it.  I got the Windows 8 ISO from MSDN but I didn't get enough keys to install it on all my 7 computers. Also, my MSDN subscription level doesn't allow me to get the VL product key to Windows 8 Enterprise.  Is there any way I can install Windows 8 for a limited time period like we used to do for Windows 7 ?


Swap dates of appointment at the German embassy

A friend of mine got an earlier appointment date than me at the German embassy for a national visa application. We both have appointment dates already (mine will be in June, while his will be in April), however I need to have an earlier one. I asked him if I can take his slot and he agreed. Is it possible to request for an exchange of appointment dates?


Calculating centroids of polygon using ArcPy?

I am trying to calculate the centroids of a polygon and add the x- and y-coordinate to their respective fields:  arcpy.env.workspace = r"C:/..."  input_fc = "shapefiles/precincts_v.shp" arcpy.AddField_management(input_fc, "X", "DOUBLE") arcpy.AddField_management(input_fc, "Y", "DOUBLE")  arcpy.CalculateField_management(input_fc, "X", "!SHAPE.CENTROID@DECIMALDEGREES!.split()[0]", "PYTHON")  arcpy.CalculateField_management(input_fc, "Y", "!SHAPE.CENTROID@DECIMALDEGREES!.split()[1]", "PYTHON")    but I an invalid syntax error. Where is the mistake?  Edit: exact error message  Traceback (most recent call last):   File "C:\Users\mquentel\Dropbox\PLSS\CA voting data\Python\CONSTRUCT_merge_voting_and_census.py", line 17, in <module>     arcpy.CalculateField_management(input_fc, "X", "!SHAPE.CENTROID@DECIMALDEGREES!.split()[0]", "PYTHON")   File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\management.py", line 3360, in CalculateField     raise e ExecuteError: ERROR 000539: SyntaxError: invalid syntax (<expression>, line 1) Failed to execute (CalculateField).


Test if value of cell is used in a formula

In a google sheet I have some values that are used in formulas in other cells (until now, nothing unusual...).   I would like these cells to have a special color to be aware that if I modifiy them, other cells will be modified as well. Is there a function to test if a cell's value is used elsewhere?  I am looking for a simple built-in way to do this, without macros, and I just need to know wether the cell is used elsewhere or not, not by whom, or neither what it does.  Thanks for your help


Why does Ubuntu claim to uptodate when there was no update for month?

I have an Ubuntu LTS 16.04.02 with an 4.4.x Kernel from March.  When I try to update the system it claims to be uptodate. This is not true. So why do not get the updates?  root@p1sr1:~# uname -a Linux p1sr1 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:27:09 UTC 2017 i686 i686 i686 GNU/Linux  root@p1sr1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.2 LTS Release:    16.04 Codename:   xenial   root@p1sr1:~# sudo apt-get update OK:1 http://archive.canonical.com/ubuntu xenial InRelease OK:2 http://ppa.launchpad.net/x2go/stable/ubuntu xenial InRelease OK:3 http://de.archive.ubuntu.com/ubuntu xenial InRelease Paketlisten werden gelesen... Fertig                   root@p1sr1:~# sudo apt-get upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.        Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.**   Edit: after some further information via the comments, it seems that the source.list seems to be not ok on my system.  Does anyone have a default sourcelist for LTS 16.04.2, I like to compare with my system.  Edit II After getting the correct source.lists I could now update to Kernel 4.10 but I am still on LTS 16.04.2 !!  I tried to do an dist-upgrade but this comes back with 0 packages to update... So I am in a much better state now but the initial question:  How can I upgrade from LTS 16.04.2 to LTS 16.04.3 is still on my desk. Any hint is highly well come!


I select the default cube, file > export and there are 7 formats to choose from, but no GLTF?


"No space left on device" while installing packages

My software center stops updating my software and I get this:  The following packages have unmet dependencies: linux-headers-generic : Depends: linux-headers-3.2.0-57-generic but it is not installed linux-headers-generic-pae : Depends: linux-headers-3.2.0-57-generic-pae but it is not installed   so I tried apt-get and -f install to no avail with this message:  (Reading database ... 652236 files and directories currently installed.) Unpacking linux-headers-3.2.0-57-generic (from .../linux-headers-3.2.0-57-generic_3.2.0-57.87_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-57-generic_3.2.0-57.87_i386.deb (--unpack): unable to create `/usr/src/linux-headers-3.2.0-57-generic/include/config/comedi/dt2811.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-57-generic/include/config/comedi/dt2811.h'): No space left on device No apport report written because the error message indicates a disk full error                                                                           dpkg deb:error: subprocess paste was killed by signal (Broken pipe) Unpacking linux-headers-3.2.0-57-generic-pae (from .../linux-headers-3.2.0-57-generic-pae_3.2.0-57.87_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-57-generic-pae_3.2.0-57.87_i386.deb (--unpack): unable to create `/usr/src/linux-headers-3.2.0-57-generic-pae/include/config/net/sch/atm.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-57-generic-pae/include/config/net/sch/atm.h'): No space left on device No apport report written because the error message indicates a disk full error                                                                           dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/linux-headers-3.2.0-57-generic_3.2.0-57.87_i386.deb /var/cache/apt/archives/linux-headers-3.2.0-57-generic-pae_3.2.0-57.87_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   So I tried going onto software center to see if it could fix it for me and it returned similar messages. Any help for a newcomer?


Continuity based on restricted continuity of two subsets

Let $X=A\cup B$, where $A,B$ are subspaces of $X$. Let $f:X\rightarrow Y$; suppose that the restricted functions $f\mid A:A\rightarrow Y$ and $f\mid B:B\rightarrow Y$ are continuous. Show that if both $A$ and $B$ are closed in $X$, then $f$ is continuous.   $f\mid A$ continuous means that for any open subset $V$ of $Y$, the subset $(f\mid A)^{-1}(V)=f^{-1}(V)\cap A$ is open in $A$. Similarly, $f^{-1}(V)\cap B$ is open in $B$.   The meaning of $(f\mid A)^{-1}(V)=f^{-1}(V)\cap A$ open in $A$ is that $f^{-1}(V)\cap A = C\cap A$ for some $C$ open in $X$. What then?


Is wget a default Windows 10 command in PowerShell?

I need know if wget is a default command in Windows 10, because I want to run a .bat file in some customer's computers to run a script. I would prefer not to install wget separately, just use it.  So, is it available by default in Windows 10?


Closed Room Experiment to prove Earth isn't flat

With , it is possible to demonstrate in a closed room that the Earth Rotates with respect to an inertial reference frame. And allowing guests to inspect and manipulate the pendulum assembly, I'd say you can convince a skeptic person that the ground beneath their feet is spinning (albeit slowly), if at least this person accepts some version of .     Is there an experiment, that can be conducted in a closed room that would demonstrate to a skeptic person that the Earth is roughly spherical?   I'd say that Eratosthenes' experiment of measuring light angles neither can be conducted in a closed room nor would prove the earth to be spherical (as the sun could be much closer to a flat earth, or the earth could have a cylinder shape).  Any experiment that would depend on programming a machine (that could be inspected but not reliably audited by a common person) also does not count.  If it requires very fine tuning such as , or some hypothetical very high accuracy gradiometer, it could answer the question, but would be nice to give an idea of how the skeptic could be instructed to   inspect the device, in order to trust that it hasn't been tampered.  I'm guessing that sadly, there exists no such experiment.  Edit: Note that unlike other questions mentioned, the experiment needs to be conducted in a close room, so no sun observing, ship over the horizon disappearing, airplane watching or traveling allowed!


Event listener which fires if input field is changed by code

I need an event handler which fires when the value of an input field changes. No matter if the value is changed by the "user" or by "code". This listeners do work, if value changed by user, but not if it is changed by code.  $('#myInput').on('change paste input', function() {  })   My specific problem is that an javascript calendar plugin changes the value of my input field. The "input" event is than not fired because the change is made by code.  Thanks for help.


Is a DVD or USB required to install regardless of download method? I've downloaded via torrent.  What is the next step?


How do you determine the size of a file in C?

How can I figure out the size of a file, in bytes?  #include <stdio.h>  unsigned int fsize(char* file){   //what goes here? }


Elements with switched class doesn't works

I have function to switch my      Into       It would allow to have 2 differents actions, but once changed, it always return the class which is executed.  Here is an example of my problem :      As you see, impossible for the .test2 function to work  Thank you for your help


How to change the color of the header and footer horizontal lines?

I want to change the color of the lines (i think they are called "rules" in latex) after the heading and before the footer in every page of my report. I used these commands to add them but i couldn't change the color to gray  \renewcommand{\headrulewidth}{0.4pt}  \renewcommand{\footrulewidth}{0.4pt}   I used the package \color to (successfully) change the color of the headers and footers but it doesn't work inside the previous commands.   \color[rgb]{.55,.55,.55}   I also tried these codes which are for changing the colors of the tables, but it didn't work for my need  \usepackage{colortbl} \arrayrulecolor{blue}\hline


Evaluate $\lim_{x \to 0} \frac{\sqrt{1 + \tan x} - \sqrt{1 + \sin x}}{x^3}$

What I attempted thus far:  Multiplying by conjugate   $$\lim_{x \to 0} \frac{\sqrt{1 + \tan x} - \sqrt{1 + \sin x}}{x^3} \cdot \frac{\sqrt{1 + \tan x} + \sqrt{1 + \sin x}}{\sqrt{1 + \tan x} + \sqrt{1 + \sin x}} = \lim_{x \to 0} \frac{\tan x - \sin x}{x^3 \cdot (\sqrt{1 + \tan x} + \sqrt{1 + \sin x})}$$  factor out $\sin x$ in the numerator  $$\lim_{x \to 0} \frac{\sin x \cdot (\sec x - 1)}{x^3 \cdot (\sqrt{1 + \tan x} + \sqrt{1 + \sin x})}$$  simplify using $\lim_{x \to 0} \frac{\sin x}{x} = 1 $  $$\lim_{x \to 0} \frac{\sec x - 1}{x^2 \cdot (\sqrt{1 + \tan x} + \sqrt{1 + \sin x})}$$  From here I don't see any useful direction to go in, if I even went in an useful direction in the first place, I don't know.    I suspect that this could be evaluated using the definition of derivatives, if so, or not, any suggestions?


I am an absolute newcomer when it comes to quantum physics. So kindly suggest me a book which covers all the fundamental ideas, equations and all such stuff related to qp, so that i can master the basics and then move on to the advanced stuff.Thank you.


why some device driver have multiple version?

when we want install device driver there are diferent device driver for each version of windows. e.g:debice driver for windows xp x86 is different from windows 7 x86 and windowd 8 x86 Why need Different device driver for each version of windows? why cant have same driver for all version or only have 2 for x86 and x64?? i want explain it in more technical detail


I need to change the hosting server for a website referenced in France. If i take a hosting server in Belgium (google gce eu-west-1) would this affect my site natural SEO ?


Sharing files and folders between two pcs ubuntu and windows

I have pc and laptop and I am using ubuntu 14.04 beside windows xp sp3 on both devices. I tried to share folders between them .   I installed Samba . Set a user and password . Set folders as shared (on ntfs partitions ) on both devices. Tried to get into Workgroup network but keeping ask password and do not response when I entered the password that I set on samba or user password.   I can get into shared files on windows using Ubuntu only but not vice versa. I tried Ubuntu-Ubuntu from desktop keep asking basswd and from laptop do nothing  Any help please.


I cannot figure out how to stop my setinterval code. I've seen the other posts on stackoverflow however nothing works.  $(document).ready(function() {   var content =  tinyMCE.getContent('content').value; }); var myinterval = setInterval(function() {   $.get("status.php?id=<?php echo $id; ?>",function(data){          val = content.value;     if (val != data) {       $.pnotify({         title: 'Regular Notice',         text: 'Check me out! I\'m a notice.'       });       clear();     }   }); }, 1000 * 2 * 1);   function clear(){     clearInterval(myinterval); }


Custom RegEx for Username/Email Address Java

Somehow I find it really hard to create a RegEx on my own and I am sure one of you does know how to work with them. My question: I want users, who register, to only be able to enter an email address of this format: ?.????@example.com.   To clear up, my RegEx should look for if there is only one character in the first position, followed by a dot, an infinite number of characters, an at-symbol, followed by "example.com".  Is it even possible to allow RegEx to look for full strings (example.com in this case) and if so, what would that RegEx look like? (I'd like an full example).  EDIT: By characters I mean alphanumeric characters (^[a-zA-z]$)   Thanks in advance!


I wonder if there is a way to initialize a member of a member of a struct. Let`s say I have 2 structs, t1 and t2. t2 contains 2 instances of t1. like this:  typedef struct t1{      int                     num;  } t1;  typedef struct t2{      t1                      sub_one;     t1                      sub_two;     int                     num;  } t2;   Is it possible to declare sub_one.num to a number and sub_two.num to a different number at the time I iniatilize t2. something like:  typedef struct t2{      t1                      sub_one.num = 1;     t1                      sub_two.num = 2;     int                     num;  } t2;   is that possible?


What is the secondary CPU Usage Graph line in the Windows 10 Task Manager

I was looking at the task manager in Windows 10 and for the first time noticed a secondary dashed line below the solid? What does this line indicate?


Is it possible to install an iPhone app in MacBook Pro?

I use an application WeChat in my iPhone a lot, as typing on a smartphone is less convenient than typing on a keyboard, I would like to be able to use that application on my MacBook Pro.  The OS in my MacBook Pro is Mac OS X Lion 10.7.5 (11G63). I have also installed VMWare Fusion.  So I am thinking if it is possible to install a virtual iOS 7 on my MacBook Pro, then install WeChat inside?  Could anyone help?  PS: WeChat does provide a web version where we can chat in a web browser, but it is not as good as the iPhone application, it is unacceptably slow...


I remember one scene where the alien got shot. He pulled up his shirt and a blue grid (on black background) was there instead of regular skin, which then healed him.  The Movie "Starman" comes to mind, but I distinctly remember it as a TV-show, not a movie.


Factory reset is disabled by kill switch on LG L16C

I cannot do a factory reset on a LGL16c, it comes up with screen to confirm reset and agreeing to wipe data, I say yes to both. Then it comes up with a screen that says     Factory reset is disabled by Kill switch   I reboots and nothing happens. I cannot reset through settings on phone, security, it says factory reset disabled by server policy.  I found out that all new smartphones have this new "Kill switch" installed by all manufacturers because a new law passed prevents a thief from accessing a phone if there is a password on it and trying to factory reset it.  Is there a way to bypass the kill switch if I have the phone and there is no password and I want to wipe data and reset phone?


Does dollar cost averaging apply when moving investments between fund families?

We'll likely be moving ~$100,000 (two Roth IRAs, about 80k/20k split) from a mix of Nationwide funds to a combination of Vanguard whole-market stock and bond index funds (details below). All else being equal, I'd prefer to move all of the money at once to 1) have enough money to buy Admiral rather than Investor shares 2) simplify the process.  That said, I'd prefer not to take on unnecessary risk, and would dollar cost average the transfer if it would have financial/risk benefits. Would dollar cost averaging make sense in this situation, or would a lump sum transfer work since the money is already in the market? (I'm not sure how similar/different my current and planned investments are, or how important this is).  Current Investments:   NWHJX Nationwide Bailard International Equities Fund Class A 11.90% NBDAX Nationwide Bond Fund Class A   14.80% NWHVX Nationwide Geneva MidCap Growth Fund Class A   12.50% NMFAX Nationwide Growth Fund Class A 38.00% NWGPX Nationwide HighMark Small Cap Core Fund Class A    11.60% NWJCX Nationwide Ziegler NYSE Arca Tech 100 Index Fund Class A   11.20%   Planned Investments (percentages still in the works):   VFIAX    Vanguard 500 Index Fd Admiral Shs   35.00% VTSAX    Vanguard Total Stock Market Index Fd Admiral Shs    35.00% VTIAX    Vanguard Total International Stock Index Fd Admiral 10.00% VBTLX    Vanguard Total Bond Market Index Fund Admiral Shares    20.00%


I can't seem to find an answer to this problem, and I'm wondering if one exists. Simplified example:  Consider a string "nnnn", where I want to find all matches of "nn" - but also those that overlap with each other. So the regex would provide the following 3 matches:   nnnn nnnn nnnn   I realize this is not exactly what regexes are meant for, but walking the string and parsing this manually seems like an awful lot of code, considering that in reality the matches would have to be done using a pattern, not a literal string.


What desktop distro I should use when coming from Windows?

I've been using Windows 8 as my laptop since it came out, though I hate it, I really didn't really have a choice since my school only allowed Windows, and since my mom bought me windows 8, I just put it on. I've used Linux since the summer of 2012 so I'm still a bit of a newbie. I use Linux a lot, much more than windows, it's just that I run Linux on virtual machines so I can get the Linux experience, and since I have 8 gigs of RAM, I can spare about 5 for the virtual machines. My main Linux distros are Arch, Ubuntu, and Mint. Though I use Arch the most because I love the customization it offers because I'm a diy kind of guy. And since my laptop crashed because windows experienced a problem and restored everything, I'm thinking of installing linux on my computer, so I have to choose a distro to download, I can't really decide which to put on. I really like Linux Mint because it's simple and uses apt-get, but I don't like MATE or cinnamon because of their simple interfaces. I like Fedora because its always on the latest software, but yum is a bit too slow. I like Arch becuase it has a really fast boot up, pacman is awesome,almost all packages are vanilla, but I don't like that it doesn't have defaults, but I'm probably still going to install it. But I need to find special drivers during installations for hibernating and nvidia. My laptops specs are: i7 3.3 Ghz 8gb RAM 2gb nvidia GTX 660 gpu 1TB hdd  So my questions are: Should I use Arch as my main laptop distro? If not, what should I use? What drivers should I include so Arch can run on the laptop? What drivers do I need to allow my laptop to hibernate safely? What nvidia driver do I need, is it possible to allow dual-booting of Arch and Windows?


Equivalence relation on a group induced by natural isomorphism

I am doing exercises from the Tom Leinster's Basic Category Theory and I want to check the answer to the following exercise:  Let $G$ be a group. For each $g\in G$, there is a unique homomorphism $\phi:\mathbb{Z}\to G$ satisfying $\phi(1)=g$. Thus, elements of $G$ are essentially the same thing as homomorphisms $\mathbb{Z}\to G$. When groups are regarded as one-object categories, homomorphisms $\mathbb{Z}\to G$ are in turn the same as functors $\mathbb{Z}\to G$. Natural isomorphism defines an equivalence relation on the set of functors $\mathbb Z\to G$, and, therefore, an equivalence relation on $G$ itself. What is equivalence relation, in purely group-theoretic terms?  My answer is that this relation can be caracterized in the following way: two elements $g,g'$ are in relation if there is automorphism $\alpha$ of $G$ such that $\alpha(g)=g'$.  Am I correct and is there a special name for this equivalence relation?


Should I be worried about electro-static discharge?

Doing mostly micro-controller work, I have never bothered with grounding myself with a wrist-strap or any other implementation. Should I be worried about this? How serious is ESD when working at my workbench on projects?


In Field Service Lightning Test Class on ServiceReport throws Methods defined as TestMethod do not support Web service callouts

In Field Service Lightning I have a Trigger on ServiceReport which sends an email with attachment coming from ContentVersion.   This is the Test class I have written.  @isTest  private class testCreateServiceReport{       static testMethod void validateWO() {       WorkOrder wo = new WorkOrder();       wo.subject = 'Testing';       insert wo;       ServiceAppointment sa = new ServiceAppointment();       sa.ParentRecordId = wo.Id;       sa.EarliestStartTime = DateTime.now();       sa.DueDate = DateTime.now();       insert sa;       List<ServiceReportLayout> srl = [Select Id FROM ServiceReportLayout];       ServiceReport sr = new ServiceReport();       sr.ParentId = sa.Id;       sr.Template = srl[0].Id; //Need to check if there is a way to avoid srl[0] notation       insert sr; //If I comment this the text result is pass. When I enable it I get too see the below mentioned error.  }  }   This is the error Methods defined as TestMethod do not support Web service callouts I know that we need to write Test Classes for code that involves web service callouts using setMock() but I dont understand in what way inserting ServiceReport is related to making a callout.  Any help on this will be really helpful.


Why does citing .bib entry with "year" key break bibliography?

I couldn't figure out why I was getting the errors LaTeX warning: Citation '...' on page X undefined on input line Y and empty bibliography on line Z in a document I was working on. I kept removing code until all that was left was the minimum for generating references and the problem was still there. I have narrowed it down to this: The following MWE compiles correctly (shows reference table with link from citation in text to table). \documentclass[a4paper]{scrartcl} \usepackage{filecontents}  \begin{filecontents*}{\jobname.bib} @book{dirac, title = {The Principles of Quantum Mechanics}, author = {Paul Adrien Maurice Dirac}, isbn = {9780198520115}, series = {International series of monographs on physics}, publisher = {Clarendon Press}, keywords = {physics} } \end{filecontents*}  \usepackage[backend=biber]{biblatex} \addbibresource{\jobname}  \begin{document}  \section{test}  this is a reference. \cite{dirac}     \printbibliography   \end{document}  however, if I add the key  year = {1981} to the bibliography entry so it reads: @book{dirac, title = {The Principles of Quantum Mechanics}, author = {Paul Adrien Maurice Dirac}, isbn = {9780198520115}, series = {International series of monographs on physics}, publisher = {Clarendon Press}, keywords = {physics}, year = {1981} }  the document does not compile with references any more! I get these warnings: LaTeX Warning: Citation 'dirac' on page 1 undefined on input line 23.  LaTeX Warning: Empty bibliography on input line 25.  I am using the commands xelatex main.tex biber main xelatex main.tex xelatex main.tex  to compile, but I get the same problem using pdflatex too. This is the output of biber when the year key is not present (references compiled correctly): INFO - This is Biber 2.14 INFO - Logfile is 'main.blg' INFO - Reading 'main.bcf' INFO - Found 1 citekeys in bib section 0 INFO - Processing section 0 INFO - Globbing data source 'main' INFO - Globbed data source 'main' to main INFO - Looking for bibtex format file 'main' for section 0 INFO - LaTeX decoding ... INFO - Found BibTeX data source './main.tex' WARN - BibTeX subsystem: /var/folders/0v/640gnlsn7757klpyxs64hlz00000gn/T/biber_tmp_Nl1z/main.tex_18596.utf8, line 4, warning: 93 characters of junk seen at toplevel INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable' INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized' INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US' INFO - No sort tailoring available for locale 'en-US' INFO - Writing 'main.bbl' with encoding 'UTF-8' INFO - Output to main.bbl INFO - WARNINGS: 1  and here is the output of biber when the year key is present (references broken): INFO - This is Biber 2.14 INFO - Logfile is 'main.blg' INFO - Reading 'main.bcf' INFO - Found 1 citekeys in bib section 0 INFO - Processing section 0 INFO - Globbing data source 'main' INFO - Globbed data source 'main' to main INFO - Looking for bibtex format file 'main' for section 0 INFO - LaTeX decoding ... INFO - Found BibTeX data source './main.tex'  (I have updated tex live manager with tlmgr update --self --all and tried "rm -rf `biber --cache`" but the problem is still there)


I will be travelling from The Netherlands to India soon and have a flight change in London. However I also need to change airports (From London City Airport to Heathrow Airport). I hold an Indian Passport. Will I need a transit Visa ?


only regular expressions : i want the lastnames that start with A or R

name ,lastname,phonenumber Hace, Apoio, 703-2101  Yoliot, Apostolos, 4222-1124 Jenny,Thano,105-4122  Aeriom,Koun, 510-4122  Dekon, Atolo, 502-2522  Feow, R,685-3431   I did this but doesnt worked and I have no idea how it can be :  [A|R]


What would be a good way to select one class or another class?

I'm trying to select one class that is created dynamically, or another class that is created in html. What would be a good way of doing this?   I've tried this:   $('.wrapper' || '.surround').on('click', '.bet-button', function(){}   and also this:   $('.wrapper', '.surround').on('click', '.bet-button', function(){}   is there a way to write this, so far it doesn't seem to be working.


Why Concatenation of two string objects reference not equal to same content string object

Why below s3 and s5 String objects are differ, When s5 try to created in String pool it checks content s3 already have same content so s5 refers s3 object in string pool. But my assumption is wrong, then any one correct me. String s1 = "Buggy"; String s2 = "Bread";         String s3 = "BuggyBread";        String s4 = "Buggy" + "Bread";  String s5 = s1 + s2  System.out.println(s3 == s4); // True System.out.println(s3 == s5); //false


I have to get the text inside, between this tag  : and  i want to get the text "this text", but i am getting "" what is the wrong?   var str = "
important :  this text ";  var result = str.match(/<\/strong> :(.*?)<\/span>/g).map(function(val){    return val.replace(/<\/?b>/g,''); }); console.log(result)    sometimes i get in my string: "
<span important :  this text ";


Currently, on every other day I commute to work which is a distance of 18km each way. I enjoy this ride but next year I may be moving to a place which will be about 35km from work. Questions:  1) Would it still be reasonable to commute this kind of distance each way once I have moved?  2) Google maps estimates that this distance would take 2 hours to complete. Would it be possible (depending on the bike and fitness) to do this distance in about an hour?


I am using Windows 8. I have installed MiKTex 2.9 and TeXstudio. However, when I compile the document, the process exits with the following error:  File `mathtools.sty' not found. \usepackage   When I searched for the solution, it suggested to open the package manager folder in MiKTeX. However, I could not find any folder in the main MiKTeX folder.  I have tried re-installing MiKTex and TeXstudio, but the problem still persists.  I really hope that you can help me and explain in a simple way the mistakes I am doing.  Thank you!


Show that the equation, $x^3+10x^2-100x+1729=0$ has at least one complex root $z$ such that $|z|>12.$


Number of ways to select $k$ books from a shelf with $n$ books so that no two adjacent books are selected

There are $n$ books in a line on a shelf and we want to choose $k$ of them in such a way that no two adjacent books are selected. Denote this number by ${n \brack k}$.  Show that ${n \brack k}=\binom{n-k+1}{k}$ for $n \geq 1$ whenever $0 \leq k <\frac{n}{2}+1$.  I want to show this by forming a bijection from the set of selections of $k$ books to the set of compositions of $n-k+2$ of length $k+1$. The reason being that I know that this number is $\binom{n+k-1}{k}$.  Say the books are labeled $b_1, \ldots, b_n$. Whenever I select the $k$ books, say $b_{j_1}, \ldots, b_{j_k}$, I know that $|j_i-j_\ell|\geq 2$ for each $i \neq \ell$. I'm just not sure how to form a composition from this.  **Recall that a composition of $n-k+2$ of length $k+1$ is a finite sequence of positive integers $(a_1, \ldots, a_{k+1})$ such that $\sum_{i=1}^k a_i=n-k+2$.


I am using Ubuntu since August 2010. Now, I am using Ubuntu 14.04 with gnome-shell 3.12.1. I was trying to find shortcut for toggling language but it couldn't work and my grave accent key (`) is also disabled. Now, whenever I am pressing this key on my keyboard, it works as Esc key. Can some-one tell me how can I configure it? Can some-one tell me how can I define a key-board shortcut key for input languages-toggling.  When I am pressing command "xev -event keyboard" then it opens a small window and in that if I press grave key (`)  then the output is as:  KeyPress event, serial 28, synthetic NO, window 0x4000001,     root 0x2bb, subw 0x0, time 2422193, (366,566), root:(368,710),     state 0x0, keycode 49 (keysym 0xff1b, Escape), same_screen YES,     XKeysymToKeycode returns keycode: 9     XLookupString gives 1 bytes: (1b) ""     XmbLookupString gives 1 bytes: (1b) ""     XFilterEvent returns: False  KeyRelease event, serial 28, synthetic NO, window 0x4000001,     root 0x2bb, subw 0x0, time 2422339, (366,566), root:(368,710),     state 0x0, keycode 49 (keysym 0xff1b, Escape), same_screen YES,     XKeysymToKeycode returns keycode: 9     XLookupString gives 1 bytes: (1b) ""     XFilterEvent returns: False


Skipping Login activity on second time app opening

I am working on an app where user is redirected to a navigation drawer activity depending on his login type. There are total 3 login types. Now, my problem is when i fetch login type from shared preference and try to redirect user to his drawer on second time app opening, it does not skip the login screen. I shows the preference data in toast as is, but does not skip the login activity.   Can any one help?  final SessionManagement session = new SessionManagement(getApplicationContext());         Toast.makeText(getApplicationContext(), "User Login Status: " + session.isLoggedIn(), Toast.LENGTH_SHORT).show();      session.checkLogin();   and this is my isLoggedin function    public boolean isLoggedIn(){     return pref.getBoolean(IS_LOGIN, false); }   this is checkLogin function      public void checkLogin(){     // Check login status     if(!this.isLoggedIn()){         // user is not logged in redirect him to Login Activity         Intent i = new Intent(_context, MembersArea.class);         // Closing all the Activities         i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);          // Add new Flag to start new Activity         i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);          // Staring Login Activity         _context.startActivity(i);     }  }   this all sits in SessionManagement class  I also have this function redirectAuto    public void redirectAuto(String userType){     // Check login status     if(this.isLoggedIn()){          if(userType == "type1"){             Intent intent = new Intent(_context, Type1.class);             _context.startActivity(intent);         }else if(userType == "type2"){             Intent intent = new Intent(_context, Type2.class);             _context.startActivity(intent);         }else if(userType == "type3"){             Intent intent = new Intent(_context, Type3.class);              _context.startActivity(intent);         }else{             Toast.makeText(_context, "Please login", Toast.LENGTH_SHORT).show();         }      }  }   but when i call this if isLoggedIn is false, it does not go any where... Just stays at Login screen


How to verify my current user has admin rights or not?

I'am running win XP sp2. How to check that whether I have admin rights or not?  I can't check the system properties. I don't have that much items in the configuration panel. It seems I don't have admin rights, but how to check that formally ? Is there any command line tools for that?


How to create an element with javascript and then access its id on click?

I am creating new  inside a

 with jQuery like this:  $("#boxclass").append("");   But I cant access the newly created spans on click.  $( "#test" ).click(function() {      alert("Clicked on appended span");  });   How can i solve this?  Thank you.


Matlab doesn't launch, keeps asking for activation

I have just installed Matlab R2011a on Ubuntu 12.04 using a standalone licence. The installation appears to have worked properly, and I have run the following to get rid of an error that everyone (including myself) seemed to be having:  sudo ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6   This got rid of the error, but I still have a problem launching Matlab. Each time I launch it (by typing "matlab" in terminal), the Mathworks software activation window pops up. I provide the path to the licence file, it appears to activate successfully (no errors), but then Matlab doesn't launch. If I try to run it again, the same thing happens.  Does anyone know what might be going wrong? My last install was 10.04, and I had absolutely no problems running 2011a.


I am working on a project of converting any real number into binary using IEEE 754 format. My first trial is using the bitset library type for conversion of the number  then i can worry about dividing the whole number into sign bit, exponent and mantissa.    int foo; cin >> foo;  bitset<32> my_bit(foo);   As it turns out, bitset will do with signed integers only. How do i include floating point numbers? Can i accomplish my task with another library type that is as fairly simple as bitset?


I have a custom tikzset with code provided by: . To be self-contained, here is the Latex I'm using directly:  \begin{tikzpicture}[auto] \tikzset{% pics/underbrace/.style args={#1,#2,#3}{% % a pic for putting an underbrace under certain columns % #1 = left column % #2 = right column index % #3 = label text code = {        \pgfextractx\colL{\pgfpointanchor{M-1-#1}{south}}  % x-coords of columns        \pgfextractx\colR{\pgfpointanchor{M-1-#2}{south}}        % draw the delimiter with the correct width        \node[rectangle, below delimiter={\}}, minimum width=\dimexpr\colR-\colL-1pt]               at ($ (M-1-#1)!0.5!(M-1-#2) $){};        % the label        \node at ($ (M-1-#1.south)!0.5!(M-1-#2.south) $)[below=1mm]{$\scriptstyle #3$};        }     },  } \matrix (M)[matrix of math nodes,row sep=1cm,column sep=1mm]{   x! & 2x! & 3x! & \ldots & (n-x-1)x! & (n-x)x! & (x+1)!\\  };  \pic{underbrace={1,2,2}};  \pic{underbrace={2,3,3/2}};  \pic{underbrace={5,6,\tfrac{n-x}{n-x-1}}};  \pic{underbrace={6,7,\tfrac{x+1}{n-x}}}; \end{tikzpicture}   It works nicely to produce a pdf locally, but the tikzset is causing my tex to not be accepted by arXiv. The relevant error message is as follows:  ! Undefined control sequence. l.879 \pic {underbrace={1,2,2}}; ?  ! Emergency stop. l.879 \pic {underbrace={1,2,2}}; ! ==> Fatal error occurred, no output PDF file produced!   I'm assuming this is an issue with arXiv using an older version of Latex. Does anyone know a workaround?


How to implement a follow author (or user) function?

Is it possible to implement a Follow button for authors of posts in Drupal 7, so that users can:   Follow any one they wish, and Be notified about the new posts of those authors.   This sounds like 'Mashable Follow button' for authors.  Do you have any suggestions about how to implement this?


Can I get a list of the senders of all of the messages in my inbox?

I have 5000 mail messages in my Gmail inbox, and every message has an email address in it.   I need those addresses in one place, so, is there any way of doing that automatically or do I need to do it one by one?


If $H$ is a subgroup of a group $G$ and $K$ is a normal subgroup of $G$ then show that $K$ is a normal subgroup of $HK$.   Note $K$ is a normal subgroup of $HK$.  I thought I could just prove $K$ is a subset of $HK$ and vice versa so as to prove it is a normal subgroup but then how to do this I have no idea because I keep getting $hk$ element again while trying to do so.  I just tried to implement the steps to find $HK$ is a subgroup of $G$.


How to write a YAML file with a Blender Python script

I need to write a script that runs on Blender (2.72) and writes a YAML file containing the results. In normal python I would use PyYAML and write something like:  import yaml yaml.dump(['some', 'data']) ....   It seems that Blender uses a different python interpreter than the one installed on my system (Ubuntu), thus, a different set of extensions. I tried copying the PyYAML installation files to the Blender script directory blender/2.72/scripts/modules. That way, I can import the library, but I get errors because the library has its own dependencies (I want to avoid having to install every sub-dependency manually).  How can I get a Python extension installed and working in Blender?  Is there an alternative method to write YAML files in Blender (using python)?  Note: I will distribute the blender file containing the python script to other users, so it would be nice to have an easy-setup method!


Norm of element $\alpha$ equal to absolute norm of principal ideal $(\alpha)$

Let $K$ be a number field, $A$ its ring of integers, $N_{K / \mathbf{Q}}$ the usual field norm, and $N$ the absolute norm of the ideals in $A$.  In some textbooks on algebraic number theory I have seen the fact: $\vert N_{K / \mathbf{Q}}(\alpha) \vert = N(\alpha A)$ for any $\alpha \in A$. However, I wasn't able to find a proof (neither in books nor by myself).   Can someone explain to me, why this is true?   Thanks!


Would inferring tags from a question's title and body and filling them automatically into the tag field (or at least suggesting them separately as a hint list or something) be worthwhile?  Note that I'm not referring to the tag auto-complete that goes on already, mind you.  Edit: The way I see it, it's the people who struggle defining their problems who probably need the most help with getting them solved. That's what I'm implying with this question, just so you know.


Black contour artifacts when using OpenEXR renders with bloom and transparency background in VSE

I try to render some shapes with EEVEE bloom effect and transparent background. I understood that the rendered file output had to be OpenEXR instead of PNG format in order to keep the effect and the transparency. Nevertheless, when opening the OpenEXR files into the VSE, and adding a background clip, there are always some black contour artifacts around the rendered shapes. How could I get rid of that and have it done properly from the beginning ? Blender version used is 2.90. Note : I tried to tick the use alpha box in the compositor. It works better but the colors are changed.


I have a scene set up with several layers. Everything is lit correctly and, when I change the shading mode to rendered, everything's just great. The moment I actually render the image though, only one layer shows up. Is there a control panel for setting the layers to render?


Edit: This post was marked as duplicate, I disagree that it is. My problem I suspect is not that a PPT is missing, the problem as I first stated is that a new PPT is missing each time I run the command. So the 1st time (7) isn't found, but the 2nd time (7) IS found but (5) isn't. 3rd time (4) isn't found but (7) and (5) are and so on.  Original: I'm trying to run the following command:  sudo apt update   And my output yields:  sebastian@sebastian-Lenovo-ideapad-S130-14IGM:~$ sudo apt update Hit:1 http://se.archive.ubuntu.com/ubuntu eoan InRelease Hit:2 http://se.archive.ubuntu.com/ubuntu eoan-updates InRelease                Ign:3 http://ppa.launchpad.net/gencfsm/ppa/ubuntu eoan InRelease                Hit:4 http://se.archive.ubuntu.com/ubuntu eoan-backports InRelease              Get:5 http://security.ubuntu.com/ubuntu eoan-security InRelease [97,5 kB]       Hit:6 http://archive.ubuntu.com/ubuntu eoan InRelease                           Err:7 http://ppa.launchpad.net/gencfsm/ppa/ubuntu eoan Release                    404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                              E: The repository 'http://ppa.launchpad.net/gencfsm/ppa/ubuntu eoan Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. sebastian@sebastian-Lenovo-ideapad-S130-14IGM:~$    I looked at some similar posts and they mentioned a faulty or somehow incorrect proxy. I am not using a proxy. And the stranger thing is that the package that keeps failing is different everytime I run the command, and it's always only one package that fails.   Any ideas?


Adjust the camera view actually separate all my objects

I would like to adjust the camera view, so I press the CtrkAlt0 to switch to the camera view window, then I try to adjust the camera window.    Then, I press the G key, and try to move the view window up or down, but finally, I see that all the objects were moved, not the camera view itself:    What causes this behavior?  BTW: I have just tried a very simple blender file (which only contains the default Cube, and I can correctly move the camera view), so are there some settings wrong in my first case? Thanks.  Edit:


Touching is a Pauli exclusion principle or electrostatic force?

According to quantum field theory touching is an electrostatic repulsion between electrons or the Pauli exclusion principle? How can physicists distinguish these two phenomena if they give the same effect?


Why does a bullet shot from a gun take so long to fall?

If you just drop a standard lead bullet, it falls in like 1 second. If you shoot it from a gun, why does it take so long to fall down? Doesn't gravity pull on it the same speed?


I wrote my own java program, but I don't know how to distribute it. After making 'Clean and Build' (from Netbeans) a .jar file is created for me. Do I have to distribute that or do some procedure to create an .exe file?


If the measure of union = sum of outer measures, then the sets are measurable

I am trying to show that for $A$, $B \; \subset \mathbb{R}$ $A \cup B$ is Lebesgue measurable such that \begin{align} \infty > \mu(A \cup B) = \mu^{*}(A) + \mu^{*}(B), \end{align} Then $A$ and $B$ are Lebesgue measurable.  Thus far, I have tried reversing the directions in the proof of Caratheodory.  I seem to want to do the following:  If $A \cup B$ is Lebesgue measurable, then, for any $E \subset \mathbb{R}$, \begin{align} \mu^{*}(E) \geq \mu^{*}(E \cap (A \cup B)) + \mu^{*}(E \cap (A \cup B)^{c}). \end{align}  I want to use this and work backwards from here adding and subtracting sets to get  \begin{align} \mu^{*}(E) \geq \mu^{*}(E \cap A) + \mu^{*}(E \cap A^{c}). \end{align} yet I am having trouble.


Using Regex, I'm trying to get data from html code, but I don't know how build it, without using any html tags. I have some string (item-desc), and count of symbols after this string, which must be my data. Something like: in item-desc12345abcde, I'm using regex with value of 6 symbols, and i got 12345a. This expression give me only 1 symbol after my string:    Regex itemInfoFilter = new Regex(@"item-desc\s*(.+?)\s*>", RegexOptions.Compiled | RegexOptions.IgnoreCase);


How can install developer tools on Ubuntu 18.04 LTS?

I am an absolute beginner in Ubuntu and I am  trying to install developer tools. Can someone guide me I have tried the following:


How to input multiple categorical variables to Neural Network

Question 1.  How to input multiple variables (features) x1, x2, x3...x10 which are in categorical in nature to neural network. Basically I want to know how will I prepare my input layer to neural network. Below is the sample example of my data set.   x1,  x2,        x10    Y A,  Red         A10    1 B,  Blue        A20    2 C,  Green       A30    3   I have googled on this, some say use one-hot encoding. But I am not sure how will I apply one hot encoding technique to all the feature I have and how the input matrix structure will be.    If I have only one feature say x1. I understand I can apply one-hot encoding.   A:  1 0 0  B:  0 1 0 C:  0 0 1   And this 3x3 matrix can be used as input layer to Neural network.   [3x3] -> [Neural Network] -> [out]    But I have multiple feature here x1, x2 ... x10.  How will I frame my input layer, what will the input layer structure. Please advise.    Question 2   Also, variable x2, x10 might get new categorical value which is not seen in training set (for eg. X10 = Z99 ) how to handle this problem.


How to detect whether two files are identical in Python

Is making system call to "md5sum file1" and "md5sum file2" and compare two return values enough in this case?


How to change the caption of the \listoffigures command?  \listoffigures[list of pictures] #something like that doesn't work


Variable not defined when function is nested Python

I am a history student who was challenged to make this program so please assume I have little knowledge of coding.  I thought my program was approaching completion but am getting an error that the variables inside the roll function are not defined. However, when I run the roll function on its own there is no problem. I'm sure this is a simple mistake but, would like to know how to correct it, and why. (learning things is cool)  import random  def roll():     die1 = random.randint(1, 6)     die2 = random.randint(1, 6)               r =  die1 + die2 return r  def Turn():     pScore = 0     cScore = 0     turn = True     while turn == True:         pChoice = str(input("Would you like to roll? Type yes or no."))         if pChoice == "yes":             roll()             if r == 2:                 turn = False                 pScore = 0                 print("You have rolled snake eyes. Your turn is over and         your score is 0.")             elif die1 == 1 or die2 == 1:                 turn = False                 pScore += r                 print("You rolled {}, {} and your score is {}. your turn is     over".format(die1, die2, pScore))             else :                 turn = True                 pScore += r             print("You rolled {}, {} and your score is {}".format(die1, die2, pScore))         if pChoice == "no":             turn = False             print("You have chosen not to roll. Your score is {}.".format(pScore))      while turn == False:         roll()         if r == 2:             turn = True             cScore = 0             print("The computer has rolled snake eyes. It's turn is over")         elif die1 == 1 or die2 == 1:             turn = true             print("The computer {}, {} and its score is {}. Its turn is over".format(die1, die2, cScore))         else:             turn = False             pScore =+ r             print("The computer {}, {} and its score is {}.".format(die1, die2, cScore))  def main():     pScore = 0     cScore = 0     while pScore <100 and cScore <100:         Turn()     if pScore >= 100:         print("Your score is {} you win!".format(pScore))             return     elif cScore >= 100:         print("The computer score is {} you lose!".format(cScore))         return main()


Travel within EU Schengen area with lost residence permit card abroad

A friend in Prague just contacted me asking the possibility of traveling back to Italy. He is Pakistani passport holder and lives in Italy on student residence permit. He was traveling in Prague where somebody has stolen his documents and credit cards and also the residence permit. He has already filed a theft report of residence permit and other documents with local police in Prague.  Now, he wants to travel back to Italy. He has a flight back to Italy tomorrow booked with Czech airlines. So, what do you guys suggest about traveling within Schengen area with lost residence permit?


I'm making figures to illustrate some details about how meshes work. I'd like to render my scene normally, but overlay all of my meshes in wire mode.  The only solution I've found which works is giving a duplicate mesh a wireframe material, which gives me something like this:    Is there some way I could get the same effect without having to duplicate my mesh?


I know that * supposed to be interpreted by the shell not by the command being invoked  Now if I run the following command in my home directory  $echo *   I get   Desktop Documents Pictures Downloads  ...etc   But if I ran the command in an empty directory I get  *   as output  Why is that? why echo print * while * is not escaped and only interpreted by the shell  Shouldn't the output be blank line?


Add Virtualbox Shortcut in Unity Launcher to boot to a VM

Can I create a shortcut to a virtualbox OS in the unity sidebar without it being on the desktop too.  I tried to right click in virtualbox and create shortcut on desktop then move it. but if i do it then delete the desktop shortcut it renders the unity shortcut useless.  Any ideas?


How to calculate this integral $\int_{-\pi}^\pi \cos(rx) \cos(kx)dx$

How should I calculate this integral? $$\int_{-\pi}^\pi \cos(rx) \cos(kx)dx$$  [My attempt] $$\int_{-\pi}^\pi \cos(rx) \cos(kx)dx=2\int_0^\pi \frac{1}{2}\cos(r+k)x +\cos(r-k)xdx \\=[\frac{1}{r+k}\sin(r+k)x+\frac{1}{r-k}sin(r-k)x]_0^\pi \\ =\frac{1}{r+k}\sin(r+k)\pi+\frac{1}{r-k}\sin(r-k)\pi$$ I have calculated so far, but I do not know the steps ahead. What should I do?


Show that if $(x_n)$ is a convergent sequence then the sequence given by the averages $$y_n = \frac{x_1 + x_2 + \cdots + x_n}{n}$$ also converges to the same limit.  Attempt at Proof.   Since $(x_n)$ converges we can say that for all $m$, such that $m \ge N \Rightarrow |x_n - L|\lt \epsilon$.   Base Case. Let n=1 and we have for all m such that  $m \ge N_0 \Rightarrow |x_1 - L|\lt \epsilon$ and also for $m \ge N_1 \Rightarrow |x_{n+1} - L|\lt \epsilon$.  Induction Hypothesis. Assume that for an appropriate choice of $N_2$ we have for all m, $m \ge N_2 \Rightarrow |y_{n} - L|\lt \epsilon$.   Choose $max\{N_1,N_2\}$ such that for all $m \ge max\{N_1,N_2\}$ implies $$|\frac{x_1 + x_2 + \cdots + x_n}{n}- L|+ |x_{n+1} - L|\lt 2\epsilon$$  $$= |\frac{x_1 + x_2 + \cdots + x_n+ n x_{n+1}}{n}-2L |\lt 2\epsilon$$  $$= |\frac{x_1 + x_2 + \cdots + x_n+ n x_{n+1}}{n+1}-L |\le |\frac{x_1 + x_2 + \cdots + x_n+ n x_{n+1}}{2n}-L |\lt \epsilon$$ and $$|\frac{x_1 + x_2 + \cdots + x_n+  x_{n+1}}{n+1}-L |\lt|\frac{x_1 + x_2 + \cdots + x_n+ n x_{n+1}}{n+1}-L|  \lt \epsilon.$$  Is this approach correct? If not, can you please provide the correct proof. I feel as though I made a mistake in the calculations. Thanks in advance.


How to get the hour, not the time/minutes/date, value in a batch file

I need the value of the hour and the minute value separately. I need them for some calculations. I don't need this: echo %date% Output: Days/Months/Years; echo %time% Output Hours/Minutes/Seconds; I need: x Output: Hours; y Output: Minutes;


Transformerless power Supply - 24VDC, 120V AC and 230V AC

I want to know if it is possible to design a power supply for a circuit that can operate from DC and AC using the same input terminals.   Thus, the output should be xxV DC (5-24 or whatever is decided on), and on the input side the consumer can connect whatever he has available - 120V AC, 230V AC or 24V DC.  A transformerless AC to DC power supply can work for at least the AC side, but the ideal one looks to be the capacitive type which would not allow DC to get through, am I correct?  There is also an resitive transformerless design, not ideal at all since it is very ineffecient.     Any ideas? Thanks!