I find pretty irritating dealing with Telegram under Ubuntu. I run 18.04.1, I guess I picked the official Telegram client from Ubuntu Software... for a start, there a two clients in there. One from the Ubuntu store does not auto-update and the other does not recognize your theme/icon set/shell (see screenshot)...    Then you have as well the tar.xz on the official Telegram website that creates a double entry in the Show Applications menu and lives in your home folder for whatever reason. I believe there are also some esoteric unofficial clients you can find around.  So, it's a mess. I just want an official client who blends in well with your theme and auto updates itself to the latest version. Something normal, really. Anyone has some clues? Thanks!

I want to work on a small app that will use Telegram from within Ubuntu but wanted to first know if there was already a work in progress for this since I noticed that, for example, pidgin has support for WhatsApp. With this in mind, is there a messenger app that has support (even basic support) for Telegram from within Ubuntu.


I am trying to create a dia gram like that.   I am here till now, can someone help?  \documentclass[12pt,a4paper]{article} \usepackage{circuitikz} \usetikzlibrary{positioning} \usetikzlibrary{shapes,arrows} \tikzset{block/.style = {draw, fill=white, rectangle,               minimum height=3em, minimum width=2cm}, input/.style = {coordinate}, output/.style = {coordinate}, pinstyle/.style = {pin edge={to-,t,black}} } \begin{document} \begin{tikzpicture}[auto, node distance=2cm,>=latex'] \node[block](tx){Radio\\transmitter}; \node[antenna] at (tx.east) {}; \node[block,right = 5cm of tx](rx){receiver}; \node[antenna,xscale=-1] at (rx.west) {}; \end{tikzpicture} \end{document}

Is there any tikz library with built in shapes like antennas (simple Y shaped), wireless channel (a cloud essentially), filters etc? In particular I'm looking to draw similar diagrams to:  (the first figure). I guess most of the blocks can be rendered using rectangles but would be nice to have some built in shapes as well.


For all nonnegative real numbers $x,y$ and $z$, prove that $$\frac{(x+y+z)^2}{3} \geq x\sqrt{yz}+y\sqrt{xz}+z\sqrt{xy}.$$   It seems like AM-GM works here. We have $\dfrac{(x+y+z)^2}{3} \geq \dfrac{(2\sqrt{xy}+z)(2\sqrt{xz}+y)(2\sqrt{xy}+z)}{3}$. Then I get stuck and don't know what to do next.

Let $a,b,c$ be non-negative  real numbers , then is it true that   $\dfrac{(a+b+c)^2}{3}\ge a\sqrt{bc}+b\sqrt{ca}+c\sqrt{ab}$ ?


I would like to know why it is impossible to have a two level laser ?  Indeed if I write the equations (I neglect here the spontaneous emission), I have :  $\frac{dN_2}{dt}=W(\omega).B.(N1-N2)$ and $\frac{dN_2}{dt}=-W(\omega).B.(N1-N2)$  Where $W(\omega)$ is my energy density and B my einstein coefficient.  If i add a pump I have this :  $\frac{dN_2}{dt}=W(\omega).B.(N1-N2)+W_p$ and $\frac{dN_2}{dt}=-W(\omega).B.(N1-N2)-W_p$  If $W_p$ is high enough I can have $N_2>N_1$.  So why do we say that the inversion is not possible ?  Thank you !

What exactly is the difference between 2-Level, 3-Level and 4-Level systems? Why can we not achieve stimulated emission in a two-level system using optical pumping?


A picture says it all.  The box moves horizontally depending on where the cursor moves to while entering text in the box.  I am using Firefox 31.0 on Fedora 20 / KDE.

I was attempting to create a bounty for a question over on Stack Overflow and ran into a rendering glitch on the last page. After entering a sentence that exceeds the length of a single line, the popup contents scroll slightly to the right and strange characters start showing up:    There is no '(' in my sentence so it's strange that it's showing up in the textarea. When you move the cursor it around the line edge, the textarea scrolls from right to left and back.  Here's what I've got:   Ubuntu 12.10 64-bit Firefox 18.0.2   This is also occurring on Firefox 24.0 on Windows 7 Enterprise Service Pack 1.    The data entry starts out fine:    Then it goes all wacky as I complete the second line:


I'd like to have something like this - when I type "go", it would cd to a directory, fire "pwd" and "ls -a".  ~ $ pwd /home/ondra ~ $ go sketchbook  /home/ondra/sketchbook .  ..  libraries  ~ $ pwd /home/ondra/sketchbook ~ $    First I tried with alias, it didn't work, now I have this, but it doesn't work either:  #!/bin/bash  cd $1 pwd ls -a   It properly prints the info for the target directory, but does not change to it.  Looks like it works only within the script. Any way to do this?

I'm trying to write a small script to change the current directory to my project directory:  #!/bin/bash cd /home/tree/projects/java   I saved this file as proj, added execute permission with chmod, and copied it to /usr/bin. When I call it by: proj, it does nothing. What am I doing wrong?


I'm, Syrian Citizen, travelling from Dubai to Turks and Caicos. The plane transit by NY JFK, do I need transit Visa.

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


Like say, you use the rogue's cunning action to disengage, then you ready your action to shoot at the enemy when an ally gets within 5 feet of them.  Would this work?

Suppose that, on your turn, you ready an action to hit the enemy in front of you if he tries to hit your friend.  What else can you do in the turn you ready the action?   (I'm asking about the turn during which you decide to ready the action "hit the enemy" - not about extra things to do as part of the readied action itself, e.g. "hit the enemy and then move away".)  Can you, for example, move close to an enemy and then ready the attack if he hits your friend?  Can you move closer to an enemy, hit him with your offhand weapon (bonus action) or use some other abilities (Second Wind for fighters) and then ready the action to attack if he hits your friend?


Let $a, b, c$ be distinct integers, and let $P$ be a polynomial with integer coefficients. Show that it is impossible that $P(a)=b$, $P(b)=c$, and $P(c)=a$ at the same time.

Let $a,b,c$ be $3$ distinct integers, and let $P$ be a polynomial with integer coefficients.Show that in this case the conditions $$P(a)=b,P(b)=c,P(c)=a$$ cannot be satisfied simultaneously.  Any hint would be appreciated.


Here's what I remember:    Takes place in the future on a giant, bigger-than-a-planet spaceship found and now run by humans Humans are genetically altered and/or are enhanced with nanotechnology and have essentially become immortal and can be healed from almost any wound The surface of the ship is inhabited by former humans who have mutated into a new species, and live their entire lives in a kind of space suit The plot involves the discovery of a small planet within the ship that the protagonist is stranded on along with many others, and they form a civilization and live there for centuries   Anyone know the name of this book?  I can never remember it.

Trying to remember title (and even most content!) of following story:  Something along the lines of a gigantic abandoned spaceship drifting through the galaxy for over a galactic turn, humans had colonised it and run it, and trade passage on the spaceship with other races in return for technology/goods. Think the main plot was over an attempted take over of the ship by another race.  Apologies for vagueness.


Which words could I use for (1) and (2) below:     two => both   three => (1)?   four => (2)?   To use them in phrases like these:     both A and B   (1) A, B and C   (2) A, B, C and D   Please give single words if possible.

What would be the correct word to use when referring to three or more items, in the same manner as the word both?  For example, using two words, with the word both:     "There are several recommendations I   have to further improve the sites —   both to improve their profit, and   decrease their cost."   Using three words, with a blank space in place of the correct word:     "There are several recommendations I   have to further improve the sites —   _ to improve their profit, decrease their cost and improve their   usability."   So, what would be the correct word to use in place of the __?


How would I refer to myself in a research paper? I know the use of 'I' is out of the question, so would it be 'this researcher'?

Which personal pronoun is appropriate in single-author papers - 'I' or 'we'? Could the use of 'I' be considered egotistical? Or will the use of 'we' be considered to be grammatically incorrect?


I'm following a proof in Jech's book that every well ordered set is isomorphic to a unique ordinal and hitting a point where I'm not sure why a certain move is justified. He writes      Proof. The uniqueness follows from Lemma 2.7. Given a well-ordered set $W$,    we find an isomorphic ordinal as follows: Define $F(x) = \alpha$ if $\alpha$ is isomorphic    to the initial segment of $W$ given by $x$. If such an $\alpha$ exists, then it is unique.    By the Replacement Axioms, $ F(W) $ is a set. For each $x \in W$, such an $\alpha$ exists (otherwise consider the least $x$ for which such an $\alpha$ does not exist). If $\gamma$ is the least $\gamma \not\in F(W)$ then $F(W) =\gamma$ and we have an isomorphism of $W$ onto $\gamma$.   I've filled in all the details of this proof for myself up to the point where he assumes the class of ordinals not in the image of the function has a least element. Since this isn't a set, I'm not sure what can justify this. I could try to prove that every nonempty class of ordinals has a least element but that seems so substantial that it's hard to imagine it was a detail intentionally omitted. Am I missing something simple?

I am trying to solve this exercise from Jech's book on set theory:  Ex. 3.6: There is a well ordering of the class of all finite sequences of ordinals such that for each $\alpha$, the set of all finite sequences in $\omega_{\alpha}$ is an initial segment and its order-type is $\omega_{\alpha}$. Definition: If $W$ is a well ordered set and $u \in W$, then the set $\{ x \in W \mid  x < u \}$ is an initial segment in W  Any help?


I have a material that generates a height map and applies it to the displacement. Now I want to make another object, with another material, but I want to use that height data from the first object, in this objects material shader. Is that possible?

Is it possible in cycles to use setup a material node to take the output from another material as input into a mix shader?  This way if I change the configuration in the other material it updates both materials?  Or do I need to do this another way?  I'm surprised nobody has asked this already and can't find anything online so maybe it's not possible.


This weekend I attempted to install a breaker box into a pre-wired garage.  The previous owners took the breaker box with them when they moved, and since I have installed quite a few subpanels, it seemed like an easy job to replace it.  The subpanels I have installed have always used 4-wire connections, so I was surprised to find that only three wires had been run underground through the conduit, and the ground was attached to a separate rod at the garage.    Reading up on the permits for the house and some NEC info lead me to believe that this was a pre-2005 installation, at which point 3-wire was still allowed to connect a sub to a main in a detached structure.   My question is this:  What is the correct setup for neutral and ground in the sub panel?  Should they be bonded, and do I need to attach a ground to the buried rod at the garage as well?    Specifically, I need to know if this image shows a correct setup before I proceed.  This question has been touched upon in other posts, but not adequately answered:   (source: )

Can I use a 3 wire connection (2 hots and 1 grounded neutral) to install a sub panel in a separate structure if I install a separate ground rod to the grounding bus in sub panel?   I have 8/3 w/o ground running from the main panel for an existing 240 connection in a separate shed. I plan on replacing the existing 30 amp double breaker in the main panel with a 50 amp double breaker and I want install a sub panel that would allow me to have a 240 and a 120 outlet running off a 30 amp double breaker and a 20 amp breaker in the sub panel.    If possible and appropriate, I would like to use the existing 3 wire connection (8/3 w/o ground) to make the connection from the main to the a sub panel using the grounded neutral wire to connect to the neutral bus.  I would install a grounding rod and connect the grounding rod to a separate grounding bus in the sub panel.  I anticipate keeping the neutral bus and the grounding bus separate in the sub panel and do not anticipate bonding these two buses.    Will this work or do I need to replace the 3 wire connection (8/3 w/o ground) with a 4 wire connection (8/3 w/ground)?


I have downloaded data for india as a dbf file then converted it using osm2po to make it routable but the problem is when i make any routing query it takes a lot of time around 300 seconds and these results are after indexing source, target and id columns. So anyone can please tell how to enhance speed of pgrouting algorithm, or which algorithm should be used, time under 5 seconds would be OK for me, thanks in advance

I loaded the German OSM dataset into the pgrouting DB by using osm2po 4.7.7. Everything works fine i have osm2po set up via it's config and it's working like a charm through it's Java part.  I had the *_2po_4pgr table imported without any problems. Even the *2po_v table gets imported, though I don't completely understand the relation of this table.  I executed the pgr_createTopology function which ran for quite a while (12000secs) while calculating all 6m edges. I thought this would do the deal, but still it's unbearably slow.  I would like to know if i forgot something. I was thinking of using pgRouting instead of the java library but at the moment its performance-wise just out of comparison.


i am finding range of this function  $$y=\frac{e^\frac{x^3}{3}}{x^3}$$  As a first step i tried find inverse function, but i cannot find it. Please can you help me with it?

i am finding a inverse function to $$y=\frac{e^\frac{x^3}{3}}{x^3}$$ First step: $$x=\frac{e^\frac{y^3}{3}}{y^3}$$ Next: ... $$(xy^3)^3 = e^{{y}^3}$$  and now in this step i have no idea how can i express "y"   $$\ln(x)+3\ln(y) = y$$


I'm trying to find an anime I watched in 2005/2006. It was a short one (probably around 12-13 episodes) and I remember only one character - a dark haired guy (his name started with Y, but I'm not sure) whose biggest dream was to have never been born. The point was that he didn't want to commit suicide, but simply never have existed in the first place.  All I remember from the storyline is that there was another guy who fought to make the dark haired guy's dream come true. In the end, he succeeds and the other one disappears/vanishes - as if he was never been born. It wasn't a yaoi or shounen-ai, but it did have a certain atmosphere of a shounen-ai.  Truth be told it was a really sad story, but I can't stop thinking about it and as it wasn't popular I can't find its title. Unfortunately, that's all I remember.  Does anyone of you maybe recognise this anime? Thank you in advance!

I'm trying to find an anime I watched in 2005/2006. It was a short one (probably around 12-13 episodes) and I remember only one character - a dark haired guy (his name started with Y, but I'm not sure) whose biggest dream was to never been born. The point was that he didn't want to commit suicide, but simply never exist in the first place.   All I remember from the story line is that their was another guy who fought to make the dark haired guy's dream come true. In the end, he succeeds and the other one disappears/vanishes - as he has never been born.  Truth be told it was a really sad story, but I can't stop thinking about it and as it wasn't popular I can't find its title. Unfortunately, that's all I remember.  If anyone of you maybe recognise this anime? Thank you in advance!


