How to make read-only file system writable?

At some point, the filesystem on my digital audio player has become read-only. I cannot copy files into it or remove files on it.  Are there some possible reasons for the player's file system to change permissions in this way?  I tried using chmod:  $ sudo chmod a+rw SGTL\ MSCN/  chmod: changing permissions of `SGTL MSCN/': Read-only file system   SGTL MSCN is the mount point of the digital audio player.  What else can I try to make it writeable?


my headphones are stereo but I would like the sound from the left and right to be combined then sent to both headphones.  The reason is I'm watching a video where the people speaking are in the right ear as well as the music but they never speak in the left ear (it is not because they on the right side of the screen) If I take the right headphone off then I only hear the music in my left and there is no speaking.


Newton's first law of motion a corollary of second law?

His first law of motion states that every object will remain at rest or in uniform motion in a straight line unless compelled to change its state by the action of an external force.  That means, delta(a) = 0 if external F = 0. ..... (i)  His second law of motion can be formally stated as follows: The acceleration of an object as produced by a net force is directly proportional to the magnitude of the net force, in the same direction as the net force, and inversely proportional to the mass of the object.  That means, delta(a) = F/m. ...... (ii)  If we put F = 0 in eq. (ii), then we get delta(a) = 0. But wait! Isn't this exactly what first law says? So is first of law a corollary of the second law? And if so, why the obviously-not-stupid Newton proposed it as another law rather than proposing a corollary? Are we missing something?


What is the difference between Speed, Velocity and Acceleration? Could any one describe it pictorially?. I am more over confused even after investigating many times. I am unable to relate myself practically.


Why does bittorrent not require port forwarding?

I know that usually when you set up a connection between a data source and a data receiver that you need to port forward to gain access to the data source computer  so I was wondering why you don't need to port forward in bit torrent because all of the computers are sources and how they avoid the firewall of the modem?


Omitting the indefinite article before occupations

From what I understand, one can omit the indefinite article when referring to unique titles or roles/professions, e.g. “He's captain of the local football team”.  With less unique roles, I have conflicting intuitions about it, possibly stemming from other languages, e.g.  “He is singer for the New York opera.” “She is cook in a very famous restaurant.”  I know that “is a” would definitely be right here, but can the article also be omitted?


Getting null pointer exception. Not able to print the Array list data in Testing method

public class Test3 {  public ArrayList<String> list;   //storing all data in this lsit  //test() is main test method where program gets triggered  @Test public void test(){     list=new ArrayList<String>();      list.add("1");     list.add("2");     list.add("3");     Testing t=new Testing();      //creating object to call testmtd     t.testmtd();     System.out.println(list);     } }  public class Testing { public void testmtd()   {        Test3 t=new Test3();       //created object to access list of Test3 class      System.out.println("run1");     for(int i=0;i<=t.list.size();i++)         {         String data=t.list.get(i);           //here i am not able to access the data present in the list of Test3 class         System.out.println(data);         }     } }


for my ps4, I have the forsaken DLC, and I wanted to cross save to my pc (which has Forsaken and Shadowkeep). The question is, will I have access to the Shadowkeep missions and content if my main account is my ps4 account which doesn't have Shadowkeep?


How to prevent a file from accessing the internet?

There are some .exe and .dll files belonging to some programs on my laptop which communicate with the internet without my permission (for self-update generally). I want to prevent those files one by one from accessing the internet. I don't want to install any external firewalls. I'm using Windows 7 Home Pro and if this can be done by Windows Firewall, it's OK. I took a look at Windows Firewall but couldn't find a setting to disable file access.


What's the correct way of cutting holes in Blender?

I have a question which I keep researching for a past week or two. What's the correct or "best" so to speak way to cut holes non-destructively and without messing up the topology and without a need to then clean a mesh?


Show that $\lim_{n\to \infty} \sum_{k=1}^n \frac n{n^2+k^2}=\frac \pi 4$

My Work: $$\lim_{n\to \infty} \sum_{k=1}^n \frac n{n^2+k^2}$$ $$\lim_{n\to \infty} n\sum_{k=1}^n \frac 1{n^2+k^2}$$ $$\lim_{n\to \infty} n(\frac1{n^2+1^2}+\frac1{n^2+2^2}+\frac1{n^2+3^2}+...+\frac1{n^2+(n-1)^2}+\frac1{2n^2})$$  I'm not really sure where to proceed from here, or if this even is the correct direction that I should take this problem. My math Analysis class has covered up to Riemannian integrals, but I'm not sure that they will be entirely helpful in this instance.


What can cause an "Err 99" on my Canon DSLR?

Err 99      Shooting is not possible.   Turn the power switch to <OFF> and <ON> again or re-install the battery.   Every now and then when shooting with this lens, I'll get this error and have to turn the camera off and on to resolve. Of course I've missed the shot of the day by this time!  I'm pretty sure it's the lens, because I've shot with plenty other lenses on that body, and never get the error..  Anybody found a better solution, short of sending the lens in?


Give a precise meaning to evaluate the following:   $$\large{\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\dotsb}}}}}$$   Since I think it has a recursive structure (does it?), I reduce the equation to   $$ p=\sqrt{1+p} $$ $$ p^2=1+p $$ $$ p^2-p-1=0 $$ $$ p=\frac{1\pm\sqrt{5}}{2} $$  Did I do this right?


Question mark before or after parentheses for incidental text?

I have this sentence:     Can you share those documents with me?   And I want to add an incidental text like "(no problem if they are in progress)".  Shall I add that text before or after the quastion mark?     Can you share those documents with me (no problem if they are in progress)?   or     Can you share those documents with me? (no problem if they are in progress)   or      Can you share those documents with me? No problem if they are in progress.   Edit: This is not the same topic as in  because in that case, the question was only related to the text inside parantheses.


How do we get Community Promotion Ads on beta sites?

All the launched sites get Community Promotion Ads meta posts posted every year by a SE mod.  Previously, I thought that beta sites simply weren't allowed them. However,  is still in beta, and they had community promotions meta posts in  and  (I guess they haven't made one for 2015 yet).  So what happens? Do you just have to ask for one? Can the moderators of that site just create one as they like? Can anyone on that site just create one as they like?


I can't download large apps like CSR racing, Asphalt 8, and Trial Xtreme due to error 905. I tried to uninstall  play store updates but as soon it reinstalls error 905 occurs.


Running my app I get this exception:  java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference         at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)         at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)         at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:145)         at android.app.ActivityThread.main(ActivityThread.java:5951)         at java.lang.reflect.Method.invoke(Native Method)         at java.lang.reflect.Method.invoke(Method.java:372)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)   The problem is that this is not called directly from my app code. One or two seconds after my activity started I get the exception.   What could be causing it?   does not solve my question since I do not use the InputConnection anywhere in my code.


In the standard styles, bibtex automatically lowercases the titles of bibliography entries:  \documentclass{article} \begin{document} \nocite{inproceedings-minimal} \bibliographystyle{plain} \bibliography{xampl} \end{document}     When using biblatex, however, this somewhat dubious behaviour is not retained:  \documentclass{article} \usepackage{biblatex} \bibliography{xampl} \begin{document} \nocite{inproceedings-minimal} \printbibliography \end{document}     (I'm still using biblatex v1.7, which probably makes a difference, but I can't see anything in the latest release that indicates this has changed.)  Is there any way to have biblatex behave like the standard bibtex styles?  While I understand the philosophy of preserving the case of the entry (just do it right the first time!), in my case I've been building a bibliography for some ten years now and just this once would like to indeed lowercase my entries. I'm normalising my bibliography by hand as we speak, but it's probably a good idea to archive this here in case other people have the same issue.


I've just started to play with pgfplot. I'm trying to prepare a plot like to following   \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[minor tick num=1,  axis x line=middle, axis y line=middle, xlabel=$k$, ylabel=$\omega$, ymin=0,xmin=-2,ymax=60] \addplot[blue,domain=0:5, line width=1.5pt] {x^2+25}; \addplot[orange,domain=0:5,line width=1pt]{3*x+22.75}; \addplot[cyan,domain=0:1.5, line width=1pt,dashed]{18.166*x}; \node[coordinate,pin=right:{$v_{\phi}=\frac{\omega}{k}$}]     at (axis cs:1,17) {}; \node[coordinate,pin=right:{$v_{g}=\frac{d\omega}{dk}$}]     at (axis cs:2.5,30) {}; \node[coordinate,pin=left:{dispersion relation}]     at (axis cs:4.5,47) {}; \end{axis} \end{tikzpicture} \caption{Wave dispersion relation with phase and group velocity} \label{fig:2} \end{figure}   What I would like to do is dropping the x-y tick labels so that we just maintaing the x-y title. How can I obtain it?


Command to remove computer from non-existant domain

I lost my domain controller machine, and then add new domain controller but with a new  domain. How do I remove network machines from old domain using command line and add to new domain? Machines using Windows Server 2008 Core (command line only)  net computer \\name del   works only on domain controller.  sconfig   When I try to exit from old domain, console requests username and password for exit. I type it, and then get error "Could not connect to domain" (old domain controller not exists)  What to do?


How can I access raw field values in a view template?

I am writing a template for a views field in Drupal 8. How can I access the raw values of a multi-value field in views? I tried this but it doesn't work.  {% for i in 0.. row.field_color['#items']|length - 1 %} {{ row.field_color[i] }} {% endfor %}


Learning roadmap for additive combinatorics

I have read Calculus by Michael Spivak. Now I want to learn additive combinatorics though I have no experience with combinatorics or probability theory. To my understanding, there is a book on the subject by Terence Tao and Vu. Do you think I'll be able to read it thoroughly? Do you have any other suggestions?


I am newbie for about system calls. In sample code always used int x=read(...) But man page shows different read functions. What is the difference between them? And how to use read(1) instead of read(2)?


Questions about “minecraft” game optimisation

