How to be more polite and accommodating?

Here's my beef. I've noticed over the past couple of days, and even before I joined this (the StackExchange) community that most of you aren't kind to your fellow user. I'm not trying to get up on a soap-box here, I'm just calling things how I see them.  For instance (and this is an issue throughout the various communities here, not just one particular one) - you all seem to be trigger happy when it comes to flagging duplicates. I think this practice is wrong, not to mention unethical. Here's why:  I speak Spanish as a second language and know that the words 'por' and 'para' are very hard for Spanish learners to understand and grasp, due to their variant meanings, sometimes by the sentence, sometimes by the word pair, and sometimes by the country in which they are used. So it's very important that a variety of examples are given to help teach students of the language what they mean, when, and how.  This means that no question is a stupid question, and no question is a duplicate question, necessarily. For example, in the two sentences below, the word 'por' means virtually the same thing, but without the context, word pairs, or phrasing, it changes completely.   Anya nadó por el canal en junio.   Translates to: Anya swam the canal in June. (As in, she swam through it.)  Anya nadó por el canal en junio.   Translates to: Anya swam by the canal in June. (As in, she swam near it, but not in it.)    The two sentences are completely different, but also completely the same. If the reader of the question doesn't pay attention to context (like they say they do, and as they seem to put so much emphasis on), you might end up with a wrong translation to English or whatever language it is they [the asker] speak fluently and understand best.  For instance, in some languages, 'where' is a place, more so than  as it is currently used. In some languages, the word 'it' is part of other words or implied from context, so English learners may not write them out since it makes sense not to in their language. Other times, they just have a bad teacher who they themself doesn't understand the language they're teaching, and thus gives them bad translations from the get-go.  If you want real-life examples from StackExchange, you can search for such things as 'the difference between' and ' to say this ...?' on the appropriate forums. There are about ten or so more different variations for each question, but they are just that - variation. They are not the same question. Each question should be handled individually based on the phrasing, not the content.   In other words, you need to analyze how how is being used, because it has a lot of different meanings, and what you think the asker means may not be what they mean at all.   This also happens with StackOverflow, for example. I'm not the best coder, so I often want to ask the reason why something is done, but I avoid doing so at the risk that my question might be closed, neglected, or made fun of by more experienced (even professional) coders who might go, "Well, duh. Of course you should put "" after div, it just makes sense. It's what you do." Well, why? Don't just tell me it's how the computer reads it. I don't care about that, really. I know the computer reads it because it's code, duh! Why does it read it that way? Why not another? How is it useful?  The snarky comments don't make it any fun or more helpful than say, Yahoo!Answers with its simplistic format and network. Don't people come to SE for more information, preferably high-quality?  So my question is thus: How can we improve site features and user etiquette among other things to make the experience better for everyone?


I'm about to travel to the US, where iPods / AirPods / iPhone are much cheaper than in my country.   I wonder if Apple's warranty is international, and/or what warranty coverage exists when I return to my country.  Where can I understand what Apple Warranty covers in the US when products leave the US?


Can someone help for regular expression for the following  (only alphanumeric upper and lower case with - after 12 characters) i need to use in in my groovy assertion.  7AYNEHFjEee4-AJiXJP2jg


Why is pork pink after roasting to 205 F?

I have browned then roasted a 6 lb. pork shoulder in a covered pan in an oven set to 275 F for 5+ hours. The results were excellent , very tender and moist and high gelatin/protein stock. I started with one cup+ of liquid ( wine, lemon juice, honey, soy sauce, liquid smoke, Worcester , etc). It reached 205 F internal temperature , measured with an accurate electronic thermometer . When cool and sliced it was pink below the surface.  Is pink color normal for well done pork ?


How to obtain "\ " instead " " after a sed substitution?

I use a string that contains \ in a sed expression and I want to keep it in the output of sed  $ A=w $ B="\ " $ echo word | sed "s/$A/$B/"    ord   I want to obtain \ ord instead of ord.  What is the most elegant way of doing it?


How can I not break my sprocket next time

My sprocket was doing loud noises and when I looked at it, it looks like this    I bought a new sprocket but I want to know, what can I do to avoid these types of problems again?  Video of issue when installed on bike:


Why do some materials reflect (metals) and other materials reflect and refract (glass) from the quantum perspective?

Recently I was asked to explain the difference between reflection and total internal reflection from a purely conceptual standpoint (no math).    Let me explain what I already know.  Reflection and refraction at the quantum level are the same thing.  Light is a photon.  A photon is a discrete particle that has wave characteristics (a finite wave traveling like a bullet).  As the photon travels it collides with electrons in the matter of the medium it is traveling in.  Depending on the energy of the photon and the allowed energy bands of the medium the photon cause the electron to jump up a level.  If the photon is absorbed then the medium will increase its motion (at the macro scale increasing its temperature).  If the photon is not absorbed it will be re-emitted (really as a new photon). I have read and watched Feynman's QED lectures and book and have a pretty good understanding of his process for determining how all these paths come together to give the net path of the photon.  The general rule of thumb is that the photon wants to take the path which requires the least amount of time.  I understand how this principle goes to explain refraction and reflection.    What I don't seem to understand is why does one material seem to cause a higher percentage of refraction compared to another (metal vs. glass).  What about the electron configuration of a the medium changes the net effect of the absorption and re-emissions of the photons?  Is there a change in the probability of the photon being re-emitted in a reverse direction?  Is there a farther distance the photon can travel before being incident onto an electron?  This is the part where my understand breaks down.    When you have hit the critical angle in a medium that refracts and the light completely reflects, are the photons moving is the same manner as they would be in a material that always reflects? How does this connect to the question in the previous paragraph?  I know I have a bunch of mini questions embedded in answering this one larger question.  Any help on any of the parts would be greatly appreciated?


I am confused by a problem from Schey's Div, Grad, Curl and All That:     Use the divergence theorem to show that   $$\iint_S\hat{\mathbf{n}}dS=0,$$ where S is a closed surface and   $\hat{\mathbf{n}}$ the unit vector normal to the surface $S$.   The whole discussion of surface integrals in this text so far has dealt with scalar-valued integrands, like:  $$\iint_S\mathbf{F}\cdot\hat{\mathbf{n}}dS.$$  So it would seem the author is either introducing vector-valued integrands for the first time, or suggesting $\mathbf{F}=1$, which I assume is a typo.  Any ideas about how to resolve this issue? I guess I could just say that, over a closed surface, for every surface normal there will be a normal elsewhere on the surface pointing in the opposite direction so they all cancel. But this approach doesn't use the divergence theorem.


How to install ubuntu alongside windows?

I already have Windows 8.1 on my ultrabook, how do i install ubuntu alongside it? i do not have a spare usb drive nor does my laptop have an optical drive.


Historical flight departure & landing time

I’m trying to track when United Airlines flight UA4944 from Newark (EWR) departed and landed at Albany Airport (ALB) on 26 Nov 2018.  Could anyone help me with the flight information?


How to draw a kiviat diagram like the following?


How do I get an Intel Wireless 3168 802.11ac wireless card to work?

I have recently bought  laptop, which comes with  Kaby Lake processor, I have installed Ubuntu GNOME 16.04.1 on it, and it is unable to detect WiFi adapter.   Upon running lspci -nnk | grep -A2, I'm getting following information about adapter.  028005:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10)         DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter         Subsystem: Intel Corporation Device [8086:2110]  But running rfkill list all, I see following output (WiFi missing there).  0: hci0: Bluetooth         Soft blocked: no         Hard blocked: no  And here's the output for dmesg | grep iwl.  [   13.570633] iwlwifi 0000:05:00.0: Unsupported splx structure [   13.635662] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-3168-21.ucode failed with error -2 [   13.650761] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-3168-20.ucode failed with error -2 [   13.650765] iwlwifi 0000:05:00.0: no suitable firmware found!  Output for ls -al /lib/firmware | grep 3168 Under both Stock Kernel 4.4.0-36 & Kernel 4.7.3.  -rw-r--r--  1 root root   33168 Jul 13 01:03 hfi1_pcie.fw    Please note that this laptop is dual booted with Windows 10 Home, and WiFi is working fine there.  Now, I don't know if this adapter is supported by 4.4 kernel that Ubuntu 16.04 ships with, or it requires manual fix, as my laptop doesn't have hardware switch to turn on/off WiFi. Also, this being a combo adapter for both WiFi and Bluetooth, I can use Bluetooth just fine. Ethernet works too.  After searching around Intel® Dual Band Wireless-AC 3168 I found  page which suggests that support for this Wireless Adapter was added starting Kernel v4.6, and since 16.04 has Kernel 4.4, I tried two things.  1) Upgrade Kernel  I manually installed 4.7.3 from , and booted into it but WiFi still remains undetected.  2) Loading firmware for this adapter version (3168).  I searched for .ucode files for this adapter and found it on . So I copied iwlwifi-3168-21.ucode and iwlwifi-3168-22.ucode files to /lib/firmware/ and rebooted, but still no luck.    Update  This seems to be a linux-firmware related bug, and I have filed the report on . However,  given by  seems to fix WiFi under Kernel 4.7.4, but it breaks Bluetooth which was working fine with Stock Kernel 4.4.0-38. I'm still looking for a proper fix which doesn't cause any regressions (I'm fine with upgrading to newer stable Kernel release).


How handicapped am I in graduate admissions if I graduated from a lower tier university?

Due to a combination of factors, I ended up going for my undergraduate studies to a relatively unknown university that was close to me geographically.  Let's say that I have a relatively standard background for someone trying to apply to top tier schools for graduate studies (some research experience, some low to medium quality publications, very strong grades, good recommendation letters). Then how much does the alma mater have an impact for someone like me? I obviously know that it is still possible to be accepted, but how much of a disadvantage am I looking at exactly?


If a point is randomly chosen from a square, whose sides are equal to 1, find the probability that the point's distance from a side of the square is less than the distance of that point from the closest square diagonal.   I am not sure how to picture this at all, really confusing. Any help is appreciated.


Can $\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}=4$ have positive integer solutions.

Can $$\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}=4$$ have positive integer solutions. It's just a problem from some forum. I translate it into this form. Tried some triples but fail. Also I can't prove it doesn't exist integer solutions.


Incorrect rendering/display of Devanagari fonts in browsers: Chrome, Firefox etc