I'm new to cryptography, and I was making an experiment a few minutes ago, but I want to have some deeper knowledge about RSA public and private keys.  I have a set of keys  One begins with   -----BEGIN RSA PRIVATE KEY----- MIIBOgIBAAJBAOlnH1jZ2YLfWuYMop1a4N9jsUPK...... -----END RSA PRIVATE KEY-----   and another with  -----BEGIN PUBLIC KEY----- MFowDQYJKoZIhvcNAQEBBQADSQA.... -----END PUBLIC KEY-----   I've parsed them using Java and I can make use of them, as RSA private and public keys respectively.  But the question I have is....   Are there some checksum mechanisms built into RSA keys ?   I ask this because, I'd like to know what happens if, by error or intentional, one or more characters from the encoded PEM are modified. Does this breaks the key ? Or changes the key internally, without breaking it ?

I (for a test) just randomly altered a private RSA key by opening it up in Vim and changing a few bytes. It is the private part of an SSH key pair used for logging in on a remote system. Puzzlingly, it still allows me to login.  I did some research and found that it is a base64 encoded ASN.1 container, so I pulled all the relevant integers out with OpenSSL and it seems only $d$, the private exponent, has changed (and only slightly at that). Is it possible the additional cached values are therefore being used to decrypt the value sent from the server, in order to still allow me to be logging in? The public key can (as expected) still be derived due to the other integers in the ASN.1 still being the same.  As I'm an encryption dufus I'd appreciate some guidance on how the above is possible. I've found when I modify the key in Vim by larger amounts it rejects me as expected. Thanks.


I have a stored procedure which will grab team names along with the admin users of the team, or if the team does not have an admin, replace the user with N/A. The following is the stored procedure: BEGIN     SELECT teams.name,             IFNULL(users.email,'N/A') as email,             IFNULL(users.name,'N/A') as user_name,             IFNULL(team_user.role,'N/A') as role     FROM teams         LEFT JOIN team_user ON teams.id=team_user.team_id         LEFT JOIN users ON team_user.user_id=users.id     WHERE role is NULL     OR role='admin'; END  I would like to display the result of the stored procedure in a table. The following is an example of the table that it displays:     Team Name User Name     Team1 AdminUser1ForTeam1   Team1 AdminUser2ForTeam1   Team 2 AdminUser1ForTeam1   Team3 AdminUser1ForTeam3   Team3 AdminUser2ForTeam3     The problem with this table is that if a team has more than 1 admin, the team name will be repeated in two separate rows. The following is the result I want to achieve:     Team Name User Name     Team1 AdminUser1ForTeam1, AdminUser2ForTeam1   Team 2 AdminUser1ForTeam1   Team3 AdminUser1ForTeam3, AdminUser2ForTeam3     Here is the html/php code to draw the table

         @foreach($tester as $test)
             {{$test->name}}	             {{$test->user_name}}	             {{$test->email}}
         @endforeach

      With $tester being the variable returned from the stored procedure. Any ideas on how I can achieve the second table, any help is greatly appreciated!

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I need to  an object to . I'm using . Is there a "standard" way to do this?  My specific situation: I have an array defined as shown below:  var countries = new Array(); countries[0] = 'ga'; countries[1] = 'cd'; ...   and I need to turn this into a string to pass to  like this:  $.ajax({     type: "POST",     url: "Concessions.aspx/GetConcessions",     data: "{'countries':['ga','cd']}", ...

How can I serialize an object to JSON in JavaScript?


My dad has a PS3, he has not played any games on it with the actual controllers.   When the controller is connected to the usb charger it works perfectly, but when I unplug the remote from the sub which is still in the PS3 the controller's red lights blink then turn off.   I have charged it for 2 almost 3 hours it should work. Why doesn't it?

It has been some months since I've turned on my Playstation 3. Today, when I turned it on with my controllers, it didn't work. I thought "Hey, the battery surely ran out", so I tried to charge them but they don't seem to be charging at all. Could it be that they're officially weight papers by now?


What is the difference between, say, an aeroplane's pilot and an aeroplane pilot?  Are both interchangeable or synonyms? It seems unclear and ambiguous

Sometimes it’s possible to use either a noun adjunct or the possessive case.     the shop door   the shop’s door   However, in certain phrases it’s not OK to do so.     the ship’s crew (the ship crew is wrong)   The questions are:   How can one find out what to use in such cases as “the shop(’s) door” when a noun adjunct option and the possessive case option are available?  How can one know which option is wrong in order to avoid the construction “ship crew”? Is there a difference in meaning between (a) the shop door (b) the shop’s door?


Update 1: scifi mod tells me a CM contacted me this morning, I haven't received any e-mail (I checked the spam too). Not sure if it's related. Update 2: got a reply for the latest form submitted from here, it's currently being looked into by the developer team.  Not-dupe to : I filled the merge-request form but it said they are already merged, form cannot be sent. (Drop down view.) URL's of accounts in questions: A)  B)  (now shows same user name as A, but different URL, earlier it had my G+ pic and name!) (View from B.) I have no idea how B) was created, I filled the merge-request form but it said they are already merged. Issues being faced:  Reputation changes for A don't show in the notification I can't change profile settings for A (check below screen) I have no access to settings of B, so I can't submit delete request I can't access scifi-meta from A (needs logging-in despite being logged-in) No association bonus for A/B  (Point 2. above, I tried the password reset, no effect. Right now I have only one log-in method.) Earlier: account B had a hash-code kind of name, then it changed to my G+ name and picture, I was able to change that from my main parent account by saving settings to all. I hope that makes sense. Thanks a lot. P.S. During scifi account creation, an error message appeared that said SE was notified of the error.

I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit "" in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)


When I install an OS, particularly Windows on my machine, why does it's on C drive? And where is the name B:\ ?  I know A: is the floopy drive. I even know OS can be installed on any drive other than C:.  But what's makes it special about C:\ and not any other alphabet?