I'm currently trying to do a basic "minecraft style" game. I know how difficult it is to create a game like this, that's why I juste want to do the base of a game like this. I did a class which creates one block face, another one which handles the creation of the whole block (All the faces), and a Chunk class which stores and renders all blocks.  My chunks are 16x1x16 sized (Just 1 layer of blocks). I did a first optimisation step : I removed all faces that aren't visibles (If two blocks are sided, I don't add the two sided faces). And another optimisation with the frustrum.  One chunk rendered Removing invisble faces     With one chunk rendered, framerates are good, but above 4-5 chunks rendered, framerates are becoming low. I don't know how to optimise more. I heard about VertexBuffers and IndexBuffers, but I don't know how to add them, because I have a lots of Blocks, in a lots of chunks. And maybe, in the future, how manage that if I want to destroy/place blocks ?  So my question is : How I can optimise the game ?  Thank you !  (Excuse my english, i'm a French guy eheh)


What is the relation between temperature and electromagnetic radiation emitted by a body?

I have read in thermodynamics that a body with high temperature radiates electromagnetic radiation. Does the frequency of waves increases with temperature? What is the mechanism? How does temperature does that?


how to concatenate two dictionaries to create a new one in Python?

Say I have three dicts   d1={1:2,3:4} d2={5:6,7:9} d3={10:8,13:22}   How do I create a new d4 that combines these three dictionaries? i.e.:  d4={1:2,3:4,5:6,7:9,10:8,13:22}


How does Stack Overflow work so well with search engines? It's really amazing; if I post a question, it'll show up in Google's search results within 15-30 minutes!  What are the tricks? sitemap.xml? Or, any other good methods?  Help me, and others too, if anyone knows a good technique/method.


While upgrading packages, I'm getting err in samba-libs on my ubuntu 16.04

I'm trying to upgrading my packages in ubuntu 16.04. But its showing error in samba libs, saying hash mismatch. Even I tried with --try-fix-missing but that didn't help.     Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic   linux-image-4.4.0-70-generic linux-image-extra-4.4.0-70-generic   linux-signed-image-4.4.0-70-generic Use 'sudo apt autoremove' to remove them. The following packages have been kept back:   linux-generic linux-headers-generic linux-image-generic linux-signed-generic   linux-signed-image-generic The following packages will be upgraded:   libsmbclient libwbclient0 python-samba samba samba-common samba-common-bin   samba-dsdb-modules samba-libs samba-vfs-modules smbclient 10 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. Need to get 5,163 kB/8,593 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://bd.archive.ubuntu.com/ubuntu xenial-updates/main amd64 samba-libs amd64 2:4.3.11+dfsg-0ubuntu0.16.04.7 [5,163 kB] Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 samba-libs amd64 2:4.3.11+dfsg-0ubuntu0.16.04.7                                      Hash Sum mismatch Get:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 samba-libs amd64 2:4.3.11+dfsg-0ubuntu0.16.04.7 [5,163 kB]                         Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 samba-libs amd64 2:4.3.11+dfsg-0ubuntu0.16.04.7                                      Hash Sum mismatch Fetched 10.3 MB in 49s (208 kB/s)                                                                                E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-libs_4.3.11+dfsg-0ubuntu0.16.04.7_amd64.deb  Hash Sum mismatch  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


I want to know if I need airport transit visa

I have a Ugandan passport and i will be traveling from Dubai to Mexico via armsterdam very soon. So do I need a transit visa


Getting ERROR 000840 from arcpy.SelectLayerByAttribute_management?

I am trying to select layer by attribute and for that, I am using arcpy.SelectLayerByAttribute_management function . My command is as follows:  arcpy.SelectLayerByAttribute_management(union, 'NEW_SELECTION', '"gridcode" =1 AND "area" >=25000000*0.4')    Here, union is the shapefile, from which I need to select layers by attribute.  My SQL query is "gridcode" =1 AND "area" >=25000000*0.4   I am getting the following error:     ExecuteError: Failed to execute. Parameters are not valid. The value   cannot be a feature class ERROR 000840: The value is not a Raster   Layer. ERROR 000840: The value is not a Mosaic Layer. Failed to   execute (SelectLayerByAttribute).`


I am trying to make a cake stand. Here is what it looks like:  And here is it in wireframe:  The thing is, when I use a reflective material, I can see these lines running along the face of the cylinder and I can't seem to get rid of them (I've tried adding additional edge loops to no avail):   To be specific, I'm talking about the lines that kind of look like the old Japanese flag:  What are these and how do I get rid of them?


RPM command stuck/FREEZE when installing RPM file

I want to install the following rpm from some reason RPM is stuck or freeze and not install the RPM package also I can't stop it by control C,   root]# rpm -Uvh --repackage /var/tmp/bash-2.05b-41.8.i386.rpm   OR   root]# rpm -Uvh  /var/tmp/bash-2.05b-41.8.i386.rpm


Are mountain dwarves proficient with shields?

In 5e, the Moderately Armored feat grants proficiency with both medium armor and shields. It is, that I can see, the only feat that grants proficiency with shields. Every single class that has proficiency with medium armor has proficiency with shields, and vice versa.  Mountain dwarves, on the other hand, give proficiency with medium armor, but make no mention of shields. As far as I can find, this is utterly unique within 5e.  So, are mountain dwarves proficient in shields? If not, am I correct in my understanding that every single way to gain that proficiency (class or feat) also grants medium armor proficiency, making that racial feature redundant?


slope and intercept of linear regression

I'm taking an intro to statistics class and currently we are covering linear regression. The course is good but unfortunately it doesn't always gives all the information that is needed. For example it gives formulas for the slope and y-intercept as  $b=(r)\frac{s_Y}{s_X}=\frac{n \sum{xy} - \sum{x} \sum{y}}{n \sum{x^2} - (\sum{x})^2}$ , where  $r$ is the correlation coefficient  $s_Y$ is the standard deviation of the $Y$ scores  $s_X$ is the standard deviation of the $X$ scores   and  $a = \bar{y} - b \bar{x} = \frac{\sum{y} - b \sum{x}}{n}$  However it doesn't explain why the formulas are what they are. In other words it doesn't explain how these formulas where derived. Can someone show the derivation, especially the one for the slope, $b$, i.e. why $b=(r) \frac{s_Y}{s_X}$?  Any help is appreciated.


$f_{n}(x)=\{\frac{nx}{1+n^2x^2}\}$ , $0\le x\le 1$  So to find the limit function (If it called this way) we take $x_{0}$ and the limit, so we get $\lim_{n\to \infty}f_n(x)=\lim_{n\to\infty}\frac{nx_{0}}{1+n^2x_{0}^2}=\lim_{n\to \infty}\frac{\frac{nx_{0}}{n^2}}{\frac{1}{n^2}+\frac{n^2x_{0}^2}{n^2}}=\lim_{n\to \infty}\frac{\frac{x_0}{n}}{\frac{1}{n^2}+x_{0}^2}=0$  Nowe to find Uniform convergence we let there be  $\epsilon>0$ we need to find $N<n$ such that $|f_n(x)-f(x)|<\epsilon$  So we have $|\frac{nx}{1+n^2x^2}-0|=\frac{nx}{1+n^2x^2}<\frac{nx}{n^2x^2}=\frac{1}{nx}<\epsilon$  So we got $\epsilon$ that depends on $n$ and $x$ so therefore it is not uniform converges.  The book gives an example of the point $\frac{1}{n}$, what can we learn from this point, or what does this point proves?


Did Lily know that her death would protect Harry?

When Voldemort came to kill Harry, Lily put herself between Voldemort and Harry unarmed. Did she do it foolishly* out of love for her child or did she know about Sacrificial Protection that her death could ensure the survival of her child?  *It is foolish in otherwise circumstances because logically her own death couldn't change anything.


Highlighting the selected tab using jQueryUI Tabs

I have a header page with links to all the visualforce page as tabs.I need to highlight the tab on select of it.      <apex:page title="{!$Label.site.site_login}" showHeader="false" sidebar="false"       standardStylesheets="false"> <apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-1.4.2.min.js')}"  />   <apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-ui-1.8.6.custom.min.js')}"  /> <apex:stylesheet value="{!URLFOR($Resource.jQuery, '/css/ui-lightness/jquery-ui-1.8.6.custom.css')}"  />

                     <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">                                                                        </button>

                             <apex:outputLink value="{!$Page.Home}">Home</apex:outputLink>

                             <apex:outputLink value="{!$Page.Chatter}">Chatter</apex:outputLink>

                             <apex:outputLink value="{!$Page.page3}">Room</apex:outputLink>

                             <apex:outputLink value="{!$Page.page4}">Page4</apex:outputLink>

                     </apex:page>


I've tried checking indirect lighting and selecting approximate in the world settings, then put emit on high in the materials tab, but the glow itself is very very weak. Is there a way to adjust the glow distance? Thanks!    Update: I've actually been successful with this by adding a glare node and selecting fog glow, then adjust the threshold, and emitting it to max in the materials tab. The only problem I have with this is that my model's texture looks really bright. I have a Godzilla model, it comes with two textures. one for the whole entire body, then a separate glowing texture specifically for the spikes.   What i did was I selected the material, added the body texture, then added the spikes glow texture. I then added the glare node, but when I got to emit and set it to 2.00, the whole body texture glows. I just want that spike glow texture to glow.   Is there an emit option, just for a texture?


I just received a proofread version of an academic manuscript from my copy editor. She essentially changed all of the instances in which I had written "given that" to "given." I've tried to read up on the distinction, but I am getting contradictory information. From a reading-aloud perspective, it just does not sound right to me to take out the "that", but that may just be my bias.   For example:      "Given that the CEO had recently resigned, the company had trouble raising its next round of financing."   was changed to      "Given the CEO had recently resigned, the company had trouble raising its next round of financing."   Are "given" and "given that" actually interchangeable? According to the dictionary, they both mean "when you consider something"...


Story ID: A pre-teen girl who is a genius crosses the country in a van

This was a novel I read years ago.  I have no idea what the cover art was because the cover was missing.  The novel is about a girl who survives World War III.  I remember the war was (mostly) biological, and a bacterial strain became nasty when exposed to radiation.  One of the details I remember is that she is basically a mutant and immune, like a small portion of other people in the  world.  She has a genius intellect, is a black belt, and has a blue parrot.  She takes off to search for other survivors in a 4 wheel drive van.  The entire story is told as a series of journal entries in a very terse style.  It was a good book, but I can't seem to remember what it was called or who wrote it.


First player has Ace Seven.  Second player has Ace Seven.  Third Player has pocket Jacks.  Community cards are A J 5 5 5.  What is the winning hand in this situation?


I will be visiting New York for about 10 days. I have an iPhone 4S (unlocked).  What are my options to have a sim card, preferably with data?   I probably won't use voice that much, but want to be able to make a call if needed.


If $ x + \frac{1}{x}=3 $, what is $ x^{3} + \frac{1}{x^{3}} $ and the generalization $ x^{n} + \frac{1}{x^{n}} $?

*This problem is from a math olympiad.  It is known that  $$ x + \frac{1}{x} = 3$$ What is the value of  $$ x^{3} + \frac{1}{x^{3}} ?$$    I know that we can solve for $x$ from $ x + 1/x = 3$ first, by $$ x^{2}-3x+1 = 0$$  Which gives   $$ x = \frac{3 \pm \sqrt{5} }{2} $$  Then we can relatively tedious find the values of   $$ x^{3} + \frac{1}{x^{3}} $$     Are there better ways? Can we generalize a way for  $$ x^{n} +  \frac{1}{x^{n}} ? $$   Thanks.


Extracting Z data from point layer using ArcGIS Desktop?

I have created a point layer with ~150 points. I have a DEM beneath it, which is where I have taken the X and Y values from.   Does anybody know how I can retrieve the Z values, without using the info button?  I am using ArcGIS Desktop 10. I have licences for the spatial analyst etc tools.


I use software to produce kitchen visuals that use dwg files, does anyone know how I can get this file into Blender, is there a free converter or any other way so I can try to use Blender to render?  I look forward to any feedback


What is the difference between a bound state and a resonance state?

A bound state is: given a potential vanishing at infinity, negative-energy states must be bound.  How can I distinguish between a bound state and a resonance state in particles physics?


Why can we use Gauss' law to show that the field inside a spherical shell is zero?

I've read through the standard explanation of the electric field due to a spherical shell with uniform charge density. This explanation argues that because a Gaussian surface inside the shell encloses zero charge, by gauss' law, the electric field must be zero here. However, shouldn't the statement actually be that the flux is zero here? For example, a Gaussian sphere enclosing no charge above an infinite plane has zero net flux through it, and so it satisfies Gausss' theorem, but inside the sphere, the electric field is still the standard field due to an infinite sheet, no? So doesn't the argument re the spherical shell only rule out that the flux thru a gaussian surface inside the shell will be zero, and not that the field there is zero?


I'm considering upgrading from a 9-speed, 12-26 cassette on a 2006 Lemond Alpe D'Huez.  I have a triple front chairing with a Shimano 105 groupset, with one exception - an Ultegra rear derailleur.  Can I do this by changing both derailleurs, the chain, the cassette, and the hub on my existing rear wheel?  I have a lot of hills in my area, which is why I'm looking into possibly a 10 speed, 12-30.  Thanks for the help!


Should the weight of question upvotes be reduced?

After thinking about    which I declined for the reasons , and    I have a proposal.  How about if question upvotes were only worth +5 rep instead of +10? And this was applied retroactively? (answer upvotes would be unchanged from the current behavior, so this would be question specific.)  This seems to be a better solution to the particular  problem  without all the rather serious negative repercussions of increasing the punitive value and/or cost of downvotes across the board.


I have fish density data that I am trying to compare between several different collection techniques, the data has lots of zeros, and the histogram looks vaugley appropriate for a poisson distribution except that, as densities, it is not integer data. I am relatively new to GLMs and have spent the last several days looking online for how to tell which distribution to use but have failed utterly in finding any resources that help make this decision. A sample histogram of the data looks like the following:   I have no idea how to go about deciding on the appropriate family to use for the GLM. If anyone has any advice or could give me a resource I should check out, that would be fantastic.


Why when I select FFmpeg option for rendering a video the encoding tab does not showing up?

I'm trying to render an animation in blender 2.79 I have selected FFmpeg video in output and I need to select codecs etc but there is no encoding tab showing up under this but only freestyle. please help!!


What does the notation $8.9875517923(14)$ mean?

The number $8.9875517923(14)$ appears in Coulomb's constant.  I have read that it has something to do with the uncertainty of the accuracy of the number but answers have been unclear. Can somebody define the meaning of such notation?


Why some object names starts with single or multiple underscores in c++?

I've seen a lot of times in c++ libraries tones of objects whose names start with underscores.  I know some cases when this is useful for example:      class Person {     private:         unsigned int age;        //...     public:        Person(unsigned int _age): age(_age) {}     };   here it's useful to distinguish logically same objects _age, age.  But there are also cases when global functions names (not from a class) also have single or multiple underscores. So I would like to understand this in general and more ideologically.  So:  What are the benefits for this kind of naming ?  When it's need to use single and when multiple underscores at the start ?


May be I will do this. Or Maybe I will do this. Which is correct?

May be I will do this. Or Maybe I will do this. Which of the two is correct? And one of those is correct, then is there another context where the other form of Maybe/May be is used?


How can I download this flash game for offline play?

is one of the best flash games ever.    Is there some way to download it, so that I can play it offline?


The website used to say "Welcome to StackOverflow. Please set the name and email address.". I looked up and found the similar question below.    I closed that message. But, I didn't get the 'Autobiographer' badge.


Is the external micro SD card path the same for all devices?

I am using a Samsung Tab 2.  There is a path: /mnt/external_sdcard/myfile. Here, I can save, read, or write my file to the external micro SD card.  I'm just wondering if this path is the same for all devices, or if it may be different.


Looking for a counter example - Normal subgroups

I ask whether there is a counter example to the following statement:  Let G be a finite group. All the subgroups of G are normal if and only if G is cyclic.  Alternatively, if this is thought to be a true statement, a proof.


How to create an edge between 2 selected edges?

I'm a 3dsmax user, I'd like to ask how in Blender, we can "Connect Edges".  Please don't confuse it with loop subdivide ().  I don't mean an entire edge loop. I'd just like to connect select edges. I've attached a simple image explaining it.


I have installed Ubuntu 14 on my Dell laptop which runs Windows 8.1. but I'm not able to use ubuntu and no options to open it as I was expecting Dual boot installation.so when I try to re-installation it ask for un-installation of previous . So please help me in this.  Thank you Harsha HN.


Can you replace a RJ45 connector with smaller connector?

I'm designing a small board that needs an ethernet connection. However, the RJ45 jack takes considerable space. I would like to reduce the footprint of the connector to safe some space.   Would it be possible to replace it by a (non-standard) smaller connector, like a micro usb connector or a JST PH connector? Which connectors would be suitable and why (or why not)?


Can't login to Ubuntu 14.04 after upgrade

I have a problem that i never seen before. I upgraded my Ubuntu 12.04 64bit to 14.04 using the following command:  $ sudo update-manager -d   After that I can't login to my user account, when I log it just flashes and then  it goes back to the login screen, but the odd thing is that I can log in with the guest account.  I tried to create another account but couldn't log to that account either.  FYI I don't have any graphic cards like NVIDIA or AMD.


If I want to estimate a population median from a bunch of sample medians, should I use their mean or their median?

Suppose you just have some sample medians, and want to estimate the population median. Assume the samples are random, independent of each other, and of the same size.  Should you use the mean or the median of the sample medians? Does it give an unbiased estimator?  (Asking for a friend.)


I installed Ubuntu 16.04, encrypted home directory. Jotted down system info including password, etc., in a document which will presumably be in /home/mike/somewhere. Hadn't printed the file to hardcopy yet. Installed steam, which when executed hard-crashed the machine, no jumpout to F1, no ssh'ing in from local machine, nothing. Rebooted, and realized I cannot remember my robust password nor had I printed out my file.   How do I reset the password is the question?  Before you answer, here's what I've tried and does NOT work in Ubuntu 16.04 under these circumstances:   Booting in to recovery mode, dropping to command line gives "Give root password for maintenance" Booting and pausing at grub stage, editing the boot line by changing ro to rw and add init=/bin/bash, (also deleting the splash text, i can't remember the exact words), hitting F10 to boot with new options, results in blank screen, then the regular GNOME GUI log-in. Tried a few variations on this. Booting from live USB stick, dropping into terminal with F1, I can log in, and sudo. Hope is born! I mounted /dev/sdb2 (my Linux installation) to /mnt, sudo chroot /mnt. I change to /mnt. I successfully change mike's password. Reboot: rejects the new password.   I had made a second user on the machine to run a process, and that home directory is not encrypted. I did the live USB stick boot, dropped into terminal, changed password on the second user, and promoted him to a sudo-er as well. Rebooted normally, logged in as him, am able to change password for mike, sudo into mike: all variations on this theme result in asking for passphrase to unencrypt the home directory.  Is this hopeless or is there a back door I don't know about?


Unable to install Ubuntu 14.0 alongside windows 8.1 in lenovo g580

Every one i have Lenovo G580 laptop which came without any operating system then i installed windows 8.1 and now trying to install Ubuntu 14.04 along side but the option in the Ubuntu installation does not shows windows 8.1 installed instead it suggests to install erase everything and install ...  please give me suggestions how to install Ubuntu alongside windows 8.1 thank you.. waiting for the suggestion.


For any point outside of a circle, is there ever only one tangent to the circle that passes through the point?  Are there ever more than two such tangents? (I cannot find the exact answer i need through the other question answered. My question does not involve any actual numbers and equations. It's hard for me to find the answer within that question. ) Thank you!


Why do they teach hyperbolic functions in calculus

I am a student in calculus 2 and I had to learn hyperbolic functions. But why do I have to learn these? And what are the applications? I searched it up and got something vague like it helps describe negative Gaussian curvature, but what does that even mean?


Too large vertical space in the list of *my* sites

When edit list of my sites I see too large vertical space between already added sites:     App Version: 1.0.89 Device Manufacturer: LGE Device Model: LG-D802 OS Version: 5.0.2 (152331922a212)


Today I set up an old portable pc to be a dedicated machine  I have installed debian and at installation process I have chose Cinnamon for graphical interface  Now my system is configured and working fine  I want to have access to this machine only with ssh and I dont want to have access to Cinnamon or every type of interface to keep every performance in process and not for graphique  It's possible to do that ?


Proving equality for orthogonal matrices

Let $A$ be an orthogonal matrix, i.e. $A^T=A^{-1}$. Prove that $A(x\times{y})=\det(A)(Ax\times{Ay})$. I know that orthogonal matrices preserve distance, angles and orthogonality of vectors and I have tried using this idea in conjunction with the formula $|x\times{y}|=|x||y|sin\theta(x,y)$.  (Side-question: How do we know orthogonal matrices preserve distances, angles and orthogonalit of vectors?)


How to convert aspell dictionary to simple list of words?

I want to get list of all words from aspell dictionary. I downloaded aspell and aspell polish dictionary, then unziped it using:  preunzip pl.cwl   I got pl.wl:  ... hippie hippies hippiesowski/bXxYc hippika/MNn hippis/NOqsT hippisiara/MnN hippiska/mMN hippisowski/bXxYc ...   but they appear with sufix like /bXxYc or /MNn. These suffixes are defined in pl_affix.dat, which looks like  ... SFX n Y 5 SFX n   a         0         [^ij]a SFX n   ja        yj        [^aeijoóuy]ja SFX n   a         0         [aeijoóuy]ja SFX n   ia        ij        [^drt]ia SFX n   ia        yj        [drt]ia ...   It is connected to the declination and conjugation. How can I add to the first list all forms (with all corresponding suffixes as defined in .dat file ) ?  BTW: I need this list to spell-checker jazzy.


I have the following code:  String queryText = userInput.toLowerCase() + '%'; return [SELECT Id, Name FROM Account WHERE Name LIKE : queryText];   And the user entered the text "G" and get results such as "George", "Google", "Game", etc etc. That works fine.  My issue is, if the user input is "%" and lets say I have an account named "%xyz", I won't get it as a result.  How can I escape the user's input here?  Thanks!


How does one arrive at the following transfer function for a certain circuit?

I'm trying to understand the derivation of the transfer function for the following electrical system:     Where \$k\$ is some forward gain element and \$G_{s}\$ is the transfer function of some plant. According to an instruction video, the transfer function for this whole system is $$T(s) = \frac{Y}{R} = \frac{k G_{s} }{1+kG_{s}} .$$  I am wondering how this expression for \$T(s)\$ can be derived. It probably has something to do with the control mechanism, but I am not an electrical engineer so I'm not sure how to derive this expression. I do have a background in mathematics though, so maybe you can take that into account in your answer.


Check my answer: Shortest sequence from $1$ to $2^{2018}$, where each step either doubles or squares the previous value.

My  was about the meaning of the problem. But now, I present a solution. Can MSE verify my answer?     Given a number, you can perform two operations on it: double it or turn it into its square. Your initial number is one. How many operations at least do you need to turn it into $2^{2018}?$   Is my solution correct?     $$\begin{align}2^{2018}\longrightarrow 2^{1009}\longrightarrow 2^{1008}\longrightarrow 2^{504}\longrightarrow 2^{252}\longrightarrow 2^{126}\longrightarrow 2^{63}\longrightarrow 2^{62}\longrightarrow 2^{31}\longrightarrow 2^{30}\longrightarrow 2^{15}\longrightarrow 2^{14}\longrightarrow 2^{7}\longrightarrow 2^{6}\longrightarrow 2^{3}\longrightarrow 2^{2}\longrightarrow 2^{1}\longrightarrow 1\end{align}$$   I find answer is $17$. Is it correct?


I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package.  When I compile the following MWE with pdflatex everything looks okay, but for lualatex it doesn't:  \documentclass{article} \usepackage{bm} \begin{document} % Bold $\bm{E}$ \\ Normal $E$ % \end{document}   Output using pdflatex    using lualatex    Also trying to fall back to an earlier version of lualatex by using \RequirePackage{luatex85} does not work for me.  When having a look at the log file, there are the suspicious messages   LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 142. LaTeX Info: Redefining \bm on input line 208. [...] Missing character: There is no х (U+0445) in font cmmi10!   Can anyone tell me, what is going on here and what I need to do to solve this problem, since I am quite sure lualatex and bm worked before?


Not pronouncing the end of a possessive construction

Everyone knows the rule (not universally followed) that when a word ends with the letter S, we just add an apostrophe right after the word, instead of adding an apostrophe and an S after it. So, according to the above rule of thumb, it's  Mary's book Johns' wife Mike's pencil Copernicus' theory  The noun itself is pronounced fully with an S at the end, and then the S sound is pronounced immediately. But there's another category of words that end with an S - i.e. most plurals. In this case, at least in writing, we (again, not universally) follow the same rule:  April Fools' Day Mathematicians' paradise Parents' house  But I have noted that in the second case, the missing S after the apostrophe is not pronounced at all, even in formal speech. Is this normal?


What is this spinning pokeball icon in the corner?

I keep seeing this icon (looks like an icon that its loading something) and don't know what it means.    Using the app in Canada (where its not officially out yet) if that helps.


Why is "treated" in the past tense in "it's time we treated our teachers with the same level of respect..."?

Barack Obama told a Virginia school last year, "I think it's time we treated our teachers with the same level of respect right here in the United States of America."  I totally understand what he's saying, but I want to ask how that 'treated' is grammatically possible? Cause he's saying 'It's time we~', which means he's talking about what we should do in the future (?), but why did he say that past verb?


Back Button doesn't give me updated page

Here's the scenario:   I'll linger on a page for a short while, and upvotes, close-votes comments, edits, and other content will come in, and the page will update itself I click on some link to documentation or something I click the back button.   After I click the back button, all of the upvotes, comments, close votes, etc, that occurred while I was on the page, are not reflected in the page until I refresh.  This is sometimes disorienting.


How do I get single-Enter execution with Oh My Zsh when using event designators?

In plain zsh, when I press Enter, it runs the command I've typed. Hooray! This includes performing any necessary event designator substitutions all in one go, though it prints them out along the way: ~ % echo a b c # ^M a b c ~ % echo !$ # ^M echo c c ~ % echo !-2:2 # ^M echo b b ~ %   I've decorated the above block with # ^M to indicate where I pressed the Enter key. In contrast, with Oh My Zsh, when I hit Enter, it runs the command immediately but only if there are no event designator substitutions to be made. Other types of substitutions happen inline, but if I've used an event designator, instead of actually running the command, it gives me a new line with a new prompt and the substitution having been made. Example, same # ^M business as above: ~ % echo a b c # ^M a b c ~ % echo !$ # ^M ~ % echo c # ^M c ~ % echo !-2:2 # ^M ~ % echo b # ^M b ~ % echo $(echo a b) c # ^M a b c ~ %   Note that I have to hit Enter twice to make most of the commands run, though the final one with the $() substitution runs in a single go. How do I configure OMZ to use the normal zsh behavior here, or otherwise just configure zsh to go back to normal after OMZ has performed its dark magic? I can't seem to find any documentation on how to make zsh do this in the first place. (I know that I can use the Tab key to have the substitution performed immediately. That's fine, but I know I typed the thing correctly and I just want it to run without seeing it again first.)


How do you convert a Lead via the REST API?

Am a bit new to Salesforce, integrating with our existing systems which uses Python, so I'm making use of the . It's working great, except I cannot figure out how you convert a Lead to a Contact/Account via the API. Is there some endpoint to do this?


Preventing brute force attacks against ssh?

What tool or technique do you use to prevent brute force attacks against your ssh port. I noticed in my Security logs, that I have millions of attempts to login as various users through ssh.  This is on a FreeBSD box, but I imagine it would be applicable anywhere.


How to remove disabled (unused) snap packages with a single line of command?

When I run snap list --all command it shows all the installed versions of snap packages.  Name                  Version       Rev   Tracking  Developer     Notes atom                  1.26.1        150   stable    snapcrafters  classic brave                 v0.22.669dev  23    stable    brave         - core                  16-2.32.6     4571  stable    canonical     core core                  16-2.32.5     4486  stable    canonical     core,disabled firefox               59.0.2-1      71    stable    mozilla       disabled firefox               60.0-2        85    stable    mozilla       - gimp                  2.10.0        38    stable    snapcrafters  disabled gimp                  2.10.0        39    stable    snapcrafters  - gimp                  2.8.22        30    stable    snapcrafters  disabled gnome-3-26-1604       3.26.0        64    stable/…  canonical     - gnome-3-26-1604       3.26.0        62    stable/…  canonical     disabled gnome-characters      3.28.0        86    stable/…  canonical     - gnome-characters      3.26.2        69    stable/…  canonical     disabled gnome-logs            3.26.2        25    stable/…  canonical     disabled gnome-logs            3.28.0        31    stable/…  canonical     - gnome-system-monitor  3.26.0        36    stable/…  canonical     disabled gnome-system-monitor  3.26.0        39    stable/…  canonical     - libreoffice           6.0.3.2       59    stable    canonical     disabled libreoffice           6.0.4.2       63    stable    canonical     -   Now there are so many disabled packages there which are no longer used. So I want to remove those packages. Here the command is snap remove gnome-3-26-1604 --revision=62 . Now I have to do it for all the revisions and for all the packages one by one. Is there any command which will remove the disabled or unused snap packages with single line of command?  Thanks in advance...


All the major dictionaries say that exercise, when denotes a physical activity, is an uncountable noun.      Swimming is good exercise. (OALD)      Cycling to work is good exercise. (Cambridge Dictionary)    Longman Dictionary of Common errors explained and I quote, "Exercise (uncountable) = physical activity such as walking, swimming etc".  Exercise (countable) = A movement or set of movements.  Is it wrong to say "Swimming is a good exercise"?


If $H$ is a normal subgroup of group $G$ of odd order and $|H|=5$ . show that $H \subseteq Z(G)$  Attempt: If $|H|=5$ and if $H$ is normal, then $H$ must be a normal cyclic subgroup.  $\implies H = \{e,a,a^2,a^3,a^4\}$ for some $a \in G$  Since, $H$ is normal, $\implies gH = Hg \implies g a^i = a^j g$   And now, we need to prove that $i=j$.  $G$ is of odd order and $|H|=5 \implies$ index of $H$ in $G = [G:H] = |G|/|H|=2m-1$  is odd  $\implies g^{2m-1} \in H~~\forall~ g \in H$  How do I proceed further? Help will be appreciated.  Thank you  Attempt 2: By the $N/C$ Theorem : Since $H$ is a normal subgroup of $G \implies N(H) =G.$  Now, $H$ is cyclic of order $5 \implies H \subseteq C(H)$ and $|Aut(H)|=1,2$ or $4$  CASE $1$ : $|Aut(H)|=1 \implies |G|=|C(H)| \implies C(H)=G$  CASE $2$: $|Aut(H)|=2 \implies C(H)$ is normal in $G ~~ i.e.~~ C(H) \vartriangleleft G$.  CASE $3$: $|Aut(H)|=4 \implies G/C(H) \approx Z_2 \bigoplus Z_2 $ or $~ G/C(H) \approx Z_4$  We need to show that $\forall h \in H,~~ hg~=~gh ~~\forall g \in G$. I am kind of stuck again. Help will be appreciated. Thank you


I am trying to install mongodb on my laptop with Ubuntu 16.04 LTS. When I executed this command  echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list   this error showed up:   sudo: unable to resolve host architect   Note: I have tried with [ arch=i686,i686 ] which is my pc architecture. What's the problem?


Suppose I build a neural network for classification. The last layer is a dense layer with Softmax activation. I have five different classes to classify. Suppose for a single training example, the true label is [1 0 0 0 0] while the predictions be [0.1 0.5 0.1 0.1 0.2]. How would I calculate the cross entropy loss for this example?


Rename filename.JPG to filename .jpg recursively  I want all the files with .JPG extension to be changed as .jpg


How to get the execution directory path in java

I have made a pure java app which tells me about number of files in a given directory. Now I set current directory by using the following code:  `File f = new File(".");`   After that I made an installer with its jar file and installed it in my windows 8 and then I add it to the windows right click drop down menu (context menu). When I launch it from the context menu it always tells me about the number of files in the directory where it is actually installed in however I want to know the number of files of that directory from where I am executing it.  So plz help me. I am a novice in this field and I don't want you to confuse me in current directory and the current execution directory. So I write this so long and hoping for a clean answer in very simple words.  Thanks


Normalizer of upper triangular group in ${\rm GL}(n,F)$

The following question has already appeared on mathstack:     If $B$ is the subgroup of ${\rm GL}(n,F)$ consisting of upper triangular matrices then normalizer of $B$ in ${\rm GL}(n,F)$ is $B$ itself.   I know a proof of this using Bruhat decomposition of ${\rm GL}(n,F)$.   Question: Can we prove above theorem without using Bruhat decomposition?    Why came to this question: Consider the general linear Lie algebra $L=\mathfrak{gl}(n,F)$; in it, let $T=\mathfrak{t}(n,F)$ be the upper triangular sub-algebra. Then normalizer of $T$ in $L$ is $T$ itslef, and this can be proved just by considering a very simple decomposition of ${\mathfrak gl}(n,F)$: write any element as sum of upper triangular matrix and lower triangular matrix whose diagonal is $0$.   But then for problem above, is it necessary to use Bruhat decomposition?


Why does CTRL-ALT-F1 not send me to a terminal?

I'd like to go to a terminal so I can kill processes jamming my windowing session. (I would then return with  CTRL-ALT-F7.) But  CTRL-ALT-F1 just locks the screen; no terminal.   CTRL-ALT-Fn-F1  similarly does not work.  What am I doing wrong? How do I get the effect of  CTRL-ALT-F1?   (This is  a Dell Inspiron 15 7000 Gaming with  Ubuntu 18.04)


In C I have this enum:  enum {     STAR_NONE =     1 << 0, // 1     STAR_ONE =      1 << 1, // 2     STAR_TWO =      1 << 2, // 4     STAR_THREE =    1 << 3  // 8 };   Why is 1 << 3 equal to 8 and not 6?


Single click or double click on table row in a web app

we currently have a interaction with table rows that allow for double click to open. If you single-click, then it highlights the table row; however, there is no additional option to multi-select rows or anything like that. Is it intuitive enough for someone to know to double click the row in order to open it? There is a link on the first table-cell that opens the object. Thoughts?


How do I delete a directory with read-only files in C#?

I need to delete a directory that contains read-only files.  Which approach is better:   Using DirectoryInfo.Delete(), or, ManagementObject.InvokeMethod("Delete")?    With DirectoryInfo.Delete(), I have to manually turn off the read-only attribute for each file, but ManagementObject.InvokeMethod("Delete") doesn't appear to need to.  Is there any situation where one is more preferable to the other?  Sample code (test.txt is read only).  First way:  DirectoryInfo dir = new DirectoryInfo(@"C:\Users\David\Desktop\"); dir.CreateSubdirectory("Test");  DirectoryInfo test = new DirectoryInfo(@"C:\Users\David\Desktop\Test\"); File.Copy(@"C:\Users\David\Desktop\test.txt", @"C:\Users\David\Desktop\Test\test.txt"); File.SetAttributes(@"C:\Users\David\Desktop\Test\test.txt", FileAttributes.Archive); test.Delete(true);   Second way:  DirectoryInfo dir = new DirectoryInfo(@"C:\Users\David\Desktop\"); dir.CreateSubdirectory("Test");  DirectoryInfo test = new DirectoryInfo(@"C:\Users\David\Desktop\Test\"); File.Copy(@"C:\Users\David\Desktop\test.txt", @"C:\Users\David\Desktop\Test\test.txt");  string folder = @"C:\Users\David\Desktop\Test"; string dirObject = "Win32_Directory.Name='" + folder + "'"; using (ManagementObject managementObject = new ManagementObject(dirObject)) {     managementObject.Get();     ManagementBaseObject outParams = managementObject.InvokeMethod("Delete", null,     null);     // ReturnValue should be 0, else failure     if (Convert.ToInt32(outParams.Properties["ReturnValue"].Value) != 0)     {     } }


For some reason, when I render out the image, it is plain white. I've checked the sky settings, and I tried applying textures, but nothing seems to change.  How can I fix this?


When two dice are identical, why are ordered pairs considered for determining probability of getting sum x?

Problem statement : +++++++++++++++ Given two identical unbiased dice, determine the probability of getting sum as 7. Event  = Sum of dots on the top face of both dice is 7. $E = {(1,6),\ (2,5),\ (3,4),\ (4,3),\ (3,4),\ (5,2),\ (6,1)}$ $|Sample Space|$ = $36$. Hence, $P(E) = 1/6$ I have a doubt here. As the two dice are given identical, why do we have to consider ordered pairs? Shouldn't it be unordered consisting of only 3 possible pairs $\{(1,6),\ (2,5),\ (3,4)\} $? Hence, $|S| = 21$ and $P(E) = 3/21$.


Fibonacci number that ends with 2014 zeros?

This problem is giving me the hardest time:     Prove or disprove that there is a Fibonacci number that ends with 2014 zeros.   I tried mathematical induction (for stronger statement that claims that there is a Fibonacci number that ends in any number of zeroes), but no luck so far.    Related question:


Does there exists a matrix A ∈ Mn(F) such that $I, A, A2 , ..., An$ are linearly independent in the vector space Mn(F).

Does there exists a matrix A ∈ Mn(F) such that $I, A, A^2 , ..., A^n$ are linearly independent in the vector space Mn(F)? I'm not sure if this is even true or not. How would i go about solving this?


Please see my post at .  I would like some help here in basically getting an answer to the question or making an appropriate question that gets the answer I'm seeking.  I don't agree that the question as intended actually violates the tenets of SO, but I can almost see how it could be misunderstood as such.  The need, in a nutshell, is: a highly "usable" reference for good current HTML/CSS, and I think exemplars are one of the most usable ways of accomplishing this. Hopefully this can be made into a valid SO question, since SO is the site that provides reliable answers to technical questions about computer software development.  The trouble with HTML/CSS is that people have a million ways of hacking pages together despite the very well-defined standards for how you should use the technologies.  99.99% of HTML/CSS that has been written and is currently "in the wild" is an atrociously bad approximation of how those technologies are supposed to be used, as are 99% of tutorials and other ways of learning how to make HTML/CSS.  That, coupled with the fact that the technologies keep getting improved, and that we are now at a point in history when the latest HTML/CSS technologies haven't had that much time for people to start using them properly, makes the need for good examples of their proper use quite high. Part of it is a matter of making an individual page "do the right thing" by using the technologies as they were intended, part of it is making the whole heterogenous web "do the right thing" by using the tech as it was intended, and part of it is just saving people from very badly reinventing lots of wheels.  Of course I know that tutorials and examples of "best practices" or "correct usage" for particular features of these technologies are a dime a dozen.  Like the majority of people on SO, I have over ten years of experience making HTML/CSS. But, beside the fact that these tutorials typically contradict each other and are typically very badly written, they are by nature much more difficult to use than just studying a complete page of some particular type that is written using code and conventions (and comments?) rigorously verified by the expertise of crowds, such that if I want to know how to do Thing X, I can just look at the code and see how the best of the best do it and how the W3C probably intended it to be done.  Google and other large companies that make extensive use of HTML/CSS and other web technologies do post quite a lot of exemplary material, but none of it that I have seen is about complete pages.  I guess what I'm in search of is sort of a definitive encyclopedia of elegantly-engineered web page patterns that can be copied, pasted, and studied, and which is always up-to-date with the best technologies currently available. And crucially, which prioritizes example over instruction.  Having an up-to-date library of exemplars not only is the best teacher of good habits for an individual, socially it would seem to support more efficient progress in the technology and use of the web in general, especially if we respect as we should the intelligence of "copy-and-pasters" who, being the majority and the diversity, are (and historically have been) most responsible for making the free open web as abundant as it is. A good web depends on highly-granular modularity, which in turn depends on highly tested, verified, and decoupled chunks of code.


I want to convert the 5v 20mA power from a digital Arduino output to a strong enough power for a 12v 7a motor. I do not believe the converter (linked below) I have selected will do the full extent of what I need. Are there any converters out there to fulfill my needs? Or should I just use a 12v 7a power supply?


What are the prerequisites for studying mathematical logic?

I am looking to study mathematical logic, however, I find that introductory books are very daunting, which kind of disheartens me. You see, slowly but surely, I started to realize that the maths which I have learned did not just pop out of thin air, but is a collection of systems, which must of been developed via some other system, i.e, maths did not develop itself.  So I began to look into the origins of mathematics, and read that it was developed via a type of logic, which exists sort of by 'default', via a set of axioms, and then of course I looked up the definition of axioms.   So given that I'd be studying a type of logic whose origins are self evident axioms, naturally I believed there would be no prerequisites. However, in looking up mathematical logic, I have come across things such as Boolean algebra, sets, first order logic, some other type of logic, called 'traditional logic', as well as references to a sort of calculus, though not in a mathematical sense, I think.  So all in all, I am trying to develop a type of mental spider web, and I am trying to find out the strands which lye at the absolute bounds so that I may learn this mystique logic. Though I have no idea where to start.  Side note: This is the book I have started reading:   Credit goes to Wolfgang Rautenberg.


Can you withdraw or transfer money from a prepaid debit card?

My new employer is to give me my relocation money in form of a prepaid debit card that will be valid for one year. Can I withdraw all the money from the card at ATMs? Can I transfer the money from the card to my bank account? Since first I have to cover the relocation expenses from my own pocket, it would be disappointing to find out that I can't really cash the relocation money.


In the sentence "ls -Ral /bin > TalhaA452.txt"

what does -Ral do? I dont know what this word means in the sentence "ls -Ral  /bin > TalhaA452.txt"


Is it feasible to run a public-facing website from my home network?

I have to a get a very simple data entry website up and running. This website will be accessed by only a few people at a time (at most), but usually only one person, and not very frequently - maybe a coupel hours at a time, not every day.  I really don't want to pay for hosting if I don't have to. I have AT&T U-Verse Internet Service.   How feasible is it for me to setup a simple Windows/IIS website on my home network that can be accessed publicly? What's the minimum Internet speed I would need? How can make sure that the IP Address for the public website is static, so I can setup my DNS and forget about it?  Any additional thoughts or suggestions on this type of setup would be greatly appreciated. If this is not feasible, or easy, I will likely just go with a hosting service, and I already have one picked out, so I don't need any suggestions for this.


I'm following along on the blog post "Use Views to Create an Alphabetical List of Taxonomy Terms" by Kristin Brinner  and my sample does not produce the results as she shows.  Part 1 & 2: I successfully created a new view selecting taxonomy terms (create as Grid), then grouped terms alphabetically (add Taxonomy term: Name, label it "Grouping", exclude from display, rewrite to max length = 1), then under Grid-Settings use "Grouping"  Part 3, Create a Views page for each letter of the alphabet: I can't see these results, but I presume I did this correctly, using contextual filters,  (Glossary, Character limit 1)  Part 4, Create A-Z list (create a block that will display the list of first letters in a cute list above the grouping grids) isn't working. Here is what the tutorial says should be the result:    I followed along exactly with the tutorial except When the filter value IS available, the tutorial says Specify validation criteria, Basic Validation, Hide View and I do not have Hide View available.  I don't have an option to Apply, only Save. My content continues to look the same as it did previously in the exercise, i.e. like this (graphic omitted because I don't have enough clearance on this site)  However when I put "S" into the Preview with contextual filters, I get (graphic omitted because I don't have enough clearance on this site)  So, it looks like it's almost working. Ideas? TIA


TestClass Codecoverage coming in CodeCoverage Section

I have written a simple Trigger as part of my learning. As per my trigger based on all new Account created a Case is created using Trigger. I have written the Test Class as well and everything looks working fine.   I was going through the code coverage I got some doubts about the way I have written my Test class - I have written in 2 ways    TestClass_01 ---> Directly created Account in my Static TestMethod TestClass_02 --> Used generic Call to create the Account from my static TestMethod.    In the second way I can see My test class also listed in Code Average and its 0 always  TestClass_01   TestClass_02   Account Trigger   Can you tell me why the TestClass is coming in CodeCoverage section, I believe its wrong. Can you tell me whats wrong in my TestClass_02 and how can I call a general method to do some generic action like User-Creation, Account-Creation etc.?  Thanks in Advance


Integration by parts for general measure?

Let $\mu$ be a general measure, suppose $f,g$ has compact support on $\mathbb{R}$, when does the integration by parts formula hold $$\int f'g d\mu = - \int g'fd\mu?$$ I know in general this is false, we can take $\mu$ to be supported on a point, say $0$, then it is not necessarily true that  $$f'(0)g(0) = -g'(0)f(0).$$  If $\mu$ is absolute continuous w.r.t. Lebesgue measure, we have $\frac{d\mu}{dx} = h$ $$\int f'gd\mu = \int f'gh dx = -\int f(gh)'dx$$ where $(gh)'dx$ might be a measure. but we can not recover the form $\int g'fh dx$.  Thank you very much!


Dont understand why this doesnt work. (Java objects basics)

public class Sample {     public void M1(Bx b1, Bx b2) {         Bx temp = b1;         b1 = b2;         b2 = temp;    } }  public class Bx {     public int number;     public Bx(int newNumber) {         newNumber = number; }  if i ran something like : public static void main(String[] args) {      Sample s = new Sample();     Bx a = new Bx(10);     Bx b = new Bx(5);     s.M1(a,b);     System.out.println(a.number + " " + b.number); }  the values dont switch. The values for a.number and b.number is still their original values. Can anyone please tell me why. Thank you :)


Examples of disconnected metric spaces that cannot be isometrically embedded into a connected metric space

Please give me examples of disconnected metric spaces that cannot be isometrically embedded into connected metric spaces.   I have just started to study connected metric spaces and I haven't found out a metric space $X$ which isn't a subspace from another metric space such that $X$ isn't connected.  Every counterexample that I've looked, has been subspaces from a bigger metric space, e.g. $[0, 1]\cup[2, 3]$ which fails to be an interval in $(\mathbb{R}, |\cdot|$).   It might be topological space that isn't connected but for metric spaces? is there any apart from discrete metric spaces?  Thanks in advance


Scaling an image to the size of a character

I use this code to place an image next to a character while matching its size:  \documentclass{article}  \usepackage{mwe} \newlength{\Height} \newlength{\Depth} \DeclareRobustCommand{\ScaleImage}[1]{%     \def\temp{#1}\ifx\temp\empty         \PackageWarning{Eu}{Empty character given}%     \fi     \raisebox{-\depth}{%         \vphantom{#1}%         \settoheight{\Height}{#1}%         \settodepth{\Depth}{#1}%         \addtolength{\Height}{\Depth}%         \includegraphics[height=\Height]{example-image-a}% }}  \begin{document}     \dots \ScaleImage{!}!      \dots) \ScaleImage{)}      an \ScaleImage{a} anonymous \dots      \dots fooling around, \ScaleImage{,}      \ScaleImage{} \end{document}   This is how this looks:    It works pretty well, but note, for example, the example with the exclamation mark, which exceeds the size of the red box. Am I missing something, or is there some discrepancy between how a character is measured and how it is printed?


How do i install ubuntu 12.04 from a bootable usb pen drive?

I have made my pen drive bootable. I am 100% sure there's nothing wrong with the pen drive. I have a DELL inspiron n5010, I had tried installing ubuntu 12.04 four months back but I dont remember where i went wrong.  When i boot my laptop and enter the boot menu ( by pressing the f12 key ) I don't get an option to boot from usb. What do I do?


Accidentaly changed the permissions in /

Accidentally did :  chmod -R 777 /   Now, RHEL 6 is not booting up.    What do I do? I have a DVD and can go into rescue mode.   Can someone explain how do I reset all the permissions ?  Update Actually it boots, and then reaches to a screen where it displays Redhat logo along with some text localhostXXX. But after that nothing happens. It is not going to the  login screen.


How do you find the average of relative uncertainties?

If I had a set of measurements ,eg : $[10.0,11.0,11.5]$ and they each had a relative uncertainty of $10$% meaning my values are now $[10.0±1.0, 11.0±1.1, 11.5±1.15]$ how would I find the average of their uncertainties? Id think either one of two situations:   I simply add their uncertainties so that my new average value becomes $10.83±3.115$ I add their uncertainties and then divide by the total number of measurements like I would when finding the mean of the measurements themselves. So my new average value $10.83±1.08$   Which one of these situations would it be? Would it be something entirely different?  Cheers


How is if else working fine in this code snippet without any syntactical errors.  def even_or_odd(number):     return 'Odd' if number % 2 else 'Even'   In Python3 if and else introduce code blocks and should be terminated by ":" (a colon), but in the code snippet above inside return statements there is no ":" after if and else.Why is python not showing syntax error


So let's say I have a score of 4 out of 5. How can I use /testfor to detect I have 4 points. I know how to use /testfor @p[score_Points_min=5. If I take out the min I get this: /testfor @p[score_Points=4] You know, to detect that I have 4 points. This should work right? No, it still activates when I have 2 points. I want this to tell me I have 4 points. I've tried every single command that would possibly work. However it STILL consists of activating no matter what score I have. How can I get this to work? For any more info ask me!


Which has the heavier tail, lognormal or gamma?

(This is based on a question that just came to me via email; I've added some context from a previous brief conversation with the same person.)  Last year I was told that the gamma distribution is heavier tailed than the lognormal, and I've since been told that's not the case.   Which is heavier tailed? What are some resources I can use to explore the relationship?


Cardinality of the set of all (real) discontinuous functions

This is a question from the book Introduction to Set Theory (Hrbacek and Jech), chapter 5, question 2.6.     (Show that) The cardinality of the set of all discontinuous functions is $2^{2^{\aleph_0}}$. [Hint: Using exercise 2.5, show that $|\mathbb{R}^\mathbb{R}-C|=2^{2^{\aleph_0}}$ whenever $|C|\leq 2^{\aleph_0}$.]   Exercise 2.5, as referred to in the hint, provides the following result:     For $n>0$, $n \cdot 2^{2^{\aleph_0}} = \aleph_0 \cdot 2^{2^{\aleph_0}} = 2^{\aleph_0} \cdot 2^{2^{\aleph_0}} = 2^{2^{\aleph_0}} \cdot 2^{2^{\aleph_0}} = (2^{2^{\aleph_0}})^n = (2^{2^{\aleph_0}})^{\aleph_0} = (2^{2^{\aleph_0}})^{2^{\aleph_0}}=2^{2^{\aleph_0}}$.   The only way I could answer this question was by making use of two theorems stated later  in the same textbook. First, it is easy to prove that $|\mathbb{R}^\mathbb{R}-C|$ is an infinite set, since if it was finite we would have \begin{equation}2^{2^{\aleph_0}}=|\mathbb{R}^\mathbb{R}|=|\mathbb{R}^\mathbb{R}-C|+|C| \leq n+2^{\aleph_0}=2^{\aleph_0}< 2^{2^{\aleph_0}},\end{equation}which is a contradiction. Now I make use of a theorem requiring the axiom of choice: For every infinite set $S$ there exists a unique aleph $\aleph_\alpha$ such that $|S|=\aleph_\alpha$. So I let $|\mathbb{R}^\mathbb{R}-C|=\aleph_\alpha$ for some ordinal $\alpha$. Now assume $\aleph_\alpha < 2^{2^{\aleph_0}}$. Here I make use of another theorem, which i am not sure I am allowed to do: For every $\alpha$ and $\beta$ such that $\alpha \leq \beta$, we have $\aleph_\alpha+\aleph_\beta=\aleph_\beta$. So I basically then say either $|\mathbb{R}^\mathbb{R}-C|+|C|=\aleph_\alpha$ or $|\mathbb{R}^\mathbb{R}-C|+|C|=2^{\aleph_0}$, depending on whether $\aleph_\alpha \leq 2^{\aleph_0}$ or vice-versa. The assumption I am making is that $2^{\aleph_0}=\aleph_1$, which as I understand it is basically equivalent to the continuum hypothesis, as we are saying that the least uncountable number is $\aleph_1$ (but by the previous theorem requiring the axiom of choice this seems reasonable?). So anyway assuming I can do that, we again have a contradiction since then we are saying $|\mathbb{R}^\mathbb{R}|=2^{\aleph_0}<2^{2^{\aleph_0}}$ or $|\mathbb{R}^\mathbb{R}|=\aleph_\alpha < 2^{2^{\aleph_0}}$.  My main problem with my proof is that I am not making use of the result given in exercise 2.5 as suggested in the hint. Can anyone help with a proof making use of this result (stated in the second block quote above).


I know the $\sum_{n=1}^\infty \frac{1}{\text{Prime[$n$]}}$ does not converge, but what about the  following series? $$\sum_{n=1}^\infty\frac{1}{\text{Prime[Prime[$n$]]}}$$  (Where $\text{Prime[$n$]}$ is the $n$th prime number.)  I ran some calculation on Mathematica, but I am not sure in the answer gets very close to 1.  Can anyone help with that?  NB: I an not a professional mathematician. I am just an amateur.


Partition of N into infinite number of infinite disjoint sets?

Is it possible to have a countable infinite number of countable infinite sets such that no two sets share an element and their union is the positive integers?


Just installed Kubuntu 17.04 on my computer.  When the lock screen comes on the time is shown as am/pm while I want to have it in 24 hours format. The date comes as yyyy.MM.dd.day, which I wanted to have it dd.month.yyyy.day (15.07.2017.Saturday).  I found an answer on Ask Ubuntu saying I should make changes on InfoPanel.qml. I could not find this file at the specified address, instead I found Clock.qml. I went through this file, found the relevant lines and made my changes accordingly. When I do Ctrl+Alt+L it displays OK it seems.  But after I closed programs and log off when I restart again or reboot my laptop it still uses the am/pm and the yyyy.MM.dd.date day again.  After logging in if I do Ctrl+Alt+L then it is OK again.  How can I get the correct format every time I log in, from the first boot of the day?


Do I have to put a comma before "in which" here?

A book, in which you can read interesting things, is more thrilling than TV.


Unable to establish a persistent ODBC connection to an access mdb database

I’m an MS Access diehard and I’m running a 64bit version of Win 10 on my PC. I’ve installed both the 32bit (2.14.7) and 64bit (2.16.3) versions of QGIS on it, and MS Office 2016.  I would like to establish a persistent ODBC connection to an access mdb database but can’t get this to work on either on versions of QGIS.  Using the EVis plugin I have no issues in terms of linking to mdb, and identically accdb, databases on both the 32bit and 64bit versions of QGIS.  However, try as I may I can’t form a successful link via QGIS’s add vector layer ‘database’, ‘ODBC’ setting – the only thing I get is a database table header, its field structure, but no data whatsoever and the name assigned to the layer when I attempt this ends with ‘Unknown’.    It has been suggested that a modification to QGIS's bat file should overcome the issue I'm experiencing, as per adding the following two lines:   set OGR_SKIP=ODBC set PGEO_DRIVER_TEMPLATE=DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=%%s  I've done this, but in my two installations of QGIS the second line of that code doesn't appear to have any effect, since when I drag an mdb file into QGIS's workspace I get an invalid file format error.  How I can resolve this issue and establish in QGIS a persistent ODBC connection to an access mdb database?


If $n = 51! +1$, then find number of primes among $n+1,n+2,\ldots, n+50$

If $n = 51! +1$, Then find no of primes among $n+1,n+2,\ldots, n+50$  Really speaking, I don't have any clue ...


Why the function doesn't do the thing as I override in the subclass?

I am practicing using polymorphism in C++ .   Below is my superclass and subclass implementation.  class Animal{ public:      int num ;     string name ;  public:      Animal()     {      };      Animal( int i, string n)     {         num = i;         name = n ;     };      void bark()     {         cout<<"---"<<endl;     };  };  class Cat : public Animal     {      public:         Cat(){  }         Cat( int i, string n) :  Animal( i, n)         {             cout<<"construct "<<"Cat"<<"!!"<<  endl;         };          public:          void bark()         {             cout<<"MMM"<<endl;         }      };      class Dog : public Animal     {     public:          Dog() {}         Dog( int i, string n) :  Animal( i, n)         {             cout<<"construct "<<"Dog"<<"!!"<<  endl;         };          void bark()         {             cout<<"WWW"<<endl;         }      };  show(Animal a){       cout< <a.num << endl << a.name << endl;         a.bark();     };   Then , I think if I create a cat and a dog and call show(), the cat will print out MMM and the dog WWW .  But after I do this ,  int main() {      Cat c1(1,"Kitty") ;     Dog d1(2,"Doggy");      cout<<endl;     show(c1);     show(d1);  }   The result is ,  construct Cat!! construct Dog!!  1 Kitty --- 2 Doggy ---   Instead of doing the thing I override in the subclass , the two bark() function still do the thing that super class defined .  But I found that If I use the function directly this way in main() , c1.bark() , it works .  What wrong with this ?


I'd like to create a partition where to install Ubuntu in a Dell inspiron 6000 with WinXp OS already installed. What is the minimal amount of disk space required for booting the system? Then I'd create another partition for the data.  I tried to install Ubuntu alongside WinXP without creating a dedicated partition but the grub install failed at the end.


Which SE site should I use to ask about the Google search engine and SEO?

Which Stack Exchange site should I use to ask a question about the Google search engine and SEO?


Can the zero vector be an eigenvector for a matrix?

I was checking over my work on WolfRamAlpha, and it says one of my eigenvalues (this one with multiplicity 2), has an eigenvector of (0,0,0). How can the zero vector be an eigenvector?


Why doesn't my bmp save with transparent background?

I have the following .bmp file called mapa.bmp    As you can see, from the embedded picture, my background is fully transparent. I made sure to check and my Image->Mode is set to RGB as well.    and I saved it using the default options:    All seems fine and dandy, right?  However, if I use the picture anywhere, or even re-open it with photoshop, the transparent background is lost and opened with white background.       Saving the file as .png works fine, but sadly I need to use .bmp, .ico or .jpg format   Any idea what could be the cause?


I know this question has been asked a lot, and I tried at least 10 different codes to run this without success.  I'm trying to upload a single file with , but it doesn't work. The code below always outputs:     please choose a file' because the file's name is not set or something     HTML  <form enctype="multipart/form-data">   <input name="file" type="file" />   <input type="button" value="Upload" /> </form>

   jQuery  $(function(){   $(document).ready(function(){     var files;      $('input[type=file]').on('change', prepareUpload);     function prepareUpload(event){       files = event.target.files;     };     $(':button').click(function(){         var formData = new FormData();         $.each(files, function(key, value){           formData.append(key, value);         });         alert(formData);         $.ajax({           url: 'check.php',             type: 'GET',           data: formData,           success: function(data){ $('#result').html(data); },            cache: false,           contentType: false,           processData: false         });     });   }); });   PHP  if(isset($_GET['file'])){     $filename = $_FILES['file']['name'];     if(isset($filename) && !empty($filename)){         echo 'sup my man?!';     }else{         echo 'please choose a file';     } }else{     echo 'not set'; }   I don't know what the problem is, I know it's in the FormData object creation because the alert - good to go, doesn't work.  BTW it is really important for me that it would be written in jQuery.


weird behaviour of lists of lists of variables

I'm creating for example a list of list variables. WHen I changed the one value, the whole column changed as well  data = [[False] * 5] * 5 data [[False, False, False, False, False],  [False, False, False, False, False],  [False, False, False, False, False],  [False, False, False, False, False],  [False, False, False, False, False]]  data[3][4] = True data [[False, False, False, False, True],  [False, False, False, False, True],  [False, False, False, False, True],  [False, False, False, False, True],  [False, False, False, False, True]]   Same happened if it is a numerical variable. why does this happen??


Programmatically Render a Node Edit form with a custom Form Display Mode

I'm attempting to make a page for users to edit data for a specific content type, but I only want them to have access to some of the fields not all. To do so I created a custom form display mode for content. I have a custom controller that is meant to display this form with a custom display mode. Here is the code meant to render it.      public function showCustomForm() {         $node = \Drupal::entityTypeManager()->getStorage('node')->load('123');         $edit_form = \Drupal::entityTypeManager()->getFormObject('node', 'my_custom_form_display_mode_id')->setEntity($node);         return \Drupal::formBuilder()->getForm($edit_form);     }   And I get the error     Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException:   The "node" entity type did not specify a   "my_custom_form_display_mode_id" form class. in   Drupal\Core\Entity\EntityTypeManager->getFormObject() (line 184 of   /var/www/mydomain/http/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).   I was using this  as an example. But still had no luck.  How would I programmatically load a node edit form with a custom form display mode?


Find the minimum value of $A=\frac{2-a^3}{a}+\frac{2-b^3}{b}+\frac{2-c^3}{c}$

Let $a, b$ and $c$ three positive real numbers such that $a+b+c=3$. Find the minimum value of $$A=\frac{2-a^3}{a}+\frac{2-b^3}{b}+\frac{2-c^3}{c}.$$  Here is my attempt. By symmetry we can assume that $a\leq b\leq c$. The function $f(x)=\frac{2-x^3}{x}$ is decreasing and convex on $]0,2^{1/3}]$. So if $c\leq 2^{1/3}$ then $3f(1)=3f(\frac{a+b+c}{3})\leq f(a)+f(b)+f(c)=A$ with equality if $a=b=c=1$.   If $c>2^{1/3}$ I don't see how to proceed.


I am trying to create a customized tool in ArcGIS using Python Toolbox. Does anyone know how I can change the appearance (for example, size of a textbox or position of a parameter) of a parameter on the tool dialog? I did some searching online and could only found this ESRI documentation: , which does not provide much information. In the built-in ArcGIS Spatial Analyst Tools->Interpolation->Kriging tool, the dialog looks like this:  How can I make my customized tool to have something like the red part in the Kriging tool dialog? I am using ArcGIS Desktop 10.7.


Java - get the newest file in a directory?

Does anybody have a snippet of Java that can return the newest file in a directory (or knowledge of a library that simplifies this sort of thing)?


"wait more than" vs. "wait FOR more than"

If you make him wait (for) more than ten minutes, he'll just walk away.  I found both instances on Google Books:  and . So I'm a bid confused.


Python scripting for weight paint gradient

I am new to blender and currently working in blender 2.8. I wanted to animate a plane mesh to have a flag like movement and created that using a tutorial. I wanted to do the same using python scripting. In tutorial in weight paint mode, using colours, weights are given to particular portion of the plane.  Can anyone help me to do python scripting for the same ? Selecting particular portion of the plane mesh and assigning weights to it.  Thanks in Advance


Why do people in the Arrowverse reference Marvel?

While watching the Flash season 3 episode 5, I just saw Felicity Smoak reference “The Incredible Hulk”.  Then, after doing some research, I found out that’s also happened often on other shows of the Arrowverse.  I find it extremely odd with Marvel and DC being kind of rivals in the business. It’s like doing marketing for you competition.  What’s the reason behind those references instead of referencing DC superheroes?


(x,y) coordinates from gluing together a sequence of right triangles with arbitrary angles

I have been scratching my head all day over this question for one of my assignments. I haven't made any progress and I'm at the point of giving up. Here's what I need help with.    Start by gluing together a sequence of right angled triangles as shown in the following diagram.   The angles $\theta_i$, $i = 1, 2, 3, \dots$ can be freely chosen. This construction produces a sequence of points $(x,y)_n$ in the plane. Show that \begin{align} x_{n+1} &= x_n - y_n \tan \theta_{n+1} \tag{1} \\ y_{n+1} &= y_n + x_n \tan \theta_{n+1} \tag{2} \end{align}    I have no idea how to even begin to work this out. Any help will be greatly appreciated!


I've installed updates and noticed that my Ubuntu 16.04 changed it's recognition to elementary OS. There is elementary everywhere, in grub (no more Ubuntu) In the settings menu:        I mean, it's not a huge issue, by I love Ubuntu and would not like to see it anywhere


I want to have definitions like $x :=1$ in my tex to look good, and to be really different from a statement of equality like $x = 1$.  However, the $:$ and $=$ are not alligned, and this looks ugly.  How do I overcome this?


compute the probability that at least 2 have the same birthday?

In a party of 5 persons compute the probability that at least 2 have the same birthday(month/day),assume a 365-day year.


How to get my Ruby script to accept file or STDIN as input?

I have a simple Ruby script that will "capitalize" titles in a text file for me.  Here's the script:  $ cat capitalize.rb #!/usr/bin/ruby -w  file = File.new( ARGV[0] , "r") while (line = file.gets)         #line.capitalize!         ine = line.split(" ").map {|word| word.capitalize}.join(" ")         puts "\t\t,\t\"#{ine}\"" end file.close   It works fine if I pass it the name of a file:  $ cat lowercase come back with me (Ep. 0301) murder will out (Ep. 0302) snake in the grass (Ep. 0308) goodbye carl erich (Ep. 0309) nightmares nest (Ep. 0310) $ capitalize.rb lowercase                 ,       "Come Back With Me (ep. 0301)"                 ,       "Murder Will Out (ep. 0302)"                 ,       "Snake In The Grass (ep. 0308)"                 ,       "Goodbye Carl Erich (ep. 0309)"                 ,       "Nightmares Nest (ep. 0310)"   But I would like to be able to run the script like this also:  $ cat lowercase | capitalize.rb   Or even this would be fine:  $ cat lowercase | capitalize.rb -   But I get these error messages:  $ cat lowercase | capitalize.rb /home/red/scripts/capitalize.rb:5:in `initialize': can't convert nil into String (TypeError)         from /home/red/scripts/capitalize.rb:5:in `new'         from /home/red/scripts/capitalize.rb:5 $ cat lowercase | capitalize.rb - /home/red/scripts/capitalize.rb:5:in `initialize': No such file or directory - - (Errno::ENOENT)         from /home/red/scripts/capitalize.rb:5:in `new'         from /home/red/scripts/capitalize.rb:5   What do I need to change in my script?  Thanks!  Edit :  Here is the script that answers this question:  $ cat scripts/capitalize.rb #!/usr/bin/ruby -w  ARGF.each do |line|         ine = line.split(" ").map {|word| word.capitalize}.join(" ")         puts "\t\t,\t\"#{ine}\"" end   Thanks and + to everyone that responded.


DBCC SHRINKFILE - Necessary to run more than once to achieve shrink?

We have a 2008R2 production DB in full recovery mode.  To produce a minimised dev version, for SQL Server 2014, the following steps are run:  RESTORE DATABASE BigDB FROM  DISK = N'C:\Share\BigDB.bak' WITH  FILE = 1,   MOVE N'BigDB_Data' TO N'C:\Database\BigDB_Data',   MOVE N'BigDB_Audit]' TO N'C:\Database\BigDB_Audit',   MOVE N'BigDB_Log' TO N'C:\Database\BigDB_log.LDF',  NOUNLOAD,  REPLACE,  STATS = 5  alter database BigDB set recovery simple with NO_WAIT alter database BigDB set compatibility_level = 120  go  -- {truncate / delete statements.. with no additional 'go'}  DBCC SHRINKFILE (N'[BigDB_Audit]' , 500) DBCC SHRINKFILE (N'BigDB_Data' , 1000) DBCC SHRINKFILE (N'BigDB_Log' , 1000) DBCC SHRINKFILE (N'BigDB_Data' , 1000) -- Without this repeat, file remains same DBCC SHRINKFILE (N'BigDB_Log' , 1000) -- Without this repeat, file remains same   I've observed that without the repeat of the shrinkfile on the main data file, and the log, one or both does not actually shrink.  Can this behaviour be expected, and if so why?


Why always this code will call the object parameter type overload not the int?

Why the below code would call the public void Func(object o) even if i call it with int like so int i = 10;  Is it because all types derived from System.Object?  using System; public class Program {     static void Main(string[] args)     {         Derived d = new Derived();         object i = 10;         d.Func(i);         Console.ReadKey();     } } public class Base {     public virtual void Func(int x)     {         Console.WriteLine("Base.Func(int)");     } } public class Derived : Base {     public override void Func(int x)     {         Console.WriteLine("Derived.Func(int)");     }     public void Func(object o)     {         Console.WriteLine("Derived.Func(object)");     } }   please let me know why if it is correct.


Can I have my screenshot files written immediately in Mojave?

In macOS Mojave, whenever you take a screenshot a small preview thumbnail will appear at the bottom-right of your screen, and then it will go away on its own.  I have noticed that the .PNG screenshot file will be written to your Desktop after the thumbnail flies away, rather than instantaneously like it used to be.  This may sound ridiculous but as a very extensive user of the screenshot features, this lag is rather annoying.  The closest solution I have found is that if you manually swipe the thumbnail to the right, your screenshot will be written a bit earlier.  Is it possible to configure the screenshots behavior to write the file immediately? I don't mind deactivating the thumbnail preview - I just want to have the file sitting on my Desktop as soon as possible.  I am running macOS Mojave 10.14.2.


Post edit sidebar text overlaps bottom bar

I understand this has  but on Meta it appears the minimal style is causing this to be an issue.    Since it's not styled as a  or anything of the sort (i.e. no opaque background), the contents overlap and get all wonky.  This is Chrome on Mac OS X.


Suggest an advanced text editor for Ubuntu

I am looking for a text editor with advanced capabilities. For example; I should be able to expand and collapse xml codes/sections (or c/c++ sections) easily.  Something similar notepad++ for windows.  Also, If it can additionally create a Table of contents from the tags that would be even  more good!


I installed ubuntu 13.04 with the default language English, yet the calendar is displayed in local language ( Arabic ) , is there a way to change the calendar language to English ?  Screen shot:


Is there a method to get the number of replacements using .Replace("a", "A"); ?  Example:  String string_1 = "a a a"; String string_2 = string_1.Replace("a", "A");    In this case, the output should be 3, because a was replaced with A 3 times.


How to write a letter of complaint after a UK visa refusal?

I am a Ugandan by nationality and a student. I have recently applied for a visit visa in the UK to see my cousins in the UK. I was refused the first time this year on the ground that I did not show my savings, income, and assets, and that I did not provide how I was supported in Uganda, despite placing my sponsor's financial statement. Given these reasons I decided to re-apply fulfilling the first refusal requirements by placing my bank statement with my savings, a letter from the university where I am studying at, my bank slips for payment of my tuition, my hostel slips as a student, my mother placed her bank statement, her land titles, and her payslips. All this evidence is showing that she is the one who supports me, my sponsor's financial statement which was included, as well. All this means we had satisfied the first refusal requirements which complies with v4.2 of appendix V: immigration rules for visitors, but still I was given yet another refusal which states:          You have declared you are a student: supported by your mother and that you are single no children to support. You have stated that you propose to travel to the UK for the first time to see a friend.   I have taken into consideration that you presently claim to studying in Uganda. despite your university commitments I am not satisfied that your circumstances are such that leaving the UK would be an attractive prospect at the end of your visit and that therefore you intend to leave the UK.      Given the statements you have made and the documentary evidence you have presented to support your application I am not satisfied that your circumstances in Uganda, coupled with your reasons for wishing to travel to the UK, are such that you have shown your intentions are as stated or that you intend to leave the UK at the end of your proposed visit. I am therefore, not satisfied that you will leave the UK at the end of your proposed visit. your application for a visit visa has been refused under paragraph V4.2(a) V4.2(c)   All these are false accusations because I clearly indicated that I am visiting a family member, who is my cousin. For the second statement, I sent in my university documents, which show I am a student, and am in my final year with a semester left (which is in February to July 2016), and by the time I resume with my studies the UK visa would have expired. This was evidence I had no intentions to stay in the UK as suggested by them. I therefore laid my complaint to the manager of the company that is in charge of transporting our applications to Pretoria South Africa for assessment since our country is no longer in charge. He told me to write a complaint letter so that he could send it back to Pretoria, but I doubt whether my letter will be responded to. Any advice or idea on how to write the letter will really mean a lot.


i have an XML file, I recovered from ftp. i want to convert this xml to json i use the xml2json   How can I call an external command  from within a Python script?  python script:  #!/usr/bin/env python  import ftplib import os  # Connection information server = 'xxxxxx.xxxx' username = 'xxxxxxxx' password = 'xxxxxxxx'  # Directory and matching information directory = '/datas/' filematch = '*.xml' src='/opt/scripts/' dst='/opt/data/'  # Establish the connection ftp = ftplib.FTP(server) ftp.login(username, password)  # Change to the proper directory ftp.cwd(directory)  # Loop through matching files and download each one individually for filename in ftp.nlst(filematch):     fhandle = open(filename, 'wb')     print 'Getting ' + filename     ftp.retrbinary('RETR ' + filename, fhandle.write)     fhandle.close()  #?????????????????? EXECUTE XML2JSON TO CONVERT MY XML INTO JSON ??????????????????????? #?????????????????? xml2json -t xml2json -o stockvo.json stockvo.xml --strip_text ?????????????  #move the stockvo.xml file to destination os.system('mv %s %s' % (src+'stockvo.xml', dst+'stockvo.xml'))  #remove the src file  os.unlink(src+'stockvo.xml')


"dpkg: trying to overwrite '.../gsettings/gnome-settings-daemon.convert also in package gnome-settings-daemon" when upgrading to Trusty

While upgrading to 14.04 I ran into a dependency issue gnome-settings-daemon-schemas which blocked the upgrade. After running sudo apt-get -f install I get:    Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   gnome-settings-daemon-schemas The following NEW packages will be installed:   gnome-settings-daemon-schemas 0 upgraded, 1 newly installed, 0 to remove and 530 not upgraded. 9 not fully installed or removed. Need to get 0 B/44.2 kB of archives. After this operation, 189 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 252639 files and directories currently installed.) Preparing to unpack .../gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb ... Unpacking gnome-settings-daemon-schemas (3.8.6.1-0ubuntu11) ... dpkg: error processing archive /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb (--unpack):  trying to overwrite '/usr/share/GConf/gsettings/gnome-settings-daemon.convert', which is also in package gnome-settings-daemon 3.10.2-0ubuntu1~saucy6  Processing triggers for gconf2 (3.2.6-0ubuntu2) ... Errors were encountered while processing:  /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)    Depends: gnome-settings-daemon-schemas (< 3.10) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   What has caused this and how do I progress to fix it?    In case it's relevant, here's the original dependency hell:  The following packages have unmet dependencies:  aptitude : Depends: aptitude-common (= 0.6.8.2-1ubuntu4) but it is not going to be installed             Depends: libboost-iostreams1.54.0 but it is not going to be installed             Depends: libcwidget3 but it is not going to be installed             Depends: libept1.4.12 but it is not going to be installed  compiz-gnome : Depends: gnome-settings-daemon-schemas (>= 3.4.2-0ubuntu9) but it is not going to be installed  unity-settings-daemon : Depends: gnome-settings-daemon-schemas (>= 3.8) but it is not going to be installed                          Depends: gnome-settings-daemon-schemas (< 3.10) but it is not going to be installed


Type D student visa in Spain: valid date and duration of stay

I'm Chinese citizen and I have a Type D student visa valid for Spain. It was originally issued to be valid from Nov. 1, 2014 to Apr. 24, 2015, and the duration of stay is 160 days.  Which of these takes precedence? The thing is that I caught up in some personal thing and did not go to Spain until January, 2015.   If I stay the full "duration of stay" time dictated by my visa, which is 160 days, I will leave in June, but that's past the visa valid date range. Can I (or do I need to) do anything about it in Spain? If I need to do something about it, I do not need to extend the length of the duration of stay, only the valid date range. I heard visa valid date only means when you can enter the country, is that the case for Spain?