When I typed the title I was directed to another question "". My experience is somewhat different than discussed there. The display is correct in LibreOffice and Text Editor but not in browser search results page. Again if you click the link with incorrect display the actual website displays correctly. I experimented with copying the incorrectly displayed lines and pasted in text editor and it displayed correctly.   This problem seems to be only in Debian/Ubuntu and distros based on them. I have tried a few other distros like Fedora, Manjaro and Solus and everything is displayed correctly in them.


Replacing all custom macros and standardizing papers written in TeX

I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is function g I want fg(x)=f(x)for any TeX code x that can be TeXXed without errors.  From similar questions others have asked before it is clear that this will require some really hard work because TeX is extremely customizable. Well, I still want to do it.  I do want to know what I'm about to get into though.    Do I essentially need to almost create half of a TeX engine (i.e. the input processor and the expansion processor)? Assuming that the work is actually finished. Will I have to keep updating my code for the rest of my life in order for it to remain compatible with latest packages even though Knuth's TeX engine itself permanently remains stable? If the goal in 1 and 2 are indeed infeasible for one person to reach during leisure time, is it feasible for me to achieve something less ambitious, namely making sure that at least 50% of the actually existing papers on arXiv gets successfully standardized? The papers are almost always written in LaTeX often using one of the AMS packages. However they tend to include low-level code such as \def and sometimes even \let which causes de-macro to be ineffective in standardizing them.   I'm reading Knuth's The TeXbook right now.


Claim. Let $a$ and $b$ be real numbers. If $a\geq b$  then $(a,b), [a,b)$ and $(a,b]$ are empty set.   My is question is that why?


Is there a way to automatically show a window opened by another program?

I came from a Windows background and just started using Ubuntu about two weeks ago.  I noticed something weird about the Unity window manager that just makes it feel quite unnatural:  For example, When I download a file in Firefox and click the button to open the folder in nautilus, it always opens minimized. I have to manually go to the launcher and click on the icon to see the window. The same thing happens when any program is started by another program.  I would expect to see the nautilus / any other window show up but instead just get into a state of confusion for a while until I realize that it's actually opened, but it's minimized.  Is there a way to allow windows opened by another program to not be minimized by default?


What does "val = yield xxx" mean in Python

I know what does yield do when we write say  while True:     yield i     i += 1   But what does it mean when we say  def foo():     A = yield B   ? What would be the value of A then?  The reason why I asked this question is because this is how things are done in tornado:    In Tornado, I see a lot of examples saying  document = yield http_client.fetch('...')   I know document should be the content fetched by the client. By for now I'm trying to understand how it is implemented - I searched for many examples about but couldn't find any one explaining how does "A = yield B" work. By looking Tornado's source code I couldn't understand it myself. Can someone explain it to me?


Spoiler text is not hidden in community digest newsletter

I received a SciFi newsletter today and the spoiler tags were not hidden, unlike how they are elsewhere on the site. This seems inconsistent. Can this be fixed?  Image is attached with spoiler questions highlighted (do not read if you want to avoid Game of Thrones spoilers):    Relevant spoiler questions:


What are MVP and MVC and what is the difference?

When looking beyond the  (drag-drop and configure) way of building user interfaces that many tools encourage you are likely to come across three design patterns called ,  and . My question has three parts to it:   What issues do these patterns address? How are they similar? How are they different?


I always thought linear functions need to satisfy $$f(x+y)=f(x)+f(y).$$ I am a tad confused now, consider $f(x)=2x+3$. $f(1)=5$, $f(2)=7$, $f(1+2)=f(3)=9 \neq f(1)+f(2)$ which was what I thought linear functions should satisfy.  Could someone clarify?


What happens to individuals when they die in Middle Earth?

Is there any concept of an after-life in Tolken's Middle Earth and does it vary for the races?    What I have been able to glean:   The elves can go to the undying lands when they choose but it is not clear if they go there when they are killed?  The care and ritual with which the men seem to treat the dead suggests that there is some form of religion-like concepts for the passage into death.   The existence of wraiths and ghosts seem to indicate that consciousness can exist beyond the physical form but this always seems to be a negative thing.


Should both spouses apply for Global Entry or TSA Precheck, or can one be a companion to the other?

I just signed up with a travel credit card that has a benefit of an annual $100 voucher for Global Entry or TSA Precheck application fees.  My question is, should both myself and my spouse apply?  Or is it effective if the person who travels singly for work more often applies, can the other join them when traveling together?


I am trying to add glow to windows on a spaceship design. however, I cannot find anywhere half of the nodes I am seeing online, such as glare or glow. I have textures on my model but turning to cycle render turns it into a particle mess, and I have no idea what 'cycle renders means'. my question: can I find the right nodes in standard Blender Render mode? if not, how do I retain my previous model render look in Cycles Render?


What is the most elegant proof of the Pythagorean theorem?

The  is one of the most popular to prove by mathematicians, and there are  (including one from ).    What's the most elegant proof?  My favorite is this graphical one:    According to cut-the-knot:     Loomis (pp. 49-50) mentions that the   proof "was devised by Maurice Laisnez,   a high school boy, in the   Junior-Senior High School of South   Bend, Ind., and sent to me, May 16,   1939, by his class teacher, Wilson   Thornton."      The proof has been published by Rufus   Isaac in Mathematics Magazine, Vol. 48   (1975), p. 198.


How can I bring back the original version of a file in git? Even though I have commited the file and had been pushed?

I have a file and I modified it then commited and pushed. How can I retrieve its org version in GIT? What should I do cause I want its original version back.


I have a key value storage which I have data stored. When I retrieve the value it is a JSON with a property "compressed_value", this value is a string and I don't know how to decompress or deserialize it. I tried a lot of approaches, one of them try to cast the string to a byte[] using .getBytes() with different charsets, and using GZIPInputStream but I always get the error "java.util.zip.ZipException: Not in GZIP format". The value es something like: "H4sIAAAAAAAA/wtOzC3ISVUoSa0oUSjJSCxRyFRITswrUUhJLU4tykzMyaxK1VFISczLVQQAkIb0eioAAAA=". When I paste it in a web like  one, it deserialize the value without problem. Example code public class Main {     public static void main(String[] args) throws IOException {     String compressedValue = "H4sIAAAAAAAA/wtOzC3ISVUoSa0oUSjJSCxRyFRITswrUUhJLU4tykzMyaxK1VFISczLVQQAkIb0eioAAAA=";          try {             final int BUFFER_SIZE = 32;             ByteArrayInputStream is = new ByteArrayInputStream(compressedValue.getBytes());             GZIPInputStream gis = new GZIPInputStream(is);             byte[] data = new byte[BUFFER_SIZE];             int bytesRead;             ByteArrayOutputStream baos = new ByteArrayOutputStream();             while ((bytesRead = gis.read(data)) != -1) {                 baos.write(data, 0, bytesRead);             }             gis.close();             is.close();             System.out.println(baos.toString("UTF-8"));         } catch (IOException ex) {             ex.printStackTrace();         }     } }


How to prove that $11^{n+2} + 12^{2n+1}$ can be divided by $133$ where $n\in\mathbb N$

I know that I have to get to a point where an summation is multiplied by $133$ but I don't know how to get there. I tried formating the equation like $11^2\times11^n + 12 \times 12^ {2n}$ but I got stuck there and I don't really know how to prove it with induction. I really need to solve this. Thank you for your help and sorry if I misspelled anything. Also sorry that you have to edit it, I don't really know how to make superscripts.


What is the English term for an all-boys or all-girls school?

Is there any English word referring to a single-sex school (either all-male or all-female schools or colleges)?


Customize standard error message on the visualforce page

I want to customize the error message box which comes for various errors. i want only a single custom message for all types of errors and also a different custom icon. How can i implement this?


Function from Javscript Static Resource coming as Undefined after enabling Locker Service

After enabling Locker service, javascript function from static resource is coming as undefined.    JS file:  function myFunc(){    return '1'; }   Lightning component:      <aura:component controller="AccController" implements="force:appHostable" access="global">         <ltng:require scripts="{!$Resource.AccLexJS}"           afterScriptsLoaded="{!c.controllerFunction}" />       </aura:component>   Lightning Controller:  ({     controllerFunction : function(component, event, helper) {          var action = component.get("c.getInitialVals");          action.setCallback(this, function(data) {            var JSreturnVal = myFunc();         });         $A.enqueueAction(action);     }  })   This results in following error:  This page has an error. You might just need to refresh it. Error in $A.getCallback() [myFunc is not defined]. I am defining or calling the method wrong?  If I copy paste the JS function in controllerFunction itself then it works with LockerService enabled.


I'm trying to query my database with an array, I'm trying to count the number of rows returned from the query for each country in my database, and also count the rows for each of these countries with a digit equalling 1. Using the following code: <?php  include ('mysqli_connect.php'); // indclude mysql connection functions   $countries = array('united states','canada','united kingdom');   foreach($countries as $country){         //e.g. $r_spain holds the results from the query below with spain as $country         $r_.$country = mysqli_query($dbc,"SELECT * FROM feelings WHERE country = '$country' AND digit='1'");           //loop through the results         while($row = mysqli_fetch_array($r_.$country, MYSQLI_ASSOC)){                 $rowCount = mysqli_num_rows($r_.$country);                 echo $country."=".$rowCount;            }       }   ?>  This is the error message I get:  Catchable fatal error: Object of class mysqli_result could not be converted to string in /home2/designwr/public_html/uwe/notalone/updates/percentage.php on line 9  Can anybody point me in the right direction?


When forcing intercept to zero, how R-squared is changed?

I have some questions. In a linear model, I want to force intercept to zero. The program (I used JMP) does not provide R-squared when intercept becomes zero.  So, I calculated R-squared by myself by given SSR/SST in the program. The R-squared was higher than before forcing to zero.  Is this possible? Because linear fitting is based on minimizing error, so if I change it artificially, I think R-squared should be decreased. Also, the linear line (Green line) for intercept 0 on the graph, seems not to have 99% R-squared.  If this R-squared is not correct, how can I calculate R-squared when forcing intercept to zero?   Many thanks,