In Windows you have a C-drive. Everything labeled beyond that is with the following letter.   So your second drive is D, your DVD is E and if you put in a USB stick it becomes F and the following drive G. And so on and so forth.  But then, what and where are A and B-drives?


Question: If $n$ is any positive integer I write $F_0=0, F_1=1$ and $F_n=F_{n-1}+F_{n-2}$. The numbers $F_n$ are called the Fibonacci numbers. Let $a_n=(-1)^{\gcd(n,F_n)}$. Is it true that if $a_n=1$ then $n$ is a multiple of $6$ ?   Not much motivation here just an  experimental observation I noticed. I am not sure where exactly to start since I do not know a formula for $\gcd(n,F_n)$.

The Fibonacci sequence is defined recursively by $F_1 = 1, F_2 = 1, \; \& \; F_n = F_{n−1} + F_{n−2} \; \text{ for } n ≥ 3.$ Prove that $2 \mid F_n \iff 3 \mid n.$   Proof by Strong Induction : $\bbox[5px,border:1px solid green]{\color{green}{n = 1 }}$ $2 \mid F_1$ is false. Also, $3 \mid 1$ is false. The implication [False $\iff$ False] is vacuously true.  $\bbox[5px,border:1px solid green]{\color{green}{\text{Induction Hypothesis}}}$ Assume that $2 \mid F_i \iff 3 \mid n$ for every integer $i$ with $1 ≤ i ≤ k$.  $\bbox[5px,border:1px solid green]{\color{green}{k + 1 \text{th Case}}} \;$  To prove:  $\quad 2 \mid F_{k + 1} \iff 3 \mid k + 1.$   $\bbox[5px,border:1px solid green]{\color{green}{n = k + 1 = 2}} \;$ $2 \mid F_2$ is false. Also, $3 \mid 2$ is false. So [False $\iff$ False] is vacuously true.  Hence assume that $k + 1 ≥ 3.$ We now consider three cases:  $\bbox[5px,border:1px solid green]{\color{green}{\text{Case 1: } k + 1 = 3q}}$ Thus $3 \require{cancel}\cancel{\mid} k$ and $3 \require{cancel}\cancel{\mid} (k − 1)$. By the ind hyp, $3 \require{cancel}\cancel{\mid} k    \iff F_k$ odd & $3 \require{cancel}\cancel{\mid} (k − 1) \iff F_{k - 1}$ odd. Since $F_{k+1} = F_k + F_{k−1}$, thus $F_{k+1}$ = odd + odd = even.  $\bbox[5px,border:1px solid green]{\color{green}{\text{Case 2: } k + 1 = 3q + 1}}$  Thus $3 | k$ and $3 \require{cancel}\cancel{\mid} (k − 1).$ By the ind hyp, $3 | k \iff F_k$ even & $3 \require{cancel}\cancel{\mid} (k − 1) \iff F_{k - 1}$ odd. Thus $F_{k+1}$ odd.  $\bbox[5px,border:1px solid green]{\color{green}{{\text{Case 3: }} k + 1 = 3q + 2}}$ Thus $3 \require{cancel}\cancel{\mid} k$ and $3 | (k −1).$ By the ind hyp, $3 \require{cancel}\cancel{\mid} k \iff F_k$ odd and $3 \mid (k − 1) \iff F_{k - 1}$ even. Thus $F_{k+1}$ odd. $\blacksquare$  $\Large{1.}$ Does the proof clinch the $(\Leftarrow)$ of the $(k + 1)$th case?   $\Large{2.}$ Since the recursion contains $n, n - 1, n - 2$, thus the recursion "time lag" is $3$ here. So shouldn't $3$ base cases be checked?   $\Large{3.}$ Further to #2, shouldn't "assume $k + 1 \geq \cancel{3} 4$" instead?   $\Large{4.}$ Shouldn't the $n = k + 1 = 2$ case precede the induction hypothesis?  I referenced . Source: Exercise 6.35, P152 of Mathematical Proofs, 2nd ed. by Chartrand et al    Supplement to peterwhy's Answer:  $\Large{1.1.}$ I wrongly believed that all 3 Cases proved the $\Leftarrow$. I now see that Case 1 is $\Leftarrow$ via a Direct Proof. Cases 2 and 3 are $\Rightarrow$ via a Proof by Contraposition. Nonetheless, how would one foreknow/prevision to start from $3 \mid n$  for both directions of the proof?


I am developing an ASP.NET MVC 3 application, whose content pages have a common pattern of layout elements. However, because the login page does not follow this layout, I cannot place this layout in \Views\Shared\_Layout.cshtml.  So I would like to add another shared layout, say, \Views\Shared\_Content.cshtml, and call it from the content views... but unfortunately those views belong to different controllers.  Is there any way to invoke @Html.Partial for a view belonging to a different controller?

How can I have a view render a partial (user control) from a different folder? With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to preview 5 this is not possible anymore. Instead we got the RenderPartial method, but it's not offering me the functionality I'm looking for.


I have logged in on a different computer and it works fine, however on my personal computer it shows the message above. My account is new, is it something to do with registering the device to the account? Also, I believe it could be my firewall? How should I open the correct ports? Also, do I need to allow edge traversal? ps I am running windows 10 and java edition

Similar to  on the bugs in Minecraft, I would like a complete list of what error codes exist in Minecraft and how they occur, as well as how they can be resolved.


I am looking for a free physics textbook on electromagnetism that wouldn't throw at me things to remember rather I'd love to have something which builds notions block by block, deriving coulomb's law instead of just presenting it as is for example.

What books are recommended for an advanced undergraduate course in electrodynamics?


A teacher sent home a list of assignments with a cover letter explaining, "These are not homework."  "This is not homework," or "These pages are not homework," sound equally normal to me, but "These are not homework," just sounds weird.  Is it correct grammar?  ...  I don't agree that the question: 'Agreement in “[Singular Noun] Is/Are [Plural Noun]”?' describes this specific usage.  In "These are not homework," the word "These" is not a singular noun.  It's a plural pronoun.  I suspect that some of the problem is that the missing noun is implied to the reader only by the physical presence of other documents, and not contextually from the surrounding content of the cover letter itself.

My fish's native habitat is rice fields. My fish's native habitat are rice fields.   Which one is correct? I'm pretty sure it's the first, since 'is' modifies 'habitat,' but it still sounds weird...


UNIQUE should not have a qualifier? Does it not mean "one of a kind" and thus it is incorrect to say, for example, "more unique'? One sees this misuse in advertising frequently. Is it now acceptable as sloppy but common usage?

A common grammar lesson that was taught to me in the US and that I've had to teach abroad in EFL classrooms is that we're not to use adverbs of emphasis with absolute modifiers, just as we're not supposed to use them as comparatives or superlatives.  Classic egregious examples of this mistake include very unique and more perfect, which seem obviously flawed to me. Other instances of further modified absolute modifiers are similarly meaningless or contradictory in nature.  I wonder, though, if the rule that I learned isn't overly broad, and whether it's taught similarly in the UK and elsewhere. I find myself modifying absolute modifiers quite regularly, and in some circumstances I think it's not only logical and correct, but quite meaningful. Phrases like almost exactly or virtually all or practically infinite possess a specific meaning that can't really be replicated using nonabsolutes like very nearly or most or quite long.  In my own speech and writing, I use such phrases exactly as I see fit, so this isn't a request for permission, per se. I'm more curious about whether there's a more appropriate rule regarding absolutes that you rely on (and might be used in a classroom).


I have asked this before on two different forums, but there seems to be different opinions on this, so I'll just ask again. Can you duck through a door? Or can you only duck into a room?  She heard someone in the hallway and ducked through the nearest door.

She ducked through the nearest door.   Would you say it's only possible to duck through a door that has to be pushed or could I also use "duck through" if the door had to be pulled open?


There are many  about Unable to locate package.  For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for displaying error message):  sudo apt-get install package Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package   What does this error mean? How do I solve it?    provided General solution to understand and how to solve such type of error (which is helpful for new users that may unaware of repository-apt install mechanism)  Note : For resolving unmet-dependencies, visit: .

After doing a man apt-get and cursory Google search it's not clear how I find new programs to install (from the internet) using apt-get (which is amazingly powerful and simple coming from another Linux distro).  I'm using Ubuntu Server 8.04 LTS (an inherited system used for some random work), so no GUI.  Anyone have quick advice here?


let $f,g$ be contiunous, bounded on $\Bbb R$. Suppose that  $$f(x+y)=f(x)f(y)-g(x)g(y),\quad g(x+y)=f(x)g(y)+f(y)g(x),\ \forall\ x,y\in\ \Bbb R.$$ $f(0)=1$, $g(0)=0$. Show that for some $a\in\Bbb R$, $f(x)=\cos ax, g(x)=\pm \sin a x$.

This question is a possibly harder version of: .  Question.  Let $f,g :\mathbb R\to\mathbb R$, such that \begin{align} f(x-y)=f(x)\, g(y)-f(y)\, g(x), \tag{1}\\ g(x-y)=g(x)\, g(y)+f(x)\, f(y), \tag{2} \end{align} for all $x,y \in \mathbb{R} $. If $g$ is continuous at $x=0$ and not identically zero, then there exists an $\alpha\in\mathbb R$, such  $$ f(x)=\sin \alpha x\quad\text{and}\quad g(x)=\cos \alpha x. $$ Is there a pair of discontinuous $f$ and $g$ satisfying $(1)$ and $(2)$?  Update. If $\ell :\mathbb R\to\mathbb R$ is a linear functional over $\mathbb Q$ (i.e., $\ell(qx+ry)=q\ell(x)+r\ell(y)$, for all $x,y\in\mathbb R$ and $q,r\in\mathbb Q$), then $$ \sin\big(\ell(x)\big), \quad \cos\big(\ell(x)\big), $$ satisfy $(1)$ and $(2)$. Discontinuous such functionals do exist, and they are obtainable using Zorn's Lemma (equivalently the Axiom of Choice.) This takes care of the second question.


