How to prevent duplicate rows with a 1 to many SQL result without losing data

I have a blog posts table and a blog post tags table. One post has many tags. I first did this with a call to posts then a loop and call the tags table, but this resulted in 9 queries per page just to get the posts. I have rewritten this to use a join, but it returns duplicate blog posts rows.  SELECT p.timestamp      , p.title      , p.postcontent      , p.siteid      , t.tag    FROM user_blogposts p   LEFT    JOIN user_blogposttags t     ON t.postid = p.id   WHERE p.userid = 1   LIMIT 8   This query returns the data I want, but if there are 5 tags per post, each post will be duplicated 5 times with only the tag field being different. I can't use GROUP BY as this will return 1 row with 1 tag for each post and break the one to many connection.  Is there a way to return an array for the many join so that I only get 1 row for the post and then the tag column is an array or comma delimited string for me to work with rather than having to filter out all of the duplicate data.


Building A Computer Specifically for Graphic Design, 2K Budget

I've looked around for a good desktop rig to suit a 2K budget computer focused on graphic design/ rendering  capabilities, but I'm have trouble finding exactly the type of setup that I'm looking for. If anyone is a hardware guru and has a great understanding of how to extract the very best GPU power and Display quality from a budget, and don't mind throwing it into a new egg wish list for me, I'd truly be grateful. Here is the setup I'm looking for:   Triple, high quality monitor display Performance based on the idea that I'll need to handle high resolution and many layered images within photoshop Performance based on the idea that I'll be using Blender to render 3-D Designs, which is able to use GPU to render 3D models.  Performance based on the idea that I will likely have 30+ browser tabs open, be running text editors in the background, and be doing all of these things at once, and need the setup to be able to handle it all with no sweat.    I have a TB of external memory, so that should save some cash on memory that doesn't need to be accessed with a great amount of speed, but the 2K does need to cover the three high quality monitors, a large tower with room for upgrade, a disk drive, a mouse, keyboard, and USB ports.   *Edit:  I think the builds suggested here will be helpful many users seeking rendering machine setup suggestions. I hope this fit's the format, and of course, isn't a duplicate question. I've looked and not found a satisfactory answer anywhere on StackOverflow! I thank you all ahead of time for your suggestions!  New: Thanks for the suggestion to move this to superuser.com! I reposted it here:   Thank you for your answers everyone, I was able to change the terms of what I needed to search for to meet the 2K budget thanks to all of your helpful advisories. The user-base here is far beyond the quality and knowledge level of any website in the world, in my opinion. Thanks again!


How do I make a 180° spiral staircase? (specific measurements)

I'm looking to create a 180° spiral staircase with a step width of 1.28m; step height of either 16cm or 8cm, and step depth of 32cm (inner) and 64cm (outer). This model will be inside, thus the player shall never see its backfaces. How can I make this model with exact measurements? I ask because I hate curves.   Any help would be much appreciated ♥


How to add dll into GAC having config file

I have created class library project into dotnet framework 4.5. I have added new file - app configuraiton file and connectiong string is mentioned inside as a key/value.  Now, I need to add this dll into GAC and use into some other application.  Please suggest me how i could add this DLL with configuraiton file so, it should work completely ?  NOTE: this dll will be used in some SSIS and other applications. please suggest how i could use configuration file.  Thanks


I have "read" access to a database back end however the tables and columns are named oddly and I am unable to find the information I am looking for. (there are also a lot of tables and lots of data)  I have been using the following method:  Run query:  SELECT *  FROM information_schema.columns  WHERE TABLE_SCHEMA = 'dbname'    AND DATA_TYPE = 'varchar'   AND TABLE_NAME IN (SELECT TABLE_NAME                       FROM information_schema.tables                       WHERE TABLE_TYPE = 'BASE TABLE')   This gives me a list of columns which contain varchar values...  Then for each result, I run the following:  select top 1 [column name]  from [tablename]  where [column name] like 'value I'm searching for'   Is there a better way to do this? Or a way to combine these two queries together (as running the query on each result is a slow method)?  Thanks in advance


How can I see the number of up / down votes on my own posts without 1000 rep?

I would really like to be able to see my own post's score. How can I do this?  This is different from  because I only want to see what it is now.


Is there a way to uniformly add texture to a complex mesh without using UV mapping?

I have a large mesh with > 1.5 million faces. I would like to uniformly add a texture to the object without UV mapping (as blender freezes every time). The texture is quite simple and can be applied evenly throughout the object.


Proving the length of a circle's arc is proportional to the size of the angle

How can I prove that:     The length of the arc is proportional to the size of the angle.   Every book use this fact in explaining radians and the fundamental arc length equation $s = r\theta$. However no book proofs this fact.  Is this fact some axiom, some natural law like $\pi$ and the triangle side proportions?  Can I proof the above? Or is it something that you should just accept?


I know im supposed to run the setup again to install new packages but when i do (im trying to install the gcc and make package) it doesn't install it and when i go to use cygwin i still can use the the make command for example. When i go back to the setup it shows that they're not installed and if i try to install them again the same thing happens, anyway i can fix this? Im on windows btw.


How do I re-show a hidden website on Chrome's new tab page?

I've accidentally clicked the "X" to hide a specific website from showing in my recent/most popular pages. How can I get it back?


Mimic Sculpting Shader/Light setup for Render

I'd like to recreate the shading that is going on in the Sculpting view for high-resolution render. It seems to have a very specific light-setup and way of catching light the soft specular, very thick black creases it creates and the almost solarized fill light (light blueish bottom-lighting)     Is there a Material out there that does this?   Thanks


Sci-fi novel about man with the ability to physically modify his body to adapt to any environment

Trying to remember a Sci-Fi novel I read close to 20 years ago. The main character was a specially selected man who's lineage may have been tinkered with through the generations. He is made aware that he has the ability to physically modify his body to adapt to any environment or situation. This is done through concentration and mental visualization of the desired modification and ingesting large quantities of food that aid in facilitating these physical changes.  Somehow, he finds himself teleported or transported to an alien planet where the animals are very dangerous. The planet itself, if I remember correctly is many times larger than the Earth is and the main character decides to modify his body to allow him to fly. Unknown to him there is a very large and fast flying predator that nearly kills him. In the process of recovering he modifies his body to something similar to an armored rhinoceros. He manages to jump onto the back of one of these flying predators to speed his travel.  The main character has developed an intrusive probe that he inserts into the brain of the flying predator and in the process discovers it's somewhat intelligent. They travel together for some time but this is where my memory of the book ends.  As far as the title and author are concerned... I believe the author may have had the first name of Peter and that the title began with a "T" beyond that....I have nothing else. Thank you to everyone who may know something and if this same novel has been identified previously, my applogies.


Why are "look" and "school" pronounced differently?

I can't figure out a rule that says whether 'oo' makes one sound or the other. Same number of syllables: one closed, but the sound is different.


How to hide / show the pull out drawer that is pre-loaded on some Samsung devices

Some newer Samsung devices have a pull out tab that stores some of the commonly used applications. I have accidentally enabled and disabled it a number of times, but I don't know how. I don't see anything related to it in device settings or any of the installed apps that would control it.  How do you hide / show this pull out bar?      (Click on the image for larger version)


I am using k-means clustering algorithm to cluster a given dataset into two. I took two different initial points and run k-means clustering algorithm for each initial points. With the first initial points I got “within cluster sum of squared distances” (error) =23874.341. With the second initial points I got “within cluster sum of squared distances” (error) = 42913.684. 23874.341 is less than 42913.684. So, can we say the first one is the better clustering quality? If yes, is it always hold true? Or can we say less within cluster sum of squared distances is always the better clustering quality?


How to make unity hide applications from the launcher if they're running on other desktops/workspaces?

I would like to be able to hide applications running in other workspaces, under Unity.  For example, chrome is open in workspace 1, and when I go to another workspace, it should be hidden from the launcher.  Is this possible?


Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?

This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this:  127.0.0.1 localhost 127.0.1.1 myhostname   On most 'nixes I've used, the second line is omitted, and if I want to add my hostname to the hosts file, I'd just do this:  127.0.0.1 localhost myhostname   Is there a difference between these two files in any practical sense?


I want to ask you if there's some special rule about pronouncing foreign names with or without accent. For example, can I say Fedor or Andrey in native russian manner and with russian accent or should I say it with english accent? Is it appropriate?


How to interpret the results from random coefficient Poisson data analysis

I have fitted random coefficient Poisson analysis in R. I have obtained the following results:   Generalized linear mixed model fit by maximum likelihood ['glmerMod'] Family: poisson ( log )  Formula: frequency ~ 1 + cc + ageveh + make + (1 | AREA)      Data: x        AIC       BIC    logLik  deviance  1359.1477 1389.7370 -672.5739 1345.1477   Random effects:  Groups Name        Variance Std.Dev.  AREA   (Intercept) 1.323    1.15   Number of obs: 584, groups: AREA, 8  Fixed effects:             Estimate Std. Error z value Pr(>|z|)   (Intercept) -0.12902    0.44432  -0.290   0.7715  ccL          0.05656    0.12371   0.457   0.6475 agevehO      0.02136    0.09264   0.231   0.8177 make2       -0.45454    0.20632  -2.203   0.0276 * make3       -0.31799    0.21422  -1.484   0.1377  make4       -0.29708    0.14469  -2.053   0.0401 * --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Correlation of Fixed Effects:         (Intr) ccL    agevhO make2  make3 ccL      0.052          agevehO -0.179 -0.232                make2   -0.171 -0.007 -0.001  make3   -0.156  0.022 -0.078  0.366      make4   -0.300 -0.235  0.167  0.544  0.522   However I am unable to interpret the results.


I know that its is the possessive and it's is the contraction, and know when to use them.  But why doesn't the possessive have an apostrophe?   "The bear's eating a fish." [contraction] "The bear's coat is brown." [possessive] "It's eating a fish." [contraction] "Its coat is brown." [possessive] "One's eating a fish." [contraction] "One's coat is brown." [possessive]    lists the etymology as "From  + ", and  says that this is actually the original form:     Originally written it's, and still deliberately spelled thus by some writers until early 1800s.   So what happened to the apostrophe?  When did people stop using it, and why did they?  It seems that it's as the possessive is more natural, as most people do this until they're taught that it is wrong (or even after).  Update: Online Etymology Dictionary has been updated to include two potential explanations:     The apostrophe came to be omitted, perhaps because it's already was established as a contraction of it is, or by general habit of omitting apostrophes in personal pronouns (hers, yours, theirs, etc.).   Can anyone back up either of these arguments?  The possessive one's still has the apostrophe, despite these.