I was recently teaching myself Python and discovered the LBYL/EAFP idioms with regards to error checking before code execution. In Python, it seems the accepted style is EAFP, and it seems to work well with the language.  LBYL (Look Before You Leap):  def safe_divide_1(x, y):     if y == 0:         print "Divide-by-0 attempt detected"         return None     else:         return x/y   EAFP (it's Easier to Ask Forgiveness than Permission):  def safe_divide_2(x, y):     try:         return x/y     except ZeroDivisionError:           print "Divide-by-0 attempt detected"         return None   My question is this: I had never even heard of using EAFP as the primary data validation construct, coming from a Java and C++ background. Is EAFP something that is wise to use in Java? Or is there too much overhead from exceptions? I know that there is only overhead when an exception is actually thrown, so I'm unsure as to why the simpler method of EAFP is not used. Is it just preference?


How can I force my Eevee to evolve into the Pokemon I want?

I want powerful Pokemon and have enough Eevee candies. Can I force it to evolve into the Pokemon I want?  I'm not asking what it can evolve into, I'm asking how I can force evolving into those.


Quantum Field Theory Interpretation of $\hat{\phi}|0\rangle$

Recently, I am reading the Tong's note of QFT. I have 2 question.   In the note, $\hat{\phi}(x)|0\rangle:=|x\rangle$ being interpreted as creating a particle in spacetime $(x^0,\vec{x})$. It is quite abrupt for me about the interpretation. Specifically, I do not understand the logic why we could be sure such an interpretation is correct. To my knowledge, I think we need to compare all the properties of $|x\rangle$ in classical quantum mechanics with the definition above and hopefully find that all those properties match. However, even though we have all the same properties, we still cannot say they are the same.  Suppose above is true. Then under the SI unit, the interpretation of $\langle0|\hat{\phi}(x)|\vec{k}\rangle=\langle x|\vec{k}\rangle$ is the non-normalized coefficient (here, I say it is the coefficient because its norm square is the probability distribution) of the probability distribution of a free particle with momentum $\vec{k}\hbar$ being observed at $(x^0/c,\vec{x})$.(Here, the momentum has a coefficient $\hbar$ because I have the commutation relation $[\hat{a}(\vec{k}),a^\dagger(\vec{k'})]=(2\pi)^3\,2\hbar\, E_{\vec{k}}\,\delta^{(3)}(\vec{k}-\vec{k'})$) ). I want to know whether I am correct.


How to Select Hyperlink Text in Google Chrome?

I am running Google Chrome 5. How can I select hyper link text using the mouse with, for example, CTRL or ALT keys?


If I turn the light off in a room why does the light instantly disappear?

So today I was asked a question which I found very simple yet I honestly couldn't explain (embarrassingly).   One of my mum's friends who knows I'm a scientist asked me "If I turn the light off in a room why does the light instantly disappear"  To phrase it up in a more scientific way :  If we took a box of light and sealed up the entrance to the box such that the photons can't escape, how come (since the photons are still inside the box) it appears dark?   My thoughts were to do with the source of the radiation being removed, but I have no idea why photons bouncing about inside the box do not light up the inside? Intensity maybe?   I guess its sort of like black body radiation approximated by a cavity with radiation inside and a pin small hole following Planck's model, but in this case we just close the hole rather than measure any emitted radiation.   Any ideas?   Edit Thank you all very much for your answers! I understand now. Hypothetically speaking if the walls were of a material that did not permit the adsorption of a certain frequency of the light would it just bounce around forever? (I actually have another "simple" question to ask, but I will ask it in a separate part later this evening. Thanks again :)


Do US citizens need a visa for transit in Frankfurt?

I am a US citizen.  I have a transit in Frankfurt for 12 and half hours. I will fly from Detroit to Frankfurt then to Amman, Jordan.  I was planning to stay at the airport hotel, but I was wondering whether I need a visa to leave the airport?


I created two channels on my Slack team with a typo. I want to delete them but it seems there is no way?


Determine all integral solutions of $a^2+b^2+c^2=a^2b^2$

I started like this :  $a^2+c^2=b^2(a^2-1)\\c^2 +1=(a^2-1)(b^2-1)$  but it's leads to nowhere. can you help please ?


How do I get my render to not be a black screen?

I nearly finished the begginer blender tutorial - just to find that when I render my scene it is completely black. Any ideas on how to fix it? I've seen others with the same kind of problem, but no solutions that helped. The link to my project =


Can someone help me with counting number of exact letter? int numberOfX = 0;             foreach (char x in textBox1.Text)             {                 numberOfX++;             }             this.Text = ($"Number of X: {numberOfX}");


How to Pass Multiple Commands to Remote Device via SSHPass

I'm trying to setup a method in which I can run remote tcpdumps on some of my devices, and save the file to my local machine for analysis (I don't want to save the file on the remote device and then pull it out as the remote device has very little space available).   I have setup an Ubuntu VM on my machine (bridged network) in which I've installed SSHPass and used it successfully to complete this troubleshooting task. I used a syntax as shown below from the terminal of my Ubuntu machine:  sshpass -p <password> ssh -c aes256-ctr <username>@<remote-ip> -p <remote-access-port> "tcpdump -i eth1 -s 0 -nnn -vvv -w - port 53" \ > /home/drew/Desktop/DNS_Capture.pcap   Once I ran the above command, my session connected and started running a tcpdump on the remote device looking at it's DNS traffic. This captured directly to a file located on the desktop of my Ubunut VM which is exactly what I wanted.  One on of my other devices however, the main landing page from an SSH session is not the Linux shell of the device, but rather another debug shell. If I were to actually be doing the process on this other device via CLI, I would do the following:  ssh <username>@<remote-ip> -p <remote-access-port> <password> (*at prompt for password after connection) sh tcpdump -i eth5.1 -s 0 -nnn -vvv port 53   As you can see from the above, I initiate a "sh" in order to be dropped into the appropriate linux shell of the device. With the above, I'm able to run my captures as needed, but the issue is that I'm not able to save the output of this in a .pcap file. In my attempts to get around this, I have tried the below in my attempts to get this working on this other device:  sshpass -p <password> ssh <username>@<remote-ip> -p <remote-access-port> "sh; tcpdump -i eth5.1 -s 0 -nnn -vvv -w - port 53" \ > /home/drew/Desktop/DNS_Capture.pcap   I found on other questions on this forum that people were successful in passing multiple commands by using those command escapes such as ";". It almost seems to me like the first command is not even applying when setup in this manner. Even if I enter the following as a test to see if I've landed in the proper linux shell, it doesn't run the second command, and the prompt tells me that I'm still at the default landing page:  sshpass -p <password> ssh <username>@<remote-ip> - <remote-access-port> "sh; ifconfig"


Conservation of momentum in infinite square well

This is inspired by Griffiths QM section 2.2, on the infinite square well, which is about how far I've gotten (so, sorry if this is addressed later in the book).  For any given starting wavefunction, you can express it as a sum over the solutions of the time-independent Schrödinger equation. The coefficients in the sum are constant in time, therefore the expectation value of energy is constant in time. The chapter says "this is a manifestation of conservation of energy in quantum mechanics." Ok.  Now in problem 2.5, we have a wavefunction that is an even mixture of the first two stationary states. Part D has us compute the expectation value of momentum, and the solution is sinusoidal in time. So momentum is not conserved.  How can momentum be not conserved? Why is energy conserved but not momentum?


As far as I understand the postulates of quantum mechanics use only properties of abstract Hilbert space. So could we use any other Hilbert space for calculations instead of $L_2$? What could it be?  I can only suggest infinite-dimensional vector space with Euclidean norm, but it seems to be isomorphic to $L_2$.


How does MySQL update the fields value in the same table?

test 1:  update tb_chapters t set t.order_id = (SELECT COUNT(*) AS c FROM tb_chapters t2 WHERE t.bid = t2.bid AND t.id > t2.id)   error:  1093 - You can't specify target table 't' for update in FROM clause     test 2:  update tb_chapters t set t.order_id = (SELECT t2.c FROM (SELECT COUNT(t1.id) AS c FROM tb_chapters t1 WHERE t1.bid = t.bid AND t1.id < t.id) AS t2)   error: 1054 - Unknown column 't.bid' in 'where clause'     test 3:  update tb_chapters AS t JOIN (SELECT id, COUNT(id) AS c FROM tb_chapters t1 WHERE t1.bid = t.bid AND t1.id < t.id) AS t2 USING(id) set t.order_id = t2.c   error: 1054 - Unknown column 't.bid' in 'where clause'


How is potential difference maintained in a battery?

I am beginning of learn electricity so sorry if my questions are confusing or does not make sense. My question is specifically about how voltage (which I guess is due to separation of uneven charges) is constantly maintained in a battery. My knowledge of battery comes from chemistry and there examples of battery were not as complicated as those found in physics. Like in chemistry we learned of how electrons traveled one one electrode to another another and when the charges are evened the battery then dies. But in physics I am reading of examples when the battery constantly maintains the voltage and charges keep on traveling the circuit even when they reach the other terminal. Can anyone explain how this is happening? I guess I don't understand how batteries work completely.


Cannot find matched String in Java with an array that is created from Scanner Input

After being marked as duplicate:  Ok I see that now this is a duplicate, and I apologize for a seemingly silly question. It's just from my perspective it was difficult to realise what to "search" online to solve this problem because I didn't know using == with strings in this manner was a problem to begin with! Even so, I'm still wondering why is using the test array still work in the for loop at the bottom of the code despite it checking with == and not .equals() but it doesn't work for the array created with stored Scanner input? It's because one of these methods still worked in finding p with == and not .equals() that made me think it was the method of storing the array that caused the problem and look in the wrong places for answers.  Problem:  I'm trying to make a simple AI for a problem I'm working on in Java, and part of it requires storing user input with the Java Scanner library in order to make an array of strings that represents a game board or "grid". I decided to store the input of this array "grid" one by one, asking the user to enter element for the current array position. The array is a 2-dimensional array and the input is stored one by one via two for loops one nested in the other as you can see near the start of the code I have provided below. I made a method called displayGrid that prints out the contents of 2-dimensional array in the form of a grid and it seems to take in the input correctly and the board displays correctly.  However when I try to search this "grid" after storing it with input (by using for loops as you can see near the end of the code snippet) the if statement there can't seem to verify as true even when I have stored the letter "p" in the first part of running the program when the Scanner is storing input into the array, and the displayGrid method actually prints out the array correctly showing there is in fact a "p" in the array. In any case, this part of the code is supposed to check if there is a "p" in the array and if there is return it's column position which I tried doing but it always returns 0 since it cannot verify that if statement as true.   The strangest thing though is that if I make a test array that is composed of strings as you can see at the very start of the code, and try the loop at the bottom of the code on this test array it does find "p" and print it's column value.   So are there any ideas why the loops at the bottom cannot find the "p" value of an array created from the scanner inputs near the start of the code - even when my displayGrid method shows that this array does contain a "p"? Thanks in advance!  Note: I haven't included rest of the code because it was largely irrelevant, but I can post it if it's really needed.   public static void main(String[] args) {     // tests     String[][] test = {{"-", "p", "-"},{"-", "-", "-"},{"-", "-", "-"}};      // running main program     Scanner in = new Scanner(System.in);      int n = 0, boardSize;     boardSize = n*n;     do {         System.out.print("Enter n dimension of your game grid (for an nxn sized board): ");         n = in.nextInt();     } while(n < 3 || n > 100 || n % 2 == 0);      String grid[][] = new String[n][n];      System.out.println("Please enter the contents of your array now.");      for (int row = 0; row < n; row++) {         for (int col = 0; col < n; col++) {             System.out.print("Enter element at grid location: [" + row + "] [" + col + "]: ");             String temp;             temp = in.next();             grid[row][col] = temp;         }     }      // display grid for testing     displayGrid(grid, n);      // test     for(int row=0; row<grid.length; row++) {          for(int col=0; col<grid.length; col++) {              if (grid[row][col] == "p") {                 System.out.println(col);             }         }     }


Boot GRUB to entry not booted to last time?

I'm not sure I'd actually do this, but is there a way to make GRUB automatically select the boot option I didn't use last boot? i. e. If I booted into Windows last boot, it selects Ubuntu. If I booted into Ubuntu, it selects Windows. I was just wondering because I often find myself rebooting to switch OSes, as I have different games that I run on each (though with my new rig I don't need to run stuff on Ubuntu just for lower OS resource usage), and I was wondering if I could make it so that every time I pressed "restart" from either OS I wouldn't have to change selections. In practice this would also affect non-restart startups, so then I might have to boot twice to get the OS I was using last time.


Do any one know how to type a very big parenthesis in LaTeX. Since the formula is very big, I used multline environment, in one line, there are many pair of parenthesis by using \left and \right which make them already very big. Between lines, I need some parenthesis bigger than the one given by \Bigg. My intention is to show the following big formula in multline environment:  $$ \frac{       e^{-\frac{t \lambda +4}{4 \lambda \nu }}       \left(             e^{\frac{t}{4 \nu }}             \left(                   4 \sqrt{\pi } \sqrt{\nu }+1             \right)             \nu \Phi             \left(                   \frac{t-\frac{2}{\lambda }}{\sqrt{2} \sqrt{t \nu }}             \right)             \lambda^3             -e^{\frac{t \lambda +8}{4 \lambda \nu }}             \left(                   4 \sqrt{\pi } \sqrt{\nu }-1             \right)             \nu             \left(                   \Phi                   \left(                         \frac{t+\frac{2}{\lambda }}{\sqrt{2} \sqrt{t \nu }}                   \right)                   -1             \right)             \lambda^3             +e^{\frac{1}{\lambda \nu }}             \left(                   4 \sqrt{\pi } \lambda^3 \nu^{3/2}                   \left(                         2 \Phi                         \left(                               \frac{1}{\sqrt{2} \lambda \sqrt{t \nu }}                         \right)                         -1                   \right)                   -e^{\frac{t}{4 \nu }}                   \left(                         \left(                               \lambda                               \left(                                     4 \sqrt{\pi } \sqrt{\nu }-1                               \right)                               \nu +2                         \right)                         \lambda^2+2                         (\lambda \nu -2)                         \Phi                         \left(                               \frac{\sqrt{\frac{t}{\nu }}}{\sqrt{2}}                         \right)                         \lambda^2-2                    \right)              \right)        \right)      }{4 \lambda } $$


Which is the equivalent of mysql_data_seek using pdo objects? Can you give me an example?  Thanks!


I flagged  as having a  ():    I said "possibly offensive" because it's possible it's a genuine surname I wasn't aware of, but googleing didn't show any evidence and  pretty much matched my definition of it which seems offensive.   Is this really a genuine name? If not how is it possibly not offensive and thus a bad flag?   (I flagged in good faith so even if it is a genuine name declining seems harsh)


Wifi does not work at all. I've tried this:  And also upgrading my kernels. I've also tried removing the drivers and updating them. However, I keep running into errors. I have the BroadCom  BCM43227 802.11b/g/  When I checked what my laptop recognized: ifconfig;  It showed only eth0 which is my wired network, and "lo" But it doesn't show the wlan which is the wifi network. So, I don't know what is happening with my wifi. None of the software detect it.  I'm a newbie, so detailed instructions would be awesome.  Ubuntu 12.04.3  --- FIXED --- Refer to :   The issue you are dealing with seems to mainly appear on Ubuntu 12.04.3 LTS with the backported kernel 3.8.0-xx installed.  Please take a look at this bug report. As you can see it's a known problem and many different workarounds exist.  What worked for me was installing the latest bcmwl-kernel-source from Raring. You can find this package here. Make sure to download the right one for your system, e.g. this one if you have an amd64 machine.  You can install the package via:  sudo dpkg -i ~/Downloads/bcmwl-kernel-source_6.20.155.1+bdcom-0ubuntu6_amd64.deb  Of course you will have to change the path to the deb file in accordance to where you downloaded it to.  You might have to execute the following command afterwards to get your wireless up and running:  sudo modprobe wl


Best way to encrypt file on Ubuntu but readable on a Windows machine?

What would be the best way to encrypt a file in Ubuntu 12.04 but in a way that could be read by a Windows 8 user?   Would creating a Truecrypt volume work if I just sent the truecrypt file over?  Any other methods?


Inverse of $ab$ and its order in a group with relations $a^2=e=b^6$ and $ab=b^4a$

Let $a$ and $b$ be elements of a group, with $a^2=e, b^6=e$ and $ab=b^4a.$ Find the order of $ab$ and express the inverse in each of the terms $a^mb^n$ and $b^ma^n.$  Just want to cross check my solution. Would be very grateful for the complete solution.


How to get the latest date time record in an sql query with a where clause?

I have two tables : RO_LAMEL_DATA and RO_MAIN_TABLE. RO_MAIN_TABLE includes all the serial numbers (serial_nr) for the productions which have a record key (record_key). RO_LAMEL_DATA has several records (on the same day) for each record key such as machine status (machine_status) with a date time value (pr_date_time). I want to get the latest machine status of one production. For this I do: select a.machine_status from ro_lamel_Data a inner join (     select record_key, max(pr_date_time) as MaxDate     from ro_lamel_Data     group by record_key ) ro_main_table on (a.record_key = ro_main_table.record_key) and a.pr_date_time = MaxDate where a.record_key =(     select record_key from ro_main_table where serial_nr = 'Y39489');    However I get the error:  single-row subquery returns more than one row  How can I solve this? Thanks in advance!


I was asked to find the inverse of the following Matrix:  \begin{bmatrix}1&-4&-6\\0&1&5\\0&0&1\end{bmatrix}  I took A|I where I is the 3x3 identity Matrix, row reduced it and got the following inverse Matrix:  \begin{bmatrix}1&4&14\\0&1&-5\\0&0&1\end{bmatrix}  But apparently it's wrong. Any ideas on how to help?


Attempt to invoke interface method 'int java.util.List.size()' on a null object reference in recyclerview

Hello everyone I'm working with an app and I'm consuming rest api using retrofit2. I have a list of companies that I need to show using recyclerview. I have followed a lot of resources and tutorials but none helped me. In the logcat session I have an error:  java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference in my adapter....  in this line :  @Override public int getItemCount() {     return companies.size(); }   Here is my code:  my adapter  private List<Company> companies; private Context context;  public CompanyAdapter(List<Company> companies, Context context) {     this.companies = companies;     this.context = context; }  @NonNull @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int i) {     View view = LayoutInflater.from(parent.getContext())             .inflate(R.layout.row_companies, parent, false);     return new ViewHolder(view); }  @Override public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) {     Company comp = companies.get(position);      viewHolder.compName.setText(comp.getName());     viewHolder.compDesc.setText(comp.getDescription());     viewHolder.compNipt.setText(comp.getNipt()); }  @Override public int getItemCount() {     return companies.size(); }  public class ViewHolder extends RecyclerView.ViewHolder {      public TextView compName, compDesc, compNipt;      public ViewHolder(@NonNull View itemView) {         super(itemView);          compName = (TextView) itemView.findViewById(R.id.tvCompanyName);         compDesc = (TextView) itemView.findViewById(R.id.tvCompanyDescription);         compNipt = (TextView) itemView.findViewById(R.id.tvCompanyNipt);     } }   and my activity  private RecyclerView recyclerView; private RecyclerView.Adapter adapter; private List<Company> companies;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_companies_list);      RecyclerView recyclerView = (RecyclerView) findViewById(R.id.companies_list);     recyclerView.setHasFixedSize(true);     recyclerView.setLayoutManager(new LinearLayoutManager(this));      adapter = new CompanyAdapter(companies, this);     recyclerView.setAdapter(adapter); }   What I'm doing wrong... Any help is appreciated!