I need to give a non-admin account most admin permissions except for modifying system files. I'd like that admin account to retain all normal admin permissions but not be able to modify the hosts file. I've written a , and I'd like to do something similar in Windows 10.  The best solution I've found is to make something like this script start when the user logs in.   #Specify the file name $fileName = "C:\Windows\System32\Drivers\etc\hosts"  #Open the file in read only mode, without sharing (I.e., locked as requested) $file = [System.io.File]::Open($fileName, 'Open', 'Read', 'Read')   I understand that it won't be bullet proof, but I would like something that makes it sufficiently inconvenient to modify this file.

I want to make my folders private, so that they can only be accessed after logging in with my own account, but be inaccessible by other local accounts, even the administrator accounts.  I have a PC with windows 8 Professional.   I know I can set the security options for a folder and deny full control access for any other account already created. But since there are other Administrator accounts, new accounts can be created from there and then my folder will be accessible from there.  And if I deny access for ALL administrator group, then even I myself wont have access to my folder!  What is the solution?


I have 2 solutions (see image below). This is how I create them:   File -> New -> Project -> ASP.NET Web Application File -> New -> Web Site -> ASP.NET Web Site     What's the different between the projects?  In Solution Explorer the only difference is the icon next to the project. They have the same file structure.  The question came up due to a problem I had with 2 solutions ()

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.  What is the difference between ASP.NET Web Application and ASP.NET Web Site? Why would I choose one over other?  Is the answer different based on which version of Visual Studio I am using?


I do not want to charge the battery but make a long video. I want to use the Canon D30 camera without battery, but with a PSP charger which has the same plug but 5.3V. The Canon D30 needs 4.3V.    Found a solution: a $5 DC to DC Converter like this    I cut off a normal USB and a PSP loading cable. Tested and works fine. Voltage is around 3.8.

I have a Canon SX210 IS, which doesn't have the possibility to plug-in a external power source.  Because of that, I want to make a connection to the pins where the battery usually is. I'm a little confused about the voltage requirement because the battery says 3.7V and the base of the camera says 4.2V.  Since I have a car battery and a 7805 voltage regulator I thought I could power the camera directly with the 5V the regulator would give me. But I don't know if it's safe to do that.  You may ask why would I want to power the camera with 5V instead of using 4.3 from a DC regulator. Well, I'm outside the city right now so there is no way to get a DC power supply like that.  (don't ask where I took the 7805 from).  I've found out that my helicopter charger has a voltage of 4.2V and a maximum  current of 850 mA, but it's a typical switched power supply (like the cell phone ones). Is it dangerous to feed my camera with that? What about a little paralell capacitor to filter noises?


My computer (a modern one, with Windows 8.1) is equipped with a DVD drive and a SD card reader. I'm considering assigning letters A and B to DVD and card reader. I know well that those letters were reserved for floppy disk drives (I'm old enough to remember the floppy disks era), but I am 99.99% sure that I will never use floppy disk drive. Is there any rational reason not to use A and B letters for DVD and card reader then?  To be perfectly clear: I am not asking what is the story behind letters A and B - I know it already. I just want to know the consequences of assign A or B to drive that is not a real floppy drive.

In Windows you have a C-drive. Everything labeled beyond that is with the following letter.   So your second drive is D, your DVD is E and if you put in a USB stick it becomes F and the following drive G. And so on and so forth.  But then, what and where are A and B-drives?


I'm trying to generate placeholders in clause IN then set values. It seems working but finally returns one less row. I can't use setArray method as it's Oracle and I can't modify db.  Code below. public void loadObject(Connection connection, number1, number2, commentCodeList)  throws SQLException{     String sqlToFind = "SELECT DISTINCT ccommid FROM COMMENT WHERE number = ? \n" +             "AND number2 = ? AND ccommid IN (%s)";      String sql = String.format(sqlToFind, preparePlaceHolders(commentCodeList.size()));      PreparedStatement preparedStatement = connection.prepareStatement(sql);     preparedStatement.setInt(1, number1);     preparedStatement.setInt(2, number2);     setValues(preparedStatement, commentCodeList.toArray());      ResultSet resultSet = preparedStatement.executeQuery();      while(resultSet.next()){         Comment comment = new Comment();         comment.setCcommid(resultSet.getString(1));         commentList.add(comment);     } }  private String preparePlaceHolders(int size){     StringBuilder builder = new StringBuilder();     for (int i = 0; i < size;) {         builder.append("?");         if (++i < size) {             builder.append(",");         }     }     return builder.toString(); }  public static void setValues(PreparedStatement preparedStatement, Object... values) throws SQLException {     for (int i = 0; i < values.length; i++) {         preparedStatement.setObject(i + 3, values[i]);     } }

What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values due to SQL injection attack security issues: One ? placeholder represents one value, rather than a list of values.  Consider the following SQL statement:  SELECT my_column FROM my_table where search_column IN (?)   Using preparedStatement.setString( 1, "'A', 'B', 'C'" ); is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.    What workarounds are available?


Conducting a little hypothetical experiment here that I do not have all of the equipment to physically conduct, let's say that one uses a toy plastic solider like this    ... as well as a sealable acrylic tube that was more than sufficiently large enough for the figure and its open 'chute to fit in without touching the sides, and tall enough for the figure's parachute to fully open well before reaching the bottom.  Using a scale, you measure the weight of the sealed tube with the figure inside of it.  This weight reflects the total of the weight of the figure and his parachute, the weight of the tube itself, and the weight of the air inside of it.   Flipping the tube and putting it back on the scale to let the figure fall to the other side, the plastic soldier is briefly in complete freefall, and so the weight measured would drop by the weight of the toy, but it would quickly reach terminal velocity on account of the parachute and would slow down.   At this point, the toy is no longer in freefall, and the air in the tube is acting as a buoyant force keeping it from accelerating further, which should contribute to the weight being measured by the scale.  After the figure has reached that constant velocity, but before it reaches the bottom, I am wondering if the total weight shown on the scale would be equal to the total weight of the tube (and air inside it) and the figure when it is at rest on the bottom, or would actually it be less?

Assume that you are holding a cage containing a bird.  Do you have to make less effort if the bird flies from its position in the cage and manages to stay in the middle without touching the walls of the cage? Does it make a difference whether the cage is completely closed or it has rods to let air pass?


I'm requested to implement custom action with parameters on uninstall from command line: msiexec /x MyInstaller.msi PARAM_FILE_PATH="..." /qn  Looks like common approach looks like is this: <Custom Action="ActionName" Before="RemoveFiles">(REMOVE~="ALL") AND (NOT UPGRADINGPRODUCTCODE)</Custom> <Custom Action="ActionName" Before="InstallFinalize">(REMOVE~="ALL") AND (NOT UPGRADINGPRODUCTCODE)</Custom>  But in both cases ActionName is not executed (checked via debug output).  Tried few things. Not executed on install and uninstall: <Custom Action="ActionName" Before="RemoveFiles"></Custom>  Runs only on install (opposite of what I need): <Custom Action="ActionName" Before="InstallFinalize"></Custom>

I would like to modify an MSI installer (created through ) to delete an entire directory on uninstall.  I understand the RemoveFile and RemoveFolder options in WiX, but these are not robust enough to recursively delete an entire folder that has content created after the installation.  I noticed the similar Stack Overflow question , but I was wondering if this could be done more simply using a call to a batch script to delete the folder.  This is my first time using WiX, and I'm still getting the hang of . What would be a basic example of a custom action that will run a batch script on uninstall?


<form method="post" action="#" onsubmit="uploadImage">     <input type="file" name="imgFile" >     <input type="submit" id="submit" value="upload"> </form>   How can I upload an image using javascript with ajax call.

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


Given ring $F[X]/(X^2)$ I'm trying to understand why the ideal (X) is the unique maximal ideal of the ring. I have figured out that an element in the ring is either in the ideal (X) or is a unit, but not sure if this helps.

Say I have a commutative ring $R$ with a maximal ideal $m$. Then $m/m^k$ is a maximal ideal in $R/m^k$ for any $k$. Is it the only maximal ideal, i.e. is $R/m^k$ a local ring?    This is a well known result for $k = 1$, as $R/m$ is a field. It seems to be true in other cases, e.g. $p\mathbb{Z}\subset \mathbb{Z}$ for prime $p$ and for $(x,y) \subset \mathbb{F}[x,y]$, the maximal ideal generated by $x$ and $y$ in a polynomial ring over the field $\mathbb{F}$.   Equivalently, if an element $x\notin m$, is $x + m^k$ an invertible element in $R/m^k$?


The particular .  I thought the point of a grace period was to allow the OP to review and accept last minute answers posted just prior to bounty expiration. Why would my answer not be eligible for the bounty even though it was posted 20 minutes prior to actual expiration?  Even now the question shows 3 hours left on the grace period. Has the rule for this changed or is this a bug?

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


Update: The answer(s) and discussion provided in the  answer are more than sufficient to satisfy this question.  If you have a similar question the suggested reading is this paper on  and the  reference     Reading through  I came across this example. There is this trailing 's' at the end of the bad example and I am not sure what it signifies.

introduces  which will allow the introduction of new literal syntax based on existing literals (int, hex, string, float) so that any type will be able to have a literal presentation.  Examples:  // imaginary numbers std::complex<long double> operator "" _i(long double d) // cooked form {      return std::complex<long double>(0, d);  } auto val = 3.14_i; // val = complex<long double>(0, 3.14)  // binary values int operator "" _B(const char*); // raw form int answer = 101010_B; // answer = 42  // std::string std::string operator "" _s(const char* str, size_t /*length*/)  {      return std::string(str);  }  auto hi = "hello"_s + " world"; // + works, "hello"_s is a string not a pointer  // units assert(1_kg == 2.2_lb); // give or take 0.00462262 pounds   At first glance this looks very cool but I'm wondering how applicable it really is, when I tried to think of having the suffixes _AD and _BC create dates I found that it's problematic due to operator order. 1974/01/06_AD would first evaluate 1974/01 (as plain ints) and only later the 06_AD (to say nothing of August and September having to be written without the 0 for octal reasons). This can be worked around by having the syntax be 1974-1/6_AD so that the operator evaluation order works but it's clunky.   So what my question boils down to is this, do you feel this feature will justify itself? What other literals would you like to define that will make your C++ code more readable?    Updated syntax to fit the final draft on June 2011