make an image that appears transparent (but has a background) actually transparent

I have an image that has a white background but its also semi transparent so the white background seeps through. now if i remove the background it will still have the white parts where the original background was seeping through making it look really strange on any other background but white... Is there a way to remove the "white" parts in the image...    The bottom of the img is exactly like something i have in mind (where the arrow is reflected and the arrows shadow as well)  As you can see when i remove background and change it to black it looks horrible:    Update: I actually made a mistake by voting the first answer up. I want to know how to remove the background completely. I know how to save images so they are transparent


How to shrink an Ubuntu 14.04 partition, without losing data?

I just purchased a new Dell Inspiron 5558 laptop with built-in installed Ubuntu 14.04, that has a single partition and I have only one problem: I  want to shrink my 1TB drive partition; this Partition has installed Ubuntu and all of my user data installed in it.  I want to make a second 500GB partition.  How do I create a second partition from this single one without losing any data?


By changing to polar coordinates, calculate the integral.

$\int_{-2}^0\int_{-\sqrt{4-x^2}}^{\sqrt{4-x^2}} \sqrt{x^2+y^2} dydx$  y describes the circle of radius 2, and is positive and negative, so doesnt limit any quadrants in our integral, however x can only be negative, which means the left half of our circle is what we are interested in.  This means, we need the integral:  $\int_{\pi/2}^{3\pi/2}\int_{0}^{2} rdrd\theta$  Giving us a value of $2\pi$.  Is this a correct assessment? I wasnt sure if making  $0$ and $2$ the limits of $r$ was entirely correct, since it describes the entire circle of radius $2$, and not just one half. Then again, a circle of radius $2$ does have an area of $4\pi$ which makes me feel I am along the right lines.   Any clarification would be fantastic. Thank you!


Realtek RTL8812AE has slower connection in Ubuntu than in Windows

Fitted an  today which depends on Linux drivers from files in /drivers/linux/AWP1200E_linux.zip/RTL8812AE_Linux_v4.3.2_12208.20140904/ extracted from  .  On my 74mb connection I only get about 37 mb/sec; hardwired I get about 67 mb/sec and on my Windows PC I used to get over 70mb/sec with WiFi.  Why is it slower on Ubuntu? How can I get this card to deliver the speed I got with Windows? Here's what lspci -knn | grep Net -A3 && rfkill list shows:  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)     Subsystem: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812]     Kernel driver in use: rtl8821ae     Kernel modules: rtl8821ae 06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c) 0: phy0: Wireless LAN     Soft blocked: yes     Hard blocked: no


I just started learning Python, and created the following class, that inherits from list:  class Person(list):     def __init__(self, a_name, a_dob=None, a_books=[]):         #person initialization code         list.__init__(a_books)         self.name = a_name         self.dob = a_dob   However, there are three things I don't understand:   This line list.__init__(a_books), doesn't actually initialize my instance's list of books. I am supposed, according to the book, write list.__init__([]) instead. Why is this step necessary. Why is there no reference to self in list.__init__([])? How does Python know?


I'm asked to prove 'Let $x \in Z$.  $3x + 1$ is even iff $5x-2$ is odd'. I have the following proof techniques in my toolbox: trivial/vacuous proofs (not so relevant in this case), direct proof and proof via the contrapositive.       1) If $3x + 1$ is even, then $5x- 2$ is odd.      2) If $5x - 2$ is odd, then $3x + 1$ is even.   Theorem 1a:  An odd number multiplied by an odd number yields an odd number.  Proof via direct proof. Let $n, m \in Z$. Assume n and m are odd numbers, so they can be written as $n = 2a + 1$ and $m = 2b + 1$ for any $a,b \in Z$.   Therefore $mn$ = $(2a + 1)(2b + 1)$ = $4ab + 2a + 2b + 1$ = $2(2ab + a + b) + 1$. Since $2ab + a + b + 1$ is an integer, $2(2ab + a + b) + 1$ is odd.  Theorem 1b: Adding and odd number to an odd number yields an even number.  Proof via direct proof. Let $n, m \in Z$. Assume n and m are odd numbers so they can be written as $n = 2a + 1$ and $m = 2b + 1$ for any $a,b \in Z$.  Therefore $m + n$ = $(2a + 1) + (2b + 1)$ = $2a + 2b + 2$ = $2(a + b + 1)$. Since $a + b + 1$ is an integer, $2(a + b + 1)$ is an even integer.  Theorem 1: If $3x + 1$ is even, then $5x- 2$ is odd.  Proof via direct proof. We know via 1a and 1b that for $3x + 1$ to be even $x$ has to be odd. Since $x$ is odd, $x = 2k + 1$ for any $k \in Z$.   Therefore $5(2k + 1) - 2$ = $10k + 5 - 2$ = $10k + 3$ = $10k + 2 + 1$ = $2(5k + 1) + 1$. Since $5k + 1$ is an integer, $2(5k + 1) + 1$ is an odd integer.  Theorem 2a: Subtracting an even number from an odd number yields an odd number.   Proof via direct proof. Assume $m,n \in Z$, $m$ is odd, $n$ is even, then: $m = 2a + 1$ and $n = 2b$.  $m - n$ = $(2a + 1) - 2b$ = $2a - 2b + 1$ = $2(a - b) + 1$. Since $a-b$ is an integer, $2(a - b) + 1$ is an odd integer.  Theorem 2: If $5x - 2$ is odd, then $3x + 1$ is even.  We know via 1a and 2a that for $5x - 2$ to be odd, $x$ must be odd. So, $x = 2k + 1$ for $k \in Z$. Therefore:  $3(2k + 1) + 1$ = $6k + 4$ = $2(3k + 2)$. Since $3k + 2$ is an integer, $2(3k + 2)$ must be an even integer. $\blacksquare$  Since this is the first time I've needed to establish intermediate results I was wondering if this approach is correct.


What can be said about topological properties of a space $X$ that is homeomorphic to $X\times X$ $?$

Given that $X$ is a topological space with infinite cardinality and $X$ is homeomorphic to $X\times X$.  (A)   $X$ cannot be  connected.  (B)   $X$ cannot be  compact.  (C)   $X$ cannot be homeomorphic to a subspace of $\mathbb R$.  (D)   None of the above.    If I take $\mathbb Q$ with discrete topology then $\mathbb Q$  satisfies  the  given condition  while contradicting  option (C). Now  for  options  (A) and (B), I know if $X$ is connected (compact) then $X\times X$ will be connected (compact). But I cannot  think  of  any examples  of  connected  or  compact  spaces  that  are  homeomorphic  to  their  two-fold  product. Can anyone  provide with  some  examples?