How do I mount an `img` created with /bin/dd of a hard drive?

I used dd to backup a 80GB drive  dd if=/dev/sdb of=~/sdb.img   Now I need to access some files on that drive, but I don't want to copy the ".img" back over the drive.   mount ~/sdb.img /mnt/sdb doesn't work either. It returns :  mount: you must specify the filesystem type   I tried to find the filesystem type with file -s  fox@shoebox $ file -s sdb.img sdb.img: x86 boot sector; partition 1: ID=0x12, starthead 1, startsector 63, 10233342 sectors; partition 2: ID=0xc, active, starthead 0, startsector 10233405, 72517410 sectors; partition 3: ID=0xc, starthead 0, startsector 82750815, 73545570 sectors, code offset 0xc0   Is it possible to mount sdb.img, or must I use dd to restore the drive?


StackOverflow site display issue in chrome browser

I am having 2 issues with the SO website running in chrome browser (Version no 33.0.1750.146 ).   First. The questions are displayed like this    But I want this to be displayed like this ( in firefox browser)    Second. The notifications like new questions, comment, answer are not working unless page is refreshed.   So please help me in resolving this issue.


Why can't install 15MB app when I have 180MB free?

I want to install an app from Google Play, where it's said it has 14.99MB.  However, when I click on Install, it says "Insufficient storage".  When I click View Storage, there says 180MB available.  Why can't I just download it to the SD Card?  As I see, this has been a persistent error, though in other posts people are talking about 15 MB of free space. I got more than 10 times that, so isn't it strange?  Also, the Storage screen don't show the available space as part of the bar "Device Memory", above. Does that happens with anyone else?  I'm using a Sony Xperia.  Thanks in advance.