my client wants to print this photo on a poster of 10x4 meter board. i had all the files or I can make a new one too. please tell what should be the resolution and pixels etc.

For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print?


How can I install dependencies on 20.04 when required packages versions are missing from ? I'm stuck in situation when I need to install network drivers for PC, but I can't download needed dependencies to make make/gcc work, because there is a package libgcc-9-dev which needs bunch of packages (libitm1, libatomic1, libasan5, etc) from version 9.3.0, but those package no longer exist with that version, they have version 10.2.0, and when I want to install any of them, they have a dependency on gcc-10-base and when I want to install that one, apt wants to remove a lot of packages and prompts "You are about to do something potentially harmful", which obviously should not be done.

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


Today when i opened Chrome i was greeted with this message:    I logged in, and reopened Chrome, still the same error appeared.  I removed the folder Web Data in hopes that it would fix it, still nothing. I thought maybe there were some update, so i tried sudo apt-get update and got this:  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   I reinstalled Chrome, and still this error was here.  Could this be because i keep getting the message :  This Computer will no longer recieve Google Chrome updates because this Linux system is no longer supported.   Also it keeps freezing on me so i need to Ctrl+Alt+F2 then Ctrl+Alt+F7. The freezes are not constant, but enough to annoy a person.  Can i somehow fix these errors, or do i need to move to Chromium?  I should note that i am using Ubuntu 12.04 64-bit version.

I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message:    This computer will soon stop receiving Google Chrome updates because this Linux system will no longer be supported   I thought Ubuntu 14.04 is supported for five years, what's exactly happening here?  And on 64-bit Ubuntu, I get an error from Update Manager and apt-get update:  Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Some index files failed to download.   They have been ignored, or old ones used instead.


I guess, this is a simple one. Let's say, I have two tables: [employees] and [projects]  SELECT p.project_name, concat(e.first_name, " ", e.last_name) as employee_name     FROM project p     INNER JOIN employee e on e.project_id = p.id     ORDER by p.project_name   With that SELECT I get  JohnJane Project | John Doe  JohnJane Project | Jane Doe T Project        | Mr. T   But instead I would like to have the names comma-separated in a row:   JohnJane Project | John Doe, Jane Doe   T Project | Mr. T   How can I do that?  Thanks Bernhard

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


My question comes in three part.   char str[] = "hello!";     char *str1 = "heello!";     puts(str);     str1[1] = 1     puts(str1);     printf("%s\n", str1);     printf("%p\n", str1);   Ouput of code:  hello! h1ello! heello! 0x10735ef9b   1) I understand that when you're declaring a char * type, you're declaring a pointer that points to char type. And usually for pointer, since it contains the address of the variable its pointing to, when you print the pointer itself, you'll get the address stored in the pointer and only when you dereference the pointer, then you'll get the content stored in the variable the pointer is pointing to.  However for a char * type, why is it that it doesn't function like a regular pointer? You can print the content of the variable which the 'char *' pointer is pointing to without dereferencing it and also use it like a string variable(rather than a pointer) by changing the value of the str1[1] as shown above.  2) I was taught that you shouldn't declare a pointer variable as such in the topic of pointer:  char *str1 = "heello!";   because the pointer variable would be pointing to whatever address happens to be in the memory at that time, thus running a risk of changing the value in a memory location that you don't mean to and resulting in segfault. Hence you should do the following:  char *str1; char c; str1 = &c; *addr = "hello!"   By doing the above, you'll make sure that your pointer is pointing to the right location before dereferencing  and writing to the location.  However in the notes on string, it says to declare and initialise as such:  char *str1 = "heello!";   I'm quite confused as to what I should follow now when declaring a char * pointer. Please help.  3) It says in my notes that the location of string is stored in a read only region of the memory called the text region.  Hence doing this:      char *str1 = "hello!";     str[1] = '.';   Will crash your program.  But when you do this:  char str2[7] = "hello!"; str2[1] = '.';   This is okay and will successfully change the second element in the string from 'e' to '.'  The explanation to this was that str1 points to a read only region in the memory, while str2 contains a copy of the string on the stack. I do not understand how the above 2 different ways of declaring the string variable will make such a big difference when executing the code. Please help.   Thank you!

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


I'm creating a program which can take appointments.  E.g. A doctors appointment, it will take name, number and date the appointment was created into an array.  if i want to check between date a and date b and see what appointments are between those dates how would i go about this?  I'm using the Gregorian Calendar

I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.  Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode:  boolean isWithinRange(Date testDate) {     return testDate >= startDate && testDate <= endDate; }   Not sure if it's relevant, but the dates I'm pulling from the database have timestamps.


I'm plotting a surface from data file arranged in columns x,y and value. The result looks like this:     As you can see, first and last point of every line is connected. Relevant code:  \begin{tikzpicture} \begin{axis}[% ]% \addplot3[% surf] table[x index= 0,y index = 1,z index = 2, col sep=tab] {data.txt}; \end{axis} \end{tikzpicture}   Is there any way to fix this?


Feed page contains to much empty space:        Existing items in the feed could have more suitable width.   App Version: 1.0.89 Device Manufacturer: samsung Device Model: Nexus 10 OS Version: 5.1.1 (2640980)

The lines wrap so much on v1.0.85 that only a few items can be displayed.  Edit: This is on the world's most low end tablet, Azpen A727.  Screenshots of the old:    and new, showing loss of quality


I am going to be a senior next year and was hoping to get involved with research for my capstone. The professor I was planning on asking to advise me had been one of my favorite professors and seemed to have really interesting papers based on my readings of his work. However, he will be moving schools this fall. He will be going to a school that I was hoping to apply to for grad school. We didn't build much of relationship from the class I had been in, would it be weird to reach out to him to see if I could possibly get involved in his work? Is it even really possibly to do work for a professor remotely like that at another school? I am not asking how I should correspond with the professor, I am more asking if that is an ok to get involved with research.

When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)


Any theory hence set theory as well, has to be written in a concise logical manner. Hence logic should come first. On the other hand, first order logic, is a set of constants, a set of variables, etc... hence set theory should come first. What do you think?

I wonder about the foundations of set theory and my question can be stated in some related forms:   If we base Zermelo–Fraenkel set theory on first order logic, does that mean first order logic is not allowed to contain the notion of sets? The axioms of Zermelo–Fraenkel set theory seem to already expect the notion of a set to be defined. Is there are pre-definition of what we are dealing with? And where? In set theory, if a function is defined as a set using tuples, why or how does first order logic and the axioms of Zermelo–Fraenkel set theory contain parameter dependend properties $\psi(u_1,u_2,q,...)$, which basically are functions?


Has this been asked before? I want a custom item in the context menu when I right click on a folder. I know you're supposed to do it through the registry, but I don't know how. I will manage what it executes. Thanks.

in order to add context menu for directories and explorer background, one can follow instructions .   To add context menu for specific file extensions, one can follow instructions   but I can't seem to find a way to add context menu items for all files?


I have two Ubuntu 14.04, one is for production and one is for backup.  On the production server, I have a folder with backups automatically generated by a cron job. How can I make the backup server connect to that folder and download the files every day securely?  They're two separate servers on a different network.

I'm thinking of an investment in a new root server running ubuntu. Due to the fact, that the provider won't have extra backup-space, I need an other solution.  Is it possible to download the server backups automatically when my desktop machine is connected to the internet and in idle state?


I need my WP permalinks display months without using any zeros in the URL i.e. /1/ instead of /01/ for January.  I'm moving my blog from Squarespace to Wordpress and I obviously want to keep all my existing URLs intact. Wordpress does a perfect copy of the Squarespace permalinks, with one exception; it shows months as ‘01’ whereas Squarespace shows them as ‘1’.  Current Wordpress permalink: http://example.com/home/2014/01/30/welcome  Old Squarespace permalink: http://example.com/home/2014/1/30/welcome  i.e. /1/ instead of /01/  Without changing that, I'm guessing that when I point my DNS to my new WP blog, all the links will break.  I've spent the last 3 hours scouring the Wordpress.org support .docs, to no avail.  Help!

My WordPress website currently uses this custom permalink structure: %author%/%year%/%monthnum%/%day%/%postname%  In this case, %monthnum% instantiates numbered dates with a leading zero -- e.g., "09" for September. So, a sample URL might look like this: mywebsite.com/username/2012/09/12/post-name  Is there a function I can add or .htaccess change that I can make which will remove the leading zeros from my permalink stucture? So, using the example above, my URLs would ideally look like this: mywebsite.com/username/2012/9/12/post-name  Thank you! I've read up on WordPress' structure tags documentation (http://codex.wordpress.org/Using_Permalinks), but I can't find any solutions or plugins for the above-mentioned problem.


I'm learning some tutorials that is industrial background. I know this tutorial is focused on Eevee system. but I want to get a better quality of scene. that's why I want to use Cycles, but there are some problems such as lights, fogs those pictures are including lights,fogs that I learned from the tutorials. yes it's very worked in Eevee, the lights has blur, the fog is staying at the background obviously, but the Cycles version doesn't work, How can I solve this problems? I want to have blur lights, fogs in my scene

Is there any equivalent option or process to get results equal, similar or better than Eevee's Bloom? If yes, how could I do it? I have an object with Emission Surface on Material in that case it is representing a sun, and the results I need are exactly or a little better than what Eevee's bloom is giving, but, Eevee's mesh render doesn't look as good as Cycles so I was wondering if there was such a thing. Thanks!


I come to you today with this issue. I've just start blender course @blenderguru (I really enjoy it;)). As you can see (in render) my icing is gone... but sprinkles are there. And when I check it in blender viewport everything is alright. I am just starting learning, so please be nice :)  Rendered image (icing doesn't show up)      Here's how it looks like in Rendered Preview      And here's an image of my particles settings      P.S.: If it can help

Just started out Blender, and as my first project, I made Blender Guru's donuts. The problem is, when I go rendering, there are A MASSIVE amount of sprinkles, quite different from the Viewport. Here are some screenshots:      You can find the file ! Any help is appreciated!