I am trying to color a string, but it doesn't work I've tried this, but it doesn't work at the cmd window  print '\033[1;32mGreen like Grass\033[1;m'   Could someone tell me why?  In pycharm command window it does work


Can't connect to Centos 6.9 after update to OpenSSH 7.6 on this server

I know that it was not a good idea to do update OpenSSH to v. 7.6 on Centos 6.9, but it was done. So now I can't connect to the server by ssh.    Trying to login with key:  debug3: send_pubkey_test debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 60 debug1: Server accepts key: pkalg rsa-sha2-512 blen 279 debug2: input_userauth_pk_ok: fp SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxx debug3: sign_and_send_pubkey: RSA SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxx debug3: send packet: type 50 Authentication failed.   Trying to login with root password:  debug2: we sent a password packet, wait for reply debug1: Authentications that can continue: publickey,gssapi-with-mic,password Permission denied, please try again.   Anything else possible to do to fix this or downgrade openssh?  p.s. I'm connecting from MacOs with OpenSSH_7.5p1 and from CentOs 7 with OpenSSH_7.4p1, so my problem is not in legacy issue.  Thanks!


So I took my first cautious peek into the review queue and failed an audit, I was presented with an answer that I down voted.    I didn't think the answer I was presented with was specific enough in relation to the question asked, or gave any direct answers. I've not posted the link to the question/answer because I'm not asking if others believe that is right or wrong.  What I'm interested in knowing is how questions make it into an audit review? Is it automated or does someone actually nominate/vote/assign questions into the review queue?  EDIT:  I reviewed the suggested previous question  It only seems to imply that providing an answer has many upvotes it can qualify. I'm asking if that is the only qualifying criteria?


Why doesn't Mike Ross just get a law degree?

The USA television series Suits revolves around Mike Ross practicing law without a degree and about trying to keep that secret.  Mike Ross is clearly capable of being a lawyer.  He passed the bar exam (albeit probably not under his own name).  Is there an in-universe explanation for why he doesn't just quietly get a law degree from somewhere (possibly far away from the show's setting of New York)? (And some states don't even require a law degree; passing the bar is sufficient.) He'd still have to carry around a secret that he didn't actually graduate from Harvard Law, but that's far better than practicing law illegally.  And even though he's already been practicing law without a license, if he became a real lawyer, then only his past cases would be tainted (and possibly need to be revisited) and not all of his future ones.  (And obviously the out-of-universe explanation is that it's the entire premise to the show, but I'm curious if the writers ever tried to explain this.)


How to draw a return arrow from node-3 to node-1

Say I have a code to draw a flow chart, I want now a arrow from node 3 to node 1, how can I do that?  1<--| |   | 2   | |   | 3----   MWE  \documentclass[class=article,border=0pt]{standalone}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  % Define block styles \tikzset{     block/.style={rectangle, draw, line width=0.5mm, black, text width=5em, text centered,                   rounded corners, minimum height=2em},     line/.style={draw, -latex} }% <- if you insist in using this in the document add this % here. \begin{document} \begin{tikzpicture}[node distance = 1cm, auto]     % Place nodes     \node [block] (BLOCK1) {a};     \node [block, below of=BLOCK1] (BLOCK2) {b};     \node [block, below of=BLOCK2, node distance=1cm] (BLOCK3) {c};     % Draw edges     \path [line] (BLOCK1) -- (BLOCK2);     \path [line] (BLOCK2) -- (BLOCK3); \end{tikzpicture} \end{document}


Tensorprodukt definition through universal arrow/Comma category

i am a beginner in category theory. I like the CoLimit/Limit definition through universal arrows but i am still confused how to relate that thought with the tensor-product definition.  In CWM i found a example of the tensor-product for rings defined through the use of the colimit definition through  universal arrows and i wanted to ask if you could give me the example of the tensor-product R-module definition through universal arrows or the reason why this is not working...


A normal, idempotent linear operator must be self-adjoint

I have been trying to solve this problem for quite a while. I am still unsure of whether any of the avenues I have pursued have been of any use. Any advice will be much appreciated. Question: Let $V$ be a finite-dimensional inner product space, and let $E$ be an idempotent linear operator on $V$. Prove that if $EE^* = E^*E$, then $E$ is self-adjoint. (This is essentially exercise 5(a) in sec. 80 on p.162 of Paul R. Halmos, Finite-Dimensional Vector Spaces, but Halmos didn't assume that the dimension of $V$ is finite.)


How to extract lines from a text file that contains strings from a list in another file?

I have a file containing population information for a bunch of towns. I have another file that is a list of the names of a subset of those towns. I want to select the population information from the first file using the second file. How would I do this?  Examples:  File 1: ma-towns.txt  Acton   Town    Middlesex   Open town meeting   21,924  1735   Acushnet    Town    Bristol Open town meeting   10,303  1860   Adams   Town    Berkshire   Representative town meeting 8,485   1778   Agawam  City[4] Hampden Mayor-council   28,438  1855   Alford  Town    Berkshire   Open town meeting   494 1773   Amesbury    City    Essex   Mayor-council   16,283  1668   Amherst Town    Hampshire   Representative town meeting 37,819  1775     File 2: town-list.txt  Acton   Adams   Agawam    Desired output would be  Acton   Town    Middlesex   Open town meeting   21,924  1735   Adams   Town    Berkshire   Representative town meeting 8,485   1778   Agawam  City[4] Hampden Mayor-council   28,438  1855      Basically, as said generally, extract the line if it contains the string in one of the lines of file 2.


Could anyone explain the example below? Why is $F_4 = $ {$0,1,x,x+1$}? (I was learning that it should be $F_4 = $ {$0,1,2,3$}). And how do we get the two tables?


How to drop voltage to 4 volt from 5 volt source voltage with resistors?

A SIM800L module needs voltage between 3.7V to 4.2V. The Arduino power source output is 5 volts which will damage the module. Is 220ohm enough? I was testing with a multimeter. Its drops to 4 volt with parallel circuit like this:  What is different with a series circuit? Which is better? Series or parallel to drop the voltage?


Disable double sided faces in Blender 3D View

For Debugging purposes in Animations I would like to disable Blenders default both sided rendering of faces in the 3D view. Is this possible?


How does child theme functions.php work with parent theme functions.php? Is it like CSS?

I am looking for help on understanding how child themes and parent themes functions.php work.  I know with CSS, the cascade overrides CSS declared earlier in the style sheet.  It is my understanding that the functions.php does not operate the same way. I understand that both functions.php are loaded.  What happens if you want to have the function in the child theme override a function in the parent theme and the parent theme is not using if statements like the codex recommends?


How to interpret this Residuals vs. Fitted Plot

How to Check the non-constant variance using this ’residuals vs fitted values’ plot?


I have a question about the following derivative. Let us have $X\in\mathbb{R}^{m\times n}, z\in\mathbb{R}^{n}$ and I would like to find the derivative $$\frac{\partial (z^{T}X^{T}Xz)}{\partial z}. $$ Any idea? It gives me a hard time. Thank you.


I unwrapped the whole mesh, but one face is always black, I tried CtrlN and ShiftCtrlN but there is no change.  in the 2d editor "View > UV Local View" isn't selected  you can get the blend here :


Why does C# make a distinction between ref and out?

As per this , the reason there is a distinction between ref and out is because it is costly to copy the value of the variable when using ref.  Why is there a need to marshall in the first place? Doesn't C# just pass the pointer under the hood? In that case, there would be no need to copy values.


Is it possible to think an example of refraction in which Fermat principle involve a maximum without using reflection?

In a question  is showed an example of reflection in which Fermat principle involve a maximum, and in comments is said that it could be interesting an example involving refraction but question is left pending. I can think examples in which Fermat principle with refraction involve minima (Snell's law) or stationary optical path length (lenses converging light from a point source to another point), but I can't find a refraction example that involve a maximum.


'Approaches introduced' or 'Introduced approaches'

I have the following sentence and need help from you:     "All introduced approaches lead to good results."   Is it correct to use it this way or do I have to say:     "All approaches introduced lead to good results."   I'd appreciate every comment.


Integrating a dot product gives wrong sign for work done

Consider a point mass which creates a gravitational field. The gravitational force pulls a 'test mass' towards the point mass. Since the displacement and gravitational force are in the same direction, the work done by the gravity is positive. I would like to show this mathematically, but my answer comes out negative:    I think the source of this error is how I deal with the displacement (highlighted). The displacement is in the negative direction (towards the point mass), but because you take its magnitude when doing the dot product, I didn't think its direction mattered. I therefore proceeded to swap $ds$ for $dr$ (not really knowing what I was doing, but it seemed to make sense, because $s$ and $r$ are both displacements, albeit in opposite directions).  How should I correctly integrate this dot product to get the right sign of work done?


Spivak calculus, Sum of a polynomial's all derivatives, chapter 11 question 26

The question asked to prove if $f$ is a polynomial function of degree $n$, and $f\geq0$, then $f+f'+f''+...+f^{(n)}\geq0$  The answer given is: The minimum of $f+f'+f''+...+f^{(n)}$ occurs at point where $0=f'+f''+...+f^{(n)}$[the next term vanishing, since $f$ has degree $n$]. Since $f\geq0$,this means that the minimum occurs at a point where $f+f'+f''+...+f^{(n)}\geq0$  The question is so short, so is the answer given. Why the minimum occurs at $0=f'+f''+...+f^{(n)}$? Does this point always exist?


Questions about specific American English vocabulary

I was wondering if any American writers could give me some advice as to whether the following expressions/vocab are used and understood in the US:  (words in bold are the ones I'm asking about. Some words are also in inverted commas)   The living room of a house - is this expression ok? Do you ever say "front room" or "sitting room"? If it's a massive house with a huge entertainment area, can you say "living area"? I was tickled - is this expression ok? It means happy. "My college mate wants to hang out at my digs" - meaning my place, or college dorm. Would digs be used? Is college mate an ok expression for someone you go to college with? In the real world, do people stop on the shoulder or the hard shoulder of a highway or is either fine? Is median strip used for the partition between 2 lanes of a highway going in different directions? "He takes the piss out of every banker he meets" - meaning he mocks them. Is this used? Can you say "I'm pissed off at him" (angry) or does it have to be: "I'm pissed at him." "I called my parents' landline (fixed home phone)." Is landline ok? "I tried on the jeans in the changing room." Is this ok or does it have to be fitting room or something else? Is the word "thingamajig" used in American English? "I can't walk on my ropey leg" - meaning damaged or injured or tired. Can ropey be used? Security guards are surveilling the place. This verb is showing up as misspelt but I see it sometimes. Is there another spelling or verb?   13.In the real world, do people in the US use MPH or KPH as the unit of speed when driving?   Is the expression "Calm my jitters" acceptable? (calm my nerves) If you pull up to a mansion surrounded by a fence with very thick metal bars all around it, is the word "fence" appropriate or is there a better word. I think that gate would only be for a door in a fence or something? Is the expression "It cost a pretty penny" ever used in the US? Is the expression "It took every ounce of strength" used in the US? Can the word "skiff" be used in the US for a sort of flat-bottomed row boat?   Thank you so much to anyone willing to give advice about these points. Though I appreciate any input, I think it would be most useful to hear from actual American writers to avoid possible confusion.   Many thanks!


How to create a ball shading and to customize 3D lighting manually?

TikZ shading=ball creates a perfect 3D ball perspective, but it has no option to change the lighting angle, the contrast, radius of light, etc (or I am not aware of). I tried to create a 3D ball by radial shading. However, I still do not know how to change the place of inner color.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document}  \begin{tikzpicture} \node[circle,shading=ball,minimum width=3cm] (ball) at (0,0) {}; \node[circle,outer color=blue!60!black,inner color=white,minimum width=3cm] (radial) at (4,0) {}; \end{tikzpicture}  \end{document}     Which is the standard method to customize the 3D lighting?


How to zero pad numbers in file names in Bash?

What is the best way, using Bash, to rename files in the form:  (foo1, foo2, ..., foo1300, ..., fooN)   With zero-padded file names:  (foo00001, foo00002, ..., foo01300, ..., fooN)


I wrote a function that change css background image every 1 second base on interval, and its all working fine, the problem is that now i want to stop the function that switches the background image and the interval setup keep overwriting me.      my code:        var backgrounds = new Array( 'url(/srv/admin/img/announcement/envelope_blue.png)' , 'url(/srv/admin/img/announcement/envelope_red.png)'  );  var current = 0;  function nextBackground() {        current++;     current = current % backgrounds.length;     jQuery("#open_msg_tlbr_img").css('background-image', backgrounds[current]);     jQuery("#open_msg_tlbr_img").css('width','35px');     jQuery("#open_msg_tlbr_img").css('height','35px');   } setInterval(nextBackground, 1000);  jQuery("#open_msg_tlbr_img").css('background-image', backgrounds[0]);       I tried using :    clearInterval();    how do i stop this monster?


As usual the default font is very small. How can I make the default font lager?


If p is an odd prime, prove that $1^2 \times 3^2 \times 5^2 \cdots  \times (p-2)^2 \equiv (-1)^{(p+1)/2}\pmod{p}$

I also have to prove this for $$2^2 \times 4^2 \times 6^2 \cdots \times (p-1)^2 \equiv (-1)^{(p+1)/2} \pmod{p}$$ I made some progress so far and got stuck. I said that since p is odd, $(p+1)/2$ is even. Then we can say that $(-1)^{\mathrm{even}}= 1$, so $(-1)^{(p+1)/2}\pmod{p}$ can be written as $1\pmod{p}$. I know that the product of odds is odd and the product of evens is even, but I cant prove that the left side of this equation in either case is congruent to $1 \pmod{p}$. Any help here would be greatly appreciated.


When I try to install any version of Wubi,appears message which asks  me to Burn DVD E. And no choice to change it,or reject. Regards, M.Shahbazov


I need to edit my previous question about caption width below the figure. The goal is to have a caption exactly the same width as the figure. I was recommended to use caption package and the command \captionsetup{width=x} to make the width of the caption the same as the width of the figure by specifying x equal to the width of the figure. However, I am doing a presentation and it seems that this is not working here, when I do this, caption is still much wider than the figure as you can see in the image attached below.    Also, I want to use the command \setbeamertemplate{caption}{\raggedright\insertcaption\par} to get rid of the "Figure:" before the caption and this is not working either now, but if I exclude \usepackage{caption} from my preamble, it is working fine. Here is my code now:  \PassOptionsToPackage{table}{xcolor} \documentclass[xcolor=svgnames]{beamer}  %\PassOptionsToPackage{svgnames}{xcolor} %\documentclass[xcolor=table]{beamer} % % Choose how your presentation looks. % % For more themes, color themes and font themes, see: % http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html % \mode<presentation> {   \usetheme{Warsaw}      % or try Darmstadt, Madrid, Warsaw, ...   \usecolortheme{default} % or try albatross, beaver, crane, ...   \usefonttheme{default}  % or try serif, structurebold, ...   \setbeamertemplate{navigation symbols}{} %  \setbeamertemplate{caption}[numbered] %\setbeamercolor{section in head/foot}{bg=NavyBlue} }  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{hyperref} \usepackage{amsmath} \usepackage{xcolor} \usepackage{tabu} \usepackage{booktabs}% for better rules in the table \usepackage{ragged2e} \usepackage{rotating} \usepackage{caption}   \title[Thesis Defense]{Name of the thesis} \subtitle{Thesis Defense} \author{}  \institute{} \date{January 31, 2018}  \begin{document} \setbeamertemplate{caption}{\raggedright\insertcaption\par} \setbeamerfont{caption}{size=\tiny}  \begin{frame}[plain]   \titlepage \end{frame}  \begin{frame}{Motivation} \begin{figure} \centering \captionsetup{width=90mm} \small{Appreciation of house prices and policy rate} \par %\label{fig:circulation} \includegraphics[width=90mm,height=0.5\textheight,keepaspectratio]{WuXia_rate_Real_HPI}  \caption{\textit{Shaded area marks the pre-crisis period in which effective federal funds rate was below the Taylor rule rate.}} %\begin{source} National central banks \end{source} \end{figure}  \begin{itemize} \item  \item \end{itemize}  \end{frame}    \end{document}


keyboard one button shows wrong character

I have been using Turkish layout on ubuntu 16.04 on MacBook. When I use command character(left of number 1), it shows less than operator symbol(<). (In the picture, the left green ones) How can be the problem fixed? The all other buttons work well. I think the button may be edited by /usr/share/X11/xkb/symbols/ but I'm not sure. Similar problem I have just realized:      shifted keys:


Prove: if $f''(x_0)$ exists then $\lim\limits_{x \rightarrow x_0} \dfrac{f(x_0+h)-2f(x_0)+f(x_0-h)}{h^2} = f''(x_0)$.    I'm not exactly sure how Taylor's theorem fits into all this, but I found the first derivative, and I haven't been able to progress past that.


An exciting new feature is described in the :        There is a new NPC housing interface that can be used to assign living areas to NPC’s. This interface will also tell you if a room is missing any requirements.      How can this interface be accessed?


How to copy or select current string in terminal?

I want to copy current string (or select and then copy with help ctrl+shift+c) to clipboard. How do I make this?


Why is this one-way flight more expensive than round trip?

Why is this one way flight from Paris to Toronto is significantly more expensive than the same trip that includes a round trip? If anything the round trip should be more expensive because it's the same as the one-way trip and more! Also, why are these economy flights so expensive? Usually it's 1/3rd of the price.


How to type theta as shown below?  Hope image is clear


Why didn't the killing curse backfire in the Forbidden Forest?

Why didn't the killing curse by Voldemort backfire in the Forbidden Forest when Voldemort tried to kill Harry in Harry Potter and the Deathly Hallows, while it did backfire at the end and Voldemort died?


recover ssd after mounting iso file to ssd!

I accidentally mounted iso file to the solid state drive /dev/sda, which contains windows operating system. After unmounting iso in ubuntu this drive get unreachable at all and unfortunately system can't boot to ssd and output this message:     Reboot And Select Proper Boot Device   I know that ssd files are not deleted and actually are hidden and maybe can not be found by system to boot properly. I just wanna to return them to the accurate correct location as before mounting in Boot-Repair-Disk terminal or ubuntu desktop. How can I deal with this issue?  I did not use the terminal for mounting. I used Ubuntu's GUI and simply choose my ssd as destination. After unmounting in Boot-Repair-Disk, the disk is shown as . (note: I made mistake about the location of ssd, the ssd location is /dev/sda)


Can I use apple cider vinegar instead of white wine vinegar for cooking?

Can I substitute apple cider vinegar for white wine vinegar in a pasta and chicken dish?


Python, Store specific words to varibles in input

The title says it all. Is there a way so I input  input("")   They input  dbs -U thebos123 -P pw.txt   Then store thebos123 into a variable but not the rest


Regex expression to validate a list of email with ; delimiter at the end of each email address

i found this regular expression :           "^(([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5}){1,25})+)*$"   which validates a list of email like :   address1@gmail.com;adresse2@gmail.com  But i need to tweak it to validate in fact this sturcture :                     address1@gmail.com;adresse2@gmail.com;   and also just one email address with this structure :                    address1@gmail.com;   I also want to be able to validate email addresses containing + sign  ,  for example validating :             address1@gmail;adress2@gmail.com;addres+3@gmail.com;    as a valid list of emails.  Thank you for your help.


Where is the "minimal understanding" reason?

I wanted to flag a question as "minimal understanding", but this close reason is replaced by:     This question was caused by a problem that can't be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was solved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting.    But this close reason doesn't fit for questions with a "minimal understanding of the problem". So how should I flag these questions?


Where does Google Play store its ebooks on an Android device?

In the Google Play Books Android application, there is an option to keep an ebook on a device if the user wants to do it. So when you decide to do such a thing, the ebook may be stored somewhere on the Android device. I would like to know where the ebook is stored. I searched in /mnt/storage and I only found Aldiko ebooks (in the /mnt/storage/eBooks folder), not the Google Play eBooks.  Thanks for your answsers.  PS : if it can help, I do this on an Archos G9 101 tablet.


Quantum gravity: How do we know gravity operates at quantum scales?

Edit: An alternate angle on the original question I asked below: Would general relativity still create singularities in special cases (center of black holes) if we assumed that gravity had a lower range boundary, below which gravity did not operate? Maybe another way to ask this is: What if spacetime was not curved in any way below the scale at which quantum effects begin to become a factor; would there be any need to quantize gravity? Maybe another, another way to ask this (not sure if this one even makes sense, but I'm trying to give the idea of what I'm asking): What if the quantum of spacetime was set to be whatever dimension at which quantum effects begin to become a factor (that is, quantum effects only act within a single quantum of spacetime, meaning there's no overlap between gravity and quantum effects)?  Just to reiterate (if it wasn't already apparent), I'm only a hobby physicist. My original question was flagged as a duplicate. While the linked question definitely contains a lot of relevant information, from what I can tell my more specific question wasn't addressed there. (I also didn't fully understand everything said there, so I could be wrong...)  Original question:  [For brief context, I'm a physicist in hobby only. Took the entry-level courses in college, but don't know any of the more complex math. I'm more familiar with many of the general concepts (what you'd read in Stephen Hawking's books).  Question: As I understand it, normally at the quantum scale gravity is too weak to be a factor. But with massive concentrations of matter (black holes), with so much mass there comes a point at which quantum effects from gravity should dominate (and that's why we're looking for a theory of quantum gravity). Gravity has an infinite range, but I'm wondering what the reasoning is as to why there can't be a lower range as well, a range below which gravity doesn't operate. I'm imagining a reverse sort of situation to the strong force, which has an upper range beyond which the strong force doesn't operate - that analogy with the snapping rubber band (force grows stronger with distance but only up to a certain point, then snaps). Could there be a lower bound that prevents gravity from affecting the smallest scales at all? And if not, I'm curious to hear what the explanation is as to why, if it's possible to do so in lay terms.  This article touches on some of what I'm asking about (I think) but some further discussion would be interesting (I hope):   Also goes without saying, if I'm laughably incorrect about any of this, please feel free to clarify.  Thank you!]


Is it ok to ask to explain a certain piece of code on SO?

Is it OK to ask on SO for help in explaining someone else's working piece of code, from Open Source projects or library examples etc.? Or does this belong somewhere else?


click on td is not working for all in dataTable

i'm using dataTable plugin.   i want to edit or delete the particular row, so onclick on <td> iam planning to    capture id.   but the problem  when i go to next tab onclick is not working. it is working only for the present item.  here is a fiddle :   Please click on the item and see the alert. Then go to next tab, click but will not work? Why?


Currently, I have two examples in my mind:   Halo (Halo video game series; 2001): Can destroy all sentient life within three galactic radii The Moment/ Eye of Discord/ Galaxy Eater (Doctor Who (2005) TV series; 2013): Can destroy entire galaxy within a moment   What sci-fi work first showed a weapon of galactic-scale mass destruction?


Why aren't Java Collections remove methods generic?

Why isn't  generic?    Seems like Collection<E> could have boolean remove(E o);   Then, when you accidentally try to remove (for example) Set<String> instead of each individual String from a Collection<String>, it would be a compile time error instead of a debugging problem later.


Show that α^2 is algebraic over K (Field extension)

Let K ⊂ L be an extension. Let α ∈ L algebraic over K. Show that α^2 is algebraic over K, and that if [K(α):K] is odd, then K(α^2) = K(α). is α^2 algebraic over K, because α is algebraic over K? How can i show this?


I need help with validating a simple e-mail address, like basic pretty much. In the end after the . it should only contain either 2 or 3 characters or it gives the user an invalid message, however mine isn't recognizing that.  Pattern chckEmail = Pattern.compile("([a-zA-Z0-9]+|[a-zA-Z0-9]+\\.[a-zA-Z0-9]+)*@[a-zA-Z]+(\\.[a-zA-Z]{2,3})");


I get this error when I try to update my Ubuntu 17.04. I already tried few solutions but nothing worked so far. I get these errors:  Reading package lists... Done W: GPG error: http://archive.canonical.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 W: The repository 'http://archive.canonical.com/ubuntu precise Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures were invalid: C47415DFF48C09645B78609416126D3A3E5C1192 W: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 W: The repository 'http://us.archive.ubuntu.com/ubuntu precise-security InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 W: The repository 'http://us.archive.ubuntu.com/ubuntu precise-updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 W: The repository 'http://us.archive.ubuntu.com/ubuntu precise-backports InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.


"no one was killed or wounded" vs. "no one had been killed or wounded"

:     The Ukrainian army on Saturday reported 11 attacks on its positions in the past 24 hours but no one was killed or wounded.   If I change was to had been, how will the meaning be affected?     The Ukrainian army on Saturday reported 11 attacks on its positions in the past 24 hours but no one had been killed or wounded.   I asked an English native speaker and he said that they are very similar and both mean pretty much the same thing but there is still a slight difference though. What is that slight difference apart from the fact that in the first instance the simple past tense is used and in the second the past perfect? It seems like they both can be used almost interchangeably because there's practically hardly any difference between them.


I have a folder in the server and when I upload a file overwrite the existing file (means I save the file with the same name).  So when I open my website it should show me the new uploaded file but it shows the old file instead.  Is there any way to hard code directory refresh?   string folderPath = Server.MapPath("~/Resources/Slider/"); if (!Directory.Exists(folderPath)) {      Directory.CreateDirectory(folderPath); }  //Save the File to the Directory (Folder). String extension = Path.GetExtension(FileUpload1.FileName); FileUpload1.SaveAs(folderPath + "slide" + s4 + extension);   s4 = 1 or 2 or 3   This is how the directory that I want to refresh slider folder:


Is this function enough for preventing SQL Injection?

I created this simple function and want to know that if it is enough for preventing SQL Injection.  $sub_username = encr(mysqli_real_escape_string($conn, $_POST['username'])); $sub_password = encr(mysqli_real_escape_string($conn, $_POST['password']));  $sql = "SELECT password FROM login WHERE username='$sub_username'"; $result = mysqli_query($conn, $sql);   function encr($data) {     $data = trim($data);     $data = stripslashes($data);     $data = htmlspecialchars($data); }


What's the relevance of the offside rule?

I don't really get the point of it. What was the initial intention when this rule was created?


How can I display an object's property as JSON type in Visual Studio-Debugger Window?

I want to display an object's property in my debugger window without set manually debug in my visual studio. I did a small thing which is display variable properly in my debugger window but when I pass any object it's not shown this object's property. I want, it displays my object's property like that way in the debugger window- {id: 1, Name: "Hello World", Address: "Down City"}   private void DebugOutput(object obj)         {             try             {                 System.Diagnostics.Debug.Write(obj + Environment.NewLine);              }             catch (Exception ex)             {                  System.Diagnostics.Debug.Write(ex.Message.ToString() + Environment.NewLine);             }          }


I am wondering what I should do when tagging a question that fits multiple tags, in the particular case were the question might belong to general as well as more specific tags.  Let me give you an example to illustrate this:  Let's say I have a question about ASP.NET MVC 3.0 and I use C# as my main language.  The following tags could apply:   c# .net .net-4.0 asp.net asp.net-4.0 asp.net-mvc asp.net-mvc-3   Tagging with C# might make .NET redundant (I don't think C# is used anywhere else outside of the .NET scope), and tagging with  certainly makes  and  redundant. However, my question would get a better visibility with tags such as ,  and , as probably no one browses a tag as specific as .  How shall I tag my questions? Using more general or more specific tags, or a mix of the two?


Hi I'm trying to compile a project with pdflatex and am getting some errors with the bib  LaTeX Warning: Empty bibliography on input line 145.  [3] (./main.aux)  LaTeX Warning: There were undefined references.   Package biblatex Warning: Please (re)run Biber on the file: (biblatex)                main (biblatex)                and rerun LaTeX afterwards.   I'm a bit confused with this message since I've had no problems compiling projects with bibs in the past and recently trying to recompile old projects I get the same error. I tested the  and it compiles just fine.   I don't get why I now need Biber what's wrong with biblatex?  This is a related discussion but I didn't find it helpful.


How to access a text file from anywhere in terminal

I have two files. file1 is executable and file2 is just a text file and I use them frequently but I have to do cd every time to reach the directory.  How can I make file1 universally executable in terminal and how to access the content of file2 irrespective of my location in terminal. Is it possible to add content of file2 in man page so that I can just do man file2.   I think this can be done using /etc/environment but I want to know proper method of doing this.


Linear Programming 3 decision variables (past exam paper question)

This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables,  Objective function and Constraints for this?  My Opinions: Decision variables:  $M_1$- # of  Model 1 to be produced  $M_2$ and $M_3$ (similar definition to $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subcontractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints:  $3M_1+1.5M_2+2M_3 \geq 0$  $1.25M_1+2.5M_2+0.75M_3 \geq 0$  $M_1,M_2,M_3 \geq 0$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track?


How to set up BIOS-like password on Android device?

Setting a screen lock password or SIM pin or both is fine for securing some aspects of your mobile device. But what if, as a nasty joke, someone manages to grab a hold of your device and hits the magic power-home-volume key combination and proceeds to factory reset your device thus deleting your folder configuration, a record of what unpaid apps you had downloaded, and what is more, data stored on your phone!  So, is there a way to set up a password so that it must be entered when such magic key combination is issued (so that you can't factory reset your device without entering such a "BIOS" password?  Thanks!!!


In school, especscially, one is not taught "why" we can change variables, dummy variables in integration.   $$\int_{a}^{b} f(x) dx$$  We can change the $x$ variable to $y$ for example.  The idea is that the value of the expression does not depend on the given variable correct?  This is known as the bound variable idea.  But how do we know that: the value of the expression does not depend on the given variable  ??  Is it an axiom, theorem?   Thanks.


How do you handle the varying sizes of filters in your kit?

I have a variety of Nikon DX lenses that take differently sized filters. Most take 52mm filters, but there are a few that take larger 67mm or 77mm filters. The advice I've read most commonly online is to buy one filter size and get filter conversion rings to step up to that size filter. In my case, the largest size appears to be 77mm.  So, I walked into a couple local photo shops and asked about 52mm-77mm filter conversion rings and they looked at me like I had two heads. One guy suggested I stack a 52mm-67m and a 67mm-77mm. I have found 52mm-77mm rings online, so I know they exist.  Is this not a common thing to do? How does the stack exchange community handle the varying sizes of filters in their kit?  Thanks, PaulH


"Big black eyes" vs. "big and black eyes"

I've heard many people say "big black eyes," and I'm curious whether or not we must put an and in-between big and black.   To me, since big and black are describing eyes, it is necessary to put an and between the two. Is it just a careless mistake?


[Microsoft][SQL Server Native Client 11.0][SQL Server]Column 'TantraBackup00.GuildName' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.  SELECT      PK.KillerAccountName as CharacterName      ,count(PK.KillerAccountName) as totalkillings     , TB.GuildName  FROM PlayerKills as PK         LEFT JOIN      TantraBackup00 as TB ON PK.KillerAccountName = TB.CharacterName  WHERE      PK.KillerCharacterName !=''  GROUP BY PK.KillerAccountName


How to call a hashset method in a generic class?

I have a set class shown below that extends to my setinterface class which just has some basic methods(add, remove, contains, etc). In my set class, i use HashSet library to create my type T parameters.   Using a Junit test on my setclass, i immediately run into a problem with my add method. I realized that my set add method doesn't at all add the object into my hashset when called upon.   So my question is how do i call on the add method in hashset in my set add method so i can add an object to my hashset?  When i run a debugger, it shows that 100 is not being added to my set object. My set object does not contain 100 and is still null.  public class Set<T> implements SetInterface<T>{      /*      * i used hashset library because one, it does not      * allow for duplicates, and 2 it allows my class to use      * iterator       */     private  HashSet<T> genericType;        public Set() {       }     public Set(HashSet<T> genericType) {         super();         this.genericType = genericType;      }     /**      * Add an item of type T to the interface  Duplicate items will not be      * added to the set.      * @param  itemToAdd - what to add.      */     @Override     public void add(T itemToAdd) {          genericType.add(itemToAdd);       }   heres my junit test if anyone wants to see it  public class SetTest {      @Test     public void testSet() {         fail("Not yet implemented");     }      @Test     public void testAdd() {         Set<Integer> test = new Set<Integer>();         test.add(100);          assertTrue(test.contains(100));     }


And the screen when you swipe in from the right doesn't work. I don't even know what it is supposed to be.   App Version: 1.0.85 Device Manufacturer: motorola Device Model: XT1068   OS Version: 6.0 (31)


Probability that n points on a circle are in one semicircle

Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle? Any hint is appreciated.


what should I do to stop the cases environment compressing the first line of the following? \begin{equation} \alpha_{mn} = \begin{cases} \frac{16\mu^2}{mn\pi^2\left[\pi^2(m^2/a^2 + n^2/b^2) - \mu^2\right]} &\mbox{for } m \mbox{ and } n \mbox{ odd;}  \\ 0 &\mbox{for } m \mbox{ or } n \mbox{ even;} \end{cases} \\[1ex] \end{equation}  I'm not sure to do tex on this site, but if anyone tries it they see the first case is compressed because it's a fraction.


Unity doesn't load, no Launcher, no Dash appears

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


samsung tablet GT- P3113 have OTG USB support?

Does the samsung tablet model # GT-P3113 have OTG USB support already built in or do I need to get the cable?  Am thinking of getting a keyboard for my tablet.


"So, the reason that we're having less cases now is because of the lockdown measures that we have implemented" [https://www.youtube.com/watch?v=libhd7y8us0] [4:50] Normally I would say definitely "fewer cases" because "case" is a countable noun. But I googled it and it seems that "less cases" is commonly used. Are there any other similar "abnormalities" or shall we say "exceptions"?


I remember reading this one article about database design and I also remember it said you should have field properties of NOT NULL.  I don't remember why this was the case though.  All I can seem to think of is that, as an application developer, you wouldn't have to test for NULL and a possible nonexistent data value (for instance, an empty string for strings).  But what do you do in the case of dates, datetime, and time (SQL Server 2008)?  You'd have to use some historic or bottomed-out date.  Any ideas on this?


I'd like to show the case $n=4$ for the Vandermonde-determinant. It should look like this:  $V_4 := \det \begin{pmatrix} 1 & 1 & 1 & 1 \\ x_1 & x_2 & x_3 & x_4 \\ x_1^2 & x_2^2 & x_3^2 & x_4^2 \\ x_1^3 & x_2^3 & x_3^3 & x_4^3 \end{pmatrix} = (x_4 - x_3)(x_4 - x_2)(x_4 - x_1)(x_3 - x_2)(x_3 - x_2)(x_2 - x_1)$.  I tried calculating the $\det(\dots)$ via the first row. However, it ends up in a very large calculation.. I'm sure there's a better way to show especially this case with $n=4$.  Thank you for any help ;)


How Do You Add Mods to your Minecraft on Ubuntu?

I've been trying to add mods to my minecraft using the old way of putting them in the bin folder.  However, I do not have a bin folder in my .minecraft folder.  How do I get the bin folder or find a different way to add the mods.  I have already tried using the magic launcher and it did not work.  I also so tried Ctrl-h to show the hidden items and the bin folder still did not show up. All help is appreciated! Thank you!


Queries gone haywire since update to 3.8.1

I have a WordPress install on a dedicated server with decent memory (upwards of 8GB)  Since upgrading to 3.8, I started getting mysql disconnects/timeouts, better known as     MySQL server has gone away   I enabled error_log for a bit, i.e.  ini_set('log_errors',TRUE); ini_set('error_reporting', E_ALL); ini_set('error_log', dirname(__FILE__) . '/error_log.txt');   This resulted in an immense file - basically the error_log grows by about a GB every 4 minutes or so.  I AM caching queries  query_cache_type = 1 query_cache_limit = 8M query_cache_size = 512M   I was able to temporarily fix the issue by setting  max_allowed_packet = 16M   Then I installed  and checked queries on homepage. Debug Bar tells me there are 729 queries!  The slow ones are:  SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'      require('wp-blog-header.php'), require_once('wp-load.php'),   require_once('wp-config.php'), require_once('wp-settings.php'),   wp_not_installed, is_blog_installed, wp_load_alloptions #1   7.5ms  UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles'      require('wp-blog-header.php'),   require_once('wp-includes/template-loader.php'),   include('/themes/weaver-ii-pro/page.php'), weaverii_get_header,   get_header, locate_template, load_template,   require_once('/themes/weaver-ii-pro/header.php'), wp_title,   apply_filters('wp_title'), call_user_func_array,   WPSEO_Frontend->title, apply_filters('wpseo_title'),   call_user_func_array, WPSEO_Frontend->title_test_helper, update_option   55.0ms  UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles'      require('wp-blog-header.php'),   require_once('wp-includes/template-loader.php'),   include('/themes/weaver-ii-pro/page.php'), weaverii_get_header,   get_header, locate_template, load_template,   require_once('/themes/weaver-ii-pro/header.php'), wp_head,   do_action('wp_head'), call_user_func_array,   Facebook_Open_Graph_Protocol::add_og_protocol,   apply_filters('fb_meta_tags'), call_user_func_array,   WPSEO_OpenGraph->facebook_filter, WPSEO_OpenGraph->og_title,   WPSEO_Frontend->title, apply_filters('wpseo_title'),   call_user_func_array, WPSEO_Frontend->title_test_helper, update_option   56.4ms  UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles'      require('wp-blog-header.php'),   require_once('wp-includes/template-loader.php'),   include('/themes/weaver-ii-pro/page.php'), weaverii_get_footer,   get_footer, locate_template, load_template,   require_once('/themes/weaver-ii-pro/footer.php'), wp_footer,   do_action('wp_footer'), call_user_func_array,   WPSEO_Frontend->flush_cache, WPSEO_Frontend->title,   apply_filters('wpseo_title'), call_user_func_array,   WPSEO_Frontend->title_test_helper, update_option   56.0ms  SELECT option_value FROM wp_options WHERE option_name = 'dismissed_update_core' LIMIT 1      require('wp-blog-header.php'),   require_once('wp-includes/template-loader.php'),   include('/themes/weaver-ii-pro/page.php'), weaverii_get_footer,   get_footer, locate_template, load_template,   require_once('/themes/weaver-ii-pro/footer.php'), wp_footer,   do_action('wp_footer'), call_user_func_array, wp_admin_bar_render,   do_action_ref_array, call_user_func_array, wp_admin_bar_updates_menu,   wp_get_update_data, get_core_updates, get_site_option, get_option   9.6ms  I do have lots (~50) plugins installed, and I use  theme. Most of these plugins are essential to get what I need out of WordPress (I use WordPress as a CMS). This is a live install so I can't really disable everything and then enable one by one to see what's breaking things (if not core). Is there another way to figure out the problem by looking at the Debug Bar's output?


"he leaves for New York tomorrow". vs. "he will leave for New York tomorrow"

Which one is grammatically  correct?      I don't know when he leaves for New York tomorrow.   or      I don't know when he will leave for New York tomorrow   Is it correct to use the future form of the verb leave and the  word  tomorrow in one sentence?


How to share laptop wired internet with android 6 smartphone using ubuntu 14 wifi


Gaussian integral with a shift in the complex plane

$$ \int_{-\infty}^\infty e^{-(x+ia)^2} \text{d}x $$  where $a\in \mathbb{R}$.  I don't know where to start but have reasons to believe the answer is $\sqrt{\pi}$. Namely $\int_{-\infty}^\infty e^{-x^2} \text{d}x$. Problem is I feel insecure performing changes of variables when suddenly the variables range in $\mathbb{C}$. I don't even know if this can be done properly, least of all how.


Okay - I'm quite new to Stack Overflow (et.all). Is there a way to search for the questions/answers marked community wiki?  I don't always know what I'm looking for - sometimes I'm just lurking to get new insight, and many of the posts, I've stumbled upon so far marked community wiki have been great, so for me it would make great sense to find all community wiki posts for a given Tag.  Make sense?


How did Mello know about the fake notebook in Death Note?

I've read a lot of posts explaining the ending to Death Note, but they gloss over how Mello realizes the notebook Mikami used was fake. I don't think the anime mentioned it specifically either?


Is this person doing illegal money transfers?

This girl that I'm friends with and have actually seen in person before, keeps posting [on social media] that she "loves when the transfer goes through" and gets $2000-$6000 for free quite often. She said you can make up to $6500 a day. She is not very smart and barely spells correctly. She keeps saying that all she is doing is "transfers" and that's it. So many of my friends are feeding into this crap. So I asked her what it is. She basically said "it's legit" and asked me for my bank username and password so she could see how much money to deposit into my account. I said no way and left it at that. She also said she is not stealing or doing anything illegal. She is getting her friends free money and I think they're naive. What is she actually doing? Is it illegal? I am sure she is incapable of doing crazy money wiring to different countries.   Thank you everyone for answering my question. I am not stupid, I did not give her my information. I knew she was up to something illegal, so thank you for giving me some input on what exactly she is doing. I submitted an anonymous tip to my local sheriff's department. I'm hoping they see it and pursue it, or forward it to the right authorities I.e the FBI or something.


Is it possible to get the Tux logo on the text-based boot?

On Knoppix-based distros, you get a nice Tux logo on the left of the screen during text boot. Is this possible to get on Ubuntu?


Proving that $\left( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} \right) \lvert f(z) \rvert^2 = 4 \lvert f'(z) \rvert^2$

Given $f$ entire show that $$ \left( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} \right) \lvert f(z) \rvert^2 = 4 \lvert f'(z) \rvert^2 $$ I've come close to getting the exact answer by writing $f(z)$ as $u(x,y)+iv(x,y)$ and realizing the Laplacian of f is equal to zero. This leads to a lot of cancellations but I'm still making mistakes in my computations and I can't figure out where. Any help is appreciated.


Python's  module lets you search for files matching a particular pattern. For example glob.glob("*.jpg") would list all jpegs in the working directory.  A more complex example using the double asterisk ** syntax to search all subfolders of 'pics' for cat photos:  glob.glob("pics/**/*cat*.jpg", recursive=True)   Is there any similar function in .NET?


panel data - within-group estimate - individual fixed effects retrieved

I am analyzing panel data.  First, I have to decide whether to use a random or fixed effect estimator. The Hausman test suggests to use the fixed effect estimator (also named within group estimator). Thus, this is what I am using. However, this method eliminates the individual fixed effects, that is, the Ui's, which is what I am more interested about. Hence, I proceed with a second step.  Second, I run a between-group estimator where I regress the predicted individual effects, that is the Ui's predicted from the first step, against a list of time invariant fixed effects I am interested in  My questions are three:   I was taught this two-step method in a graduate summer course, and no book I have read mentions it, do you know what is its name? Is it meaningful to cluster the standard errors on individuals in the first step? (i.e. within-group estimator)  Is it meaningful to use a variable both as a covariate and as cluster for the standard error in the same model?


Ubuntu 18.04 apparantly offline? and yet I can browse fine

So I got this VM up and running with Plex andNextcloud a while ago but I've not been happy with the plex performance so I wanted to move it from a snap install to a regular install but apparantly I can't install plexmediaserver because I'm offline??  Makes no sense to me - I can use the browser just fine as well as run apt updates and still access my nextcloud and plex installs  Anyone have any ideas?   my network icon in the top left says "wired unmanaged" and has a little x in the bottom right of the icon and if I click connect in the drop-dwon nothing happens...


Link/merge pictures folder across all users?

What I want to do is link/merge folders. The two folders I want to combine are  /home/user1/Pictures  /home/user2/Pictures   I want all these family photos to be stored in a single location and be easily accessible from every user account. I tried the ln command but it didn't work because owners of both folders are different, so there's no access permission via the symlink.


If I buy the Destiny Legendary Edition, will my original game data be ignored/overwritten?

I'm a year one Destiny player; I bought The Dark Below, House of Wolves, and I'm thinking about buying the Legendary Edition. My only concern is that I'm not sure if the data from my original Destiny game would be overwritten or ignored by the Legendary Edition. Would it create its own save files like a completely different game? I don't want to get Legendary if that's the case, because all of my items would be completely gone, along with god knows how much play time.


Apex JSON.serialize() with null values (RELOADED)

I need to serialize a list of SObject without omission null values. This string I need for a later usage in JavaScript. Structure is crucial, because I need to construct a table out of it. The structure is very dynamic. Different SObjects may lead to different fields and therefore different columns. Missing values will corrupt all the output and are unacceptable.  As it stands, in current versions JSON.serialize() will not output null values. There are already some questions about this raised, but either the answers there are incorrect or I'm doing something wrong to apply them right:       As far as I understand, Apex version 28.0 and newer should have no null values and version 27.0 and older should have them. But I can't make it work. There was an issue that the JSON.serialized() was not versioned right but as to  it should be working now.   So I've created this helper-class:  public class elfApi27 {      public static string dump0(Object o) {         return system.JSON.serializePretty(o);      } }   Setting the version like this in the xml  <?xml version="1.0" encoding="UTF-8"?> <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">     <apiVersion>27.0</apiVersion>     <status>Active</status> </ApexClass>   tested it via execute anonymous like this (consider xl.log as system.debug)  Account a = new Account(name='test'); xt.log( elfApi27.dump0(a) );   I have tried all the versions from 32.0 down to 24.0 but the output stays rock-solid like this:  DB Callout Profile Code Escape   32.0 APEX_CODE,WARN;APEX_PROFILING,WARN;CALLOUT,WARN;DB,WARN;SYSTEM,WARN 19:09:02.119 (119823175)|EXECUTION_STARTED 19:09:02.119 (119833395)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex 19:09:02.132 (132802344)|USER_DEBUG|[230]|WARN|"{    "attributes" : {       "type" : "Account"    },    "Name" : "test" }" 19:09:02.132 (132848199)|CODE_UNIT_FINISHED|execute_anonymous_apex 19:09:02.134 (134336841)|EXECUTION_FINISHED    Am I misinterpreting the answers?  Is there any way to have a full verbose serialization of objects?


Is the scheme for generating $\displaystyle p_n=\left(\frac{1}{3}\right)^n$ stable?  $\displaystyle p_{n} = \frac{5}{6} p_{n-1} - \frac{1}{6} p_{n-2}$


How can I search tags on StackOverflow Careers?

I am attempting to search jobs by tag on StackOverflow Careers. On SO, this is done using square brackets, but that is simply doing a keyword search, and I still get results that don't have the tag I am looking for.  For example, when I search for the keyword "android", I get this:        which is the same as when I search for the keyword "[android]":        Is there a format I can use to search jobs by tag? If not, I believe this would be a nice feature (seems intuitive for the Stack Exchange invite-only job site).


How to copy all files of a certain type into a folder from command prompt?

I want to copy all files of a certain type (like .docx, .pdf, etc) on my PC into a folder. How can I do that?


Dependency issue on installing gstreamer on Ubuntu 18.04

I recently upgraded to Ubuntu 18.04 and the DVD player stopped working. After some research I was trying to reinstall gstreamer but I ran into an issue that seems related to Ubuntu 18.04 and that is beyond my understanding. Here is the output of the command:  $ sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav Reading package lists... Done Building dependency tree       Reading state information... Done gstreamer1.0-plugins-base is already the newest version (1.14.1-1ubuntu1~ubuntu18.04.1). gstreamer1.0-plugins-base set to manually installed. gstreamer1.0-libav is already the newest version (1.14.1-1~ubuntu18.04.1). gstreamer1.0-tools is already the newest version (1.14.1-1~ubuntu18.04.1). gstreamer1.0-tools set to manually installed. gstreamer1.0-plugins-ugly is already the newest version (1.14.1-1~ubuntu18.04.1). gstreamer1.0-plugins-good is already the newest version (1.14.1-1ubuntu1~ubuntu18.04.1). gstreamer1.0-plugins-good set to manually installed. gstreamer1.0-alsa is already the newest version (1.14.1-1ubuntu1~ubuntu18.04.1). gstreamer1.0-alsa set to manually installed. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  gstreamer1.0-plugins-bad : Depends: libgstreamer-plugins-bad1.0-0 (= 1.14.0-1ubuntu1) but 1.14.1-1ubuntu1~ubuntu18.04.1 is to be installed E: Unable to correct problems, you have held broken packages.   Any help is really appreciated (in particular by the kids :) )


Why increasing lambda parameter in L2-regularization makes the co-efficient values converge to zero?   I have just tried to do the math, but it's a little bit rusted.  Lets say that we have a simple linear model as follows:  $y=w_1\cdot x$  we could write the cost function for ridge regression is to be minimized:   $cost(\hat{w_1}, \lambda)= (y - \hat{w_1} \cdot x)^2 + \lambda \cdot \hat{w_1}^2$  it means that if we consider the problem as min-max:  $\frac{\hat{dw_1}}{dc} = -2 \cdot x \cdot (y -  \hat{w_1}) + 2\cdot \lambda \cdot \hat{w_1} = 0$ so,   $y = (1 + \frac{\lambda}{x}) \cdot \hat{w_1}$  Since the y and x are invariants, it is to be expected increasing $\lambda$ make the co-efficient decrease as the equation holds.   Is that the right way to reason?


How does the 'passwd' command gain root user permissions?

How does Linux know that it has to give euid 0 (uid of root) to only certain process like passwd, setuid, etc.  If a process can gain root permissions, will it not lead to potential security breaches in the Linux platform?   For example, if I write a program that can can gain root user permissions like passwd, I may corrupt important system files like /etc/passwd, /etc/groups.   How does Linux manage to still be secure?


Show that if $a_n$ is descending and $ \sum a_n$ is convergent then $na_n\to 0$

Show that if $a_n$ is descending and $\sum a_n$ is convergent then $na_n \to 0$.  Does $\sum a_n$ have to be convergent?  I see that, but I can't prove it. I think that it need not to be convergent, but i also can't prove it.


I've found a candy box, but I can't open it. What do I need to do? Does it have anything to do with throwing candy on the ground?


Attempt to invoke virtual method 'java.lang.String on a null object reference

I working with an app but I have a problem. When I press the back button my app crashes and gives me Null Pointer Exception error. I have a list view with some data from api where I used retrofit2 to call them. Everything works fine except the back button. Here is what I did: My adapter  private Context context; private Industry industries;  public IndustryAdapter(Context context, Industry industries) {     this.industries = industries;     this.context = context; }  @Override public int getCount() {     return 1; }  @Override public Object getItem(int position) {     return 1; }  @Override public long getItemId(int position) {     return 0; }  @Override public View getView(int position, View convertView, ViewGroup parent) {     if (convertView == null) {         LayoutInflater inflater = ((Activity) context).getLayoutInflater();          convertView = inflater.inflate(R.layout.row_item, parent, false);     }      TextView tvName = (TextView)convertView.findViewById(R.id.tvName);     TextView tvDescription = (TextView)convertView.findViewById(R.id.tvDescription);      String name = industries.getName();     //industries.setName(name);     String descr = industries.getDescription();     //industries.setDescription(descr);      tvName.setText(name);     tvDescription.setText(descr);      return convertView; }   and in my activity I have this  CompaniesRetriver companiesRetriver = new CompaniesRetriver();     this.recyclerView = (RecyclerView) findViewById(R.id.companies_list);     SharedPreferences editor = getSharedPreferences(MY_PREFERENCE, MODE_PRIVATE);     String token = editor.getString("token", "");     final Context sfdsf = this;     Callback<Companies> callback = new Callback<Companies>() {         @Override         public void onResponse(Call<Companies> call, Response<Companies> response) {             progressBar.dismiss();             if(response.isSuccessful()) {                 progressBar.dismiss();                 Companies companies = response.body();                 CompanyAdapter adapter = new CompanyAdapter(CompaniesListActivity.this, companies);                 recyclerView.setLayoutManager(new LinearLayoutManager(CompaniesListActivity.this));                 recyclerView.setAdapter(adapter);                 System.out.println(companies);             } else {                 System.out.println(response.body());             }         }          @Override         public void onFailure(Call<Companies> call, Throwable t) {             progressBar.dismiss();             System.out.println(t.getLocalizedMessage());         }     };      companiesRetriver.getCompanies(callback, token);   My Log:   java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String al.sqmo.model.Industry.getName()' on a null object reference   my POJO class  @SerializedName("name")     private String  name;     @SerializedName("id")     private int  id;     @SerializedName("description")     private String description;      public Industry(String description, String name, int id) {         this.description = description;         this.name = name;         this.id = id;     }      public String getDescription() {         return description;     }      public void setDescription(String description) {         this.description = description;     }      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }      public int getId() {         return id;     }      public void setId(int id) {         this.id = id;     }   Any help is appreciated!


Using the Texture Coordinate node, the Camera output almost does it, but there are some weird seams that form:   .  The Window output works better, but it squishes it based on the width height ratio. The "solution" provided in another  is not exactly good.  Node setup:


Is the correct to say      A pack of wolves run through the woods   or is the correct English     A pack of wolves runs through the woods   The former sounds right. However, I think the subject is a pack and of wolves adds a description to the subject. In this case the subject is singular, so therefore the verb must be singular.   Am I correct? It just doesn't feel right.


What is an example of a transformation on a posterior distribution such that the MAP estimate will be non-invariant?

Suppose that we have a posterior distribution $p(\theta\mid y)$ and we wish to define a transformation on $\theta$ such that $\phi = f(\theta)$. I know that generally such transformations will not affect the MLE as it is on the data space, but will result in non-invariance on the Maximum A Posteriori (MAP) estimate as it is a function of the parameter space. I am wondering if there is an example to illustrate this? Thanks.


Eigenvalues of Infinite Dimensional Matrix

If I take a infinite-dimensional square matrix, what can I say about its eigenvalue spectrum? Will they have a discrete infinity of eigenvalues or continuous infinity of them?


Calculate limit of $(1 + \frac{1}{n^2})^n$

How to calculate   $$ \lim_{n \to \infty}\left(1 + \frac{1}{n^2}\right)^n $$  using only the very basic limit features (I cannot use the fact that it equals to $e^0 = 1$)?


What did my neural network just learn? What features does it care about and why?

A neural net learns features of a data set as a means of achieving some goal.  When it is done, we may want to know what the neural net learned.  What were the features and why did it care about those.  Can someone give some references on the body of work that concerns this problem?


What is the difference and/or similarity between multiple universes in inflation and in quantumphysics?

Some theories propose that there are .   In one of them it is said that there are parallel universes, due to inflations after the big bang that created them.  But in the two-slit experiment is also known the multiverses theorie. The probability wave is not collapsing but each possibility is creating a universe on his own.  So they both speak about other universes. But is there a link between them? Or are that just completely different things/theories?


DataView.Sort - more than just asc/desc (need custom sort)

I've got a report being built from a dataset. The dataset uses the Sort property to order the data. I know that I can create a sort expression like this:  "field desc, field2 asc"  But what I need now is a way to do a custom sort. In SQL, I can perform a custom sort by doing something like this:  order by      case when field = 'Some Value' then 0 end     case when field = 'Another Value' then 1 end   To basically re-define my sort (i.e, Some Value comes before Another Value).  Is it possible to do something similar as a sort expression against a DataView?


I've installed Xubuntu 14 on my laptop. But now the laptop cannot detect the windows installation disc. When I put in the disc and restart, nothing changed; it still went directly into Xubuntu without any option. I'm sure nothing is wrong with BIOS since I have checked it many times. When I insert Ubuntu installation disc and restart, it shows the options perfectly. What should I do in order to install windows on my laptop?


Android Studio: App is crashing after running it on my smartphone

On every app start there is a error message on my phone: "The Application was ended, sorry". What can I do now? I already searched the web and I tried to solve it, but I didn't found a answer.  This is my logcat output:     FATAL EXCEPTION: main Process: mycompany.kopfrechnenti1907_1839, PID: 524 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{mycompany.kopfrechnenti1907_1839/mycompany.kopfrechnenti1907_1839.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2363)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)   at android.app.ActivityThread.access$900(ActivityThread.java:158)   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)   at android.os.Handler.dispatchMessage(Handler.java:102)   at android.os.Looper.loop(Looper.java:148)   at android.app.ActivityThread.main(ActivityThread.java:5521)   at java.lang.reflect.Method.invoke(Native Method)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:666) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference   at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:120)   at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:155)   at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:31)   at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:55)   at android.support.v7.app.AppCompatDelegateImplV23.<init>(AppCompatDelegateImplV23.java:33)   at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:203)   at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:185)   at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:519)   at android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:190)   at mycompany.kopfrechnenti1907_1839.MainActivity.<init>(MainActivity.java:10)   at java.lang.Class.newInstance(Native Method)   at android.app.Instrumentation.newActivity(Instrumentation.java:1069)   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2353)   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)    at android.app.ActivityThread.access$900(ActivityThread.java:158)    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)    at android.os.Handler.dispatchMessage(Handler.java:102)    at android.os.Looper.loop(Looper.java:148)    at android.app.ActivityThread.main(ActivityThread.java:5521)    at java.lang.reflect.Method.invoke(Native Method)       import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.RatingBar; import android.widget.Button;  public class MainActivity extends AppCompatActivity {      Button btnplus = (Button)findViewById(R.id.btnplus);     RatingBar ratingbar = (RatingBar)findViewById(R.id.ratingBar);       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     }      public void plusonclick()     {         if (ratingbar.getRating() == 1)         {             setContentView(R.layout.activity_plusrechnenlvl1);         }     }  }   My English skills are not the best, but I hope you can understand me :)  Thank you very much!  Jul


Can I use a 3.5 A charger for a 2.0 A spec’d notebook?

As per specifications, my MSI notebook requires a 20 V / 2.0 A charger. Unfortunately, they are hard to find.  Can I use a 20 V / 3.5 A charger without damaging my notebook?


I just posted . After posting it, I got the "error loading question" message. When I tried to open the question from the Active questions list, I got the same error.  After posting this question, it worked fine and the previous question is now accessible as well.


Why this positive lookahead regex 'string.*?(?= )' doesn't work in sed?

I have a long list of something like:  AllowedUsers aaaa01@11.22.33.44 aaaa03@11.22.55.77 bbbb11@99.99.99.99 ccc00@11.0.0.11 .....   all in single line. Basically it's bunch of username@ip  I wanted to do a find and replace just by using its username (e.g. aaa) and replace it with nothing.  I tested my regex () and it works as I expected. But when I try to do it on sed, it didn't work.  $ sed 's/bbbb11.*?(?= )//' test AllowedUsers aaaa01@11.22.33.44 aaaa03@11.22.55.77 bbbb11@99.99.99.99 ccc00@11.0.0.11 .....   I also tried using bbbb11.*?(?=[[:space:]]), it didn't work either.  Did I miss something?


Get car loan w/ part time job as student with no credit, no-cosigner but no expenses

This is the only place where I knew to turn for a question like this. I am a student (if that will make me look better to the loan officers), but I'm fairly certain I have no credit. I took out a secured credit card and have been playing with that for that sole purpose but I am unsure if it's come to fruition yet.  I can close $800/mo confirmed income as I work part time, however I have no expenses as I live at home. I have no co-signer as I am on my own with this one.   I really need a vehicle that is attractive and comfortable (sedan) to transport people in. I want to enter a career and that is pretty much a requirement unfortunately. I'm looking at a specific make and model at $10-11k which I am sure can be brought down to $9-10k with some haggling.  My question is, will I be able to get financing whether through a dealer's connections or through a bank? I was told by someone that I should get approved without a co-signer simply because I have no actual expenses to speak of so that's pure cash (after taxes of course) rolling my way to put towards the loan.  So is there anyway to get this done? And is it likely to get approved? I don't want to go to the dealership and then be told no, that would be as disheartening as it can get for me.  Again, I'm not sure where else I could ask a question like this. If it is inappropriate, please direct me to a site or multiple sites to post this at as it's something I have been researching for a very long time but cannot find existing answers from people in a similar situation.


Where do I find username & password for newly installed 14.04 LTS

I have just installed ubuntu 14.04 LTS and it is asking for a username and password.  I don't have one.  What do I do please? ctrl alt delete does not work neither does ctrl alt t


Show that $L^1$ is strictly contained in $(L^\infty)^*$

How does one show that $L^1$  is strictly contained in $(L^\infty)^*$? Here, $(L^\infty)^*$ is the space of linear continuous functionals on $L^\infty$.


Prove that a real polynomial $x^n+ a_1x^{n-1}+ \cdots a_n$ cannot be completely resolved into linear factors if $a_1^2<a_2$.

Here's what I've got. Let $\alpha_1, \cdots \alpha_n$ be the roots of the polynomial. Then $\displaystyle{a_1^2-a_2=(\alpha_1+ \cdots +\alpha_n)^2 - \sum_{k,j \leq n; k \neq j}\alpha_{j}\alpha_{k} = \alpha_1^2+ \cdots \alpha_n^2 + \sum_{k,j \leq n; k \neq j}\alpha_{j}\alpha_{k}}$, but I have no idea how to prove this nonnegative. Please help.


What are the general solutions to a hard sphere collision?

Surely someone has found the solutions to the hard sphere collisions (in $n$ dimensions) of two bodies of mass $m_1$ and $m_2$, respectively--that is the resultant velocities (or momenta) of the two bodies after a hard sphere collision given $\vec{p}_1$ and $\vec{p}_2$.  I have a solution (both for elastic and inelastic collisions), but I wonder whether or not it's correct. FYI, here are my solutions for elastic, hard-sphere collisions: $$ \vec{p}_{1f} = \vec{p}_1 + 2\frac{\left(m_1\vec{p}_2 - m_2\vec{p}_1\right)\circ \hat{r}}{m_1 + m_2}\hat{r}, \\ \vec{p}_{2f} = \vec{p}_2 - 2\frac{\left(m_1\vec{p}_2 - m_2\vec{p}_1\right)\circ \hat{r}}{m_1 + m_2}\hat{r}. $$ wher $\hat{r}$ is in the direction of the "hard sphere" (i.e. the unit vector connecting the two centers of the two spheres).  You can see that my formulation trivially conserved momentum--the question is whether or not it conserves energy as well. If it helps, here is my .  For these purposes, you should skip to the section on n-dimensional cases (page 6).  I wrote this as a reference to myself for doing physics simulations since I could not find any reference on hard sphere collisions (other than references setting up the problem which give no solutions). Here is an abbreviated work on finding the final momenta from the elastic case: Just as in the $1$D case, we add and subtract the same momentum from each particle--except now we are adding and subtracting a vector: $\vec{p} = p\hat{r}$, which means that $|\vec{p}| = p$ (such that $\vec{p}_{1f} = \vec{p}_1 + p\hat{r}$ and $\vec{p}_{2f} = \vec{p}_2 - p\hat{r}$).  This gives the final energy as: \begin{align} E_f = \frac{|\vec{p}_1 + p\hat{r}|^2}{2m_1} + \frac{|\vec{p_2} - p\hat{r}|^2} {2m_2} \end{align} We now write the final energy in terms of the magnitude of $p$ and the dot product between $\hat{r}$ and $\vec{p}_1$ and likewise for $\vec{p}_2$.  Note that if you choose the direction for $\vec{p}$ to act a priori (like in the hard-sphere case), the dot products $\vec{p}_1\cdot \hat{r}$ and $\vec{p}_2\cdot\hat{r}$ will be known: \begin{align*} E_f = \frac{p_1^2 + p^2 + 2p\hat{r}\circ\vec{p}_1}{2m_1} + \frac{p_2^2 + p^2 -  2p\hat{r}\circ\vec{p}_2}{2m_2} \end{align*} As usual the elastic case greatly simplifies: \begin{align*} \require{cancel} \cancel{\frac{p_1^2}{2m_1}} + \cancel{\frac{p_2^2}{2m_1}}= \frac{\cancel{p_1^2} + p^2 + 2p\hat{r}\circ\vec{p}_1}{2m_1} + \frac{\cancel{p_2^2} + p^2 -  2p\hat{r}\circ\vec{p}_2}{2m_2} \\ \frac{m_1 + m_2}{2m_1m_2}p^2 - 2\frac{m_1 \vec{p}_2\circ\hat{r} -  m_2\vec{p}_1\circ\hat{r}}{2m_1m_2}p = 0 \end{align*} This leads to a trivial solution of $p = 0$ (no collision occurs) and: \begin{align} \frac{m_1 + m_2}{2m_1m_2}p - 2\frac{m_1 \vec{p}_2\circ\hat{r} -  m_2\vec{p}_1\circ\hat{r}}{2m_1m_2} = 0 \\ p = 2\frac{m_1 \vec{p}_2\circ\hat{r} -  m_2\vec{p}_1\circ\hat{r}}{m_1 + m_2} \end{align} Hence my solutions of: $$ \vec{p}_{1f} = \vec{p}_1 + 2\frac{\left(m_1\vec{p}_2 - m_2\vec{p}_1\right)\circ \hat{r}}{m_1 + m_2}\hat{r}, \\ \vec{p}_{2f} = \vec{p}_2 - 2\frac{\left(m_1\vec{p}_2 - m_2\vec{p}_1\right)\circ \hat{r}}{m_1 + m_2}\hat{r}. $$


Why does Blogspot website not get indexed in google?

I created a blogspot website few days back and even published a blog over there, but it is not indexed yet. What may be the reasons. I am 10 years old and a newbie here. So can anyone help me with my website being indexed? Website Link: