body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
I have just pulled up my old ceramic tiles from my bathroom an there is the thinset on the subfloor an some grout left on it. Do I need to clean that before putting new thinset on it? | I will be installing some new 12x12 tiles in two bathrooms approx 25 sq/ft each. When I pulled up the old tiles, there was no thin set that had made contact with them so the removal was very easy. Now, the thin set on the floor is a different story. I have been chipping away at it by hand in one bathroom to get to the cement floor below and it has been a bugger to get off. Before I attempt to continue this process in the second bathroom, I would like to know if it is absolutely required to do so if it is well adhered to the cement underneath? (It's my hope, obviously, that I can tile over the old thin set as long as it is level and firmly attached.) EDIT: My subfloor is a concrete slab with the thin set on it. It must be chipped away to remove vs. cut and replace sub floor. |
So once a month I'm having this problem where I can't connect to any servers with 1.8 but I can with 1.9, this makes it so I can't play on the servers that are only for 1.8. How can I fix this? | 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 have read a little bit about that, but I can't find answer that is telling me exactly what to do. So here's what I have been doing to store my database password in php: Lets say that my website is in the folder website. So we have /website/mysite.php My password is store outside this folder, in (for exemple) /mypassword/mypassword.php and I get it with an include '../mypassword/....'; On this file, the permissions are at 600, so owner can read and edit the file. Is it the proper way of doing it? or is there another way, more secure? (And easy to use too!) Sorry for my poor english, I'm not a native english speaker. | When a PHP application makes a database connection it of course generally needs to pass a login and password. If I'm using a single, minimum-permission login for my application, then the PHP needs to know that login and password somewhere. What is the best way to secure that password? It seems like just writing it in the PHP code isn't a good idea. |
shows statistics for all the beta sites. It shows questions per day, percentage of answers etc., The statistics for visitors per day is not updated correctly on Area 51. Above are the stats for If we see the stats on , the stats for visitors per day are different. These stats are also shown on their home page also shows difference. This difference is seen in almost all the beta sites. It might be related to a few days ago about inconsistency of Google Analytics. Update on 16/04/2018: also shows wrong stats now. | In the , can monitor some things like the total traffic on the site. However, it seems to be broken at the moment, all figures are almost zero. This is how it looks for Meta Stack Exchange (other sites show similar pictures): |
Hello I've been having a "Missing $ inserted" on my latex document and i'm not sure what to do. I've tried asking previously but wasn't able to fix it. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\ The text works fine separately but when put with the rest of the document i keep on getting errors. The rest of the text works fine and there are no $ signs that are not already paired in previous parts \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&= \left | y-(a+bx) \right |\\ E&= \left | y-(475.5+1.253x) \right |\\ (99,85): E&=\left | 85-(475.5-1.253(99) \right |\\ &=\left | 85-(351.5) \right |\\ &=266.5\\ (190,220): E&=\left | 220-(475.5-1.253(190) \right |\\ &=\left | 220-(237.5) \right |\\ &=17.5\\ (286,383): E&=\left | 383-(475.5-1.253(286) \right |\\ &=\left | 386-(117.2) \right |\\ &=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document} This is link to writeLatex online document Is anyone able to help with this? Error is at end. | Can anyone help with this. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\ The rest of the text works fine and there are no $ signs that are not already paired in previous parts \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&= \left | y-(a+bx) \right |\\ E&= \left | y-(475.5+1.253x) \right |\\ (99,85): E&=\left | 85-(475.5-1.253(99) \right |\\ &=\left | 85-(351.5) \right |\\ &=266.5\\ (190,220): E&=\left | 220-(475.5-1.253(190) \right |\\ &=\left | 220-(237.5) \right |\\ &=17.5\\ (286,383): E&=\left | 383-(475.5-1.253(286) \right |\\ &=\left | 386-(117.2) \right |\\ &=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document} |
Note that this is a different question from . That aside, I was unable to find the markup for writing something like this: As visible, I require the partial symbol to have a line across it. I would also appreciate it if someone could mention the markup for a crossed normal derivative, too, as a bonus. Thanks. | I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out? |
I’m newer to blender, and trying to create a 3D model of a brimmed cap sort of like a ball cap from a scan I took of the exterior using an iPhone app (ScandyPro). I’ve managed to import the .obj file and clean up the exterior (fill holes/inconsistencies in the scan etc). Problem is that it needs an “interior” to look real. Since a caps material is mostly thin fabric, I imagine there’s a way to duplicate the external scan and shrink it slightly, move it down, and to close up the “exterior shell” by connecting it to the exterior - I’m not sure how I would “bridge” the edges between the interior And exterior cleanly and efficiently though. Can anyone confirm if this is the easiest way to accomplish this and point me to the tools to bridge the two meshes together? | So I made this structure by subdividing a plane and elevating parts to make hallways: Then I realized that I wanted to make the walls have a certain thickness. Is there a way to do this? Extruding didn't really work for me. |
Could anyone explain the example below? Why is $F_4 = $ {$0,1,x,x+1$}? (I was learning that it should be $F_4 = $ {$0,1,2,3$}). And how do we get the two tables? | Question: Why is the table of $GF(4)$ look like the one below? I know it has to do with the fact that 4 is composite Let $GF(4) = \{0,1,B,D\}$ Addition: $$ \begin{array}{c|cccc} + & 0& 1& B & D \\ \hline 0& 0 & 1 & B & D \\ 1 & 1 & 0 & D & B \\ B & B & D & 0 & 1 \\ D & D & B & 1 & 0 \end{array} $$ Multiplication: $$\begin{array}{c|cccc} \cdot & 0 & 1 & B & D \\ \hline 0 & 0 & 0 & 0 & 0 \\ 1 & 0 & 1 & B & D \\ B & 0 & B & D & 1 \\ D & 0 & D & 1 & B \end{array}$$ |
Often if I am doing something in the terminal I will mistype something and enter something unintended. If I type int as a trivial example, it tells me Command 'int' not found, but there are 18 similar ones. Not that I need to know these 18 similar commands, but is there any way to find out what these "18 similar ones" are? Whether it be in the terminal or otherwise. | I had this on my Ubuntu setup and since I switched to Fedora I want to set it and I forgot how... The idea is simple : I don't want the terminal to show me suggestions when I double tab, instead I want it to cycle through every possible suggestion with each press on tab... this can be done in Vim also. So when I type gedit a and press tab it will show me every file with a first letter a. |
I think that for positive natural numbers t and n we have $$ \left(1+\frac{n}{t}\right)^t\ \le\ e^n\,. $$ Is this true? I have constructed a proof of it (which would probably take some lengthy typesetting here, and further I believe that the inequality could be very standard), but I wish to have an independent confirmation from the folks here. If the answer to the previous question is "yes", is there a proof in the published, reviewed literature (book, article, thesis, etc.) that I can reference? We really don't want to show that we've reinvented the wheel. EDIT: Since the answers confirmed the inequality, and there are even duplicate questions, I'm really interested in part 2 from now on. | I am having trouble with my homework problem, it says: Suppose that $n$ is a positive integer and that $x > 0$. Show that $$\left(1+\frac{x}{n}\right)^n < e^x.$$ I have proved the base case, but I am unsure how to proceed with the induction step. The question continues: and, if $x < n$, then $$e^x < \left(1-\frac{x}{n}\right)^{-n}$$ Also, by choosing a suitable $n$, deduce that $2.5 < e < 2.99$. I would like a hint to help me along if anyone can help. Thanks! |
Please, help me find the mistake in this line of thought, or solve the inevitable question at the end. 🙂 suppose there are two facing plates with different charge $Q_1$ and $Q_2$ these two plates are the only thing in the universe because of the charge imbalance, there is electrical energy in the system now I connect the two plates with an ideal conductor of zero resistance the excess charge in one plate goes to the other plate, without dissipating heat at the end there is no more charge imbalance, no more electric energy in the system where did the energy go? | What exactly would happen in the ideal case where a capacitor were to discharge into a wire with zero resistance? Like in here: There is still charge on one plate of the capacitor, which will try to go to the other plate to make $\Delta V = 0$ across the capacitor, so there has to be a current $I$. But as more charge goes to the other side of the capacitor, the more repulsion these will cause to more coming towards them. So I am assuming current cannot just be constant? I am starting from $$ I = C \frac{dV}{dt}, $$ but I know neither $V(t)$ nor $I$. |
How do we calculate the change in the acceleration due to gravity (consider earth as a uniform sphere) with a change in the rotation speed of earth along its axis? How do we build up a mathematical relationship between these two phenomenon? | Let us say a block of mass is placed on the surface of earth. Then while drawing the forces on that body, we say: Force $F = mg$ acting towards the center of Earth. Normal reaction $N$ offered by the surface of Earth. If no other forces are acting, we say $F=N$. But what about the centrifugal force $m\omega^2R$ . Why don't we ever bring that into picture? What am I missing? |
I am writing some Win32 program, and I meet a small problem, why I cannot initialize a Variable in switch case block. just like it: and when I do like this, it will be ok. And now I want to know why. | I've always wondered this - why can't you declare variables after a case label in a switch statement? In C++ you can declare variables pretty much anywhere (and declaring them close to first use is obviously a good thing) but the following still won't work: switch (val) { case VAL: // This won't work int newVal = 42; break; case ANOTHER_VAL: ... break; } The above gives me the following error (MSC): initialization of 'newVal' is skipped by 'case' label This seems to be a limitation in other languages too. Why is this such a problem? |
I am using the table environment in report class. Here is the MWE: \documentclass{report} \begin{document} \begin{table} \begin{tabular}{cc} \hline a&b\\ c&d\\ \hline \end{tabular} \caption{Table name} \end{table} \end{document} The output I am getting is a table with that is left aligned and a caption that is centred. If I use \centering I can get the table centred. However, I need to set each table separately in the table environment. Which command I need to modify it so that all tables are centred? | Background Would like to center all tables within floats, without having to add \centering to each table. Ideas Tried the following: \let\originaltabular\tabular \renewcommand\tabular{\centering\originaltabular} It compiles, but the tables remain left-justified. Question How would you edit the Preamble of a LyX document to make all the floating tables be centred? |
In S06E10 "The Winds of Winter", Lord Varys is first seen in Dorne in this scene: And at the end of the episode Lord Varys is seen standing behind Daenerys in the ship: How is this possible? Does Varys have some power that I am not aware of? What is it? | In S06E10 ("") we see Olenna Tyrell in Dorne, conversing with Ellaria Sand about a possible alliance between Dorne and Tyrell. Then suddenly Varys appears saying Fire and blood. What does this mean? It could point to an alliance between Dorne, Tyrell and Daenerys, which seems a reasonable choice, seeing that they both want to go against the Lannisters. But his appearance still seemed rather odd to me, since Varys should still be in Meereen, as we see him sailing on the ships that leave for Westeros with Daenerys later. So how was he suddenly in Dorne? Does this mean that scene was out of chronological order (in which case, was it earlier or later?)? Or does he have some other means for fast travel? Or was this maybe not even Varys? I would not like this question to degrade too much into completely random speculation and hope I just missed something obvious or it isn't as odd for him to be there as I might think. If this is really supposed to be a huge mystery to ponder the viewers for the next year, then be it so. Or do the books offer some insights on the matter (even thought I know that the series might diverge further and further from them in many regards). |
Is it possible to change the color of a selected feature in qgis 2.2.0 Valmiera? To highlight a feature I use: aLayer.Select(feat.id()) box = vlayer.boundingBoxOfSelected() qgis.utils.iface.mapCanvas().setExtent(box) qgis.utils.iface.mapCanvas().refresh() But the selected featue is colored yellow. Is it possible to define a different color for this feature? | is it possible to change the color of a selected feature in qgis 1.8? To highlight a feature I use: vlayer.setSelectedFeatures(selectedList) box = vlayer.boundingBoxOfSelected() qgis.utils.iface.mapCanvas().setExtent(box) qgis.utils.iface.mapCanvas().refresh() But the selected featue is colored yellow. Is it possible to define for example a red color for this feature? |
I am using the beta release of the module, and I encounter a feature issue in the code. My goal is to display a simple login label of the block rather than using the default provided by the module. To explain, in line #92 of the file , #value is defined as '#value' => t('Log in with @client_title', [ '@client_title' => $client['label'], ]), but I want to make it simplier, just #value' => t('Log in), Is there any way to create and apply patch for beta release or other workaround how this can be handled? (Not hardcoding in the file itself) The actual block displays the following. What I want to show is the following. How do I change the submission button text? | I'm trying to change the submit button text "Save and keep published", but with no luck. I'm using the standard hook_form_FORM_ID_alter(). function mymodule_form_node_news_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { // This is the problem, what should I put here $form['actions']['publish']['#value'] == ''; } This is what dpm() returns. 'publish' => array(7) '#value' => object Drupal\Core\StringTranslation\TranslatableMarkup(5) protected string -> string(18) "Save and keep published" protected translatedMarkup -> NULL protected options -> array(0) protected stringTranslation -> NULL protected arguments -> array(0) How do I change text on the submission button in the node form? |
I want to redirect my subdomain to https. My .htaccess file contains the following: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https: //%{HTTP_HOST}%{REQUEST_URI} It's redirecting to https but my chrome browser giving an error This webpage has a redirect loop The webpage at https: //sub.domain.com/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. Learn more about this problem. Error code: ERR_TOO_MANY_REDIRECTS please help me | This is a about Apache's mod_rewrite. Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as: Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask! How can I become an expert at writing mod_rewrite rules? What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples? A place to test your rules The web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not. |
How do I break out of this while loop which is inside a coroutine? The debug message appears continuously even after the value is reached. void Start() { StartCoroutine(StartFadingIn()); } IEnumerator StartFadingIn() { float i = 0f; while(i!=1f) { Color color = Downward.material.color; color.a = i; Downward.material.color = color; yield return new WaitForSeconds(0.05f); i = i+0.1f; Debug.Log("Repeat"); } } | Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? |
I am working on Lidar VLP-16. Can you advise me about the open source software that I could use for processing the lidar data and extract the object from the data? | I will be working with LiDAR data soon and I am wondering what the alternatives to using Esri software to do this are, including open source solutions? |
I have always been interested in Physics, and lots of people say that light is a particle and a wave. How is it possible? How can a photon (a light particle) be a wave as well, when its a particle? I have tried looking this up, but I do not really understand the answers, as they are quite complicated to me. If you could answer this, please could you explain it in quite a simple way! | I often hear about the wave-particle duality, and how particles exhibit properties of both particles and waves. However, I wonder, is this actually a duality? At the most fundamental level, we 'know' that everything is made up out of particles, whether those are photons, electrons, or maybe even strings. That light for example, also shows wave-like properties, why does that even matter? Don't we know that everything is made up of particles? In other words, wasn't Young wrong and Newton right, instead of them both being right? |
The use of "used to" is much more frequent than "use to", but what about "did used to" vs. "did use to"? | Which is the correct sentence, if there is a correct one? I use to be a hitman. I used to be a hitman. I've read the second sentence recently in a book, but I was sure it should be I use to be a hitman. |
I have 2 last names due to my hispanic background. Soon, I will have to think about my very first publication (field: Medicine/Psychology). Could I use only the first last name for my publishing or will I get into legal trouble with that? My goal is to avoid hassles after marriage, since we are planning to fuse our last names. So, assumed that my maiden name is A. Smith Miller, after marriage I'd be called A. Smith-Johnson, and my publishing name would be A. Smith. Is that possible, or is it mandatory to use the entire last name for publishing? | I have a question about my choice of name for publication. I recently got married and legally changed my name to my husband's surname (for example's sake: from Hunter to Jones). So, despite legally being Ms Jones now, I would quite like to use the hyphenated name Hunter-Jones in the professional context and in publications. This is so that people realise that it is still me and so that I can somewhat keep my maiden name. Is this possible or do I have to use my legal name professionally and when publishing? Thank you for any help |
I am preparing for my C# EXAM. I am confused about the answer to this question: A program can use the IEnumerable and IEnumerator interfaces to do which of the following? a. Use MoveNext and Reset to move through a list of objects. b. Use foreach to move through a list of objects. c. Move through a list of objects by index. d. Use the yield return statement to make a list of objects for iteration. My answer was b). But the book: MCSD Certification Toolkit says it is a). Can someone tell me why? I realize that you can obtain the Enumerator using GetEnumerator() and then call the MoveNext and Reset methods to move through the list (and use Current to access the current element referred to by the iterator). But isn't implementing IEnumerable and IEnumerator the reason for an object to be used in a foreach loop? | Possible Duplicate: What are the differences between IEnumerator and IEnumerable? |
I am trying to solve the following exercise of Dummit and Foote Book(page # 551). Let $a>1$ be an integer. Prove for any positive integers $n,d$ that $d$ divides $n$ if and only if $a^d-1$ divides $a^n-1$. Conclude in particular that $\mathbb{F}_{p^d}\subseteq\mathbb{F}_{p^n}$ if and only if $d$ divides $n$. I did the first part and I know that for all $\alpha\in \mathbb{F}_{p^d}$, $\alpha^{p^d}=\alpha$. How can I apply the first part for the second? Any help is greatly appreciated. Thank you. | I am looking to prove that $GF(p^n)$ contains a unique subfield isomorphic to $GF(p^m)$ if and only if $m$ is a divisor of $n$. In the Wikipedia article: They say that this statement has been proven by E. H. Moore in 1893. How to go about proving the theorem? I know first I need to generate a subset, prove that it's a subfield, and then assume they are two and show it's unique. But how to generate it in the first place? Consider the set of polynomials of the form $x^{p^m}-x=0$? Is there a way to show that it's a subfield without checking all the axioms? |
Sometimes in OLS model we have constant for example -2345 significant and doesn't have a mean. Why we must keep it in the model? Why when we drop it the results change? What does it mean? And sometimes it is insignificant. Why? | I am running linear regression models and wondering what the conditions are for removing the intercept term. In comparing results from two different regressions where one has the intercept and the other does not, I notice that the $R^2$ of the function without the intercept is much higher. Are there certain conditions or assumptions I should be following to make sure the removal of the intercept term is valid? |
Any security person worth their salt would know that you don't plug a drive retrieved from a malicious source onto a network connected system. At least not connected to the uber-secure network. Why did Q plug the drive into a system attached to the secure network? Why didn't he take the extremely simple and obvious precaution of disconnecting from the network before trying to read the drive? | In the movie Shouldn't Q like connect Silva's computer to a secure line or something, considering that he was a known cyberterrorist? Isn't there any sort of internal protocols for the networking system? |
Its usual that we see doctors use Dr. Title, but I have also seen engineers use title - Er. Is this practise allowed, approved? I have seen few name boards like that in India. | I know that the title Dr. is often used to refer to those who practice medicine. For example, today I am going to see Dr. [Surname]. But are we in general expected to use the title when we refer to the following other professions too? Psychoanalyst Veterinarian Lawyer Any other? |
There is or there are family ? I am confused, because the family consists of several people in it. | Should I use is or are in this sentence? I don't know what the difference is. As I was trying to figure it out, plural and singular came to mind. Is family plural or singular and is that a factor? Family is very important to me. Family are very important to. |
I am a beginner. I am trying to translate in the Z axis, the problem is that I only want to translate less than a square but when I move the mouse, it translate 1 full square. How I can deactivate the option, to move the object free? | My cursor is moving by every selection by large increments! Normally when I use Blender, I am able to select and move objects to any coordinate. Now, all of the sudden, when I select an object or mesh the selection moves by an inch or so in each direction. How do I reset it to normal? |
I tried take limit n goes to infinity. Wolfram solved the limit and $(n^2)!$ has greater growth rate but there is not step by step solution. I think I can simplify $(n!)^n$ to $(n^n)^n$ But how can I prove $(n^2)! > (n^n)^n$ | It is well known that $(n!)^2$ divides $(2n)!$. Does it follow that $(n!)^3$ divides $(3n)!$ and so on up to $(n!)^n$ dividing $(n^2)!$? If yes or no, could you provide the details behind the argument? As a quick test, I tried $n=3$ and $n=4$ which worked. Thanks, -Larry |
I'm working with a style in two columns. I would like to put a table fitting in one column as did in However, if I use big strings as "large large large large large large" inside a \rotatebox, I have the error: pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pdfstartlink. \end{document} \begin{table} \caption{Summary of the characteristics used in some related works.} \label{tableRelatedWorks2} \resizebox{\columnwidth}{!}{% \begin{tabular}{ccccccc} \rotatebox[origin=c]{90}{\text{large large large large large large} } & \text{KLSRf} & \text{MLDFSP} & \text{PNDND} & \text{LDFSSVM} & \rotatebox[origin=c]{90}{a} & \rotatebox[origin=c]{90}{b}\\ \hline \end{tabular} } \end{table} If I put a string with 5 characters instead of "large large large large large large" in the code above, it works. Someone could say what's wrong? | I started using showkeys in one of my documents and see this error \pdfendlink ended up in different nesting level than \pdfstartlink A bit of google suggests that this "happens when hyperref is used under pdftex and a citation splits across a page boundary". (See: ). But this package is only useful at drafting stage where the text is changing frequently i.e. the chance of the error is high. Is there a general way to smoothly use showkeys with hyperref? Thanks. |
According to the $\Lambda$CDM parametrization of the Standard Model of Big Bang cosmology, the universe contains a cosmological constant $\Lambda$ associated with $73\%$ dark energy, $23\%$cold dark matter (CDM) and $5\%$ ordinary matter. I have also read from Kolb and Turner's book that the Cold dark matter leads to a "bottom-up" formation of structure in the universe while hot dark matter would result in a "top-down" formation scenario; since the late 1990s, the latter has been ruled out by observations of high-redshift galaxies such as the Hubble Ultra-Deep Field. $\bullet$ How do we know that the dark matter is cold or nonrelativistic? $\bullet$ What is the percentage of hot dark matter in $\Lambda$CDM parameterization? Is the possibility of dark matter totally ruled out? Addendum Existence of CDM does not rule out existence of HDM. In fact, it is assumed that the dominant fraction of the dark matter is CDM type. But observations only tell us that $23\%$ of the total mass-energy of the observable Universe dark matter. But this information does not tell how much of it is HDM and how much is CDM? The belief is that the the dominant component of the dark matter is CDM but is there an estimate? Is there a physical way to understand/expect why the CDM should be the dominant contribution? Please note There is a typo. I wanted to ask "Is the possibility of hot dark matter totally ruled out?" | Most of the dark matter in the Universe is cold or nonrelativistic which rules out neutrinos as dark matter candidate as they are hot or relativistic. But why do physicists think that the dark matter is cold? How cold (i.e., how heavy) do these dark matter particles have to be? |
When using the Android app, I am unable to view deleted questions on any site. I simply get, "Loading the question failed." However, I can view these sites normally in the browser using the same account, so I don't see why I would be restricted access to them via the dedicated app. Questions attempted: (20k+ on this site) (9k+ on this site, but it's a beta site) Both questions fully load in the browser on my computer or my Android device, but when opening them via the app, as mentioned, I receive the error that, "Loading the question failed." If I'm already looking at a question pre-deletion, and it is deleted, refreshing it gives an, "Unable to refresh" error. I don't know if we're just not intended to look at deleted questions on the Android app (yet?), but I figured this would just be a provided feature, so that makes me think this is probably a bug. | When a question fails to load, for network issues, phone issues, app issues, the question was deleted (for moderation or the user did), or the question really doesn't exist, we get this generic "Loading the question failed" dialog with a retry button. If the question has been deleted or doesn't exist, retrying to load the question will never work. Is it possible to make this experience a little nicer, maybe providing why the app can't load the requested question? And if it retrying will never load the question, hide the retry button? |
I tried to work with a list of deques and was not able to to append a value to a single deque by indexing it. It looks like the following: >>> l_deque = [deque([0] * 3, maxlen = 3)] * 5 >>> l_deque [deque([0, 0, 0]), deque([0, 0, 0]), deque([0, 0, 0]), deque([0, 0, 0]), deque([0, 0, 0])] >>> l_deque[0] deque([0, 0, 0]) So far so good. But when I try to append a value to a single deque it appends it to every deque: >>> l_deque[0].append(1) >>> l_deque [deque([0, 0, 1]), deque([0, 0, 1]), deque([0, 0, 1]), deque([0, 0, 1]), deque([0, 0, 1])] I expected something like this: [deque([0, 0, 1]), deque([0, 0, 0]), deque([0, 0, 0]), deque([0, 0, 0]), deque([0, 0, 0])] Do you have an idea where I took the wrong turn? Thanks Edit: Thanks guys, Changing it to >>> l = [deque([0] * 3, maxlen = 3), deque([0] * 3, maxlen = 3), deque([0] * 3, maxlen = 3), deque([0] * 3, maxlen = 3), deque([0] * 3, maxlen = 3)] did the job. Ugly but effective. | I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it? |
By downloading I obtain these fonts: Adobe Pi Std (regular) Courier Std (regular, bold, italic, bold-italic) Minion Pro (regular, bold, italic, bold-italic) Myriad Pro (regular, bold, italic, bold-italic) Is it legal to embed these fonts in a PDF and distribute that PDF? | Suppose, I am creating a logo in a vector graphics editor (for example ) and I use there the font which cannot be freely distributed (for example which can be obtained by downloading Adobe Reader). Then I convert the text, which uses the not-freely-distributable font, to "path" (for example, Inkscape can do it), so all the information about the used font will be lost. Is it legal to distribute such a logo (the font is no longer embedded in the logo, it was converted to path)? |
I have trouble declaring a two-dimensional list in Python. Below are two different matrices; A and R. When changing the content of a single cell I am successful in the R-matrix, but not so much in the A-matrix, as the value-input affect the entire column and not only the single cell. Why does this happen? I would prefer the A-style of declaring the matrix. n=6 A = [[0]*n]*n R=[[0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0]] R[1][1]=5 A[1][1]=5 print(R) print(A) The output from the two operations is: [[0, 0, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] [[0, 5, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0], [0, 5, 0, 0, 0, 0]] | I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it? |
For Debugging purposes in Animations I would like to disable Blenders default both sided rendering of faces in the 3D view. Is this possible? | How do you hide back faces so that you only see faces when its normal is facing the camera? When exporting it for use in a game, the face is rendered in only the direction of its normal, so this would be useful to have something similar. |
I am exploring the world of the REST API for the first time, I have already had to deal with it through the use of Slim, but now I want to be a homemade solution, considering that I don't need any framework for make a simple Rest Api. What I have done is create a page like this: <?php $method = $_SERVER['REQUEST_METHOD']; $request = explode("/", substr(@$_SERVER['PATH_INFO'], 1)); switch ($method) { case 'PUT': echo "PUT"; break; case 'POST': echo "POST"; break; case 'GET': echo "GET"; break; case 'DELETE': echo "DELETE"; break; default: handle_error($request); break; } My goal is to implement an access token, I think passing it in the header but I'm not sure (I'm looking for a secure mode). However if I run this from the command line: curl -X GET http://localhost/v1 I get GET, just to give an example of how it should work. And so for all other inquiries. Now the real question is: how can I call the methods in the switch only if I passed a token? For example, at the top of the page will be performed control will be carried out such a check: if(!isset($_SERVER['AUTH_USER'])) { exit('TOKEN not provide'); } Another question is how to pass the token via curl? Because if I do it through ... I can read the header via curl but how would it work? UPDATE: As mentioned by @Paradoxis I've tried with: url http://localhost/v1 -H "Authorization: <token>" but seems that I fail to take the header. I spend my time to understand why the header isn't passed, so in my code I've add this line: print_r(apache_request_headers()); and this is the result: Array ( [Host] => localhost [User-Agent] => curl/7.46.0 [Accept] => */* [Authorization] => <token> ) How you can see in the request_headers I can see correctly in the header, but I can't catch it through the use of $_SERVER['Authorization'] or $_SERVER['HTTP_Authorization'] | What does RESTful Authentication mean and how does it work? I can't find a good overview on Google. My only understanding is that you pass the session key (remeberal) in the URL, but this could be horribly wrong. |
Suppose I read a research paper and write an email to the authors, requesting some resource or asking a doubt. I know the email address and author's name from research paper. What is the proper salutation? Is it proper to use "Dear sir" or not? What are the other alternatives to salute? | 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) |
This question is related to the following answer posted by Zon. I used the following code to copy a folder from remote to local. public void downloadDir(String sourcePath, String destPath) throws SftpException { // With subfolders and all files. // Create local folders if absent. try { new File(destPath).mkdirs(); } catch (Exception e) { System.out.println("Error at : " + destPath); } sftpChannel.lcd(destPath); // Copy remote folders one by one. lsFolderCopy(sourcePath, destPath); // Separated because loops itself inside for subfolders. } private void lsFolderCopy(String sourcePath, String destPath) throws SftpException { // List source (remote, sftp) directory and create a local copy of it - method for every single directory. Vector<ChannelSftp.LsEntry> list = sftpChannel.ls(sourcePath); // List source directory structure. for (ChannelSftp.LsEntry oListItem : list) { // Iterate objects in the list to get file/folder names. if (!oListItem.getAttrs().isDir()) { // If it is a file (not a directory). if (!(new File(destPath + "/" + oListItem.getFilename())).exists() || (oListItem.getAttrs().getMTime() > Long.valueOf(new File(destPath + "/" + oListItem.getFilename()).lastModified() / (long) 1000).intValue())) { // Download only if changed later. new File(destPath + "/" + oListItem.getFilename()); sftpChannel.get(sourcePath + "/" + oListItem.getFilename(), destPath + "/" + oListItem.getFilename()); // Grab file from source ([source filename], [destination filename]). } } else if (!".".equals(oListItem.getFilename() || "..".equals(oListItem.getFilename())) { new File(destPath + "/" + oListItem.getFilename()).mkdirs(); // Empty folder copy. lsFolderCopy(sourcePath + "/" + oListItem.getFilename(), destPath + "/" + oListItem.getFilename()); // Enter found folder on server to read its contents and create locally. } } } But I am getting a null pointer exception at the following line which I am unable to resolve. Vector<ChannelSftp.LsEntry> list = sftpChannel.ls(sourcePath); // List source directory structure I get that it has problem reading the source path but why? Please suggest. Edited: This is the stacktrace: Exception in thread "main" 4: at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1720) at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1526) at org.gradle.CopyTest.downloadDir(CopyTest.java:68) at org.gradle.CopyTest.main(CopyTest.java:97) Caused by: java.lang.NullPointerException at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1543) ... 3 more This exception is getting thrown: throw new SftpException(SSH_FX_FAILURE, "", (Throwable)e); From this statement I believe: ((MyPipedInputStream)io_in).updateReadSide(); | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
: ; linear recursion (define (factorial n) (if (= n 1) 1 (* n (factorial (- n 1))))) ; tail recusive: ; linear iterative process: (define (alt-factorial n [counter 1] [product 1] (if (> counter n) product (alt-factorial n (+ counter 1) (* product counter))))) (* n (factorial (- n 1))) This return statement multiplies the recursive call with n whereas this return statement: (alt-factorial n (+ counter 1) (* product counter)), with the help of a counter and product variable, is able to put all the calculation within the recursive call. Is this what makes it a tail call and is this all there is to it? Does it not matter that it is using variables because the compiler optimizes to simply use the return value in the next call? Sorry if this question is scattered I'm just having a hard time grasping the concept. | Whilst starting to learn lisp, I've come across the term tail-recursive. What does it mean exactly? |
I have a product key from a Windows Checked build that I'd like to use on a Free version, but the source didn't state the edition the key is bound to. So I don't know what edition should I install. | I have a Windows 7 product key that I foolishly did not label. Rather than downloading and creating disks for however many different ISOs exist (Basic, Pro, Ultimate, 32-bit/64-bit, upgrade, full version) and testing each one until one works, is there a way I can discover what the key is for specifically? |
My idea is using a AsynTask download a dataset and store in a arrayList. That I have checked and works well. In the onPostExecute method I call a function to update my listView and I load the data stored in the ArrayList. Code: protected void onPostExecute(String result) { progressDialog.setProgress(99); actualizarDisplay(); } The method actulizarDisplay: dataAdapter = new MyCustomAdapter(this,R.layout.servicio, listaServicios); ListView listView = (ListView) findViewById(R.id.listaServ); listView.setAdapter(dataAdapter); And the class MyCustomAdapter: private class MyCustomAdapter extends ArrayAdapter<Servicio> { private ArrayList<Servicio> servicioList; public MyCustomAdapter(Context context, int textViewResourceId,ArrayList<Servicio> servicioList) { super(context, textViewResourceId,servicioList); this.servicioList = new ArrayList<Servicio>(); this.servicioList.addAll(servicioList); } private class ViewHolder { TextView nombre, hora, lugar, fecha; ImageView tipo; } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = null; if (convertView == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = vi.inflate(R.layout.servicio, null); holder = new ViewHolder(); holder.nombre = (TextView) convertView.findViewById(R.id.titulo); holder.lugar = (TextView) convertView.findViewById(R.id.lugar); holder.hora = (TextView) convertView.findViewById(R.id.hora); holder.fecha = (TextView) convertView.findViewById(R.id.fecha); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } Servicio servicio = servicioList.get(position); Log.i("ConvertView", servicio.getNombre()); // the correct value is displayed holder.nombre.setText(servicio.getNombre()); holder.hora.setText(servicio.getHora()); holder.lugar.setText(servicio.getLugar()); holder.fecha.setText(servicio.getFecha()); if (servicio.tipo == 0) holder.tipo.setImageResource(R.drawable.cultural); return convertView; } } And this is the error in the logcat, THE LINE 423 is: holder.nombre.setText(servicio.getNombre()); FATAL EXCEPTION: main java.lang.NullPointerException at app.serviciosprote.Inicio$MyCustomAdapter.getView(Inicio.java:423) at android.widget.AbsListView.obtainView(AbsListView.java:2350) at android.widget.ListView.measureHeightOfChildren(ListView.java:1409) at android.widget.ListView.onMeasure(ListView.java:1273) at android.view.View.measure(View.java:15286) at android.widget.RelativeLayout.measureChild(RelativeLayout.java:602) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:415) at android.view.View.measure(View.java:15286) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4832) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1390) at android.widget.LinearLayout.measureVertical(LinearLayout.java:681) at android.widget.LinearLayout.onMeasure(LinearLayout.java:574) at android.view.View.measure(View.java:15286) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4832) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:15286) at android.widget.LinearLayout.measureVertical(LinearLayout.java:833) at android.widget.LinearLayout.onMeasure(LinearLayout.java:574) at android.view.View.measure(View.java:15286) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4832) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2269) Thanks for trying to help | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
when i typed sudo apt-get update in terminal, it gave me this error: E: Malformed line 1 in source list /etc/apt/sources.list.d/gazebo-latest.list (dist) E: The list of sources could not be read. I looked into gazebo-latest.list file. there is a line deb http://packages.osrfoundation.org/gazebo/ubuntu quantal main How can i fix this problem | I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen shot but since I'm new it won't allow me to. I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following: COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse) E: The list of sources could not be read., E: The package list of status file could not be parsed or opened. How do I report bugs? What can be done about this. I have searched and everything everyone says to do leads me back to the same line error message. So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software. |
There are questions similar to this one, but they were asked before the new feature. The answers on the older questions are outdated and simply suggest "just don't log in to the other site", however this is no longer possible. And the older questions do not put this forward. So due to now being automatically logged in, we no longer have the choice to not show if we're active on a site by not logging in to it. Proposal I suggest an option for users to hide the 'last seen' info from the public profile, in order to give them control over their private information regarding their online habits. | Possible Duplicate: Some people don't like being spied on by bosses or others, or revealing the frequency and intensity of their participation on SE sites. Is an option to hide "seen" and similar fields on the summary page viable? Or, could the field be changed to day-level granularity? |
For example, This early 1980s incident made headlines at that time. versus This early 1980s incident made headlines at the time. Which is correct and why? | I hope this is not a double post. Should I use "at the time" or "at that time" when I want to express something that was known during the time when the events occurred? Bonco presents the facts known at the time about Fiolo and their interpretation by various authors. Here I mean "at the time" as "at the moment that Bonco wrote it." |
I have heard that the Voyager spacecrafts received gravitational boosts from some of the planets before they left the solar system. How is this achieved? Since we have to conserve energy it seems that whatever speed is gained due to gravity would then be lost as the object flys away from the planet. Specifically I want to know how we can willingly slow the planets orbit to steal some of its energy. How do we know that the fly by is going to take energy from the planet rather than lose energy to the planet? | I read in in this site that the KE a free-falling ball acquires is not originated by the attracting body but that energy was actually stored in the ball when it had been lifted to the height it dropped from. In this way, it was said, gravity is subject to the conservation of energy principle and cannot change the total energy of an object. Consider now the maneuver known as a (also gravity assist) used by space probes such as the . A space probe approaches a planet with velocity $v$, slingshots around, and ends up with velocity $v+2U$, where $U$ is the velocity of the planet. Consider the energy of the probe. Before, it was $E_i=\frac{1}{2} mv^2$ and after it is $E_f=\frac{1}{2} m(v+2U)^2$. It looks like $E_f$ is much bigger than $E_i$ - but where did the additional energy come from? Is this not a violation of the conservation of energy principle? |
I was reading Batman Begins (2005) , and was shocked to see that the movie got for a award for Worst Supporting Actress for Katie Holmes who played Rachel Dawes in the movie. We know that Katie Holmes was replaced by Maggie Gyllenhaal in the sequel which had me thinking that it may be because of the said nomination. So, was Rachel Dawes role recast because of that nomination? If so, was it Holmes' decision or the filmmakers' (producers, director)? | Katie Holmes played Rachel Dawes in Batman Begins but Maggie Gyllenhall played the character in The Dark Knight. Was there any particular reason why Katie Holmes didn't continue on in the role? |
I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the last two or three decimal digits. What I would like to do, is to color only the digits that differes from one numbe to another. The problem is that these numbers are normally contained in a command \num or \SI of the siunitx package. Is there any way of coloring only the last decimal digits of a number contained in the commands \num or \SI? | I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from . Of course I can do it manually as in the MWE below, but was hoping that there might be an easy way to use the commented out syntax to accomplish this: Code: \documentclass{article} \usepackage{xcolor} \usepackage{siunitx} \newcommand*{\Color}[2][red]{\textcolor{#1}{#2}}% \begin{document} \num{99 976} 88\,9\Color{76} %\num{88 9\Color{76}} 77\,\Color{976} %\num{77 \Color{976}} \end{document} |
I am using Windows 8.1 with UEFI Boot Mode and secure boot is on. I read somewhere that you should turn off secure boot to install Ubuntu properly. I had installed Ubuntu on my different laptop and it is working fine with Windows 10 along with Ubuntu on UEFI boot and secure boot OFF.Now i want to install Ubuntu on my laptop with windows 8.1 previously installed.So,the question is that,is there any problem to install Ubuntu on it with secure boot ON,or i have to change secure boot to OFF? | I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS. Should I do it with Wubi, or through the Live USB/DVD? What steps do I need to take to correctly install Ubuntu? |
I have several files as follow : multiview_action.tgz.part-aa multiview_action.tgz.part-ab ... ... multiview_action.tgz.part-ap I tried the following command : tar -zxvf multiview_action.tgz* I got the following error : gzip: stdin: unexpected end of file tar: Fin prématurée rencontrée dans l'archive. tar: Error is not recoverable: exiting now | I am receiving this error message when I'm trying to uncompress a .tgz archive: $ tar -zxvf OVM_EL5U3_X86_EBIZ12.1.1_DB_VIS_PVM.tgz.1 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now As you can see, the file name ends with .tgz.1. When the file name is .tgz.0 it will be uncompressed with no error by the tar -zxvf command. |
I've upgraded my Ubuntu 19.04 to 19.10 and all work good but I have a little problem. Some elements in top bar have white color instead dark. | Ubuntu 20.04 dark mode is not making the top bar menus dark. I've done all my updates and rebooted a few times but it won't make them menus dark. |
If it's applied to an act of theft, then why is the last word of the expression 'grand theft auto' is 'auto' instead of 'theft'? It's constructed as if it's 'auto' modified with 'grand theft', i.e. an auto that has been "grand-thefted", so to speak. Why is the word order so unusual? | There is a video game series called "Grand Theft Auto". According to its : The name of the series references the term used in the US for motor vehicle theft. [...] Motor vehicle theft or, grand theft auto, is the criminal act of stealing or attempting to steal a car (or any other motor vehicle). I always wondered why this term sounds so strange. Shouldn't it be "grand auto theft" or maybe "grand theft of auto" instead? Are there any other terms with strange words order and/or missing prepositions like this? |
i just installed LINUX in my laptop.i had window 7 , i replace UBUNTU with window 7. the drives data(D:, E:) in window is not showing in LINUX. how to recover my drives data. i didn't use LINUX yet. how to get my data back.in this(LINUX) it shows 490 GB free. my Hard disk is 500 GB.how to get back my 150 GB data now. Please describe me the way to get all the deleted data.please help me.i need your suggestion.thanks a lot for helping me. | I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions (C:) Vista (D:) Entertainment (E:) Work (F:) Sources and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB. I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse? I need these data badly as I don't have a backup for them. |
I have an extra hard drive that I used to run Windows on before something technical went bad in the computer. The hard drive itself still works fine, however and I have attached it via SATA to my main computer and have gotten all of the files that I want off of it. I would like to clean it to just use for storage on my server. I am not really worried about safety, so I don't need anything like DBaN. What is the best way to clean all of the files off of it? | I am trying to encrypt an entire USB drive with Truecrypt 7.1a. But as long as there is a partition it will only encrypt that. This will make it appear like the USB is full instead of completely empty, which isnt what Im aiming for. I've tried with DISKPART, USB Partition Tool, and the built-in storage manager. When I delete all partitions, Windows still assigns the drive a letter and assumes that it has a partition covering the whole space. I know that it is possible as I have done it with another USB, but I just don't remember how I did it. Ideas? |
I am trying to push a repository onto Github, but I cannot as "large files are detected". The largest file is only 38 MB! There should be no problem. However, the error states that the file datafiles/FILENAME.json is 2016.04 MB, and is still in this subdirectory. But I have deleted this! I have also used git commit, so those changes should be committed. I go into the subdirectory (which has already been initialized with git init). I then try to use sudo git push origin master. This is the error I get after $ sudo git push origin master: Counting objects: 19, done. Delta compression using up to 4 threads. Compressing objects: 100% (18/18), done. Writing objects: 100% (19/19), 1.69 GiB | 385.00 KiB/s, done. Total 19 (delta 9), reused 0 (delta 0) remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: Trace: b2274b496089a760fae877fdaf3d8b23 remote: error: See http://git.io/iEPt8g for more information. remote: error: File datafiles/FILENAME.json is 2016.04 MB; this exceeds GitHub's file size limit of 100.00 MB What is the problem? | I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want to completely delete the file from the repository history. Is it possible to rewrite the change history such that filename.orig was never added to the repository in the first place? |
I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to write the code that it will not be separated. my code for figure: \begin{figure}[h!] \centering \includegraphics[width=1.0\textwidth]{(4)13.png} \caption{The dielectric permittivity bla bla bla.} \label{(4)13} \end {figure} in text it is like At the end of this chapter let us compare the numerical results for the phase mode frequency and dielectric response with experimental results. Fig. \ref{(4)13} shows the relaxation frequency ($\omega$) bla bla bla... And in the PDF looks like: Thank you very much for your help. Best regards, Kristina | My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well. |
Is there any way to implement latex in my application(written in python) without having to actually install Miktex or Texlive. I want to compile a .tex to pdf. The size should also be small so portable versions cannot be used. | Is there any way to compile a .tex to pdf without having to install latex. Is there any python package for this ? Or even better is there any small stand-alone portable software for this. Thanks a lot |
Why can't we list out the most close voted questions first in the review queue? While reviewing duplicate questions I noticed that the least close voted questions (1 close vote) and the most close voted questions (4 close votes) get listed in no apparent order. Why can't we sort the questions, starting from most close voted to least close voted? It would help to close questions sooner. | The Close-Vote queue is large and growing. I searched for definitive information on how that queue is sorted for reviewers, and the nearest I could find is that it is randomized - but that post was some years old. Would it be possible to sort on order of votes already received? That is, all questions with 4 votes to close are surfaced first (in random order) to reviewers? Questions with 3 votes would come up before ones with 2, etc. In that manner a given question gets out of 'will it close?' limbo faster. This feature request would, in my opinion, be supportable if the majority of reviewer votes were going to single-vote questions. I cannot (I think) actually find these numbers. If this is the case, the majority of the work is going to an ever-increasing queue, and proportionally fewer votes are being resolved. Note there are other distributions that could help get in this direction without being a strict ordering, like weighting the chance a given question is surfaced to a reviewer by the number of votes. However, for discussion purposes I thought I'd keep it simple. Usual apology if this has actually been addressed. Search is sad-making. |
I am a bit new to javascript, i was just trying the below snippet: _getUniqueID = (function () { var i = 1; return function () { return i++; }; }()); s = _getUniqueID(); console.log(s); // 1 console.log(_getUniqueID()); // 2 I was under the impression that i would have to do s() to get 1 as the result and i was thinking that _getUniqueID() returns a function rather than execute the funtion inside it. Can somebody explain the exact execution of this function please ? | I'm new to both JavaScript and . In YUI library examples, you can find many uses of this construct: (function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, layout = null, ... })(); I think the last couple of parentheses are to execute the function just after the declaration. ... But what about the previous set of parentheses surrounding the function declaration? I think it is a matter of scope; that's to hide inside variables to outside functions and possibly global objects. Is it? More generally, what are the mechanics of those parentheses? |
In the answer to and it is recommended that you cite an idea or useful answer for your research work on StackExchange. Now, if you have asked a question requiring a walk-back mathematical process (lets assume its a contribution) using fundamental knowledge to walk-back, if you do cite in this case, how do you keep the privacy of your account name? Since, people would check the answer and could look into the account history of the questioner and the answerer. Also, these StackExchange websites are linked and it seems that not everyone would like that for privacy reasons. So how could this be managed appropriately? Note: This is a modification of an existing question marked as duplicate. | Sometimes we may ask questions on stack exchange or online forums wherein the response is helpful or even essential to a piece of work that gets published in an academic journal. If this occurs, how should credit be given to those involved in the exchange? Should they all be included as authors? Should a link to the forum be included as a reference in the paper? Once something is in a stack exchange or forum, it's "published". Perhaps in the future, the current peer review model will transform into people writing blogs and posting in forums and databases. But for now, how might this issue be dealt with while forums, blogs, etc coexist with journals? |
I have problems to execute windows updates through independent windows installers. The equipement show message that say: The update is not applicable in this equipement. S.O Windows Server 2016 | I've been trying to install the update KB4088889 and the update KB4089510 on Windows Server 2016, but the equipement show message that say: The update is not applicable in this equipement. I have verified that: the problem occurs with all updates. I have problems to execute windows updates through independent windows installers. |
I can't understand the concept of reinterpret_cast and static_ cast. Can anyone please explain in easy method using ASCII Art or something like that.. | What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast type(value) How does one decide which to use in which specific cases? |
I am completely new to Photoshop and now I am able to create simple logo based on images available or creating simple 3D text. I am fascinated by these logo design & I am not able to find any tutorial or demonstration for these kind of logo. Do I need any other tool than PhotoShop to create logo's like below? or I can transform my simple logo to look like above? I have created below logo based on existing logo but still can't make it look good | I have recently created a logo. I have seen an online trend of showing off a logo in a realistic environment, illustrating possible use cases of the logo. An example of this can be seen here, with the original logo at the bottom and a 3D mockup at the top: How can I create such a mockup? |
A reach weapon adds 5 feet to your reach making it 10 feet. If you are holding a 2-handed reach weapon (eg a glaive) with 2 hands and someone moves from 5 feet away to 10 feet away do you still get an opportunity attack? Or because you are holding the weapon are you unable to use an unarmed strike for opportunity attacks? | Assume I wield a Whip in one hand and a dagger in the other. If a creature moves from 5ft to 10ft it has technically moved out of my reach (dagger), but at the same time it is still inside my reach (whip). When does it provoke opportunity attacks from me? I am fully aware that this would not enable me to make off-hand attacks since the whip is not a light weapon, just to cut that issue out of the question. |
I have updated the packages of miktex and now when I compile my file, the figures \includegraphics are not compiled and show only as a line of the figure name. I reinstalled both miktex and the texniccenter but no solution. Is it a bug? Any one please has a similar experience or an advice? | After updating MiKTeX graphics package on 10/5/19 to version 1.3b (packaged on 10/4/2019 8:11:27 PM), I am unable to compile LaTex files that contain \includegraphics{}. My system: Windows 10 with MiKTeX 2.9.7200 A minimum working example: \documentclass{article} \usepackage{graphics} \begin{document} \begin{figure} \includegraphics{MC_Antenna_Gain} \end{figure} \end{document} The error report This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7200) entering extended mode (C:/Users/nicrog/Dropbox/T_P_2/Scholar/Grants/Written/EWU_20/Test.tex LaTeX2e <2018-12-01> ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\article.cls" Document Class: article 2019/08/27 v1.4j Standard LaTeX document class ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\size10.clo")) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\graphics.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\trig.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics-cfg\graphics.cfg") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def")) No file Test.aux. ("C:\Program Files (x86)\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii" [Loading MPS to PDF converter (version 2006.09.02).] ) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\epstopdf-base.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\grfext.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty"))) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\keyval.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ifluatex.sty")))) ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\pdftexcmds.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ifpdf.sty"))) ! Undefined control sequence. \Ginclude@graphics ...\Ginput@path \set@curr@file {#1}\edef \uq@curr@file {\... l.8 \includegraphics{MC_Antenna_Gain} ? I will report this potential bug to as well. |
Suppose that we have some group G in which the following holds for all $x $ belongs to G: $x^{-1} =x$. Prove that G is abelian. How would you guys solve this one? | If $\forall x \in G$ where G is a group $x=x^{-1}$ then how is this group abelian . This question is from Gallian's book where question provides information that G is a group and $\forall x \in G$ , $x=x^{-1}$ then we have to prove that G is abelian , how is it possible ?? |
I recently installed Ubuntu on my computer on a separate (internal) hard drive from Windows, and everything works fine except it will not recognize devices plugged into the rear USB ports on my computer. Only the front ones work. I tried looking into power control, and I disabled auto-suspend for all of the USB ports, but it still does not work. When I run cat /sys/bus/usb/devices/usb*/power/control it returns everything as "on." I then tried un-plugging my devices, running tail -f /var/log/syslog and plugging them back in to see what the error is, and I saw the following errors for each device: device not accepting address x, error -32 unable to enumerate USB device on port x When I boot into Windows, I do not have any of these problems, and the keyboard and mouse I have plugged into the rear ports work in the BIOS and on the purple Ubuntu screen that asks which OS to boot. They only stop working once the login screen appears. Please help! Thank you Edit here are my hardware specifications: Mouse and keyboard that are not working are stock Dell devices. Ubuntu is running on a 120GB SSD, and Windows is on a 256 GB SSD. CPU is an AMD FX-6300 Motherboard is a Gigabyte GA-970A-DS3P | I am new to Ubuntu. I first downloaded the Ubuntu ISO file and put it in Rufus. Then booted from it in BIOS (MSI Gaming 970) and everything was fine. I've downloaded Ubuntu before, and this time it looked different. there was no Ubuntu logo nor a maroon colored background. I hit "Install Ubuntu" anyways, and came across this: I let it sit there while I went to school, and came back and it was still there. I realized I should have installed the Nvidia Linux drivers. And so I downloaded them, and don't know actually how to run it (it's a .run file on Windows) So how am I supposed to install Nvidia graphic drivers for Ubuntu when Ubuntu won't even install? |
I was at the airport last friday and there were some nice sun light rays, although not much of a good spot to take a picture. What weirds me out every time I see them is that they look as if coming from a ball of light pretty much right behind the clouds. I drew some lines to illustrate that: I never stopped to think about this before. Why are they not parallel, is it some kind of illusion? In case astronomy matters to explain this, the picture was taken at 7pm, February in central Europe. | Consider this picture of sun beams streaming onto the valley through the clouds. Given that the valley is only (at a guess) 3km wide, with simple trigonometry and the angles of the beams, this gives the result that the position of the light source is being a few tens of km away at most. What is wrong with the analysis? |
I have android lollipop 5.1.1 on my Samsung Galaxy Note 4. I would like to have an app start with my smartphone's boot. It's a call recorder app (automatic call recorder). How can I do that? Is that possible without root? | I need to force a selected application to start up each time my Android-based device is (re)started. Is there anything I can use (configuration setting, external application etc.) to accomplish this task? Or is this kind of behavior limited to home screen managers only? |
I'm new to blender, I have a table animation but when I go to render, render result is blank. No cameras are blocked in animation tab, all surfaces are on to be rendered. I'm trying to record from one camera and I just cant get it working. Any help would be appreciated thanks! | A scene I made is not rendering, at all. This grey screen stays the same and nothing changes. Here are my settings: [ |
What are the increased possibilities (if any) of being able to crack a private key given the following: The associated bitcoin (ECDSA Secp256k1-based) public key is known. The private key has been used to generate a public key from a different ECDSA curve and that public key is also known. It is known that the two public keys are derived from the same private key. It is known which ECDSA curves were used to generate the public keys. It is known which ECDSA curve was used to generate which public key. | What are the increased possibilities (if any) of being able to crack a private key given the following: The associated bitcoin (ECDSA Secp256k1-based) public key is known. The private key has been used to generate a public key from a different ECDSA curve and that public key is also known. It is known that the two public keys are derived from the same private key. It is known which ECDSA curves were used to generate the public keys. It is known which ECDSA curve was used to generate which public key. Does it make any more difference if there is data that is known to have been signed by the private key and the signature(s) are known and the raw data is known? EDIT: I should have pointed out that the conditions are ANDed, I.e. All conditions are known. Sorry, I should have been clearer the first time. |
is there free equivalent to Total Commander for OSX? two panels drag & drop tabs etc ect I found DoubleCommander the best but OSX port has its bugs. muCommander is nice too but not as good as DoubleCommnader. | I'm looking for a graphical fro OS X, for console Midnight Commander is ok. I need two panels, function keys operations and preferably FTP and SCP support. Also, it would be great to be free. |
As the title, I'm looking for a built-in Collection in java that can reorder after changing an element. For example, let Col is the Collection expected containing ordered integer elements: [0, 2, 4, 6, 8, 9, 11]. Now we change the 2nd element as 1, e.g 4 to 1. After that the Collection will accept the change and update the order of elements as [0, 1, 2, 6, 8, 9, 11]. I know some java collections that can keep the elements order after adding a new element but is not auto-update or very expensive after changing an element. So I'm very grateful if you can give me any suggestion about this issue. Thank you | I'm a beginner in Java. Please suggest which collection(s) can/should be used for maintaining a sorted list in Java. I have tried Map and Set, but they weren't what I was looking for. |
I have been trying to sanitize user input for saving safely in the database and then redisplaying. If a user enters something like M'Cain for the name, how should I sanitize it before sending to the database, and then when reading back, deal with it so that it displays correctly. Currently I am using sanitize_text_field which adds the \ before the apostrophe, but this then displays when I display it back. Do I simply use strip_slashes before outputing back to the screen or another function? | If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the user can input something like value'); DROP TABLE table;--, and the query becomes: INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--') What can be done to prevent this from happening? |
According to my , "systemd doesn't work with 14.04". However, on all my Ubuntu 14.04 "Trusty" machines, systemd is running: jay@host:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty So if it doesn't work with Trusty, why on earth is systemd installed and running? jay@host:~$ dpkg -l | grep systemd ii libpam-systemd:amd64 204-5ubuntu20.11 amd64 system and service manager - PAM module ii libsystemd-daemon0:amd64 204-5ubuntu20.11 amd64 systemd utility library ii libsystemd-login0:amd64 204-5ubuntu20.11 amd64 systemd login utility library ii systemd-services 204-5ubuntu20.11 amd64 systemd runtime services ii systemd-shim 6-2bzr1 amd64 shim for systemd . jay@host:~$ ps -ef | grep systemd root 408 1 0 Jun17 ? 00:00:00 /lib/systemd/systemd-udevd --daemon root 808 1 0 Jun17 ? 00:00:00 /lib/systemd/systemd-logind jay 13544 13242 0 12:07 pts/2 00:00:00 grep --color=auto systemd | I noticed that the most recent update of ubuntu offers to install systemd components. I hesitate to allow this update for I had very nasty experience of doing this in debian-testing when services weren't starting and I had no network. Is it possible to keep the current init system (upstart?) and somehow, on a permanet basis, ignore the offer to install systemd? |
I am producing some maps of a point layer using arcpy.mapping.ExportToPDF. Is there a possibility of creating HTML popup for the final PDF based on this link? | I am using ArcGIS to add geotagged images as points to a map which allows me to click on the point and an HTML popup comes up with the photo. This works fine. What I would like to do, is export/print the map to a PDF and within the resulting PDF, I would like to be able to click on the points and get the same HTML popup. Does anyone know if this is possible? |
I have the website content on the centos 5 server saved in Dropbox. In that way i can easily access them without having to use ftp. However sometimes it happens that Dropbox chmod's random updated files to 666. This causes the error: "this file is group writeable" Why does it do that and how should i prevent it? Should i maybe create a cron script that looks for chmod 666 files and automatically corrects them? Still that would be a lousy fix though.... | I have two machines, a Mac and a PC running Linux, that I am trying to keep a certain file synced between using Dropbox. One of the files that I am syncing needs to be writable by another user (different UID on the same machine, not referring to another dropbox user) besides myself. To be more specific, this other UID is actually a daemon. So, either the file needs to be owned by that other user, or else write permission is needed for "group" and/or "other". Initially I have set it up this way on both machines. In addition, the directory containing the file is already owned (chmod 777) by the user that needs to have write access to the file. However, whenever the file gets synced from one box to another, it appears that Dropbox completely ignores both sets of permissions, and changes the permissions on the newly updated file to be owned by me with permissions 0644 (rw for me, r for everyone else). If the file isn't owned by me it even changes ownership back to myself! As a result, the other user no longer has write permissions until I manually go in and re-chmod the file. Additional things I have tried that have not worked: made sure the user account (for the "other user") on both machines has the same UID. Not sure why this would be necessary, since my primary account doesn't have the same UID on both machines. chmod u+s <dir> and chmod g+s <dir> where is the directory containing the file in question. changing ownership of the file to the other user and placing it outside the Dropbox directory, and creating a symlink to the file in the Dropbox directory. Dropbox actually deletes the symlink, leaves the original file (outside the Dropbox directory) unchanged, and creates a new copy of the file where the symlink used to be! How can I set things up so that my permissions and/or ownership are preserved? |
If $f_n$ and $f$ are integrable, $f_n \to f$ a.e., and $\int |f_n| \to \int |f|$, then $\int |f_n-f| \to 0$. How can I prove this? The limit definition proof involving $N$ and $\epsilon$ is not working for me ... I can't get a certain triangle inequality to work. But is this kind of proof the way to arrive at the result? | Let $1\leq p < \infty$. Suppose that $\{f_k\} \subset L^p$ (the domain here does not necessarily have to be finite), $f_k \to f$ almost everywhere, and $\|f_k\|_{L^p} \to \|f\|_{L^p}$. Why is it the case that $$\|f_k - f\|_{L^p} \to 0?$$ A statement in the other direction (i.e. $\|f_k - f\|_{L^p} \to 0 \Rightarrow \|f_k\|_{L^p} \to \|f\|_{L^p}$ ) follows pretty easily and is the one that I've seen most of the time. I'm not how to show the result above though. |
I am writing a lengthy paper. So far I have been using \label{...} and \eqref{...}. This makes the counter of the referenced equations to be increased by one across all sections and subsections. But what I want, is that the counter of the references equations begins with the associated section and subsection number. | I want to manually label equation number ? For example I want to label this equation 3.1 instead of (1) which automatically pops up. Is it also possible in split environment as well or not ? \begin{equation} \log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \label{eq:3.1} \end{equation} |
I have set ulimit for open files on my centos machine by editing /etc/security/limits.conf post which I am unable to login into the machine. This was the change made in /etc/security/limits.conf file. nofiles unlimited A tail of verbose output of my ssh login is as follows. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0 debug2: channel 0: rcvd eow debug2: channel 0: close_read debug2: channel 0: input open -> closed debug2: channel 0: rcvd eof debug2: channel 0: output open -> drain debug2: channel 0: obuf empty debug2: channel 0: close_write debug2: channel 0: output drain -> closed debug2: channel 0: rcvd close debug3: channel 0: will not send data after close debug2: channel 0: almost dead debug2: channel 0: gc: notify user debug2: channel 0: gc: user detached debug2: channel 0: send close debug2: channel 0: is dead debug2: channel 0: garbage collecting debug1: channel 0: free: client-session, nchannels 1 debug3: channel 0: status: The following connections are open: #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1) debug3: channel 0: close_fds r -1 w -1 e 6 c -1 debug3: Wrote 32 bytes for a total of 2229 debug3: Wrote 64 bytes for a total of 2293 Connection to 172.16.47.108 closed. Transferred: sent 2096, received 2528 bytes, in 0.0 seconds Bytes per second: sent 91488.9, received 110345.4 debug1: Exit status 254 A ping to the machine works fine and give back replies. Then why is my ssh connection getting terminated. | I need to start by stating that I have read through every single problem on here relating to mine, but all of them seem to have access somehow to their server's files. I do not, so here is my question. I'm on centOS 6.5 and ssh closes connection right after a successful login. I am using mac and windows/putty to access my server with the same results. Is there anyway I can access my server now without having access to its files? Below is the readout from ssh -vvv right after a successful login: debug1: Authentication succeeded (password). Authenticated to 4X.5X.XX.2 ([4X.5X.XX.2]:82). debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug1: Requesting [email protected] debug1: Entering interactive session. debug2: callback start debug2: fd 3 setting TCP_NODELAY debug3: ssh_packet_set_tos: set IP_TOS 0x10 debug2: client_session2_setup: id 0 debug2: channel 0: request pty-req confirm 1 debug1: Sending environment. debug3: Ignored env TERM_PROGRAM debug3: Ignored env SHELL debug3: Ignored env TERM debug3: Ignored env TMPDIR debug3: Ignored env Apple_PubSub_Socket_Render debug3: Ignored env TERM_PROGRAM_VERSION debug3: Ignored env TERM_SESSION_ID debug3: Ignored env USER debug3: Ignored env SSH_AUTH_SOCK debug3: Ignored env __CF_USER_TEXT_ENCODING debug3: Ignored env PATH debug3: Ignored env PWD debug1: Sending env LANG = en_US.UTF-8 debug2: channel 0: request env confirm 0 debug3: Ignored env XPC_FLAGS debug3: Ignored env XPC_SERVICE_NAME debug3: Ignored env SHLVL debug3: Ignored env HOME debug3: Ignored env LOGNAME debug3: Ignored env _ debug2: channel 0: request shell confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Last login: Wed Oct 7 06:23:21 2015 from 1XX.XXX.X1.185 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0 debug2: channel 0: rcvd eow debug2: channel 0: close_read debug2: channel 0: input open -> closed debug2: channel 0: rcvd eof debug2: channel 0: output open -> drain debug2: channel 0: obuf empty debug2: channel 0: close_write debug2: channel 0: output drain -> closed debug2: channel 0: rcvd close debug3: channel 0: will not send data after close debug2: channel 0: almost dead debug2: channel 0: gc: notify user debug2: channel 0: gc: user detached debug2: channel 0: send close debug2: channel 0: is dead debug2: channel 0: garbage collecting debug1: channel 0: free: client-session, nchannels 1 debug3: channel 0: status: The following connections are open: #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1) Connection to 4X.5X.XX.2 closed. Transferred: sent 3176, received 2640 bytes, in 0.3 seconds Bytes per second: sent 10370.6, received 8620.4 debug1: Exit status 254 |
I am from Iran. In my country, the government has filtered the some web-sites. Recently I have a problem for see the all images in Google Images. For example: If you notice, the protocol is HTTPS not HTTP. When I try to change it to Http, I can't, because the browser changes it again to Https. I try by some anti-filter program like: HotSpot Shield and or psiphon3 but it couldn't help me. How to solve my problem? | Chrome's default search engine is . How we can force chrome to use without https? I need a solution that allows proxies to rewrite my URLs, but https currently makes this impossible... |
MS Windows XP Professsional SP2 Intel Pentium 4 CPU 2.66GHz, 991MB RAM, VIA/S3G UniChrome IGP My PC is fairly old, about 5 yrs to be exact. Want to install Ubuntu 13.04 alongside Windows XP. Please give me the detailed procedure to install it. I am a novice at it so no jargon please. Ok. Thnx. :) | For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements? |
I always have this confusion,in arm assembly, is the stack a separate memory unit or a partition of the main memory itself? In my understanding,the main memory(RAM) is divided into stack and heap.The stack is pointed by the stack pointer R13 register or sp.From this pointer we can do the stack operations. Also what I understand is that stack stores local variables in high level languages and function calls.How does it translate to assembly? I am not able to find the answers to these questions on google. | Programming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear explanation of this. I understand what a stack is. But, Where and what are they (physically in a real computer's memory)? To what extent are they controlled by the OS or language run-time? What is their scope? What determines the size of each of them? What makes one faster? |
In a custom module I'm adding a custom page template suggestion per multi-site like following which would then search for page--MYSITE.html.twig in the current theme's /templates folder. /** * Implements hook_theme_suggestions_HOOK_alter(). */ function MYMODULE_theme_suggestions_page_alter(array &$suggestions, array $variables) { $site_path = \Drupal::service('site.path'); $site_path = explode('/', $site_path); $site_name = $site_path[1]; $suggestions[] = 'page__' . $site_name; } Question: Is it possible to also specify a new location for this template. Like let's say inside my custom module's /templates folder? Why: It would let me use a core theme but with my custom template (without the need to add something custom to core or to create a new sub-theme, lazy as I am). There are 3 suggestion hooks that come into my mind but with none if them it seems possible to also specify a custom location. Is this right? Or is there a way? Is it bad practice to do so? | I am using hook_theme_suggestions_HOOK() to implement a custom template file in my drupal 8 website like below. /** * Implements hook_theme_suggestions_HOOK(). */ function mymodule_theme_suggestions_page(array $variables) { $template_suggestions = array(); // This is used to display only $content. if (isset($_GET['ajax']) && $_GET['ajax'] == 1) { $template_suggestions[] = 'page__ajax'; } return $template_suggestions; } Above code is working fine and I can add template page--ajax.html.twig inside my current active theme and changes in template is reflecting in page. But when I put that file inside my module itself file is not detecting and changes not reflecting in page and taking default page.html.twg template file. How can I provide default template file within my module itself? |
Please don't mark it as duplicate. I am using Blowfish Algorithm to Encrypt and Decrypt a Contents in a File. The problem is the output characters of encrypted file having too much of special characters SPECIAL CHARACTERS (Encrypted text) :- Ž81‡Ç¬ú²±DN¢HÜ4ºÜºT÷.Ê+ŠÀ after that i had converted the special characters to hex it gives the value as 8E383187C7ACFAB214B113444EA248DC34BADCBA54F7032ECA2B8AC03C6B95C67D2F46F586E4CD86 if i tried to convert this to string i cant get the same encrypted text Following java code for converting hex to string package bytearray; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import javax.xml.bind.DatatypeConverter; public class ByteArray { public static byte[] toByteArray(String s) { return DatatypeConverter.parseHexBinary(s); } public static void main(String[] args) throws IOException { String balaji ="8E383187C7ACFAB214B113444EA248DC34BADCBA54F7032ECA2B8AC03C6B95C67D2F46F586E4CD86"; byte[] pri = toByteArray(balaji); String value = new String(pri); System.out.println(value); } } Please help us how to convert the hex to string. Expected Output :- Ž81‡Ç¬ú²±DN¢HÜ4ºÜºT÷.Ê+ŠÀ Obtained output:- �81�Ǭ���DN�H�4�ܺT�.�+�� | I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array. I couldn't have phrased it better than the person that posted . But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the byte[] {0x00,0xA0,0xBf} what should I do? I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple. |
This is a javascript, I have no experience in coding unfortunately. So I need your help. I'm trying to put a 10 sec delay on this code document.getElementById('example').click(); The idea is that I want a link to be click after 10 secs. I tried putting 10000); at the end of the code but it makes the code not work. How can I make this code do what I want? | Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)? |
I have this HTML layout: <div class="profile-img"> <img src="https://via.placeholder.com/150"> </div> with this CSS .profile-img, .profile-img > img { width: 160px; height: 160px; border-radius: 50%; } Here is my JS Fiddle: What I am trying to do now, is add the attached image to bottom right corner of the circle image....how would I go about that and make the image in the bottom right corner clickable? | I'm a beginner at rails programming, attempting to show many images on a page. Some images are to lay on top of others. To make it simple, say I want a blue square, with a red square in the upper right corner of the blue square (but not tight in the corner). I am trying to avoid compositing (with ImageMagick and similar) due to performance issues. I just want to position overlapping images relative to one another. As a more difficult example, imagine an odometer placed inside a larger image. For six digits, I would need to composite a million different images, or do it all on the fly, where all that is needed is to place the six images on top of the other one. |
For example, in this paper: How can we get the same or similar text font and math font in LaTex? | Is it possible to identify the font used in a specific document/picture? Answers to this question should identify: Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y"). This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's tag. |
I have an old Toshiba Specs are: processor: 1.70 GHz Intel® Pentium® M processor 735 hard disk: 60 GB system memory: 512 MB (although I am in the process of buying an extra 1G ram for it) graphics: nvidia GeForce Go 6600, 128MB My laptop still runs on XP 32bit and is used mostly for working on my PhD - lots of typing, bit of browsing, lots of article reading (PDFs) and listening to music. I have a netbook for more everyday tasks. The laptop still works very well, if slowly, but needs a new operating system, I suspect I should install Ubuntu 12.04 LTS but would appreciate any advice on the matter. | For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements? |
11When I run one function, at the end, the variable 'hangarDone' is changed to 'True' (its is false at the start) but when I run the morrigan function it prints as false. def morrigan(): print ('Hang2',hangarDone) hangar() def hangar(): [There is content here but nothing happens with hangarDone] hangarDone = 'True' save() print ('Hang1',hangarDone) morrigan() Output: Hang2 False Hang1 True Hang2 False | What exactly are the Python scoping rules? If I have some code: code1 class Foo: code2 def spam..... code3 for code4..: code5 x() Where is x found? Some possible choices include the list below: In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop Also there is the context during execution, when the function spam is passed somewhere else. And maybe pass a bit differently? There must be a simple reference or algorithm somewhere. It's a confusing world for intermediate Python programmers. |
Checking to see if a one-hour layover is enough time, flying JetBlue from Newark to LAX, code share flight on Hawaiian from LAX to HNL. Would all be on one ticket and bags checked through, but I've never done a connection this short. I always leave more time for any possible problems. Never been to LAX so I don't know the layout of the airport at all. | I am flying in to LAX on American Airlines and have a 60 min layover before I fly out with American Airlines (same ticket). Will this be enough time? |
I have simulated the circuit with the following values. VDD = 1.8V, Vin is a sine wave with fin = 450MHz, pin = -5dBm, L1 = 12.5nH, C1 = 10pF, RL=50 ohm. I also gave a biasing dc voltage at the gate of MOSFET as 1V. I got the following graph after simulation. The red graph is the input sine wave. The yellow graph is the current at the drain of MOSFET and the green one is the voltage at the drain of MOSFET. But I am not exactly getting what the graph means or how to interpret it? If I am using it as a power amplifier how can I improve the output values of voltage and currents? | In the power amplifier circuit shown if the input is an RF sine wave, with VDD=1.8V and Vgs = 1V, what will be the waveform at the drain of the MOSFET - sine or square wave? Is it possible to get a sine wave at the drain? |
So I remember this show that was based in a space station (more like a hub with no political affiliations) some of the main characters were doctors, and the thing today's sticking out to me is that everyone had to have a gem implanted I their hand and the colour of that gem dictated who you could marry/date. This was a live action series, colour, in America. Started in like the 90s. No idea how long it ran. Sorry I'm not giving a lot of information. Edit: So it might be Island City, I'm going to watch the whole thing to make sure, but I really appreciate you guys thinking about this. I guess I can't trust my little kid memories. Final edit! That was it! Thanks everyone for the help. Convinced that they need to remake it. It was awesome. | I'm trying to figure out the name of a movie I saw on TV as a kid, in the mid-to-late 90s, in the US, in English, on daytime TV. I remember it being kind of Starship Troopers-esque, but everyone had these glowing lights in their chests. They glowed in different colored patterns, and I think it had something to do with whether you were attracted to someone or not (I was probably like 7 when I saw it, I didn't really understand the context of that part yet). |
I am running latest Kubuntu 20.04 with dolphin file manager version 19.12.3. However the latest stable version is already available as 20.04.3 Therefore, I am wondering if the release cycle is different as officially I couldn't download it and latest available version is still locked to the older version of 19.12.3 I realised that i could possibly simply fetch the latest version from flatpak as well However, I am interested to know why it was not available to download officially. Also, I would like to know the lifecycle of latest stable version of KDE packages to be released for Kubuntu/Ubuntu repository and when would it be available to download officially? Thank you | Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.? |
what do I have load to watch movies netflix and such. by other questions posted there may be another site i should ask my question. got to start somewhere thanks jj | Is there a way to stream Netflix content to my Ubuntu machine? |
I am using QGIS 3.14. I downloaded world cities name kml, which has markers symbol on every label. I want to display the symbol only on every name which rendered / displayed on exported file. Currently, all symbol are displayed even though the cities name are not displayed, so it will only show empty marker without label on it. How do I filter or hide, so the symbol without names will be hidden in exported file? As you can see all the symbol which its name not displayed are also displayed on the exported file. | Is there a chance to define a QGIS style rule to just show point markers when their label is shown? My aim is to exclude all points which are not labeled because of collision between labels. Example: |
I tried to answer a question and putted: "< ? php" (no blanks between it) into a answer here in stackoverflow. But it does not work; i read about the advanced formatting but did not find the hint or explanation how to solve this. Surely someone will know this. | How do I post text so that it is formatted as code? What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting? For more information, see "" in the . |
Im holding a philippine passport whith c1 visa (issued by US embassy) a transit visa that can transit to any airport in USA , can i use my C1 visa to transit to Japan or do i still need to get a transit visa to pass through their airport in japan? my last destination will be in Manila,Philipines. Thanks in advance. | I’m a Filipino citizen. My flight goes from Vancouver to Manila via Tokyo Haneda. I will arrive in Japan at 6pm then depart at 9am the next day. I'm not planning to go out of the airport during my layover, so I don't see a need to have a transit visa. However, I called the Consulate-General of Japan here in Canada, and they asked me to get a transit visa. Then I called the Ministry of Foreign Affairs in Japan and asked them the same question.. at first, they told me I don’t need a visa as long as I stay inside the airport, but when I told them that the Consulate-General of Japan in Canada asked me to get a visa, they also asked me to get one. I'm so confused. I would like to know your knowledge or experience regarding this. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.