Given n spaces, how many ways are there to fill up the spaces with 1's and 0's such that no two 1's are together.   For example, let's say n = 3 (_ _ _). There are 5 ways to fill up the spaces such that no two ones are together:  (0 0 0),  (1 0 0), (0 1 0), (0 0 1), (1 0 1)

How many $N$ digits binary numbers can be formed where $0$ is not repeated. Note - first digit can be $0$.  I am more interested on the thought process to solve such problems, and not just the answer. If anyone can cite some resources for learning how to solve such problems would be great.


What does it mean when I have a non-trivial load and when I run top, there are no processes using non-trivial amounts of cpu time?  For example, I have a server with this top line:  top - 10:10:59 up 128 days, 23:44, 10 users,  load average: 4.00, 4.00, 4.00 Tasks: 254 total,   1 running, 252 sleeping,   0 stopped,   1 zombie Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Mem:  65912492k total, 20628812k used, 45283680k free,   573908k buffers Swap: 33431544k total,    30376k used, 33401168k free, 12085808k cached    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND  2584 sgeadmin  20   0  416m 2536 1572 S  1.3  0.0   1265:45 sge_execd     4 root      20   0     0    0    0 S  1.0  0.0   4681:42 ksoftirqd/0   ...etc.


Okay I've seen many posts as this one, but in every post it uses Stirling(I can't use it because I've never learnt it), or weird equalities with logs (I also never learnt this) or other methods I'm not allowed to use in my exam.  I have to prove that $\lim n!^{(1/n)}$ = $\infty$, only by using D'Alembert, $n^{th}$ root test, Stolz, squeeze theorem or by playing with inequalities etc   What I thought is that I could prove that $\lim \frac{1}{n!^{(1/n)}} = 0$ (again only using those basic theorems) and that would mean that $\lim n!^{(1/n)} = \infty$ but I'm not sure if that's correct.  Please don't mark as duplicate! I need an answer and I haven't found any post with an answer I can use!!

I am playing around with the root/ratio test to practice with series. I just showed that $\sum \frac{1}{n!}$ converges by using the ratio test. I decided to see how things would go with the root test and I got stuck at something that I can't find on google. Right away while running the root test I encountered $\lim_{x \to +\infty}\left(\frac{1}{n!}\right)^\frac{1}{n}$. I have made the claim that $\left(n!\right)^\frac{1}{n}\geq 1 \hspace{3mm}\forall n\in \mathbb{N}.$ I have begun the proof and I think it is on the right track but some verification would be nice.  Proof: We can see that for n=1, this obviously holds, $\left(1!\right)^1\geq 1.$ Now suppose that this is the case for some $n=k$, then we have $\left((k+1)!\right)^{\frac{1}{k+1}}= \left((k+1)k!\right)^\frac{1}{k+1}$. It is at this point that I start to have a little trouble. Can somebody give me a push in the right direction? Thanks!


I'm using Mac OS X Snow Leapord. My iMac's hard drive has been getting unexpectedly full, and I finally tracked the problem down to a huge file: private/var/log/samba/log.smbd.old, weighing in at 400GB.  I just ran tail -100 log.smbd.old to see the last 100 lines of that log file. What I see is a ton of "too many open files" errors.  This is a work machine. I do share files with other Mac users, and also access a shared Windows drive via Samba.  How can I troubleshoot these errors so the log file doesn't get filled with them?

Which command / configuration file controls the open file limits on OS X?  Is there a different command for OS X 10.5 / 10.6 / 10.7?  The options I explore below are ulimit, sysctl, and launchctl  "Too many open files" is apparently a common error on Leopard, perhaps other versions of OS X:        There are many (related?) ways to view the open file limits:  $ ulimit -a core file size          (blocks, -c) 0 data seg size           (kbytes, -d) unlimited file size               (blocks, -f) unlimited max locked memory       (kbytes, -l) unlimited max memory size         (kbytes, -m) unlimited open files                      (-n) 2048 pipe size            (512 bytes, -p) 1 stack size              (kbytes, -s) 8192 cpu time               (seconds, -t) unlimited max user processes              (-u) 512 virtual memory          (kbytes, -v) unlimited   $ launchctl limit cpu         unlimited      unlimited       filesize    unlimited      unlimited       data        unlimited      unlimited       stack       8388608        67104768        core        0              unlimited       rss         unlimited      unlimited       memlock     unlimited      unlimited       maxproc     1024           2048            maxfiles    2048           4096         $ sysctl -a | grep files kern.maxfiles = 32768 kern.maxfilesperproc = 16384 kern.maxfiles: 32768 kern.maxfilesperproc: 16384 kern.num_files: 2049   It has been claimed in some of the above posts that these can be modified with the following commands:  sudo launchctl limit maxfiles 16384 32768 sudo ulimit -n 32768 sudo sysctl -w kern.maxfilesperproc=16384 sudo sysctl -w kern.maxfiles=32768   However, out of the above commands, only the sysctl commands have any apparently effect (i.e. ulimit -n and launchctl limit show no change after the above commands have been entered, while sysctl -a does show the requested changes).  The corresponding locations to change these parameters for the OS are:  /etc/sysctl.conf /etc/launchd.conf   I also discovered one  which reads that ulimit only controls the current shell.  How can I adjust upwards the max files / max open files limits on macOS?


Is it correct that if Ubuntu is installed inside Windows using Windows installer then it works slower?

I know that Wubi is slower in disk IO, but I can't find anything about it online other than vague statements such as "slightly slower disk seeks".  Has anyone done any benchmarks to quantify the speed difference?


We know that sunlight or light incident from sun on earth is white in color or have all frequencies of light in visible electromagnetic spectrum. However I have read that sun is a yellow medium star, and satellite pictures indeed show it is $yellowish-orange$ in color. Why is this case that sun is deemed as a yellow star but have white light incident from it? Is it due to our atmosphere or something else?

Apparently spectral solar radiation is approximated by a black body at 5800 K. The spectral black body distribution (Planck distribution) is shown below (from Incropera, Fundamentals of Heat and Mass Transfer), with different temperatures including solar radiation at 5800 K.     The heat flux on an Earth surface perpendicular to sun rays (i.e., the solar constant), is roughly 1.36 kilowatts per square meter. Is this simply the integral of the above distribution? Why is the sun approximated as a black body at 5800 K? Does this mean that the surface of the sun which is emitting radiation has a temperature of 5800 K? That seems kind of low. Is solar radiation approximated as a black body at 5800 K only on Earth, or is it the same everywhere? Why don't atmospheric effects and scattering change measurements of the solar spectrum on Earth?   EDIT:  The solar constant is approximated by considering the Stefan-Boltzmann law (i.e., the integration of the spectral solar emission), the size of the sun, and the distance from the sun to Earth. A good derivation is shown here:


$z,a$ are both complex numbers. And $|z|\lt1,|a|\lt1$, prove $$|\frac{z-a}{1-\bar{a}z}|\lt1$$   I tried by denoting $z=x+yi,a=t+si$, and substitute them in $|\frac{z-a}{1-\bar{a}z}|$, but make it seems too sophisticated. So I am thinking about if there are ways more elegant to solve this by using some properties about complex number.

This is the question I'm stumbling with:   When $|\alpha| < 1$ and $|\beta| < 1$, show that:  $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < 1$$    The chapter that contains this question contains (among others) the triangle inequalities:   $$\left||z_1| - |z_2|\right| \le |z_1 + z_2| \le |z_1| + |z_2| $$  I've tried to use the triangle inequalities to increase the dividend and/or decrease the divisor:  $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < \cfrac{|\alpha| +|\beta|}{\left|1-|\bar{\alpha}\beta|\right|}$$  But it's not clear if or why that would be smaller than one.  I've also tried to multiply the equation by the conjugated divisor $\cfrac{1-\alpha\bar{\beta}}{1-\alpha\bar{\beta}}$, which gives a real divisor, but the equation does not appear solvable.  Any hint would be much appreciated.


I am using ArcMap 10.2 and have a shapefile with parcel data.  I have all of the polygons labeled with attribute text.  How do i export the text to CAD?

How can I export the attribute information for the shapefile/feature class to Autocad Annotation/Text?  I'm able to export the shapefile to autocad but unable to get the attributes in annotation.   Also Let me know if there any any way we can append attributes in autocad without using blocks.


people  I just installed Cyanogenmod from the installer on my Samsung galaxy s4 and it came with Google-apps Pre-installed. Now i'm not a big fan of Google so i want to get rid of Google-apps how can i do this i know i can flash free-cyan this removes Google analysis and stuff but does not remove Google-apps can someone please tell me how i can remove them. I got root so hopefully someone can help me.   Greetings,  Nick

I installed CyanogenMod 11 on my HTC One with CyanogenMod Installer. So I got also the google Apps (gapps) on my device. But I need a CM11 without gapps. I did then the following without success:   copy cm-11-20140308-SNAPSHOT-M4-m7.zip to /sdcard/ boot to recovery mode -> recovery -> ClockworkMod Recovery v6.0.4.6: "wipe data/factory reset" "install zip" choosing the zip-file "reboot system now"  So I got a new CM11 but with gapps still installed.  What should I do in addition to "wipe data/factory reset" to get rid of this apps?


Please explain me the meaning of "to squinch one's eyes closed". Is it the act of closing eyes.  Example: "Squinching her eyes closed, she stepped through the archway."  Thank you!

says:     squinch (skwɪntʃ)      (US)      transitive verb         to squint (the eyes); squinched up her eyes in disgust.               2.         a. to pucker or screw up (the face, nose, brow, etc.); Jonathan squinched his face into a grimace.       b. to squeeze or compress; She squinched the paper up in an angry twist and stood to throw it into the stove ; Robert squinched the ketchup bottle, trying to get the last bit out.      intransitive verb         to squint, pucker, or contort   to crouch down or draw oneself together so as to seem smaller; ;  (Source: .)   to flinch         Word Origin: probably blend of squint and pinch      First Known Use: 1835      Example Sentences Including "squinch:"      Cooper saw her squinch up her eyes, trying to make out who was standing outside her kitchen window.      An unhappy smile is still a smile, insofar as the corners of the mouth are drawn back or upturned. However, the eyebrows may be furrowed, and the eyes may be squinched or teary. Also, the lips tend to be pressed together, rather than relaxed as in a happy smile.    My question is, how do native speakers of AmEng use the verb squinch in the senses supported above by CAED?  In addition, what's the difference between using either "squinch" or "squint/flinch" as in the following examples:     She squinched (up) her eyes, trying to make out who was standing outside.      She squinted her eyes, trying to make out who was standing outside.   -and-     The driver squinched as the sun hit his windshield.         -and-              -and-     He squinched as the cold water struck him.         -and-


Can Ubuntu be installed on ASRock H170M-ITX/DL motherboard? If so, do you know of a good guide to use?  Im looking to create a bootable usb from on a mac of the latest Ubuntu that would work with ASRock H170M-ITX/DL .  Please advise. Thank you

I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.


Here is something really funky that popped up in my head as I was thinking about walking across my room, which is a rectangle. Let's assume that it has side lengths of a and b. Now, If I walk from one corner to the opposite corner by only walking along the side lengths, I end up going a+d. Now, if I walk like , I still end up going a+d. Even if I walk like , I still end up going a+d. My calculus intuition tells me that we should have ended up with sqrt(a^2+d^2) or should at least be approaching it. What is going on?

What is wrong with this proof?    Is $\pi=4?$


What is the difference between "in March" and "by March". Is there any ?

I have read the Rules of a competition. The text of the Rules include a sentence as follows:     As per stated in the Rules the entrants will be notified by May 30th 2010.   Does the sentence above mean that May 30th is included in the term of notification or not?


Let $f(p/q)=1/q$ if fraction $p/q$ is in lowest terms and $f(x)=0$ for irrational $x$ and when $x=0$. Show it is integrable on $[0,1]$.  My idea: Construct a partition such that $U(p,f)-L(p,f) < \epsilon$. The lower sum should be 0. It suffice to show $U(p,f)< \epsilon$. Consider a interval $[p/q-\delta, p/q+\delta]$. The length and $sup \ f(x)$ of the interval are known.   And I know the number of such interval is finite. However, I do not know how to construct such interval so I do not know how many interval are there exactly.    Edit: As OP, I am the first to vote for close, as well as reopen. The reason for close is that the function is the same as the one in the link. However, the reason for reopen is that the definition of integration is slightly different, and I do not stuck in the same place as the OP in the link. In addition, it seems the answer does not address my question. So, I vote for reopen.

Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be defined by setting $f(x)=1/q$ if $x=p/q$, where $p$ and $q$ are positive integers with no common factor, and $f(x)=0$ otherwise. Show that $f$ is integrable over $[0,1]$.   I'm using the Darboux definition of integration, so I want to prove that for any $\epsilon>0$ there exists a partition $P$ of $[0,1]$ such that $U(f,P)-L(f,P)<\epsilon$. Equivalently, there exists a partition $P$ of $[0,1]$ such that $$\sum_Rv(R)(M_R(f)-m_R(f)) < \epsilon$$ where $M_R(f)$ is the supremum of $f$ inside interval $R$, $m_R(f)$ is the infimum of $f$ inside interval $R$, and $R$ ranges over all intervals in the partition.  So I tried taking $P=[0,\dfrac1n,\dfrac2n,\ldots,1]$. The sum in question becomes $$\dfrac1n\sum_{i=0}^{n-1}(M_{[\frac{i}{n},\frac{i+1}{n}]}(f)-m_{[\frac{i}{n},\frac{i+1}{n}]}(f))$$  I know that $m_{[\frac{i}{n},\frac{i+1}{n}]}(f)=0$, because in the interval $[\dfrac{i}{n},\dfrac{i+1}{n}]$ there is an irrational number, so the sum reduces to $$\dfrac1n\sum_{i=0}^{n-1}M_{[\frac{i}{n},\frac{i+1}{n}]}(f)$$  I don't really know anything about the fraction with lowest denominator inside $[\dfrac{i}{n},\dfrac{i+1}{n}]$. How can I prove that this sum goes to $0$ as $n\rightarrow\infty$?


The  requires screenshots of the exact size 1280x800.   Using the system-built-in screenshotter, I have often failed by a few pixels, which required tedious  image cropping by hand or the convert tool.  How are those easily created?

My display driver's maximum screen width is 1280 pixels.   I need to test a website with resolution 1920×1080 pixels. Or 3000×5000.   Different browsers is optional.


I was performing a tutorial for beginners designing a hammer in edit mode. With edge mode selected I attempted to select an edge using alt key + LMB. Nothing happened. However, in prior exercises of same tutorial I was able to select edges using same shortcut keys. I couldn't finish my tutorial because blender crashed. I restarted blender to complete my lesson but I came to a blockade when my alt key + LMB stopped working.

Hi I am a complete newcomer to blender and am following this tutorial, where he says to alt+click to select an entire row or "edge loop". I have followed all instructions exactly up to this point (3 times to make sure!). Alt-click does nothing. Thank you for your help. p.s. If possible, please keep answers in simple layman's language. I see some similar posts about alt click and loop select but had trouble following since the explanations were too advanced. Thank you! Video starts where he demonstrates alt+click:


Assume that there are arbitrarily large number of copies of ten different discrete math books. Each students must choose one book. Assume that $500$ students taking the course are indistinguishable.  A) How many different ways can the students choose books, if one specific book must chosen by at least $20$ students.  For this problem, I did $10^{500} - 10^{20}$. Not sure how correct this is.  B) How many different ways can the students choose books, if one specific book must be chosen by at most $20$ students.  Now for this one, the limit is $20$, do I sum the the different ways of the book been chosen by $1$ student up to $20$?

Assume that there are an arbitrarily large number of copies of ten diﬀerent discrete math books (which we will call titles) for cmsc250. Each student must choose one title as the course text book. Assume that the ﬁve hundred students taking the course are indistiguishable.  How many diﬀerent ways can the students choose titles, if Epp must be chosen by at most twenty students?   I understand that this is a stars and bars problem where the formula would be ${n+r-1}\choose{r-1}$, but whats throwing me off is the "at most" parameter of the problem. My answer is ${480+9-1}\choose{9-1}$ My reasoning was that we now have one less "bar", and that should be shown by lowering $r$ by 1  Am I approaching this the right way?


I click the "register" on area51.stackexchange.com It's said "Unable to log in: No user found"   How can I login ?  please

I think I originally signed up with a Launchpad account, but looking at “My Logins” I see two accounts: a StackExchange one (used yesterday) and Launchpad (used Jun 28 ’18) so I suppose I created a new login when OpenID support was dropped. I’ve tried logging out and logging back in with both, clearing the browser cache each time, but I just get the same message.


EDIT: This is NOT a duplicate of , as this is a feature request. Expected wording:  Your post has been associated with a similar question. If that question doesn’t resolve your question, edit this question.  Also, the Delete question button should be removed as it would lead to a question ban.  For  question, it has a wrong duplicate. The feedback recommends asking a new one. Why do we have to re-create the same question? Can we have a button as Not a Duplicate? This alert box seems to be appropriate.

I asked a question regarding a very specific feature of a program and whether or not it works with a larger program.  Within hours someone had marked it with "This question may already have an answer here of a similar question, but not related to my question.  The question I asked IS NOT ADDRESSED in the referred-to question. It's frustrating to spend half an hour putting together an intelligent and specific question, and then have someone mark it as a duplicate (or possible duplicate), which apparently causes people to skip over my question. I haven't received any more responses since the question was flagged.   Two questions:  (1) How do I get this flagging removed and (2) what's the best way to prevent these "helpful" flaggings in the future?


On my server, I accidentally used a command block to make /kill @p repeat over and over.   I don't know the coordinate of the command block, and I don't have McEdit. I am using PuTTY to connect to the server.   Is there any way I can disable the command blocks, and if so, how?

I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?


I want to monitor my memory usage with free -h. Then, I got 2 rows of information: 'Mem' and 'Swap'. What is the difference between them?