What is the exact purpose of object scale?

Many times I've banged my poor overworked, under performing head at both virtual and physical walls trying to understand why do we have the object scale attributes when every time we want to apply a modifier or perform some operation the object scale has to be exactly one in all three directions if we don't want our result to look like creations from other dimensions:   How is this feature useful and why is it still in Blender?


I am confused about how to proceed with solving 3rd and 4th question.  The question is :  Alice has two coins. The probability of Heads for the first coin is  ${1\over4}$, and the probability of Heads for the second is ${3\over4}$. Other than this difference, the coins are indistinguishable. Alice chooses one of the coins at random and sends it to Bob. The random selection used by Alice to pick the coin to send to Bob is such that the first coin has a probability  $p$  of being selected. Assume that  $0<p<1$. Bob tries to guess which of the two coins he received by tossing it  $3$  times in a row and observing the outcome. Assume that for any particular coin, all tosses of that coin are independent.  1. Given that Bob observed  $k$  Heads out of the  $3$  tosses $(where                     k=0,1,2,3 )$, what is the conditional probability that he received the first coin?  My answer = ${3^{3-k}⋅p \over3^{3-k}⋅p+3^k⋅(1−p)}$  2. We define an error to have occurred if Bob decides that he received one coin from Alice, but he actually received the other coin. He decides that he received the first coin when the number of Heads,  $k$ , that he observes on the  $3$  tosses satisfies a certain condition. When one of the following conditions is used, Bob will minimize the probability of error. Choose the correct threshold condition.  My answer = $k ≤ {3\over2}+{1\over2}log_3 {p\over1−p}$  3. For this part, assume that  $p={3\over4}$  3 a. What is the probability that Bob will guess the coin correctly using the decision rule from part  2?  3 b. Suppose instead that Bob tries to guess which coin he received without tossing it. He still guesses the coin in order to minimize the probability of error. What is the probability that Bob will guess the coin correctly under this scenario?  4. Bob uses the decision rule of Part 2. If  $p$  is small, then Bob will always decide in favor of the second coin, ignoring the results of the three tosses. The range of such  $p's$ is  $[0,t)$. Find $t$.


Viewing all messages in sub folders in the containing folder?

I have rules set up in Outlook 2010 to move a copy of an email from a particular person to a particular subfolder of a folder   i.e. I have folder Team with subfolders, Joe, Mark, Nige  and  Becky. A rule is applied to incoming email that moves a copy of messages from these 4 to their specific folder.   Now what I want is to be able to see all these messages together in the Staff folder (like a specific inbox) too. Is this possible?


"import" all my packages and custom commands into a new file automatically

I am new to latex, so apologies if this is a trivial question. I have amassed many useful packages and custom commands and start each document by copy/pasting all of them above "\begin{document}". Is there a way to automate this? Can I have one command which will collect all the packages and commands I like to use?  Thank you!


To prove the expression is a perfect square

It is required to prove that for positive integers $a$,$b$ if $$1+ab|a^2+b^2$$ then the integer  $$\frac{a^2+b^2}{1+ab}$$  is a perfect square. The proof is easily beyond me as I have only recently started studying number theory or maybe I'm not intelligent enough. Help will be highly appreciated.


folks,  i am new to this forum and not a math expert. so please bear with me if am asking silly questions.   The question is "probability of getting 50 heads from tossing a coin 100 times".  So the answer for this is, I guess, ${100 \choose 50} (2 ^{-100})$.  So all am trying to get is easier way to calculate ${100 \choose 50}$, or another approach to the parent problem only.  Thanks all, appreciate that.  raj


Feature - Show the last 10 questions viewed and the activity of them

Show the last 10 question that I had read, answered recently....  Comments no, because there's already the "notifier"...  There are times when I read the question, it looks interesting and I want to be notified if it was answered. Mark the question as favorite it's ok, but it's difficult to "reach" the tab favorite since it is in the users profile....  I don't know, something in the sidebar or in the "notifier", keeping me updated about the answers of a question, not just the comments....  Thanks  EDIT*** after @Arjan Comments...  In the sidebar show the last 10 questions viewed and in the box that appears in the top menu when you hover your name the activity of the last 10 questions I viewed.


How do I add left-padded zeros to a number in Java?

I have an integer 100, how do I format it to look like 00000100 (always 8 digits long)?


Condition on degrees for existence of a tree

Here is what I need to prove:      Let $d_1,d_2,...,d_n$ be a sequence of natural numbers (>0). Show that $d_i$ is a degree sequence of some tree if and only if $\sum d_i = 2(n-1)$.   I know that: 1. for any graph $\sum_{v \in V}\ deg(v) = 2e$; 2. for any tree $e=v-1$. From 1 and 2 it follows that for any tree $\sum_{v \in V}\ deg(v) = 2(v-1)$. If I understand it correctly, this is only a half of the proof ($\rightarrow$), isn't it?  Any hints on how to prove it the other way?  Edit (induction attempt):   $n=1$, we have $d_1 = 2(1-1) = 0$ and $d_1$ is a degree sequence of a tree.  Let's assume the theorem holds for all $k<n$. So we know that $d_1 + d_2 + ... + d_{n-1} = 2(n-2) $ and that it's a degree sequence of a tree. In order to add one vertex to this tree, so that it remains a tree we only can add a vertex of degree one (we connect it to any existing vertex with a single edge). By doing this our new sequence is $1,d_1,...,d_j+1,...,d_{n-1}$, where $j$ is the vertex to which we attached the new vertex (it's degree increments). Clearly this sums to $2(n-1)$.   Is this proof correct or am I missing the point?


What's the point of Hamiltonian mechanics?

I've just finished a Classical Mechanics course, and looking back on it some things are not quite clear. In the first half we covered the Lagrangian formalism, which I thought was pretty cool. I specially appreciated the freedom you have when choosing coordinates, and the fact that you can basically ignore constraint forces. Of course, most simple situations you can solve using good old $F=ma$, but for more complicated stuff the whole formalism comes in pretty handy.  Then in the second half we switched to Hamiltonian mechanics, and that's where I began to lose sight of why we were doing things the way we were. I don't have any problem understanding the Hamiltonian, or Hamilton's equations, or the Hamilton-Jacobi equation, or what have you. My issue is that I don't understand why would someone bother developing all this to do the same things you did before but in a different way. In fact, in most cases you need to start with a Lagrangian and get the momenta from $p = \frac{\partial L}{\partial \dot{q}}$, and the Hamiltonian from $H = \sum \dot{q_i}p_i - L$. But if you already have the Lagrangian, why not just solve the Euler-Lagrange equations?  I guess maybe there are interesting uses of the Hamiltion formalism and we just didn't do a whole lot of examples (it was the harmonic oscillator the whole way, pretty much). I've also heard that it allows a somewhat smooth transition into quantum mechanics. We did work out a way to get Schrödinger's equation doing stuff with the action. But still something's not clicking.  My questions are the following: Why do people use the Hamiltonian formalism? Is it better for theoretical work? Are there problems that are more easily solved using Hamilton's mechanics instead of Lagrange's? What are some examples of that?


Dealing with quotes in Windows batch scripts

In a Windows batch file, when you do the following:       set myvar="c:\my music & videos"   the variable myvar is stored with the quotes included. Honestly I find that very stupid. The quotes are just to tell where the string begins and ends, not to be stored as part of the value itself. How can I prevent this from happening?  Thanks.


I understand that scientists believe the earth and the moon were spinning at the same speed as each other at the time they experienced acceleration (were formed). I also know that the reason given for why the moon no longer spins is that the earths gravitational attraction for the moon stole the energy after 3.5 billion years.    So why is the earth still spinning?  Given that the sun's attraction for the earth is 100 times stronger than the earths attraction for the moon.


I have this query in MSSQL:  UPDATE [dbo].[sliders_item] SET AdminCategoryLabel = st.Title from [dbo].[sliders_item] si inner join [dbo].[sf_content_link] cl on si.base_id = cl.parent_item_id inner join [dbo].[sliders_type] st on cl.child_item_id = st.base_id   Wich works well when sf_content_link have one record with si.base_id = cl.parent_item_id.  I have to update AdminCategoryLabel using the connection table sf_content_link for the case when sf_content_link have many records with si.base_id = cl.parent_item_id. Somehow i have to select all the Titles from sliders_type and concatenate them to replace the current st.Title wich takes only first record.  Any idea how to do that?  The tables designs are:   sliders_item: base_id, AdminCategoryLabel sliders_type: base_id, Title sf_content_link: id, parent_item_id (FK for sliders_item base_id), child_item_id (FK for sliders_type base_id).


You get the 925 badge for getting a silver badge.  Do you still get the badge of you got that silver badge on the Meta site for a particular SE site?  N.B.: I am not talking about Meta.SE, I'm talking about per-site metas like  or .


Proving a sequent is valid without a premise

I'm having issues proving that a sequent is valid, without any premises given.   Prove $⊢ (p \to q) \lor (q \to r)$ by natural deduction. Prove $⊢ \forall x \forall y P(x, y) \to \exists y \forall x P(x, y)$ by natural deduction.   I don't know where to begin with, as I normally use my premises in the first place. What's the general approach when encountering a sequent like theses ones?


Time Period of a damped physical oscillator

If I have a stick that is  in air, and due to damping  will its period increase or decrease? Damping will reduce its angular velocity as it opposes the motion of the stick, however, won't damping also reduce the amplitude which causes it to travel less distance and thus take less amount of time?


How to change which anchor point on a path is the "starting anchor"?

I'm trying to do some animations for my website with SVG images that I saved in Illustrator. I'm running into the issue that the animation is starting from the wrong part of the path, and I'd like to set the "start" of the path to a different anchor. I've searched and searched and I'm not sure that there's a way to do this without redrawing the path. It's a closed path so I can't just hit reverse.  Is there some option in Illustrator to select an anchor on a closed path and make it the "first" anchor on a closed path?


alan@alan-P43G:~$ sudo apt-get install nvidia-340 Reading package lists... Error! E: Read error - read (5: Input/output error) E: Problem opening /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_trusty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   I have this problem I think the ppa arent installing.  Anyone knows how to fix it?


Spacing issue with algorithmic and eqparbox

I am using the algorithmic package to display code. In order to get flush-right, left aligned comments, I also use the eqparbox package and redefine \algorithmiccomment; see minimal example below.  As can be seen in the attached snapshot, all the comments are left-aligned as intended except for the second one. I guess it should be possible to solve this by redefining or patching some command in algorithmic.sty, but after taking a look to that file, I could not identify the source of the problem. Any ideas?  \documentclass{article} \usepackage{algorithmic} \usepackage{eqparbox} \renewcommand{\algorithmiccomment}[1]{\hfill\eqparbox{COMMENT}{\{#1\}}}  \begin{document} \begin{algorithmic}   \STATE something \COMMENT{first comment} \IF[second comment]{some condition}  \STATE some other thing \COMMENT{3rd comm} \STATE final thing \COMMENT{some final thoughts} \ENDIF \end{algorithmic} \end{document}


How to set width for image progragmaticall?  This is my code,      txtone = (ImageView)findViewById(R.id.imageView);     txttwo = (ImageView)findViewById(R.id.imageView2);     height = metrics.heightPixels;     width = metrics.widthPixels;     if (height == 800 && width == 1217) {     int a = txtone.getMeasuredWidth();     txtone.getLayoutParams().width = 280;     txttwo.getLayoutParams().width = 280;     txtthree.getLayoutParams().width = 280;     txtone.requestLayout();     txttwo.requestLayout();     txtthree.requestLayout();


Problem in Arithmetic Mean - Geometric Mean inequality

Let a,b,c be positive real numbers, prove that  $$ \frac{a}{b} + \frac{b}{c} + \frac{c}{a}  + \frac{3\sqrt[3]{abc}}{a+b+c} \geq 4$$  I am suppose to use AM-GM inequality, I tried  $$  \frac{a}{b} + \frac{b}{c} + \frac{c}{a}  \geq 3 $$  and $$ a + b + c\geq 3 \sqrt[3]{abc} $$ implying $$ \frac{3\sqrt[3]{abc}}{a+b+c} \leq 1 $$ Now adding the two inequality could give me the desired result but the problem I face is with second inequality sign(it's less than or equal to 1 rather than greater


Unable to write anything into NTFS drives

I have migrated from Windows to Ubuntu very recently. In Windows I had 3 drives and I am using the same here. I have installed my OS in one. I can't read/write or remove files/directories from either of the other two drives.  root@vishnu-desktop:~# sudo fdisk -l Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0xa3e0317f Device     Boot      Start        End    Sectors   Size Id Type /dev/sda1  *          2048     206847     204800   100M  7 HPFS/NTFS/exFAT /dev/sda2           206848  314572799  314365952 149.9G 83 Linux /dev/sda3        314572800 1363148799 1048576000   500G  7 HPFS/NTFS/exFAT /dev/sda4       1363148800 3907026943 2543878144   1.2T  7 HPFS/NTFS/exFAT   In the above /dev/sda2 is where I have installed Ubuntu.  In /dev/sda3 and /dev/sda4 I am unable to do anything.


What is the equivalent of integration while multiplying continuous values?

We know that summation is for discrete values, and integration is the generalization of summation so that it can be extended to continuous values.  We also have product for discrete value, what is its continuous counter part?


Is there a way to type coloured words on a sign?

I made a house, and I want to put signs around of what is this particular section. However, I want to colour the words on each sign for different sections in the house, since the house is very big ( a bunker, actually). Is there a way for me to do so? Thanks!


Where's a good place to play D&D online?

I'm a beginner, but I've played other RPGs before.  I travel a lot so I can't really dedicate myself to a local group.  Are there places to play campaigns online? Is this even feasible?  Edit: To be more clear, I am looking for groups that play online via email or something like that.


Does anything distribute over exponentiation?

Is there any function $f(x)$ for which $f(a^b) = f(a)^{f(b)}$, other than the constant or identity function?


My coach said that for all positive integers $n$, $n^4+4^n$ is never a prime number.  So we memorized this for future use in math competition.  But I don't understand why is it?


Prove that row rank of a matrix equals column rank

Let $A \in \mathbb{F}^{m \times n}$. How do you prove that row rank of a matrix equals column rank ?  This question has been addressed  and , but the explanation in one case was descriptive and somewhat involved in the other. The answer below is an introductory-linear-algebra level answer.


Is it possible to check for an injured player in Minecraft?

I am creating a mini-game in Minecraft, where I must check to see if the player is injured. The injured player will then be given an item. My guess is that the command would look something like /testfor @p[injured=true], but this command doesn't work. Is there a command for this?


Subsetting polygons from shapefile using ArcMap

I have a shapefile of lakes with lots of polygons. The features I am interested in are only big lakes. Is there any way to subset only the polygons I am interested in from the shapefile using ArcMap?


(ZF)subsequence convergent to a limit point of a sequence

Arthur's answer;   Let $\{p_n\}$ be a sequence in a metric space $X$.  Let $B=\{p_n|n\in\mathbb{N}\}$ and $p$ be a limit point of $B$.  It first seemed obvious that there exists a subsequence convergent to $p$, but i realized that  I can construct a 'infinite subset' of $\{p_n\}$ and form a new sequence convergent to $p$, but can't construct a 'subsequence'.  Help me how to construct a subsequence.  Additional Question; What is the precise definition of convergent? I think the definition should mention ordering of $\mathbb{N}$, but every definition i saw doesn't mention this. For example, let $p_n = 1/n$. Say $G$ is the usual ordering of $\mathbb{N}$ (i.e. Well-ordered by $\in$) If i follow this ordering, $\{p_n\}$ is convergent to 0. But if i follow $G^{-1}$, it's convergent to 1.  Or is it defined by the point where is the most, unofficially speaking, 'dense'?


How to create form with condition drop down. Like If I click option "Other" then only a text box should appear in the form. How to do it ? Urgent  Like :  If I ans 6th question as "Yes: then only the the "specify" row should appear. How to do it ? Urgent


Change keyring password after resetting password with "passwd" : Ubuntu 13.10

I forgot my Ubuntu 13.10, so I reset my password from revoverymode using "passwd". Now when I log in to my system the keyring prompts "The password you use to login to your computer no longer matches that of your login keyring". I googled to change the keyring password but it requires my old password that I don't remember.  Any suggestions on how to solve this.?


I am using UBUNTU 13.04 not able to install airtel 4G LTE dongle

I have recently installed Ubuntu 13.04 in my PC. Everything works fine except my Airtel 4G LTE dongle (Model MF825A). Ubuntu does not give any option to select 4G LTE when setting up a mobile broadband connection.  How can Airtel 4G LTE (Model MF825A) dongle be used with Ubuntu? Are there any patches or other updates available for getting this problem solved?


Basically the character is posed and rendered with various props. At random, suddenly, the lines are "sticking" among multiple frames despite the fact that the object has been moved.   What could be the cause of this, and how can I fix it?  This only started happening recently - I had done many renders with this file / model and suddenly this has started.   The magnifying glass frame is two or three frames down from the hammer one.


Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?

There is a case where a map will be constructed, and once it is initialized, it will never be modified again.  It will however, be accessed (via get(key) only) from multiple threads.  Is it safe to use a java.util.HashMap in this way?  (Currently, I'm happily using a java.util.concurrent.ConcurrentHashMap, and have no measured need to improve performance, but am simply curious if a simple HashMap would suffice.  Hence, this question is not "Which one should I use?" nor is it a performance question.  Rather, the question is "Would it be safe?")


"In a party people shake hands with one another"

In a party people shake hands with one another (not necessarily everyone with everyone else).   (a) Show that 2 people shake hands the same no. of times.   (b) Show that the number of people who shake hands an odd no. of time is even.        I find this question to be very tough and I can't find a way to even start answering this. It would be great if I could get a small hint in order for me to at least start it.


If $I$ and $J$ are both an ideal, then how is $IJ$ defined?

I have an exercise where I need to manipulate different sets of ideals. So suppose you have $I$ and $J$ two ideals, then what would $IJ$ be equal to? Would it be $$IJ =I \times J = \{(i,j)| i \in I, j \in J \} $$ Or maybe $$IJ= \{ij| i \in I, j \in J \}$$  Or something else?


Newest Libre Office Isn't Installing Through PPA

I'm running Ubuntu 12.04 LTS and I've followed the directions closely here:    sudo add-apt-repository ppa:libreoffice/libreoffice-4-1   sudo apt-get update   sudo apt-get dist-upgrade     to add the PPA repository and then run update / upgrade.  But when I actually run sudo apt-get upgrade I get:  Reading package lists... Done Building dependency tree        Reading state information... Done   Calculating upgrade... Done   0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   I've downloaded the file manually (LibreOffice_4.2.1_Linux_x86-64_rpm.tar.gz) and executed it but I don't know how to fill out the command line arguments:  ~/Downloads/LibreOffice_4.2.1.1_Linux_x86-64_rpm$ ./install   Usage: ./install [-a,--add] [-l,--link] [-U,--update] [-h,--help] <rpm-source-dir> <office-installation-dir> Example: ./install . ~/libreoffice   I should probably be doing ./install -u /path/to/install/here  But how do I know where Libre Office is installed to right now? I'd like to upgrade my current version not install two side by side so I want to get these command line paramters right.


Install my self-made scripts to run them from the command-line

I have a number of self-made (bash) scripts that I often use. Here are some examples of these scripts:   A script backup-system.sh that backs up my system to an external hard drive. A script repeat.sh that allows me to repeat a command multiple times. For example, repeat.sh 5 echo "x" prints "x" 5 times. A script switch-sound.sh that switches between outputting sound over my loudspeaker and over my headset.   Because I use these scripts often, I want the ability to easily call them from my command line. For example, I want to type backup-system to run backup-system.sh.  How can I install my self-made scripts to run them from the command-line? Since this is a common issue, I would like to know the standard way to achieve this, that ideally works for many Linux distributions (however, Ubuntu is the priority).    More details:   I am the only user of my computer. Still, I would like to be able to use my scripts as both my own user and as root. I know I could add an entry to .bashrc to achieve some of what I want. But because my scripts are often long, this is impractical.


How can i make something when mouse click hold down with Python

I want to make simply count the numbers automatically when mouse left click holding. I can make it on keyboard but cant on mouse. import keyboard  a = 0 while True:     try:         if keyboard.is_pressed('q'):             a += 1;             print(a)     except:         break     When I press and hold it, it writes numbers on the screen by increasing it. Just i want "mouse click then holding" version of this code. from pynput.mouse import Listener def on_move(x, y):     print("mouse moved") def on_click(x, y, button, pressed):     if pressed:     print("mouse clicked") def on_scroll(x, y, dx, dy):     print("mouse scrolled") with Listener(on_move=on_move, on_click=on_click, on_scroll=on_scroll) as listener:     listener.join()  The above codes running perfect but just i need mouse click holding event. Or is there something like un_click event?


Adding address (newly-built house) to existing street on Google Maps

How can I add my address (newly-built house) to an existing street on Google maps?  It shows on Bing maps OK but not on Google maps.  Existing answers to this question seem to be outdated.  Surely this is a common problem every time a new house is built.


Open man page and search for string in a single command

Instead of doing man chmod and then /a+x to jump to the first section in the chmod man page that mentions a+x, I would like to know if there is a way to open the man page to a specific search string, similar to how you can do vi +string filename.txt in vi(m).


Is it appropriate to flag an answer as "Not an answer" if it doesn't address the question?

This question is an attempt to clear up the following part of a :  Do not use this flag when a user posts:  An answer to a (slightly) different question   in the case of an answer to an entirely different question. It boils down to "Where do we draw the line" because any affirmative sentence is an answer to some question and any affirmative sentence with a programming context is a possible answer to a possible question on StackOverflow.  The background here is the linked answer to  This answer has nothing to do with the question, but merely gives information the answerer believes could help the asker in a general sense. If you read the question, you see that it's about a specific syntax element in jQuery (it's properly tagged as well). The answer doesn't address that in any way, but rather gives (possibly helpful) advice in a different direction, maybe referring to the asker's obvious lack of background knowledge as a whole. While the answer might be helpful, I think it's appropriate to flag it as "Not an answer" because it's an answer to an entirely different question than the one it was posted to. But my flag was declined, so I'm unsure if I understand the concept correctly and would like to understand the thought process behind the decline. The decline message is declined - a moderator reviewed your flag, but found no evidence to support it. A related case where I didn't flag because I wasn't sure it was appropriate (but would flag for the same reason) is . The first comment to the question was originally an answer and I commented it to point out it's helpful advice, but not answering the question. Obviously, the author agreed.


Let  $a,b,c,z$ be complex numbers such that for all $|z| \le 1$ we have $|az^2+bz+c| \le 1$. How to prove that $|bc| \le  \frac{3 \sqrt{3} }{16}$?


How do I disable the top hand-grab feature in Windows 8.1 - update 1 (after Spring)?

This is the last annoyance I cannot disable. I boot to desktop, use Classic Shell, removed hot corners. But this feature is the last I cannot seem to remove.    Which feature I mean exactly? The one that lets you snap your whole (entire) desktop to one side of your screen.    How do I disable this thing?


Sort list of strings with lambda and ignore prefix

I'm trying to sort a list but ignoring a prefix. This question has been answered . It should be straight forward, only it's not working. Here's what I have:  def sort_it(lst, ignore):    return lst.sort(key=lambda x: x.strip(ignore))  myList = ["cheesewhiz", "www.cheese.com", "www.wagons.com", "www.apples.com", "www.bananas.com"]  ignoreThis = "www." sort_it(myList, ignoreThis) print myList   Only the sorting is getting mixed up as the first item doesn't have anything to ignore as part of the string. I'm not sure if adding a check to see if the string contains the ignore string is the Pythonic approach with Lambda.   I expect the results to be in alphabetic order ignoring the www.  www.apples.com www.bananas.com www.cheese.com cheesewhiz www.wagons.com


A thin ring of mass M=4kg and radius, R=1m. Find its moment of inertia about an axis passing through its centre which makes an angle of exactly 45 degrees with the normal of the plane containing the ring.   I can’t develop a decent approach for this problem.....Would be really thankful if someone can guide me


I have exactly the same problem as explained in , however the question is very old and the provided answers doesn't work so I decided to ask the question again:  Sound from audio,video and in generalany of sound is choppy. I can hear some part but then immediatly it mutes.  outout of sudo lshw -c multimedia    *-multimedia                    description: Audio device        product: System Controller Hub (SCH Poulsbo) HD Audio Controller        vendor: Intel Corporation        physical id: 1b        bus info: pci@0000:00:1b.0        version: 07        width: 64 bits        clock: 33MHz        capabilities: pm pciexpress bus_master cap_list        configuration: driver=snd_hda_intel latency=0        resources: irq:22 memory:b0050000-b0053fff   *-usb        description: Video        product: WebCam        vendor: Sonix Technology Co., Ltd.        physical id: 4        bus info: usb@1:4        version: 1.00        capabilities: usb-2.00        configuration: driver=uvcvideo maxpower=98mA speed=480Mbit/s   I use Lubuntu 16 on acer aspire one.


There is a question on the complex analysis of Conway "Functions of one complex variable" (pg.$57\ \#28$) about the mapping properties of $(1−z)^i$. Can anyone describe me what does the exponent '$i$' mean? What does it do to $(1−z)$? I am confused. Can i write in the following way? $$(1−z)^i=e^{i\cdot\log(1−z)}=\cos(\log(1−z))+i\sin(\log(1−z))$$


StackOverflowException in property setter

I am new to programming and am currently taking a C# class. I am lost with this weeks assignment. Here is my assignment:  Create a file containing a class “Distance”. Internally distance is kept to an accuracy of 1/64 inch.  Distance must have a private unsigned integer variable “SixtyFourths”, the exact value of this integer should be the count of 1/64th’s of an inch the distance represents.  Create a property “Inches” to get and set Distance from a double value in inches.  Create a property “Feet” to get and set Distance from a double value in feet.  Create a property “Meters” to get and set Distance from a double value in meters.  Create a property “FtInFraction” to get the current distance as a string, or set the distance from a string, the string format you must use is specified below.  Write private methods as necessary to do the work required. Only the properties and constructor may be public.  Be sure to use proper rounding rules when converting floating point values to integers.  Write a short program in “main”. Inside main:  Create an instance of the object Distance defined by your class.  Distance Demo = new Distance(); Demo.Feet = 1.1; string FeetInchesFraction = Demo.FtInFraction; // should be: “1’ 1 13/64”” Demo.FtInFraction = “3’ 3 3/8””; Double Meters = Demo.Meters; // will be 1.00125 meters due to rounding  Do exhaustive testing with a screen shot of the console output. Exhaustive testing exercises the class through several thousand possibilities to verify the FtInFraction generates and interprets the string value in all cases. This is easily done with a loop.  Here is the code I've written so far for the class:  namespace Measurement_Converter {     class Distance     {         public double Meters         {             get             {                 return Meters;             }             set             {                 Meters = 0;             }         }          // Feet          public double Feet         {             get             {                 return Meters / .30480;             }             set             {                 Meters = value * 3.34375;             }         }          public string FeetString         {             get             {                 StringBuilder SB = new StringBuilder();                 return SB.ToString();             }             set             {                 string raw = value;             }         }          // Inches         private int SixtyFourths;          public double Inches         {             get             {                 return SixtyFourths;             }             set             {                 SixtyFourths = 0;                 if (value % 2 == 0)                     return;                 SixtyFourths = (int)(value / 2);             }         }          public double FtInFraction         {             get             {                 return FtInFraction;             }             set             {              }         }     } }   And here is the code I've written for the main:  namespace Measurement_Converter {     class Program     {         static void Main(string[] args)         {             Distance T = new Distance();              T.Meters = 12;              string Test = T.FeetString;         }     } }   My problem at the moment is that I am getting an stackoverflowexception at the set part of my meters class. My problems that are sure to follow are due to my lack of experience. I am hoping someone can help me understand the stack overflow error and possibly help me get an idea of what I might need to do with the rest of the program, or at least a similar example that i can use to try to make sense of this foreign language. Also, I get the gist of the assignment but if someone could try to explain the testing part in layman's terms. I don't want someone to do my work for me but this assignment is very confusing to me and it it is causing me a lot of frustration.


I wanted to book a direct flight from Heathrow to JFK with BA. Over night they put the price up by over £500. Now I can see the exact same flight but you have to go indirect via Newcastle to Heathrow to JFK, it works out way cheaper this way.  Is there anyway I can skip the Newcastle flight if I contact BA before and go direct to Heathrow or if I miss the Newcastle flight will the whole flight be cancelled?


What does "fix network problems" actually do?

When a network connection doesn't connect to the internet, Windows pops up a dialogue, asking whether you want to "Fix network problems".  What does it actually do when you click "yes"?


How do I open more than one Nautilus explorer when there is one already opened?

Why can I not open a second or third window, and so on, to view directories and files?  If I click the Home Folder button the same Nautilus window keeps showing up.


Why do black bodies or black colored bodies cool down faster than white ones?

Recently, I found an exercise in which a graph was shown with the variation of temperature of two painted cans as they received sunlight.   One of the questions was "Which of these two bodies will cool down faster?". I thought it was the white can and for my surprise i found out I was wrong.   Can someone explain me why?


In my clan we have 4 players who are almost fully maxed th10s. My question is after we are all 4 completelly maxed, who will be ranked 1st in clan wars? How is that determined?


Restricting php pdo execute() to running just the first sql statement

Is there a way to restrict php pdo execute() to run just the first sql statement?  For instance running   SELECT * FROM customer;DROP TABLE invoice   will return all customers but it will also delete the invoice table.  I have a situation where I need a whole SQL statement from a user but it must be a SELECT and nothing additional.  My example is just one of many that could be maliciously entered. It might include additional DROP, UPDATE, DELETE statements etc.  A prepared statement will simply replace ?s with values. It will not stop dangerous SQL statemets being passed to it.  This would not be a problem if there was a way to restrict php pdo execute() to run just the first sql statement?


How to repeat currently typed in parameter on bash console?

I was just typing something along the lines of:  mv foo/bar/poit/zoid/narf.txt   and suddenly realized, damn, I have to type large parts of that parameter again  mv foo/bar/poit/zoid/narf.txt foo/bar/poit/zoid/troz.txt   Even with tabcompletion, quite a pain. I know I can copy paste the parameter by mouse-selecting the text and middleclick but that is not good enough. I want to remain on the keyboard.  So is there a way to copy paste the current parameter of the line using the keyboard?


In Windows I used an RSS feed to download a tv series, but Deluge doesnt have that option. Is there a plugin to add that fuction? How do I install and configure it?   If there isn't a plugin which client do you recomend?


I am sure that this wouldn't have much meaning, but still want to get acknowledged whether usage of double dots is formal.  I have observed people using double dots in business Emails. Usually while adding additional recipients to the thread. example:  Adding XYZ..  I would like to know the specific meaning of it.  In the world of music, placing double dots .. infront of   note is a shortcut, it signifies addition of its next level note.  EDIT: Does it specify an infinite Pause? Infinite .. I mean by unsure (not never ending).  In general case, if I use this .. in my statement what would it mean?


Usage and omission of "any" with a plural noun in a negative sentence

Is it grammatically necessary to use any in the following sentence? Can I omit any in exams and formal writings in similar sentences and contexts?     Yesterday was mothers' day but I did not post (any) photos with my mother on social media. I think importance of my mother to my life cannot be described by just clicking pictures or posting them on social sites on mother's day.


How safe are withdrawals made using checking account number and routing number? [USA]

I am new to the US banking system and it makes me wonder how easily third parties like xoom.com can withdraw money from your checking account with only the account number and routing number. I understand that somewhere in xoom.com toc and signup process I give permission for xoom.com to debit my account, but from the bank's end they do not do any validation. (In India, for auto debits most third parties would need you to submit a cancelled check to make sure the applicant is the account holder)   Can any other third party get hold of my account number and routing number alone and do transactions with that? If so, how easy is it to get it invalidated from the bank's side and get my money credited back to my account?


Great source to learn Logo and Web Design software skills

What is a good (preferably free) source(s) for learning photoshop? I would prefer a source you actually used to learn Photoshop basics from ground zero.  I want to use Photoshop mainly for web design, logo design, and other software design purposes.


I am using BusyBox on a small embedded ARM system.  I'm trying to read the "top" output, in particular for the Python process listed.  How much real memory is this process using?  Also what does VSZ stand for?  The system only has 64MB of RAM.   Mem: 41444K used, 20572K free, 0K shrd, 0K buff, 18728K cached CPU:   3% usr   3% sys   0% nic  92% idle   0% io   0% irq   0% sirq Load average: 0.00 0.04 0.05 1/112 31667   PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND   777   775 python   S     146m 241%   3% /usr/bin/python -u -- dpdsrv.py


How to break up a list into multiple chunks in one line?

Suppose I have the following list:  l = [1, 2, 3, 4, 5, 6, 7, 8, 9]   Is there a one-liner that could be used to break this up into a list of n_chunks. For example:  chunk(l, 3) [[1,2,3],[4,5,6],[7,8,9]]   So far I have:  >>> [l[len(l)*i//3:] for i in range(3)] [[1, 2, 3, 4, 5, 6, 7, 8, 9], [4, 5, 6, 7, 8, 9], [7, 8, 9]]   Which works for the 'left side' of the range but not the right side.


What is the name of the planet that Luke Skywalker is on at the end of Star Wars 7?

Star Wars 7 introduced Luke Skywalker in the end of the movie, but where is this planet that he is at? Can someone tell me the name?


Why is 11 (eleven) not pronounced onety-one or elebenty-leben, and why is it considered the ghetto way of saying eleven?


I am confused by the use of these three terms in conjugation with supplies.  I read somewhere that the prime objective of the circuit is to provide power rather than voltage? What exactly does that mean. Isn't \$Power = IV\$? So saying that you're supplying power rather than voltage is another way of saying supplying a large current. If so why not just say so. Why beat around the bush when saying a current supply is far more intuitive than a power supply?  So what does this cryptic sentence mean: "Supplying power to the load." Do they mean a large current or a large voltage?


Unetbootin doesn't show windows 7 iso installer on the boot menu

I am on Ubuntu now,i downloaded unetbootin from their official website,downloaded the windows 7 ultimate iso image,formated the Pendrive with gParted to FAT32, burned it on my Pendrive(32GB),and i boot my pc from the pendrive the menu below shows up but there is only one option which is "Default"  Thank you in advance if you respond to my problem.


Can't stop eggs from sticking to stainless steel pan

I've made omelettes in this pan before without any problems, but fried eggs are impossible to make without sticking.I heat the pan, throw few drops of water and check if they move around (some would say like mercury), lower the heat, pour oil and then put eggs in.I've tried to monitor the temperature carefully to make sure that the pan isn't too hot, still no success.Is my pan the problem?


How to make Google ignore an element on a page (without using HTML comments)?

I would like to make Google ignore a div containing functional buttons and action titles, which I've seem come up in search engine results.  Now I know about <!-- googleoff: index --> tags, however, I can't use them because all pages are compressed (comments, whitespaces removed) before they're output.  Is there any alternative? Perhaps there is a Microdata solution to show that the div does not contain information about an entity (product in this case, button are "Add to Cart", etc.).


Do the photocouplers on this module have any possible purpose?

I purchased a number of these relay module boards off AliExpress. They consist of the following   16x relays, 12 volt coils A LM2596 setup as a buck converter 2x ULN2803A darlington arrays 16x 817C photocouplers Header for inputs (current sinks) Terminal for DC voltage input   There are some LEDs on the board as well but they don't really have any function other than convenience of display.  When I purchased these, I had some ideas about how they work. However, what I discovered is there is a terminal (blue) labeled "VCC" and "GND". If you feed this with 12 volts, the 12 volts is used by the LM2596 to make 5 volts. The 5 volts is actually measured at 4.83 VDC, but that doesn't matter here. It drives the   the "isolated" side of each 817C via some resistor. The 12 volt input is also carried to relay coil. So when one of the transistors in a ULN2803A pull a relay coil to ground, it closes the relay. Each 817C is normally high and if you sink current from the output pins it closes a relay.  The nominal "+5VDC" rail that is created by the buck converter is obviously not isolated. Measuring with a continuity tester confirms the ground of the entire board is common.   Do the photocouplers on this board actually accomplish anything when wired in this manner? I know they function as a logic inverter, allowing any current sink to actuate a relay. But that isn't really significant, for example a 2N3904 could do that.


I am trying to experiment with objects -- I want an object that can count the number of instances there are.  My code:  class Location:     count = 0      def __init__(self, column, row):         self.column = column         self.row = row         self.num = Location.count         Location.count += 1      def position(self):         print("Col: %i, Row: %i, Instance: %i" % (self.column, self.row, self.num))   # set up grid grid = [[0]*5]*5  # Create objects in all positions for i in range(0, len(grid)):     for j in range(0, len(grid[i])):         grid[i][j] = Location(i, j)         grid[i][j].position()  #prints correctly    for i in range(0, len(grid)):     for j in range(0, len(grid[i])):         grid[i][j].position()  #prints incorrectly -- WHY?!?!   Why does it, when printing the contents of the grid the second time, show completely the wrong data?  I am essentially creating a grid of instances of an object class.  I ant to be able to keep track of the number of instances in this object.  This code is not for anything in particular -- just for my own enjoyment and learning!  edit**  OUTPUT OF CODE:  Col: 0, Row: 0, Instance: 0 Col: 0, Row: 1, Instance: 1 Col: 0, Row: 2, Instance: 2 Col: 0, Row: 3, Instance: 3 Col: 0, Row: 4, Instance: 4 Col: 1, Row: 0, Instance: 5 Col: 1, Row: 1, Instance: 6 Col: 1, Row: 2, Instance: 7 Col: 1, Row: 3, Instance: 8 Col: 1, Row: 4, Instance: 9 Col: 2, Row: 0, Instance: 10 Col: 2, Row: 1, Instance: 11 Col: 2, Row: 2, Instance: 12 Col: 2, Row: 3, Instance: 13 Col: 2, Row: 4, Instance: 14 Col: 3, Row: 0, Instance: 15 Col: 3, Row: 1, Instance: 16 Col: 3, Row: 2, Instance: 17 Col: 3, Row: 3, Instance: 18 Col: 3, Row: 4, Instance: 19 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24 Col: 4, Row: 0, Instance: 20 Col: 4, Row: 1, Instance: 21 Col: 4, Row: 2, Instance: 22 Col: 4, Row: 3, Instance: 23 Col: 4, Row: 4, Instance: 24   Thanks


Malware that causes the taskbar to disappear and a fake Firefox application to install

Just need to ask the community if they've come across this malware that operates in 2 parts(that I've seen):  Installs a program '.2.1.2.3' that makes the taskbar disappear except from the start button and closes the open window randomly:  This program can be seen in Control Panel with no description at all of who the author is, etc. and based off of the Temp folder. A new folder in Program Files: C:\Program Files(X86)\Common Files\Novaweb, which will have a directory structure very like Firefox and a program called update.exe that runs every time Windows starts, opens a window with a funny name that closes when you try to maximize it and tries to access a malicious website:    Funny thing is that there is no firefox.exe in this "Firefox" folder. I just ran all the malware scanners I know of (Quick Heal, Malwarebytes, RKill), removed the suspicious program from Control Panel and deleted the Novaweb folder. Anyone else come across this malware? What did you do? Anything I've missed?


Suppose that $f$ is entire and that for each $z$, either $|f(z)| \le 1$ or $|f'(z)| \le 1$. How can I prove that $f$ is a linear polynomial?  What I have tried: I tried to use line integral to show $$|f(z)| \le A + |z|$$where $A = max(1, |f(0)|)$  However, I was not satisfied with my approach. I am looking forward to hearing how you tackle it.


How does an ETF that tracks a foreign stock index work? - Potential arbitrage opportunities because of time-zone?

Suppose I live in the US and want to buy an ETF share traded in the US. I would already know how Chinese stock market performed by the time the US market is open because of the 12-hour difference.  Let's say it's 1/21/2020 Tuesday in the morning Eastern Time, which is 1/21/2020 Tuesday evening time in China. If Chinese market gained (and suppose the top 50 stocks by market-cap gained) on 1/21/2020, would I gain if I buy an ETF (traded in the US) that tracks an index composed of top 50 Chinese stocks?   If that's case, is this a 100% win situation? If not, why?  Also, because Chinese market is already closed, why does the ETF price sticll change, if the underline index is not supposed to be changing?  Thanks!!


How do I get more installs for my android app?

Me and my team developed a slot machine game, and posted it on Google Play. Right now, it sits in position 460+ of the casino category. The number of installs is less than 1,000 and daily users range between 90 and 140.   I want to increase the number of installs to promote my game in the store, but I need also these installs to be converted to daily users. I tried some big networks that provide a huge amount of installs, but they only convert to uninstalls.  Can anyone suggest a trusted source with good prices and good quality of installs?