I installed the indicator-multiload 0.2-0ubuntu1 from the software center. (It's very similar to the gnome panel indicator showing memory and CPU graphs)  When I click on the Unity panel which shows the little memory graph, it says ;  Mem :1.451 GB   Cache: 2.581.  This is also represented in the color graph.  However, when I load the System Monitor, SWAP is at a flat 0.  Is this normal, or could there be a bug in either the System Monitor or Panel Indicator?


I suggest to show downvoter's name so that we'll be able to decrease the number of unfair downvotes resulted by abusing his rights in doing so.

Possible Duplicate:          I have a query. Why doesn't SO show who has voted up or voted down a particular comment or question or answer? Wouldn't it be easier if you knew? You could ask the person the reason for voting down the question. Because I have noticed, even if a question has 100 up votes, it will have some users who have tried t down vote it. If their identities are revealed, they could be asked why they chose to down vote something which has so many up votes, or they could be even asked by the person whose question was downvoted, as to why did he downvote it? This could increase transparency


How do I make my character routice without Ground Check rotating with it, but still follow my character?  Code:  using UnityEngine; using System.Collections;  public class Player: MonoBehaviour {  public float maxspeed = 10f; bool facingRight = true;  Animator anim;  bool grounded = false; public Transform groundCheck; float groundRadius = 0.2f; public LayerMask whatIsGround; public Vector2 jumpDirection = new Vector2(1f, 1f); public float jumpFocre = 500f; bool doubleJump = false;   void Start () {     anim = GetComponent<Animator> (); }  void FixedUpdate () {     grounded = Physics2D.OverlapCircle(groundCheck.position, groundRadius, whatIsGround);     anim.SetBool ("Ground", grounded);      if (grounded)         doubleJump = false;      float move = Input.GetAxis ("Horizontal");     anim.SetFloat ("Speed", Mathf.Abs (move));      GetComponent<Rigidbody2D>().velocity = new Vector2(move * maxspeed, GetComponent<Rigidbody2D>().velocity.y); } void Update() {     if((!doubleJump) && Input.GetKeyDown ("up"))     {         anim.SetBool("Ground", false);         float move = Input.GetAxis ("Horizontal");         jumpDirection.x = move;         GetComponent<Rigidbody2D>().AddForce(jumpDirection.normalized * jumpFocre);          if(!doubleJump && !grounded)             doubleJump = true;     }   }  void Flip() {     facingRight = !facingRight;     Vector3 theScale = transform.localScale;     theScale.x *= -1;     transform.localScale = theScale;     } }

My character can only jump when he is grounded, but he can only grounded in one direction I want him to jump in every direction, can anyone help?  CAN JUMP :    CAN'T JUMP :        Code:   using UnityEngine; using System.Collections;  public class Player: MonoBehaviour {  public float maxspeed = 10f; bool facingRight = true;  Animator anim;  bool grounded = false; public Transform groundCheck; float groundRadius = 0.2f; public LayerMask whatIsGround; public Vector2 jumpDirection = new Vector2(0f, 0f); public float jumpFocre = 500f;  bool doubleJump = false;  void Start () {     anim = GetComponent<Animator> (); }  void FixedUpdate () {     grounded = Physics2D.OverlapCircle(groundCheck.position, groundRadius, whatIsGround);     anim.SetBool ("Ground", grounded);      if (grounded)         doubleJump = false;      float move = Input.GetAxis ("Horizontal");     anim.SetFloat ("Speed", Mathf.Abs (move));      GetComponent<Rigidbody2D>().velocity = new Vector2(move * maxspeed, GetComponent<Rigidbody2D>().velocity.y); } void Update() {     if((!doubleJump) && Input.GetKeyDown ("up"))     {         anim.SetBool("Ground", false);         float move = Input.GetAxis ("Horizontal");         jumpDirection.x = move;         GetComponent<Rigidbody2D>().AddForce(jumpDirection.normalized * jumpFocre);          if(!doubleJump && !grounded)             doubleJump = true;     }   }  void Flip() {     facingRight = !facingRight;     Vector3 theScale = transform.localScale;     theScale.x *= -1;     transform.localScale = theScale;     } }


I've got this script file that works flawlessly in the viewport, but stops completely when I start rendering it as an Animation.  import bpy import math  def my_handler(scene):     print('testing') # this will be printed out 3 times each frame when rendering the animation, but once only in the viewport.     #assigning variables to objects     a=bpy.data.objects['EmptyTop']     b=bpy.data.objects['EmptyRight']     text=bpy.data.objects['TextRightSide']      # formula for calculating distance     distance=str(int(math.hypot(a.location.x - b.location.x, a.location.y - b.location.y)*10))     text.data.body=distance  bpy.app.handlers.frame_change_post.append(my_handler)   (my_handler) is refreshed every frame as I've tested it by printing a test text in it. However, the main problem is that it does not do anything with the next code (bpy.data.objects). I've tried to change (bpy.data) to (scene) as shown  import bpy import math  def my_handler(scene):     print('testing')     #assigning variables to objects     a=scene.objects['EmptyTop']     b=scene.objects['EmptyRight']     text=scene.objects['TextRightSide']      # formula for calculating distance     distance=str(int(math.hypot(a.location.x - b.location.x, a.location.y - b.location.y)*10))     text.data.body=distance  bpy.app.handlers.frame_change_post.append(my_handler)   Worked just fine in the viewport but gave me this message when rendering the it as An animation  (line 7, in my_handler KeyError: 'bpy_prop_collection[key]: key "EmptyTop" not found')   Sooo, what should I do now to make it work?

this works in viewport but not in render.  import bpy from math import *  def frame_handler(scene):     z = scene.objects['Lift'].location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_pre.append(frame_handler)   How to get it working in render? I've read  and changed from "bpy.data.objects" to "scene.objects" as already seen in the script. What am I missing? Blender v. 2.81.16  Edit. Tried that depsgraph thing mentioned in comments and changed to frame_change_post:  import bpy from bpy.app.handlers import persistent from math import *  @persistent  # maybe not relevant but doesn't harm anything? def frame_handler(scene, depsgraph):     z = scene.objects['Lift'].evaluated_get(depsgraph).location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_post.clear() bpy.app.handlers.frame_change_post.append(frame_handler)   Now the Text doesn't show up at all in rendered (but works in viewport).


When I compile my tex document, I receive some warnings on all bib entries. The warning is   LaTeX Warning: Citation `foo' on page N undefined on input line XX.   The commands I use are   bibtex template.tex  I couldn't open file name `template.tex.aux'   pdflatex template.tex  ....  LaTeX Warning: Citation `foo' on page N undefined on input line XX.   The document is  documentclass[pageno]{jpaper}  \usepackage[normalem]{ulem} \usepackage{array} \usepackage{mathtools} \usepackage{multirow} \usepackage{rotating}  \begin{document}  \title{the tile}  \date{} \maketitle  \begin{abstract} the abs \end{abstract}  \section{Introduction}  .... \bstctlcite{bstctl:etal, bstctl:nodash, bstctl:simpurl} \bibliographystyle{IEEEtranS} \bibliography{references}  \end{document}   And the reference.bib file is   @IEEEtranBSTCTL{bstctl:etal,   CTLuse_forced_etal = {no},   CTLmax_names_forced_etal = {3}, }  @IEEEtranBSTCTL{bstctl:nodash,   CTLdash_repeated_names = {no}, }  @IEEEtranBSTCTL{bstctl:simpurl,   CTLname_url_prefix = {Available: }, }   @inproceedings{foo,   author = "some ones",   title = "{something}",   booktitle = {proc},   year = {2011},   pages = {1-2}, }  ....   What does the warning mean?

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


Who can tell me what day is it today? Or Who can tell me what day it is today? Which is correct grammatically?

We always change subject and verb positions in whenever we want to ask a question such as "What is your name?". But when it comes to statements like the following, which form is correct?        I don't understand what are you talking about.   I don't understand what you are talking about.      Another example        Do you know what time is it?   Do you know what time it is?      Another example        Do you care how do I feel about this?   Do you care how I feel about this?


This is probably very trivial to many of you, but I could not find the answer to it. Thanks in advance for any help.   In short, I shallow copy a list, then modify one of its elements, but the change is not reflected in the other list, despite almost every resource saying that they are just two references to the same object, and any change in one should be reflected in the other one.  P.S. I have already checked out questions like  that clarify the differences b/w shallow and deep copy. My question is why despite those theories, sometimes shallow-copy behaves like deep-copy.      List<Integer> lst1 = new ArrayList<>();     lst1.add(2);     lst1.add(6);     lst1.add(1);     lst1.add(4);     lst1.add(9);     lst1.add(5);      List<Integer> lst2 = new ArrayList<>(lst1);     lst1.set(0, 3);      System.out.println("lst1 = " + lst1);     System.out.println("lst2 = " + lst2);   result:  lst1 = [3, 6, 1, 4, 9, 5]  lst2 = [2, 6, 1, 4, 9, 5]

What is the difference between a deep copy and a shallow copy?


I'm a student trying to learn C and C++, I've got a problem with the specifier %d I dont't understand the exception that is written in the console, It's writing The format %d expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat]  Here is the code : #include<stdio.h> #include<stdlib.h>  int main() {     short int u=1;     int v=2;     long int w=3;     char x='x';     float y=4;     double z=5;     long double a=6;     long b=7;     printf("short int:%d\n",sizeof(u));     printf("int:%d octets\n",sizeof(v));     printf("long int:%d octets\n",sizeof(w));     printf("char:%d octets\n",sizeof(x));     printf("float:%d octets\n",sizeof(y));     printf("double:%d octets\n",sizeof(z));     printf("long double:%d octets\n",sizeof(a));     printf("long:%d octets\n",sizeof(b));     return 0; }

I'm trying to print types like off_t and size_t.  What is the correct placeholder for printf() that is portable?  Or is there a completely different way to print those variables?


I made a  group hug deck with  as my win condition (obviously I would only use it in an emergency) and .  So, I cast  with, say, 40 cards in my hand, the text says "Each player discards their hand, then draws an amount of cards equal to the greatest number of cards a player discarded this way". So, could I use  after I discarded my hand, but before I drew 40 more cards? I know this sounds silly as I'd think that it wouldn't work, but if it does then I can do a lot more with my deck. Thanks!

My opponent has a  with scads of loyalty. I've got a  and a  on the battlefield.  He activates Sorin's "ultimate" ability, targeting Gideon.     -6: Destroy up to three target creatures and/or other planeswalkers. Return each card put into a graveyard this way to the battlefield under your control.   Is there any way I can use the Spellbomb to prevent my opponent from stealing Gideon after he is sent to my graveyard?


I would like to substract months from a timestamp in second.  Here is what I'm doing:  >>> ts = 1454284800 >>> date_object = datetime.datetime.strptime(time.strftime('%Y%m%d', time.gmtime(1454284800)), '%Y%m%d') >>> date_object datetime.datetime(2016, 2, 1, 0, 0) >>> date_substract = date_object - datetime.timedelta(9*365/12.0) >>> date_substract datetime.datetime(2015, 5, 3, 6, 0) >>>    It depends on the value for the number of months I want to substract, but for 9 months for exemple, days datetime.datetime(2015, 5, 3, 6, 0) are wrong.  Is there a better way to substract months, which would only change number of months and not days as well.  Thanks in advance.

I am using the datetime Python module.  I am looking to calculate the date 6 months from the current date. Could someone give me a little help doing this?  The reason I want to generate a date 6 months from the current date is to produce a review date.  If the user enters data into the system it will have a review date of 6 months from the date they entered the data.


I'm trying to remove a file I made by mistake using --exclude with tar. I ended up making a tar file named --exclude=*.tar Now I want to delete it but I'd like to rename it first. How do I escape it correctly?

How do you remove a file whose filename begins with a dash (hyphen or minus) -?  I'm ssh'd into a remote OSX server and I have this file in my directory:  tohru:~ $ ls -l total 8 -rw-r--r--    1 me  staff  1352 Aug 18 14:33 --help ...   How in the world can I delete --help from a CLI?  This issue is something that I come across in different forms on occasion, these files are easy to create, but hard to get rid of.  I have tried using backslash  rm \-\-help   I have tried quotes  rm "--help"   How do I prevent the minus (dash or hyphen) character to be interpreted as an option?