Please consider gathering Meta feedback before the "ship" stage

The blog post  sheds a little light on how the current process for making changes on Stack Exchange works.  Today, our research process might look something like this for a high-impact, high-cost project.     What's our current research approach? Strategy (Survey; User interview; Comparative site analysis; Historical context research; Data analysis), Design (User interviews), Build (User interviews), Ship (Survey; A/B tests; Meta feedback)  And later on it says:  Meta feedback. We monitor Meta for bug reports and small usability/copy issues after shipping changes to the site.  Now, as was mentioned in the blog post, this is a marked departure from how things worked in the past.   What was our past research approach? Strategy (Meta feedback), Design (Meta feedback), Build (Meta feedback), Ship (Experiments)  Before, every stage of the process was simply "Meta feedback". Now, the Meta feedback has been relegated to... bug reports and usability issues. Please consider gathering Meta feedback earlier in the process. Meta feedback is important.  Now, as an avid Meta user, I may be biased. However, Meta represents the most engaged users - the ones who have been here for years in most cases, often current or former moderators on the network, and those who are, most importantly, the ones that the site most heavily relies on for moderation. Meta feedback represents the feedback of those most engaged users. The feedback of your most engaged users, especially on a "high impact" project, is important. Those users are in the best position to tell you how it well affect their use of the site as someone who uses it very regularly, and they may let you know about something that is very important to them but less so to other people. I'm thinking of cases such as the incident where the Worldbuilding.SE robot, Slartibotfast, was going to be removed due to the design changes to the site. Due to  from those most invested in the community, the robot was saved and an important part of the site identity was preserved. Journeyman Geek put it nicely in :  I'd also like to point out that, well, the designer is not going to have the same grasp of a site's "uniqueness" as someone who has been on it a while will have.  As I mentioned before, this is a marked departure from how SE worked in the past. You are taking a group who has, for ten years+, been deeply involved in every stage of a change, and suddenly telling them "you're only giving feedback after it's done and we won't be making any big changes because of your feedback. Sorry!"  That's not going to go over well. Especially in the current climate of the community having broadly lost trust in the company, removing their feedback from any changes is only going to serve to further deteriorate any remaining trust.  On the other hand, including them in the process and working with the community will massively help improve trust and relations between the engaged community and the company. We, the Meta community, are the people most invested in these sites. The way our feedback is treated should reflect that. Please consider gathering Meta feedback earlier in the process for making "high-impact" changes.


What determines whether you can open an attribute table inqGIS?. I'd like to edit an attribute table for a raster in qGIS, but it won't me open the table. There's plenty in the help about editing attribute tables, but it doesn't say when you can/can't open them


I can't save the preferred domain in Webmaster Tools

I just want to save my preferred domain as www.example.com in Webmaster Tools but it simply shows the following error message:     Part of the process of setting a preferred domain is to verify that   you own http://example.com/. Please verify http://example.com/.   I can't save the setting, any idea why this is happening?  Note: I already verified the www version, I have no idea to verify the no-www version.


CHECK: Let a and b be relatively prime integers. Show that $\gcd(a^2+b^2,a+b)=$1 or 2

Let a and b be relatively prime integers. Show that $\gcd(a^2+b^2,a+b)=$1 or 2  Proof: $s|a^2+b^2$ and $s|a+b$ implies $s|a^2+b^2$ and $s|(a+b)^2=a^2+b^2+2ab$ implies $s|a^2+b^2-(a+b)^2=2ab$ implies $s|2a$ and $s|2b$ implies $s|\gcd(2a,2b)=2gcd(a,b)=2*1$  Hence $\gcd(a^2+b^2,a+b)=1 or 2$


I wonder why depth of field occur in the first place. This is not a question about what changes the effect/size of field. We all know that.  Aperture, Focal Length, Focus Length (distance to subject), sensor size.  But why it happens in the first place?  When we think of pinhole cameras (camera obscura), and when we widen the pinhole, the image that drops to surface will be blurred, and we all know that hole is replaced by aperture on lenses.  Yet this still does not give a proven, explained reason of it.  Any ideas?


How can slightly blurred photos be improved in post processing?

I have heard quotes which say "If its not good, delete it."  I go by that advice, but sometimes you capture some precious moment but you see that photo is slightly blurred because of camera shake. I don't have an IS lens, and it's too late to somehow do it over.  What best one can do in post processing to improve the quality of the picture?  Ideally, I'd like to use Gimp or Picassa for this.  Edit: I came across a video regarding this -


Multiline subscripts in summation notation

\documentclass{amsart} \begin{document} \[ \prod_{k=0,\ k\neq i}^{n} \frac{x-c_{k}}{c_{i}-c_{k}} \] \end{document}   I would like to make the k \neq i, which is next to k=0, parallel to k = 0. I tried \\, \limits, and \begin{align*} ... \end{align*}, but somehow I did not get the desired result out of the actions.


When muggles are invited to Hogwarts, how come other muggles don't find out about the wizard life?

When our children are admitted to a special or private school, it is likely that our family members, friends etc will come to know about it. Why is this not true with Muggleborn wizards? When Muggleborns go off to an unknown school, and live a secretive life (for example, marrying another wizard), why don't the people around them know about this?   I suppose data on every individual is collected by the authorities of each country. Some of the Muggles know about witches and wizards, and wizards cannot be everywhere all the time to make sure that the Muggles aren't continuously sharing what they know about wizards with the other Muggles.   How do wizards make sure information about the Wizarding World is not revealed by Muggles?


What is the importance of silent letters in English language?

How did the usage of silent letters came into being? For example : what is the use of 'k' in knife or 'p' in pneumonia ?


Trying to download an audio from youtube.  youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=ILSr9BbhoJQ [youtube] ILSr9BbhoJQ: Downloading webpage [youtube] ILSr9BbhoJQ: Downloading video info webpage ERROR: ILSr9BbhoJQ: "token" parameter not in video info for unknown reason; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.   Then I did this.  sudo apt-get remove youtube-dl sudo mkdir -pv /usr/local/bin sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl   andy@7_~/Downloads$ youtube-dl -U bash: /usr/bin/youtube-dl: No such file or directory   youtube-dl is in /usr/bin directory.


Is there a geometrical definition of a tangent line?

Calculus books often give the "secant through two points coming closer together" description to give some intuition for tangent lines. They then say that the tangent line is what the curve "looks like" at that point, or that it's the "best approximation" to the curve at that point, and just take it for granted that (1) it's obvious what that means, and (2) that it's visually obvious that such statements are true.  To be fair, it's true that (1) I can sort of see what they mean, and (2) yes, I do have some visual intuition that something like that is correct. But I can't put into words what exactly a tangent line is, all I have is either the formal definition or this unsatisfying vague sense that a tangent "just touches the curve".  Is there a purely geometrical definition of a tangent line to a curve? Something without coordinates or functions, like an ancient Greek might have stated it. As an example, "A line that passes through the curve but does not cut it" is exactly the kind of thing I want, but of course it doesn't work for all curves at all points.


Questions are misaligned when I visit a question from a comment link

This one's a bit weird. Any time I view a question through a direct link to one of its comments (Whether through an inbox notification, an outside link, or just clicking the time on a comment on a page I'm already on), the page loads up with the title whole content area (answers, vote buttons, sidebar and all) aligned weirdly. Once I reload the page through any other link (and thus get rid of the #comment bit), it looks good again.    System Info: Win7, IE11, no toolbars, no add-ons, no userscripts, etc.


Generate identically distributed dependent normal random numbers with prespecified sum

How do I generate $n$ identically distributed but not independent normal random numbers such that their sum falls within a prespecified interval $[a,b]$ with probability $p$?  (This question is motivated by generating a random walk that ends up at a prespecified point: . Since a continuous random variable has zero probability of reaching an exact number, we do the second best thing and ask for an entire interval to end up in.)    EDIT:  has been proposed as a duplicate, which in turn is closed as a duplicate of . I agree that both of these are helpful. However, the point of the current question (more specifically, of the answer) is to first figure out that we can use a multivariate normal distribution to address the question, and second, what kind of covariance matrix works. How to sample from a distribution with that covariance is a third step, where the linked threads are helpful.


how should i divide a 100GB for ubuntu installation, if i want to have more space in partition where all the softwares, etc. will be installed?

I'm dual booting window with Ubuntu and i have 100 gigabits free space for Ubuntu installation. How much space should i give to /root, /home, /swap, /user, etc. If i want a large space for software and other packages installation and appropriate space for some music files, etc? My system has 4 gigabits of ram.  I had installed it before on another system and gave it 30 gigabits of space with /root having 10 gigabits but it get filled after 2-3 days and now i'm installing it again so want some help to part the space.  If anyone can tell me exact space i should give to the partitions given in the link below:-   under manual partitioning.


What is Windows command to convert machine name to ip address and vice versa?

I need to know the ip address of another machine in a lan network.  What is the Windows command for getting ip address from machine name and vice versa?


If you fold a rectangular piece of paper in half and the resulting     rectangles have the same aspect ratio as the original rectangle,     then what is the aspect ratio of the rectangles?


How to find out the maximum radius of a hole that can keep water stay in a container by water viscosity?

Assume I have a inverse cone which holds 200ml water. I am going to cut the tip of the cone to create a small hole. How to calculate the maximum radius of the hole that the water will still stay in the container?


Does a sum or product symbol, $\Sigma$ or $\Pi$, imply an ordering?  Clearly if $\mathbf{x}_i$ is a matrix then:  $$\prod_{i=0}^{n} \mathbf{x}_i$$  depends on the order of the multiplication. But, even if one accepts that it has a sequence, it is not clear if it should mean $\mathbf{x}_0\mathbf{x}_1 \cdots \mathbf{x}_{n-1}\mathbf{x}_n$ or $\mathbf{x}_n\mathbf{x}_{n-1} \cdots \mathbf{x}_{1}\mathbf{x}_0$.  A similar question, is there a "big" wedge product convention?  $$\overset{n}{\underset{i=0}{\Huge\wedge}} \;{}^{\Large{\mathbf{x}_i} \;=\; \mathbf{x}_0 \wedge \mathbf{x}_1 \;\cdots \mathbf{x}_{n-1}\; \wedge \mathbf{x}_{n}} $$


Can I combine the results from multiple columns into a single column without UNION?

I have a table with several columns which I want to SELECT:  SELECT his_name , her_name, other_name FROM foo;   Bu, I instead I want to combine the results all into a single column. As an example, I can do this with UNION ALL as   SELECT her_name AS name FROM foo UNION ALL SELECT his_name AS name FROM foo UNION ALL SELECT other_name AS name FROM foo   Is there more elegant way to do this operation?


Is there any command to list "local" packages? like in Synaptic GUI

I used to look for local packages using Synaptic. Those packages which are locally installed but have no exact match in the current active repositories. As it is explained in this post: .  I finds that feature very helpful when it comes to debugging  issues. While I know how to get , I couldn't find a way for local packages.  So, is there any equivalent command line that lists all local packages?  Note to explain idioms I used.   orphan package: installed automatically as dependency, then dependent was removed. obsolete package: installed but no package with same (name,architecture) in the repository. local package: installed but no package with same (name,architecture,version) in the repository.   So I don't mean the all installed packages.  Test Case   Synaptic → Menu:Settings → Repositories → Updates: Enable Unsupported Updates (backports) (Note: I use it as PPA example) Reload package lists Search for debhelper, select it. Menu:Packages → Force Version ...: Select and install the version from backports (Usually the highest version) Menu:Settings → Repositories → Updates: Disable Unsupported Updates (backports) (Note: I use it as PPA example) Reload package lists   Compare now between these two lists:   Synaptic → SideBar:Status → Installed (local & obsolete)   aptitude search '~o'  user@user-vb:~$ aptitude search '~o' i A linux-headers-4.15.0-19                          - Header files related to Linux kernel version 4.15.0         i A linux-headers-4.15.0-19-generic                  - Linux kernel headers for version 4.15.0 on 64 bit x86 SMP   i A linux-image-4.15.0-19-generic                    - Signed kernel image generic                                 i A linux-modules-4.15.0-19-generic                  - Linux kernel extra modules for version 4.15.0 on 64 bit x86 i A linux-modules-extra-4.15.0-19-generic            - Linux kernel extra modules for version 4.15.0 on 64 bit x86 user@user-vb:~$


I have a lot of data in a format I need to rearrange. Current table: Rows of subjects with values, each column corresponding to a time point  I need each "subject" to be duplicated x times (x being the amount of time points, in this case 12) and then (preferably) the values to inhabit it's own column (just transposed essentially) making each subject look like this: Preferred table outcome, three columns: Subject, time, value  I'm usually ok doing it manually, but this time it's just so many "subjects". Any help is appreciated. :)


I have been working with LaTeX for a while, but found that my glossary package is the incorrect version since it give undefined sequences. I've downloaded the package 4.18 2015-09-09, but where do I save it and how do I unpackage it to take effect?


For example, I have two projects sharing some functions, let's say them A and B. So I create another library project C, containing the public code. I put the common code in a class, but in the class, not all the methods are used in both projects. Some of them are only used in A, some only used in B and the rest are used in both of them.  Now, after compiling, I got A.exe, B.exe and C.dll. What I want is:   I don't want the dll, just want A.exe and B.exe I don't want methods only used in A.exe appears in B.exe, and vice versa.   Merging the dll and exe can solve the problem 1, but how about 2?


How to move articles to a new website without problems with SEO or rewriting?

How do you do. My old website was based on uCoz. It was desined badly and was based on uCoz free domain. I decided to create the new site version myself, going to another hosting and changing the design. But the old website had got some good articles. I've heard that search engines will be able to decide that the articles were stolen if I just copy them. I don't want to use rewriting. Is it posible to move them without a risk for SEO? Excuse my English.


Existence of $(I-A)^{-1}$ implies convergence of $\sum A^k$?

Suppose $A$ is a square matrix (over $\mathbb{R}$ or $\mathbb{C}$, take your pick) such that $(I-A)^{-1}$ exists. Then is it necessarily true that  $$I + A + A^2 + \dots + A^n + \dots = (I-A)^{-1}$$ ?  There is a well known theorem which claims that if $||A|| \lt 1$ then $(I-A)^{-1}$ exists and the above is true.   What I am asking is something like the converse of that theorem. My hunch is that this is false, but I am unable to come up with a counter-example.


Let moderators navigate the review queues at will

This post is an expansion of  For many graduated sites (eg Physics), moderators do not want to apply the unilateral close vote in all cases--it is better to let some community votes pile on first.  We only use the unilateral in obvious cases then. This renders the CV queue useless to us. If we "skip" something, we can't get back to it. If we say "do not close", it's removed from the queue and our community can't see it. If we use "close", we are using a unilateral mod vote--we don't want to do that. What I propose is a set of "next/previous" buttons, that let us navigate the queues, looking for closeable questions, and coming back to the others later. Thoughts? Update and bounty reason Due to the recent Great Flag Overhaul, mods no longer see close flags in the flag queue. Which means that the only way to get to them is via the review queue 1 Shog's solution is ideal in this case; let mods view the close queue as a list. (In fact, a list similar to the old flag queue -- which shows a list of mods who have seen the post and what mod actions have already been taken -- would be great) On Physics, the majority of the flags that we get are VTC flags. And the community isn't always able to close things on their own, so we have to step in. However, powering through the close queue isn't an option; because "skip"ing a post2 leads to it being dumped into the void (I can't get back to it unless I have a link). Extremely inconvenient. Could the workflow here be improved? 1. The /tools listing for posts with outstanding close votes doesn't work because it doesn't list posts which have been flagged but not VTCd 2. which I may want to take a closer look at later; gotta be careful with the binding votes.


Null pointer exception at Context used in dialog class

I have a class thate extends a built-in dialog class, and I want to access sharedprefence in it, but having null pointer exception at that point.   Here is my code  public class DialogCancelOrder extends Dialog {      Context context;      public DialogCancelOrder(Context a, String orderid) {         super(a);         this.orderid = orderid;     }      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         sp = context.getSharedPreferences("afewtaps", Context.MODE_PRIVATE);          face = Typeface.createFromAsset(context.getAssets(), "fonts/Nunito-Regular.ttf");         face1 = Typeface.createFromAsset(context.getAssets(), "fonts/Rupee_Foradian_2.ttf"); }


Overleaf does not compile after using Biblatex

I have my PhD deadline on Monday and disaster has struck at the very last minute! Any assistance would be eternally appreciated.  I'm using Overleaf (v2) to write my thesis - it's a very large file tree containing multiple .tex files.  Everything was compiling fine, until I decided to experiment and use:  \usepackage{biblatex}   It compiled with this included but looked odd, so I deleted the line again. However, now it does not compile - despite the document being exactly the same as before the problem began.


How can I generate an output from one in 6 possibilities with vanilla redstone?

I'm trying to be able to hit a button, and 5 out of 6 times have nothing happen, but on the 1 out of 6 time, I want it to give a pulse output. This is to make a Russian roulette game, I'd like the input to be a button because I want to charge tokens to play it on a server with friends.  If you press the button, there's a 1/6 chance that a dispenser will fire out a single tent, and a 5/6 chance that nothing happens.


How can i use all available listview width from usercontrol?

i have this usercontrol, without height and width set, how can i make it occupy all available width within the listview? I've already tried with HorizontalAlignment = "Stretch", but it doesn't seem to work.  This is the code of the usercontrol: <UserControl x:Class="SurveyFlow.MachineListItem"          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"           xmlns:local="clr-namespace:SurveyFlow"          mc:Ignorable="d">   <Grid>      <ProgressBar  x:Name="ProgressBarPezzi" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="6" Background="Green" Foreground="#FF2AB913" BorderBrush="Transparent" />     <StackPanel Orientation="Horizontal">         <materialDesign:PackIcon Kind="Circle" x:Name="StatusBtn" HorizontalAlignment="Left" Foreground="Gray" Margin="15"/>          <TextBlock Text="Macchina" TextDecorations="StrikeThrough" x:Name="MachineName" FontWeight="SemiBold" VerticalAlignment="Center" HorizontalAlignment="Left"/>      </StackPanel>  </Grid>


Is there a word for special names given to people of a certain group

Examples:   People who work at Google are called "Googlers" Fans of the Green Bay Packers are called "Cheese heads" Readers of Robinhood enewsletter are called "Snackers" Hardcore fans of Harry Potter are called "Potterheads"   These are just several examples. This question was inspired by .


Two-column beamer ToC with control over the breaking point and without balancing

I'm using the solution provided by lockstep in  to spread the TOC over two columns. However, this gives some strange balancing problem which looks like this:  1.) Bla      4.) Blabla  2.) Blabla     3.) bla      5.) Blabla   But I would like to have it like:  1.) Bla      4.) Blabla  2.) Blabla   5.) Blabla  3.) bla         Since lockstep's solution used the mutlicol package I tried to use the non-balancing enviroment multicols*. But this seems to fail. Are there any other possibilities?


Where can I find the META-INF file for 1.6.4?

I've checked everywhere but I can't find the meta-inf folder so that i can delete it to get mods working. I've checked in the 1.6.4 version folder but there was nothing in the except two folders called 1.6.4 and 1.6.4.json.


Bought game on Steam, but it's not in my Library

I bought a game on my dad's chrome book yesterday on steam and it told me to check my library for the games I bought, but they are not showing up. Do I have to buy them again? Or is there a way to download them, even though I didn't install them on the chrome book? Also, I was positive that I was on my account because I see them on the previous transactions thing, but they are not showing up.


I looked around but cannot seem to find anything that actually answers the question of how I can stop the mannequins in my house from duplicating everything I put on them. I had Cicero's armor on a stand and ended up switching it with Miraak's armor, but when I go inside my house it will sometimes spawns Cicero's armor and I have like... 3 sets of them.   All I want to know is how to fix this glitch, so I can use the mannequins as they are intended, for displaying my valuable armors.   Just so you know I am on Xbox 1 and have the Special Edition.


How should I be handling readied actions and turn order?

The monster my players were fighting acted first in the intitative order. It dove into the lake and out of sight. They all readied actions to attack when it revealed itself. On its next turn it attacked, triggering all of their readied actions, so it got off its attack, but then they all attacked him. We all got really confused as to whose turn it now was, the monster again or my players. I ruled that it was the monster but now that seems wrong. Did I rule this correctly? How should I be handling this?


Can someone become immune to the Death Note by using plastic surgery?

If someone were to change his face through plastic surgery, would he become immune to the Death Note?


how to show logged in members username in wordpress content

I'm working on a page on a site but got stuck at this point I want to show the logged in members username/first name of the site content for that I'm using this code   <?php if ( is_user_logged_in() ) { ?>      <?php global $current_user; get_currentuserinfo(); ?>
Hi <?php echo $current_user->user_firstname; ?>

You have access to all of the free members stuff, enjoy :)  Logout
 <?php } ?>    but instead of showing the username i shows broken code like this . I'm creating the page with WPBakery.


What's an opposite of "endless" that's like "startless"?

To describe an event with a beginning but no end, meaning that it goes forever into the future, one could say it is "endless".  What word would describe an event with no beginning but an end, meaning that it goes forever into the past? 'Startless' doesn't seem to be used for this (or much at all).  In a sentence:     They were so used to the custom that they considered its existence [to not have a beginning].


Shared folder not showing up in /mnt/hgfs on ubuntu 18.04 LTS as guest and windows 10 Pro as host OS

I am using these below versions   VMWare Workstation 15 Player Ubuntu 18.04 LTS as guest os Windows 10 Pro as Host os vmware-tools-cmd version (10.3.0.5330 (build-8931395))   I have created the shared folder in VMWare options in GUI. Powered on my Ubuntu Guest. But there was not hgfs under /mnt.  So I used the command below  sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs   after this my shared folder appeared under /mnt/hgfs but can't cd into my shared folder. I restarted the VM. But now I can't find my shared folder under /mnt/hgfs.  Can anybody please provide complete steps how to debug this issue and a solution for this?


Could I use an hashing function for Symmetric encryption?

I know there are way better and more tested encryption methods, but I was wondering if the following code could be use for symmetric encryption?  var text = "hello"; var password = "mypass"; var message = hash(text) + encrypt(text, password);  function encrypt(text, password){     var key = hash(hash(text) XOR hash(password));     var passphrase = key;     while(passphrase.length < text.length){         key = hash(key);         passphrase += key;     }     passphrase = passphrase.substring(0, text.length);     return text XOR passphrase; }   It can easily be decrypted if you know the password.  Is there any flaw to this simple algorithm?  N.B.: A similar question was asked  but the algorithm doesn't work...


Refuse to accept questions for certain tags

In response to questions like , can we implement a feature whereby questions cannot be posted to certain tags?  For e.g., if someone attempts to post a question to  on SO, they (questioner) get a response:     This tag (and the questions) exist for historic reasons. Such questions are no longer on topic at SO and should be asked at X.SE, following the guidelines established at X.SE/faq   where X.SE depends on the tag. This will prevent crap on SO, result in SO getting less flak for migrating crap and prevent "why was my question closed?" questions on meta.


I couldn't find an answer anywhere else, so I'm posting here. I have a fluid simulation that works well mostly, but it is going through part of an obstacle. This obstacle is a corridor that holds fluid, but two thirds down the way it just pours through the wall. It is all the same mesh. Image and .blend file included.


Coefficients and significance of lasso/ridge  I had 628 predictors after forming dummy of all categorical variables. When I ran lot many iterations traditional logistic regression iteration, I came across 15 variables that was giving me pretty good model with good ROC, recall & precision(for certain cut-off) values on test data and also all variables were significant(at p<=0.05). But since it took lot of time, I tried using lasso that gave me 50 non-zero-coefficient variables after taking best lambda value post running 10 fold cross-validation. But only 5 variables were common between 15 variables of traditional method and 50 of lasso. Moreover, when I tried to calculate its SE and t-stats, I figured out that many variables are insignificant(low t-stats and high p-value). In addition to it, the AUC for ROC was less than traditional method.The ROC drops even more when I used traditional logistic regression on 50 variables that were result of lasso. Can someone help me understand the dynamics of it and how I will be able to justify the coefficients of lasso model as they are penalized(I have normalized all the variables before using lasso)?


Phone not appearing in Android Device Manager

When I go to , my tablet is listed, but not my phone. I had signed up just as soon as ADM was available, and at that time both devices were listed. Now, for the last several days, I can only see my tablet. (For what it's worth, both devices appear in the "My Devices" section of the Google Play Store.)  I have done the following while troubleshooting:   Ensured that the Android Device Manager settings in Google Settings are both on. I have even toggled them off and back on again Ensured that Location Services are on Ensured that all sync services for my account are toggled on and work Have connected to the Play Store several different times Ensured Google Play Services is at the latest version Made sure I'm using the right account. (In fact, I removed the other secondary accounts from the phone) Power-cycled the phone several different times   I could understand if ADM couldn't find the phone due to it being off, out of range, poor signal, etc., but ADM would at least display the phone and tell me it couldn't find it.  So, any suggestions to get my phone to show up on Android Device Manager?  I would like this to be working before something happens to the phone. ( and all that.)  Although it shouldn't make any difference:   Tablet: Nexus 7 (2012) with Android 4.3 Phone: Verizon Galaxy Nexus with Android 4.2.2   Addendum:  There's apparently some (relatively new) advice on the :   Open  Google Settings from your device's apps menu. Touch Android Device Manager. Uncheck Allow remote factory reset. Go to your device's main Settings menu, then touch Apps > All > Google Play services. Touch Clear Data. Note that this action doesn't remove personal data. Go back to Google Settings and select Allow remote factory reset. Restart your device.   I have followed these steps, but it doesn't appear to have worked.


In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  <container-transaction id="MethodTransaction_1178709616940">   <method id="MethodElement_1178709616955">     <ejb-name>MyName</ejb-name>     <method-name>*</method-name>   <trans-attribute>Required</trans-attribute>   </method>   <method id="MethodElement_1178709616971">     <ejb-name>MyName</ejb-name>     <method-name>methodB</method-name>   </method>   <trans-attribute>RequiresNew</trans-attribute> </container-transaction>   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B)


A company manager bought a new safe and want out of his 11 employees only a group of 6 together to be able to open it, so he decided to put more than one lock on the safe and give each emplyee an amount of keys to part of the locks, what's the least amount of keys and locks possible to achieve the manager goal?


What are differences between "let", "allow" and "permit"?

Dad doesn't let me watch that program.    Can we use "allow" or "permit" instead of "let"? What are the differences in grammar? Which one is common use?


What happens if a domestic flight lands in a foreign country due to an emergency?

In a question about travel to Puerto Rico :  Note also that you should bring your green card and passport if you travel to or from Puerto Rico or the US Virgin Islands. While this is a purely domestic flight, and it is not strictly required for you to have your passport, if the flight has an emergency it may need to divert to an airport at an island which is not part of the USA. You will need your travel documents if this happens.  Are there historical examples of this happening, either in Puerto Rico or elsewhere? Presumably most passengers on the plane will have no passports in this case and would thus be ineligible to enter under default circumstances. Is it thus recommended to take a passport if your flight goes over foreign territory?


Show that $f=g$ a.e on $[a,b]$ implies thats $f=g$ on $[a,b]$.

I'm reading Real Analysis by Royden (4th edition).  The problem I'm working on is in the title, were $f$ and $g$ are continuous functions on $[a,b]$.  What I know so far is that the set $\{x\,:\,f(x)\neq g(x)\}$ has measure zero. Also, I realized that $(f-g)^{-1}(R-\{0\})=\{x\,:\,f(x)\neq g(x)\}$. (R for the reals) What I'm thinking is to some how show that this set is empty, that way $f=g$ on all of $[a,b]$.  Thanks for any hints or feedback!


'set' command not working on tcsh shell when called explicitly

The set command works fine when I type it like this:  echo $0 /usr/bin/tcsh echo $SHELL /usr/bin/tcsh set START_TIME=`date +%s` echo $START_TIME 1499360060   However, it doesn't work when I call it explicitly in tcsh like this:  /usr/bin/tcsh -i -f -c 'set START_TIME=`date +%s`' echo $START_TIME START_TIME: Undefined variable.   I tried to do this with setenv at first, but then realized that child process cannot run setenv command. So, I figured set is the way to go. Please advise if there's another better way to go about this. Thanks.


Calculate $\int \limits {x^n \over 1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+...+\frac{x^n}{n!}} dx$ where $n$ is a positive integer.

Calculate $$\int \limits {x^n \over 1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+...+\frac{x^n}{n!}} dx$$ where $n$ is a positive integer.  Would you give me a hint?


JAVA : how to add extra time for timestamp

Sorry im new to java, may i know how can i add extra time in here?   SimpleDateFormat timestampFormat    = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");  String currTimestamp  = timestampFormat.format(new Date()); System.err.println("currTimestamp=="+currTimestamp); //  2014/10/17 14:31:33


Logistic regression with multicategory categorical explanatory variables

I'd like to perform logistic regression with some categorical explanatory variables with more categories than just binary 0/1. Is this possible and why?  I am inclined to think that this would give just the wrong result because of the geometric intuition, however most opinions online say that explanatory variables can be discrete/categorical (although I don't see any mentions of more categories). For 0/1 this is fine because the distances between 0 and 1 is easy.  If I have even 3 categories 0/1/2, it's unclear if 1-0 is the same as 2-1.  One thought I had is to do a sort of one-vs-all thing for the explanatory variables. So if I had one parameter that can on 3 categories A/B/C I remake this into 3 separate parameters:    A: 0/1 B: 0/1 C: 0/1   Where 0 is not belonging to the letter class and 1 is belonging to the letter class.  Background: My dependent variable should be binary. I really wanted to use logistic regression because of the probability interpretation. If you can recommend another method that can output a probability estimate (instead of only classification) that takes in categorical explanatory variables, that would also be helpful.


Where are the evolutionary "inbetweeners"?

The problem I've always had with evolution is the actual lack of variation between animals. More specifically, the lack of observable gradual change between species.  Take for example the hammerhead shark. It obviously has a strong connection with a normal shark, but where's the "half-hammerhead" shark? Where's the species that only has a SLIGHTLY wider head?  I really doubt that a single mutation on a normal shark resulted in a head shaped like that, it had to happen gradually. Right? As far as I understand, evolution works by random mutation in a child being somehow slightly beneficial to that animal so it get's to live longer and reproduce more, eventually resulting in it's genetic material in dominating the inferior ones before it. But if it was for whatever reason beneficial to have a slightly wider head, why don't all the sharks have slightly wider heads now? On the other hand, if it wasn't beneficial, how come the hammerhead still exists?  Furthermore, I feel like some characteristics of a certain animal can't really have gradual benefits. There's a lizard that shoots blood out of it's eyes. The original ancestor certainly didn't, and I'm sure that if it's child only bled slightly from it's eyes it wouldn't really help if much in life. So for it to actually become beneficial, it seems to me that there had to be a ton of lizards that had a disadvantage of bleeding slightly. In fact, there had to be so many that they evolved even further in the same direction and kept doing that until they bled so much it's an actual benefit (sorry for this turning so gross). So why did the inbetweeners survive long enough to evolve even more, and why did they THEN die out?


Traceback issue: can't multiply sequence by non-int type 'float'? [Python 3.2.5.1]

Traceback (most recent call last):   File "E:/Portable Python 3.2.5.1/Tasks/Wk7", line 16, in   monthlySalary = hourPay * 0.1   TypeError: can't multiply sequence by non-int of type 'float'  #Input hoursWorked #Input hourPay #Ask “Consultancy income? (Leave blank if none)” #   If value: #       Input consultFee #       monthlySalary = ((hourPay - (hourPay * 0.1)) * hoursWorked) + (consultFee – (consultFee * 0.2)) #   Elif no value: #       monthlySalary = hoursWorked * hourPay #print (“The monthly wage is $”,monthlySalary)  hoursWorked = input ("Hours worked: ") hourPay = input ("Hour pay: $")  consultFee = input ("Consultant fee? (Leave blank if none): $") consultFee == '' monthlySalary = hourPay * 0.1 '' == False monthlySalary = ((hourPay - (hourPay * 0.1)) * hoursWorked) + (consultFee - (consultFee * 0.2))  print ("The monthly salary is: $",(int(monthlySalary)))


Is there any advantage over using a class over a struct in cases such as these?  (note: it will only hold variables, there will never be functions)  class Foo {  private:       struct Pos { int x, y, z }; public:        Pos Position;  };   Versus:  struct Foo {    struct Pos { int x, y, z } Pos; };     Similar questions:


Proving that $ 2 $ is the only real solution of $ 3^x+4^x=5^x $

I would like to prove that the equation $ 3^x+4^x=5^x $ has only one real solution ($x=2$)  I tried to study the function $ f(x)=5^x-4^x-3^x $ (in order to use the intermediate value theorem) but I am not able to find the sign of $ f'(x)= \ln(5)\times5^x-\ln(4)\times4^x-\ln(3)\times3^x $ and I can't see any other method to solve this exercise...


Reputation Requirement for Meta Questions is a Catch-22

I have a few questions I want to ask about WordPress--mostly I want to ask HOW I should organize and ask my set of questions. So it seems to me I should ask on WordPress Meta that.  But to ask on Meta requires a 15 reputation.  Can someone explain how I can get a reputation when I'm not sure even how to ask my questions?


Advice to decide when to sell growth stocks

I’m buying diverse sized stocks for growth (aka, I don’t want a short-term return, if not, keep them for a while).  I would like some advice in relation to when I should sell a stock.  I read several posts however I did not find valuable advice. Most of them  say that I should sell once it reaches a loss of between 10% and 20%. But, if we check, for example...  Apple (market value)   It lost 15% of its value the last month  It lost 10% of its value the last year  It increased 90% of its value the last 5 years   Everything is timing and I do understand that. However, Let's say that I bought Apple stocks 2 months ago. At present I have a lost of aprox 15%, but, probably Apple will recover. In this case, when would "be logic" to sell...?  Now, other example: smaller cap and more riskier   CVRS: Corindus Vascular Robotics   It lost 7% today It lost 7% last week It increased 9% the last month It increased 220% the last year It lost 24% the last 5 years   Here he fluctuations are more marked and so the possible trust of growth of even recover.  In this case, when would be "logic" to sell...?


Randomly shuffle query results where values are the same

Performing an order_by operation on an SQLAlchemy query, where the objects being sorted have the same value, always returns them in the order that they are in the database. Is there a function to additionally shuffle those results that are the same?  Practical example: ITEM         PRICE  hamburger    20 burrito      10 sandwich     10 quesadilla   15  Running db.session.query(FoodItem).order_by(FoodItem.price).all() would return them in the following order:  Hamburger Quesadilla Burrito Sandwich  burrito would always precede sandwich as it is earlier in the database, no matter how many times you ran the function. I've tried to randomly sort the results before ordering, as so: from sqlalchemy.sql.expression import func  db.session.query(FoodItem).order_by(func.random()).order_by(FoodItem.price).all()  However, this doesn't have the desired effect - the final order is still retained according to the database. Is there a way - sqlalchemy or a Python lambda expression/function - to achieve the desired result of sorted items, with items having equal values shuffled?


As simple as this should be, I can not seem to solve it. I can't classify its type and thus figure out how to solve it. It's the only ODE in my problem sheet that I can't solve (embarrassing).   $$t\left(\frac{\mathrm{d}x}{\mathrm{d}t}\right)=x+\sqrt{t^2+x^2}$$


Conversion from Float to CGFloat in Swift

I was converting Float => CGFloat and it gave me following result. Why It comes as "0.349999994039536" after conversion but works fine with Double => CGFloat?  let float: Float = 0.35 let cgFloat = CGFloat(float) print(cgFloat) // 0.349999994039536  let double: Double = 0.35 let cgFloat = CGFloat(double) print(cgFloat) // 0.35


How can Captain America become old in Endgame when he is injected with soldier serum ?


Can any infinite ordinal be expressed as the sum of a limit ordinal and a finite ordinal?

I've been browsing through Jech's and Levy's texts on set theory, and the ideas of ordinals come up fairly quickly. The idea of a limit ordinal is introduced, which is an ordinal with no maximum element. My question is, can any infinite ordinal be written as the sum of a limit ordinal and a finite ordinal, possibly unique?  My thinking was, if $\alpha$ is an infinite ordinal with no maximum, it is a limit ordinal, so $\alpha=\alpha+0$. Otherwise, suppose $\alpha$ has some order type $\{a_0,a_1,\ldots, b\}$, so $\alpha=\omega+1$. Similarly, if $\alpha$ has order type $\{a_0,a_1,\ldots,b,c\}$, we could write it as $\omega+2$.     (Thanks to Arturo Magidin, for pointing out that the following example I gave is not an ordinal.) But what about an order type like $\{a_0,a_1,a_2,\ldots, b_2,b_1,b_0\}$, this has order type $\omega+\omega^*$, would it still be possible to write is a sum of a limiting ordinal and a finite ordinal? Thanks.


Cross validation step by step description

I am a statistics novice. I therefore kindly ask for your understanding with this basic question:  I want to cross validate the results of my logistic regression. So far I have divided the overall sample into two sub-samples (testing and holdout). I have run the logistic regression on the testing sample and afterwards run the same model on the holdout sample. I now have two regression outputs, but I am not sure on what to do next. How does the cross-validation work? Can someone please explain me how I should proceed. Which measures do I need to compare and when can I say that the model is valid?  Thank you very much in advance


Why is Spider-Man left out of The Avengers?

Spider-man is left out of The Avengers.   Why? Can we expect Spider-man in Avengers 2? Or Avengers 3? Are there any legal rights problems as to why they don't have him? Are there cost issues?   Why is Spider-Man not in The Avengers films?


Find the value(s) of $a$ for which the equation   $ax^2-4x+9=0$   has integral roots(i.e. $x$ is an integer).  My attempt:   By hit and trial I am getting answer as $a=\frac{1}{3}$. No information about nature of $a$ is given.


I want to create a select option box after the user chooses the select option before.  the first select option variable is printed by php. my this code
';  $num = 0; $q = json_decode(SysTragedyParent::ReadAll($db_config),true); $HitungData = sizeof($q['result']['data']);  while ($HitungData > $num) {     $data .= '
'.$q['result']['data'][$num]['nama_kejadian'].'
'; $num++;                                         }
   After That I Call Ajax To call data from the first select option like this code  /** Fungsi Untuk Mencari Data Tragedy Parent Yang Ada Di Buat Laporan Data Untuk Melakukan Pencarian kategori Child ***/ $('ul.SysReportParent li').click(function () {      //console.log($(this).attr('value'));     $.ajax({         url: 'https://' + window.location.hostname + '/Api',         cache: false,         type: 'POST',         dataType: 'json',         data: {             'sys_tragedy_child': true,             'id_sys_report_parent': $(this).attr('value')         },         success:function (result) {             $('.childTragedyReport li').remove();             var num = 0;             var hitungChildTragedy = result.result.data.length;             while (hitungChildTragedy > num ){                 $('.childTragedyReport').append('
'+ result.result.data[num].nama_kejadian +'
');                 num++;             }          },         error:function (result) {             $.toast({                 heading: 'Pengambilan Gagal', // Menampilkan Judul Notifikasi                 text: 'Data Kategori Tidak Ditemukan', // Menampilkan Text Notifikasi                 position: 'top-right', // Berada pada Posisi kanan Atas                 loaderBg:'#1d32ff', // background Warna Loading                 icon: 'error', // Icon Indicator Jika Berhasil dilakukan Aksi Program                 hideAfter: 5500, // Menghapus Pesan Jika Sudah Muncul Di Lakukan Data System                 stack: 6             });         }      });  });   everything goes Normal. However when I want to click on select the second option. select option cannot select the selected item


How to handle tags with multiple meanings?

The tagging system doesn't support (as far as I know) a tag to be "separated" into two tags. For example, the  currently has questions on  and . I'm sure there are more tags that have this problem. How would you suggest splitting tags in this case?


How does Ubuntu partition the disk when we choose "Erase disk and install Ubuntu" during installation?

How will Ubuntu automatically allocate the disk partition sizes when we select Erase disk and install Ubuntu during installation?    Can the settings for automatic space allocation be changed?


PHP how to run multi bash command in background

To run one command in the background, it works well. $cmd = 'ffmpeg -re -i ./97.mp4 -vcodec copy -acodec copy -f flv -y rtmp://example.com/c/190843?auth_key=7e2682b5 > output 2>&1 </dev/null &'; exec($cmd, $output, $return_var);  Then I need to sleep for some time before the ffmpeg command. I refer to  which works well directly in the bash console. While not works in the below PHP script, which will return when the bash command finishes running. $cmd = '(sleep 5; ffmpeg -re -i ./97.mp4 -vcodec copy -acodec copy -f flv -y rtmp://example.com/c/190843?auth_key=7e2682b5 > output 2>&1 </dev/null) &'; exec($cmd, $output, $return_var);


"One of the features that emerge" or  "One of the features that emerges"  Is 'one feature' the subject, therefore it emerges, or are 'features' the subject and they therefore 'emerge' ?  I keep looking at this sentence but can't decide! thanks.


Where to purchase a simple single-speed?

I would like to purchase a cheap (maybe around 200-300€) and spartanic single-speed racer-like bike. I don't need fancy extras - just wheels, a frame, and brakes (but please no backpadel-brake and with freewheel).  I want to have this kind of bike mainly for the city to be able to make some speed and have fun with it. I don't want the expense and maintenance of gear change on this bike. I don't want the fear of an overprized steal-inviting deceiver/poser bike. Simplicity wins.   Where should I search when I am looking for such a bike?   Second hand is an option.


Staticmethod as property without instantiation

I have a class which is used to hold a bunch of python static methods which will return a string from an environment variable. class GitLabCiEnv():     """     Gitlab CI Environment variables.     """     @staticmethod     def CHAT_CHANNEL() -> str:         """         Source chat channel which triggered the ChatOps command.          Added in GitLab 10.6         Available in GitLab Runner all         """         return os.environ["CHAT_CHANNEL"]      @staticmethod     def CHAT_INPUT() -> str:         """         Additional arguments passed in the ChatOps command.          Added in GitLab 10.6         Available in GitLab Runner all         """         return os.environ["CHAT_INPUT"]  With this class I can just call GitLabCiEnv.CHAT_CHANNEL() to get the value of the environment variable. The "ugly" is, that I have to use paranthesis for each those @staticmethod. What I would do is GitLabCiEnv.CHAT_CHANNEL without paranthesis. I do not want to instantiate an object of this class, there is, in my opinion no benefit of having an object. I tried different implementations, using class variables, but then each variable will be initialized if the class is imported, this is not what i want. Maybe someone has a solution for me. Thank you very much!


I was reading this  about an experiment to limit quantum entanglement. I'm a high school student and I admit that I maybe lacking some context regarding this query. I know that quantum entanglement in which quantum states of two or more objects have to be described in reference to each other.   My question was If both photon sources are used to sync clocks (without breaking the entanglement) local to them and one clock/particle pair accelerate away from earth at $30g$, will both the clocks slow down as the pair under acceleration approach the speed of light?


Show that if $p>5$ is prime, then $240 \mid (p^4-1)$.


How can I unlock my phone? I locked it using Android Device Manager, but it claims I entered a wrong password

I have an Samsung Galaxy S3 Neo.  Bus 002 Device 042: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1]   The keyboard & language setting is português.  I today installed Android Device Manager and to test it's functionality I locked the phone with the password: "abcd" (4 letters were required).  After entering the password and confirming with the "OK" button of my keyboard, the phone showed me that the password is wrong. "Senha incorreta".  I reset the password after some tries to "123456" and the phone reloaded the lock screen. Again the password showed up to be wrong. I also tried the alphabetic password: "abcdefg" - same error.  I changed the language of my Google account from German to Portuguese and reset the password to "123456" again and I tried to really reboot my phone and unlock the SIM card again. But anyways I can not get through my lock of the Android Device Manager.  I tried to enter the password 35 times wrong with hope to get a chance to authenticate with my Google Account login.  I also tried to connect the phone with adb but it does not show up in this state with:  adb devices   So what can I do to get access to my phone again?


can some one help me if am checking the reference of the string then what would be the exact answer and why?

Can some one help me if I'm checking the reference of the String then what would be the exact answer and why?   String s = "java";  String s1 = "world";    String s2 = "javaworld";   String s3 = s.concat(s1);  String s4 = s+"world";     String s5 = "java"+"world";    why it gives true and false even though the hashCodes are same for s2,s3,s4,s5..   Boolean b  = s2==s3;   //'it gives false' Boolean b1 = s3==s4;   //'it gives false' Boolean b2 = s2==s4;   //'it gives false' Boolean b3 = s2==s5;'  //'it gives true'


My son asked me to make a Pokemon trainer club account so he can play Pokemon go, when the game fist launched.But I count because the servers were always down. so i was able to log in with my google account and been playing ever since. Just a few days ago i was able to make an account with Pokemon trainer club but i have to start all over again. Is there any way to sync my two accounts so i can continue at the level I'm at?


Finding out the square root of a complex number

Solve in $\mathbb{C}$ the following equatios: $$z^2=\frac{1}{2}-i\frac{\sqrt{2}}{2}$$ I was solving the exercise from the book A to Z complex numbers, I tried this in two ways one by taking $z=x+iy$ but then I am getting another quadratic equation in $y$ where the constant term is a complex number. I also tried to get it in the form $re^{i\theta}$ but there $\theta=\arctan{\sqrt{2}}$. Any help will be truly appreciated.


The word "Meta" in the site name should be allowed to translate

As far as I see the word "Meta" in the site name from the main menu is not able to localize:        Is it possible to make it translatable?  According to the post on ruSO.meta:  we need to translate it.


After the upgrade I can't figure out how the new shield system works. I have the option to discard the shield, and I notice I have a new potion in the inventory.  More importantly, I got attacked (and lost) twice in a short amount of time and don't have a shield. When do you now get shield?


Why is 'User Profile Service Application' Job Failing?

I am new to Sharepoint and I am trying to troubleshoot a problem with importing  AD profiles on Sharepoint 2013  Anytime I run the 'User Profile Service Application' Job that is supposed to Synchronize the profiles, it fails shortly after and returns the error message:     Operation is not valid due to the current state of the object.   This system was previously working and I am picking up the responsibility with no knowledge in the way it was initially setup.  This issue been going for a couple months before I began to notice it and I am at a loss as to where to start troubleshooting.  EDITS:    -Another answer shared mentioned that when you are importing from AD, you may not need the FIM service;   -My Sync connection is setup and populates when queried.    If you need anymore information or have any ideas as to where I should start looking, please let me know.


Prove that $(a+b)^p \equiv a^p+b^p \mod p$

Prove that $$(a+b)^p \equiv a^p+b^p \mod p$$   My try: I tried expanding this and then applying modulo to this expression but it did not work.


Characteristic of a field is $0$ or prime

I'm trying to prove that the characteristic of any field $F$ is either $0$ or a prime number, but I have no idea what to do.  Help?


Apple's online version function support-sp.apple.com/sp/product?edid= does not work for all macOS versions

I would like to get the Apple marketing name, the code name, for a given version of macOS (e.g. 10.12 is macOS Sierra) from Apple's online service at support-sp.apple.com/sp/product?edid=.  This is possible for some versions using the http request:  curl https://support-sp.apple.com/sp/product?edid=10.12.0   However, I cannot get the URL to give a consistent answer to https://support-sp.apple.com/sp/product?edid=<ver>.  I was trying to confirm my 10.13.6 version and kept getting errors. I tried 10.14.0 and it did not work. Trying 10.12.6 works, so I made a loop to try all versions:  $ for i in {6..14} ; do echo "10.${i}.0:" $(curl -s "https://support-sp.apple.com/sp/product?edid=10.${i}.0" | xmllint --format -xpath "//root/configCode/text()" - 2>/dev/null) ; done   returns:  10.6.0: Mac OS X 10.6 10.7.0: OS X Lion 10.8.0: OS X Mountain Lion 10.9.0: OS X Mavericks 10.10.0: 10.11.0: OS X El Capitan 10.12.0: macOS Sierra 10.13.0: 10.14.0:   If this isn't possible, is there a better place to ensure that when run from a bash shell on most macOS systems I can get the friendly name? At least the last 6 or so versions (I'm not sure how many pre-Lion versions there are out there in the wild).


I am very much a software person and a rookie in electronics.   I am trying to understand why do we need Diode D1 in the diagram explained in this post:     I understand the need to the transistor to protect the GPIO pin; however, do we actually need D1? Is it a nice to have or if I don't use it, I damage my PI?  Thank you,


How to get properties of object in python

class ClassB:     def __init__(self):         self.b = "b"         self.__b = "__b"      @property     def propertyB(self):         return "B"   I know getattr,hasattr... can access the property. But why don't have the iterattr or listattr?  Expect result of ClassB object:  {'propertyB': 'B'}   Expect result of ClassB class:  ['propertyB']   Thanks @juanpa.arrivillaga 's comment. vars(obj) and vars(obj.__class__) is different!


I've been searching on how an address score is calculated, but didn't find anything that clearly defines how the score is calculated. So what score value is acceptable to assume that a result is close enough to input address?


I'm trying to create a simple 'double click' executable to open a large number of specific folders and applications for a user uncomfortable with using the terminal.  The script is simple enough and works as expected when running through the terminal with the following command:  python3 /home/xxxx/Desktop/setup.py   When I double click the file, it opens in the text editor.  I have added executable permission with:  sudo chmod +x /home/xxxx/Desktop/setup.py   ...and I've given ample permission with:  sudo chmod 755 /home/xxxx/Desktop/setup.py   ...and it has what I think is the appropriate shebang at the top of the file:  #!/usr/bin/env python3   I would expect to see a pop up which asks something like "Do you want to run this as an executable?" but this pop up doesn't appear.  I tried "open with another application" but I found no way to actually open with the terminal or python directly from there.  Getting desperate, I tried to just create a desktop short cut:  lxshortcut -o /home/xxxx/Desktop/setup.py   ...but even this didn't work. The .Desktop file created would only open as a text file.  I'm using Ubuntu 18.04 LTS.  Thanks in advance for any help/ideas.  Extra Info:  the script doesn't need to be executable from another computer  python3 is installed


Can Blender be used on an Android device?

Can the software be downloaded on an Android device?  If yes, then what is the process?


How to get surface of sourdough presentable

I'm starting to get good at sourdough--the inside if fluffy and I get a good spring, however I cannot seem to master scoring/making the loaf look presentable.  is an ideal loaf in my eyes because theres a big lip and the bread that pulled away from the lip has some texture. My loaves always end up rounded on top regardless of how I score. For reference, I use 500F in a dutch oven, cornmeal on bottom. My recipie is as follows: 1/2 cup starter 2 cups water tbsp salt ~5 cups fl I've had good success with this recipe but as I've said I need advice for getting a good surface.


Can someone please explain WHY synthetic division works?

I know how to do synthetic division, but I do not understand why it works.


I have a lab to do for my courses that consists of a trivial pursuit. After making the menu, we added buttons to switch between different views. I have a view in my application that allows you to edit questions (Json and tableView), but here is when you click on the button to open the map management view, there is a small lag that is due to creation of game cards. So, after some research on the internet, I came across the tasks in java, which I tried to apply but I am faced with an error. there she is :    There is my code :  public Deck getDeckCreate() {     if(newDeck == null) {         newDeck = new Deck();         //Read Json File         Gson gson = new Gson();         String res  = JsonTransform.readFromFile("json.json", false);         newDeck = gson.fromJson(res, Deck.class);         //Read Json File     }     return newDeck; }  public void createDeckTask() {     //Task for computing the Panels:     Task<ObservableList<Question>> task = new Task<ObservableList<Question>>() {         @Override         protected ObservableList<Question> call() throws Exception {             return getDeck();         }      };      // make sure the result will be assigned to the items property     // on the application thread as soon as it's ready     view.itemsProperty().bind(task.valueProperty());      new Thread(task).start(); }  public GestionAdmin() {     createDeckTask();     createTable();       }   Thank in advance ;)


Why do we pronounce "the university" as "thuh university" rather than "thee university"?

says that usually, we pronounce "the" as "thuh", but when it happens to be in front of a vowel sound, then we pronounce it as "thee".  Why is "the university" pronounced as "thuh" university rather than "thee university"? Isn't "u" a vowel, and shouldn't it therefore be pronounced "thee university"? The page I linked to gives as explanation that "university" is pronounced "youniversity" and this y in there is a consonant sound? But why should y be a consonat sound? For me it's more a vowel sound …


Trigger to use HTTP callout and update record with the results

I have been trying to integrate Google Shortener API into my salesforce org. I wrote a class to make the call out, but am having difficulty bringing the value back into the record. I have a custom object called "referral_advocate__c" with a field called "Short_URL__c". Anytime the field "unique_ID__c" has a value, I am wanting to send this value with a static URL to google shortener and then save the response value to "referral_advocate__c.short_URL__c" on the record. This is the class to make the call out:  public class URLshort {  final string urls = 'https://www.myurl.com'; referral_advocate__c adv = new referral_advocate__c();  @future(callout = true) public static void URLshortner() {      HttpRequest req = new HttpRequest();     HttpResponse res = new HttpResponse();     Http http = new Http();      req.setEndpoint('https://www.googleapis.com/urlshortener/v1/url?key=myapikey');     req.setMethod('POST');     req.setHeader('Content-Type','application/json');            req.setBody('{"longUrl":+urls + adv.unique_reference_number_c}');       try {         res = http.send(req);         System.debug(res.getBody());     } catch(System.CalloutException e) {         System.debug('Callout error: '+ e);         System.debug(res.toString());     }   }  }   The after insert trigger on "referral_advocate__c" I wrote is not firing correctly. How do I return the results from this class and update the field "short_URL__C" with the returned value from a trigger?


I recently asked a question on Stack Overflow which was primarily about UICollectionViewController, a frequently used class in UIKit on iOS 7.  I wanted to tag the post with the tag , but could not do this because it exceeded the limit of 25 characters.  Please will you raise the limit on tag length? We frequently deal with long/descriptive class names in iOS and this hard and seemingly arbitrary limit reduces the usefulness of the tagging system.


Must Random Variables' Probabilities Sum to One?

If we take the example of rolling dice once where $\Omega=\{1,2,3,4,5,6\}$, can we "create" a random variable, $X$, that only takes values $X=2$ and $X=4$, each with probabilities $\frac{1}{6}$ that sum to $\frac{2}{6}$? In other words, must we assign a probability distribution to a random variable that sums to $1$ by definition? I've been introduced to measure theory, so hopefully you can also point me to which part of the measure-theoretic definition of a random variable necessitates this. Does a random variable have to assign a value to each outcome, $\omega$?


I bought a Nintendo DSI console in 2011 from Australia and I would like to buy a DS game online but it ships from America. Would the game still work on my device?


How to make appearance of indexed terms link back to their index entry?

With an index named foo, we make an index entry using:  \index[foo]{\uplanop{#1}}   although typically I use something like:  \newcommand{\Foo}[1]{{#1}\index[foo]{#1}}   and with hyperref used as well, I get nice links back from my index. However, the terms' appearances in the text do not link to their index entries, so I can't quickly find out which other entries refer to Foo. Is there a way to change Foo so as to create such a link?


How to install driver for TP-Link TL-WN722N on Ubuntu 14.04?

Hi I am new to Ubuntu and Linux. As I am developing a WiFi product, I want to capture the WiFi traffic wirelessly with Wireshark. Having some searching in the web, I know that I can do that with a USB WiFi adapter and Ubuntu. Then I can run the Wireshark in real monitor/promiscuous mode.  Ok so I bought a TP-Link TP-WN722NC (I want to buy the TP-WN722N at first, but the store only has this model). Also I found a laptop and installed the Ubuntu 14.04.1. Then I noticed that I need a driver for this adaptor. So I try to follow the blog post  to install the driver ath9k_htc but seems it was not successful.  Then I downloaded the backports 3.16-1 by running these two commands:  wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.16/backports-3.16-1.tar.gz tar xvf compat-wireless-2.6.38.2-2.tar.bz2   However, after that point do not know what should I do. Could you help guide me to install the correct driver?


Why does adding certain numbers such as 3.6 and 3.2 give several "0"s as an output Python

Has anyone come across the problem where you add certain numbers such as 3.2 + 3.6 in python 3 you get an output like "6.800000000000001". This has occurred when I was using Python 3.8. One other set of numbers I added was 2.6 + 2.2 which gave the same result. Does anyone know why this happens, and only on these few numbers? print (3.6 + 3.2) print (2.6 + 2.2)


What is difference between it's and its?

I have find so many words between that but unable to understand when actually used it's and when its. Please explain with example.  Thanks,


No Maintenance Plans Folder in SQL Studio 2008 R2

A client has SQL Server 2008 R2 installed on a Windows 2003 R2 32-bit server.  Under Management in SQL Studio 2008 R2, there is no maintenance plans folder. It is not under Management --> Legacy either, as it would be if there were legacy-mode databases on the server. I am certain this is SQL Server 2008 R2 and not Express. I have checked the version and verified the splash screen when studio starts are not Express. I am logging in as the SQL account sa, and the account does have the sysadmin server role.  Lastly, right clicking on a database in SSMS and navigating to "Tasks" does not show any Maintenance Plan option.  Clearly, I'm missing something, and Google is coming up empty considering the scenario I've outlined. Any ideas? Thanks.  EDIT: select @@version returns "Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (Intel X86)   Apr 22 2011 11:57:00   Copyright (c) Microsoft Corporation  Express Edition with Advanced Services on Windows NT 5.2  (Build 3790: Service Pack 2)"


Android Studio - apps not allowed permissions to save files, can't change either with Eiciel app

I've tried what seems to be everything.  Changing permissions in the home folder to my user ownership.  Installing the manager Eiciel it won't let me change permissions on apps since everything belongs to root!  And I can't find a way to login to Ubuntu Studio as sudo or any other way to grant permissions.  How does one fix this issue?    I tried adding my username user to visudo from su.  After running a terminal and typing: sudo shutdown now, it seems to save files now and actually allows me to shutdown the system in Ubuntu Studio, but the permissions app Eiciel still won't allow me to add permissions to any apps.  Synaptic Package Manager won't let me select downloaded .deb files in my Download directory to install either (could be another problem IDK).  Geany located in /usr/bin/geany found with: locate -e geany from the root directory.  Tips?  UPDATE, NOT A GREAT (BUT WORKING) SOLUTION: I ran this (I'm sure it's not the proper way to give permissions) from a su terminal in the root directory; the program I want to give write access to is in usr/bin: chown -R usr user:user  Now Geany shows up with check boxes and I can edit permissions.  There has to be a better way to do this.  Doesn't seem like this is in line with how security should be setup.


Arduino problem with uploading program to Arduino Uno WiFi through USB

I have problem with uploading Arduino program to my Arduino Uno Wifi device through USB interface on my Ubuntu 18.04.1 LTS. After initiating upload process I get this error:     avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied   I already tried to solve this problem by common ways like changing user permissions on this interface and adding logged user to dialout group with these commands:  sudo usermod -a -G dialout cmaa sudo chmod a+rw /dev/ttyUSB0   None of these commands solved my problem and error message from Arduino IDE remains the same. Do you have any suggestions how to solve this? Thanks in advance.


So this is my code for the RESET button. it's pretty complex and long.    textBox1.Text = string.Empty;  comboBox1.Text = string.Empty;  textBox2.Text = string.Empty;  radioButton1.Checked = false;  radioButton2.Checked = false;  checkBox1.Checked = false;  checkBox2.Checked = false;  comboBox2.Text = string.Empty;  textBox3.Text = string.Empty;  textBox4.Text = string.Empty;  textBox5.Text = string.Empty;   I Was Wondering can i just simplify this command using Looping or something?


C++ undefined reference to template method

I am trying to invoke a method of one class in a method of another class. The following code is working, but when I define the Invoke method of class Second in a separate .cpp file and not inline like it is now, I get the following error: undefined reference to 'void Second::Invoke(First*, TMethodDelegate::OneParam::TMethodPtr_Const)'. Can anyone explain it to me why the Invoke method works only when it is defined inline?  // MethodDelegate.h #pragma once  template <class TClass> class TMethodDelegate { public:     /** TMethodDelegate with no parameters */     template <typename TRetValue>     class NoParams     {     public:         typedef TRetValue(TClass::*TMethodPtr)();         typedef TRetValue(TClass::*TMethodPtr_Const)() const;      private:         inline NoParams() {}     };      /** TMethodDelegate with one parameter */     template <typename TRetValue, typename TParam0>     class OneParam     {     public:         typedef TRetValue(TClass::*TMethodPtr)(TParam0);         typedef TRetValue(TClass::*TMethodPtr_Const)(TParam0) const;      private:         inline OneParam() {};     };  private:     inline TMethodDelegate() {} };  // First.h #pragma once  #include <iostream>  using std::cout; using std::endl;  class First { public:     inline void PrintInt(int number) const     {         cout << number << endl;     } };  // Second.h #pragma once  #include "MethodDelegate.h"  class Second { public:     // When defined in a separate .cpp file I get an undefined error when I am trying to call the method in the main function     template <class TClass>     inline void Invoke(TClass* object, typename TMethodDelegate<TClass>::template OneParam<void, int>::TMethodPtr_Const Func)     {         if (object != 0 && Func != 0)         {             int number = 10;             (object->*Func)(number);         }     } };  // main.cpp #include "First.h" #include "Second.h"  int main() {     First first;     Second second;      second.Invoke(&first, &First::PrintInt); // I get the error at this line. If I comment the line - the code is compiling. This is only if the Invoke method is defined in a separate .cpp file of course }


Change language of caption in lstlisting

When I define a caption in lstlisting, LaTeX writes, for example, "Listing 1.1: ..." but I want to change the "Listing" to another language. How can I do this?


recently I saw this amazing picture on the internet:    It's the cover of a music album (Dazzled Sticks). When you look very close to the image, you only see red and blue lines. But when you zoom out, you see the face of a man. Does anybody have any idea how I can create such an effect with my own photo?  Thank you guys!


How to make sure OpenVPN stays connected?

I followed some instructions from  to connect to a VPN on startup, however, every few months something goes awry and I find myself not connected to the VPN. How can I kill the internet if it can't connect to the VPN?


Prove Euler's Theorem when the integers are not relatively prime

How can I prove Euler's Theorem:   $$x^{\phi(m)+1} \equiv x \pmod m$$   is still true when $x$ is not relatively prime to $m$?  Edit: when m=pq where p and q are distinct primes


I there any way for changing the order of custom post type name in permalink From /{custom-post-type}/{post-name} To /{post-name}/{custom-post-type} Is this possible?


Install All Apps on SD card On Micromax Unite 2

Recently i bought Micromax Unite 2, its a good phone but what problem I am facing is that it comes with internal storage of 4 GB and has external storage and I am using 8GB SD Card.  Under storage it shows free Internal storage of 0.90 GB (free 100 MB), External Storage of 7.47 GB (left 6GB free) and Internal SD card of 1.67 GB (left 1.67 GB free). By default it installs apps on Phone/Internal storage and its getting filled and I am left with only 100 MB and it gets hanged.   What is the difference between Internal SD Card and phone storage? Can I install all apps on Internal Storage (which is 1.67 GB free)?


Find largest prime factor for the number 600851475143L

I am getting output for 13195L, 24L, and 23L. But I am not getting output for 600851475143L. The system is going into infinite loop. Please help me identify what is wrong with my code.     package problem3;  public class problem3_version1 {     public static void main(String[] args) {         long dividend = 600851475143L;         // long dividend=13195L;         // long dividend=24L;         // long dividend=23L;         int num_of_divisors = 0;         for (long i = dividend - 1; i >= 2; i--) {             System.out.println("i =" + i);             int count = 2;             for (long j = 2; j < i; j++) {                 if (i % j == 0)                     count++;                 if (count == 3)                     break;             }             if (count == 2) {                 if (dividend % i == 0) {                     num_of_divisors++;                     System.out.println("Highest factor is " + i);                     break;                 }             }         }         if (num_of_divisors == 0)             System.out.println("The number is prime");     } }


I look forward to getting first-hand insights and behind-the-scene perspectives from XXX’s professors  who are thought leaders and experts in their fields.   Should I replace to getting with to get ?  I checked on other forums regarding to + -ING vs infinitive form, but I didn't find a satisfactory answer.     The to getting doesn't seem correct while speaking.


How to present reply chains on a mobile/condensed interface?

Take a website such as  where users can reply to a post, and then users can reply to that reply, etc.     I'm building a mobile application that deals with a similar situation with nested replies. However, I'm really stuck on how to implement it efficiently.  Mobile screens have such a narrow width. I feel this "indentation" pattern encounters problems very quickly. (Can't show very many comments deep, text boxes get narrower and narrower, etc.)  Does anyone have any alternative ideas on how I could implement this?


As a plugin developer, how do I remove a plugin from the global plugin directory?

I currently have a plugin in the global WordPress plugin directory that I'd like to remove. It is currently broken, outdated, and I do not intend to provide continuing support for it. To spare people the heartbreak of installing it, I'd like to remove it.  Unfortunately Google is flooded with how to remove plugins installed on WordPress sites, so that makes it hard to find a clear answer for this.


Is it possible to change your associated e-mail on Pokemon Go?

I signed up for Pokemon Go with my school e-mail that will soon be deleted. Is there any possible way to change the e-mail I use to sign in without losing all my game progress?


I really have no idea about what's going on here: "They are proud of the country whose independence they helped to establish". why "whose"? what does it mean here?


Is it mandatory to use a comma before a coordinating conjunction uniting the two independent clauses in a compound sentence?

My friend and I had an argument about whether this sentence required a comma:     I understand where you're coming from but I disagree.    My friend insisted that there should be a comma before "but":     I understand where you're coming from, but I disagree.   From my point of view, while grammatically correct, the addition of a comma is not necessary.   When I looked online for sources to answer our disagreement, I found no authoritative sources and many sources were contradicting one another. Some argued, like I believe, that it's not necessary because the addition of comma is of no value in that context (i.e. the addition of comma doesn't make the sentence easier to read) but others said it was mandatory.   So, which is it? Is a comma necessary before a conjunction?


Ever since I started playing with CS:GO, I've been in the bronze rank in Classic Competitive. No matter how many rounds I win, how many times I am the MVP, I won't get a new rank.    How does the ranking system work? How do you progress?


Hypothesis test for two groups distributed as a Poisson

I have to do an hypothesis test for two series, both distributed as a Poisson. The first groups has its mean, and the second another one: i have to test the significance of this difference. Which test should i use?  The t-test for the difference between two means? I try the U-test, but I don't think it's ok cause it's only for continuous distribution, not discrete as Poisson ones.


I tried to install Jupyter Notebook from  but sadly get this error.  how to fix it?  Do you want to continue? [Y/n] y Setting up linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ... Processing triggers for linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ... /etc/kernel/postinst.d/apt-auto-removal: Traceback (most recent call last):   File "/usr/local/bin/sort", line 6, in <module>     from sort import cli   File "/usr/local/lib/python2.7/dist-packages/sort.py", line 3     print('This is suroegin's package - sort')                             ^ SyntaxError: invalid syntax run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1 dpkg: error processing package linux-image-4.15.0-65-generic (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  linux-image-4.15.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   I already uesd:  sudo apt-get -f install     sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade


I have this code in LaTeX, I compile with "latex+dvips+ps2pdf+See PDF"  \documentclass[a4paper,12pt]{article} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \begin{document} \begin{figure} [h] \centering \includegraphics [width=8cm]{CircuitoRC.pdf}  \caption{Carga de un condensador en un circuito RC.} \label{fig:circuito} \end{figure} \end{document}   In \includegraphics it says me this:      LaTeX Error: Cannot determine size of graphic in CircuitoRC.pdf (no BoundingBox).See the LaTeX manual or LaTeX Companion for explanation.Type H  for immediate help.... \includegraphics [width=8cm]{CircuitoRC.pdf}   I don't know why.


Why do the authors of this paper disappear?

MWE:  \documentclass[referee]{svjour3}  \usepackage[english]{babel}  \begin{document} \cite{yang2008,yang2010}  \bibliographystyle{IEEEtran} \bibliography{IEEEabrv,bibfile_test} \end{document}   The cls file can be obtained from .  bibfile_test file:  @article{yang2010,   title={An analytical continuous-curvature path-smoothing algorithm},   author={Yang, Kwangjin and Sukkarieh, Salah},   journal={IEEE Transactions on Robotics},   volume={26},   number={3},   pages={561--568},   year={2010},   publisher={IEEE} }  @inproceedings{yang2008,   title={3D smooth path planning for a UAV in cluttered natural environments},   author={Yang, Kwangjin and Sukkarieh, Salah},   booktitle={Intelligent Robots and Systems, 2008. IROS 2008. IEEE/RSJ International Conference on},   pages={794--800},   year={2008},   organization={IEEE} }   Resulting PDF:    Why do the authors disappear in the second case? How do I fix it (short of manually editing the bib file)?


Is Thanos the *only* survivor of the collapse of Titan?

Is Thanos from Avengers: Infinity War the only survivor of the collapse of Titan? Where are his fellow Titans?    Do the comics shed some light on this or is it just considered not important?


Why didn't the mirror universe's tech progress past the main timeline's?

In Star Trek TOS, we see the Defiant disappear to unknown parts  ('The Tholian Web'), and Star Trek: Enterprise revealed that the Defiant went back in time to the mirror universe ('In a Mirror Darkly', parts 1 & 2).   Because of this, one might wonder why (in-universe) the mirror universe didn't obtain (and maintain) technological superiority over the main timeline. (Granted, the out of universe answer is that TOS depicted the two universes as having essentially the same level of tech)  So does any work (whether STO, or a pocket books work) address why the mirror universe didn't simply leap frog the main universe's technology?   (Or to put it another way, why did the mirror universe's technology appear to stagnate for a century after obtaining access to the Defiant's advanced technology?)


Proof that the chromatic polynomial of a simple graph G with n vertices has degree n.

I'm very confused as to why the degree of any chromatic polynomial of a simple graph $G$ that has $n$ vertices is $n$. I've tried using strong induction on the number of edges, but I end up getting something absurd.   Let $n$ be the number of vertices and $m$ be the number of edges. Consider a simple graph with n vertices and no edges. Then clearly the chromatic polynomial $P_G(x) = x^n$.  Now suppose that $G$ has at least one edge and let $e$ be an edge of $G$. Then by the Deletion-Contraction Theorem, $P_G(x) = P_{G-e}(x) - P_{Ge}(x)$. But both graphs $G-e$ and $Ge$ has fewer edges than $G$ itself, so by the inductive hypothesis, these two graphs with fewer edges have a chromatic polynomial of degree $n$.   The part that confuses me the most is that in general, $$\deg(f(x) - g(x)) ≤ \max\{\deg(f(x)), \deg(g(x))\}.$$ In this case, the degree of $P_G(x)$ is less than or equal to $n$. So what if you get chromatic polynomials for those two graphs with fewer edges both whose coefficients of $x^n$ is just simply equal to one? Then $x^n$ cancels out in the chromatic polynomial of the graph $G$ itself, which contradicts the fact that the degree of the chromatic polynomial of any simple graph with n vertices is $n$.  Can anybody point out to me what I'm doing wrong? Thank you in advance.


Please take a look on the following pseudo-code:  boolean blocked[2]; int turn; void P(int id) {       while(true) {              blocked[id] = true;              while(turn != id) {                     while(blocked[1-id])                     /* do nothing */;                     turn = id;              }              /* critical section */              blocked[id] = false;              /* remainder */       } } void main() {       blocked[0] = false;       blocked[1] = false;       turn = 0;       parbegin(P(0), P(1)); //RUN P0 and P1 parallel }   I thought that a could implement a simple Mutual - Exclution solution using the code above. But it's not working. Has anyone got an idea why?  Any help would really be appreciated!


How can I convert video and audio files into iPod/iPad playable formats?

I am quite a non-technical guy when it comes to such stuff and hence looking for "easy" solutions.   On Windows, I had used Red Kawa Videora to convert the various audio and video formats to iPod-playable formats. I think it also has a version which works on Mac.   I would like to know if there is other (possibly better and as much or more user-friendly) software which does the above job of converting various audio and video formats into what Apple products can play. (I guess what works on iPod also works on iPad.)


How to block certain email domain when signing up on my form (php)

Right now all that happens is that it will always say email banned  My code   //email validation     $email = htmlspecialchars_decode($_POST['email'], ENT_QUOTES);   $domain_name = substr(strrchr($email, "@"), 1);     $domainBlock = 'example.org';     echo "Domain name is : " . $domain_name;    if ($domain_name = $domainBlock) {     $error[] = 'Website Down For Maintenance';   }


equations that are too large to fit on one line

I have an equation that is too long to fit on one line:  x = a + b + c + d + e + f   as an example of what it looks like. What is the correct way to handle this? Do i break it up over multiple lines? Do I decrease the font? I am using LyX as my editor.


I just reinstalled my Ubuntu system with 11.10, but ran into a problem when I tried to install Gimp 2.7.  I always get unmet dependencies (it's german, so I can't tell you the exact english translation):     Needs gimp-data (<= 2.6.11-z) but 2.7.3-2011082002~oo should be installed   I already read the follow post, but the answers didn't really help me.  When I type in     sudo apt-get install gimp=2.6   it just says that there is no version 2.6 found. I get the same with 2.7.  I really need Gimp. But installing Gimp 2.6 isn't possible as well.  When I remove the repos for 2.7, I still get the same error.


Grid points inside a domain MATLAB IF statement evaluates TRUE when it shouldn't

I have this function that is supposed to, taking into consideration, certain constraints construct a grid. My question is why even though I have an if conditional that is supposed to be false it evaluates true. I have commented the part with the values. Any ideas why this is happening?  The function is:  function b = inside(x,y)      rightwall = @(y) y+0.16;     leftwall = @(y) y+0.1;      b = false;     if y < 0.04 && y > 0          if x < rightwall(y)             b = true;         end     elseif y >= 0.04  && y <0.06         if x > leftwall(y) && x < rightwall(y)             lw = leftwall(y)     % lw = 0.1400 is equal to x and if statement                                     % should not run             rw = rightwall(y)    % lw = 0.2000             x = x                % lw = 0.1400              b = true;         end     elseif y >= 0.06 && y <= 0.20          if x > 0.16 && x < 0.20             b = true;         end     end end


Convergence of $\sqrt{n}x_{n}$ where $x_{n+1} = \sin(x_{n})$

Consider the sequence defined as  $x_1 = 1$  $x_{n+1} = \sin x_n$  I think I was able to show that the sequence $\sqrt{n} x_{n}$ converges to $\sqrt{3}$ by a tedious elementary method which I wasn't too happy about.  (I think I did this by showing that $\sqrt{\frac{3}{n+1}} < x_{n} < \sqrt{\frac{3}{n}}$, don't remember exactly)  This looks like it should be a standard problem.   Does anyone know a simple (and preferably elementary) proof for the fact that the sequence $\sqrt{n}x_{n}$ converges to $\sqrt{3}$?


I have matrix: $A=\begin{pmatrix} 5 & 1 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 5 \end{pmatrix}$I found 2 eigenvectors: $\vec{v_{1} } =\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} \vec{v_{2} } =\begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}$Formula for generalized eigenvector is: $\left(A-\lambda I\right)\vec{x}=\vec{v} $How do I find generalized eigenvector and how do I know how much of them there are?If I put in this formula, I get $x_2=1$(for 1. eigenvector) and $x_2=0$ (for 2. eigenvector)? What will I do with $x_3$? Put the numbers I want or?


SEO preference: does a site with WWW rank better than without WWW?

After having read various articles on this site about WWW or Non-WWW website setup, ,  and , and after having setup a correct redirection rule in .Htaccess to at least eliminate duplicate contents (currently the non-www solution (e.g. http://example.com) I have a feeling that my site rank less since I changed this.   My confusion was strengthened by these two opponents:     &     Could the change of www.example.com >> http://example.com have a factual impact on ranking?  say either is better or worse. Are they holding information back?  I am confused fellow folks...  As much as I would like to separate facts from fiction, I am aware that not all the good valid information is written. Not on google webmaster site and perhaps not elsewhere. If so it seems out of date!  Does or does not a WWW domain impact SEO/rank better than its NON-WWW version? (Given that you have setup a proper redirect to avoid duplicates and go with one)


80s sci-fi movie, man walking from a desert, gets to a road and stops an aerodynamic autonomous semi

I remember watching a (maybe post-apocalyptic) sci-fi as a child, which featured an autonomous semi truck looking very similar to the one that Tesla motors presented. This part of the movie took place in surroundings similar to those of Mad Max, in that it was a desert like place.  A guy walked onto a road, stepped in front of this running autonomous cargo semi and the semi truck stopped and explained it was done based on a protocol programmed to save lives or something along those lines. The truck told the main character to step aside to allow the truck to continue. Then the main character somehow managed to hitchhike it, and got to a city I think, the rest I don't remember.


$T$ is an operator on $R^4$. And $T^3 + 3T^2 =4I$. Let $S= T^4 +3T^3 -4I$. Is $S$ invertible?  After a little calculation I found that $x(x+12)^2$ is an annihilating polynomial of $S$. Now the minimal polynomial divides the annihilating polynomial. Now if the minimal polynomial has zero root , then $0$ is an eigenvalue, thus $S$ isn't one-one, hence not invertible. But if $12$ is the only eigenvalue of $S$, then what? I can't go further.


How to change user password on mounted image of another system?

Having another Linux system mounted on /sys2. AFAIK passwords are stored there in second file of /sys2/etc/shadow file.  I'd like to set new password there. How to generate hash, which I can put there into second filed of desired row?  Btw. Is there nowadays one standard way of hashing passwords across Linux systems? I've checked on my three setups with different distributions and for same passwords I have same hashes.  P.S.   passwd -R /sys2 - option -R does not do the job for me. I do not have all mounts for chrooting. And system I mount is arm, and I mount it on x86. passwd -r ... - I couldn't figure out how to use -r repository option to work for me.


How to get the difference between modified date and current date in shell script?

#!/bin/bash echo "hi" path="/home/alert/VideoApplicationAPI.v1/logs" dayDiff=365  DATE=`date +%Y-%m-%d` for filename in $path/*.*; do     modDate=$(stat -c %y  "$filename")      #modDate=$(date -r   "$filename"+%s)      modDate=${modDate%%  *}     echo $filename:$modDate      #lastUpdate=$(stat -c %y "$filename")     now="$(date +%s)"     diff="${now}-${lastUpdate}" done  echo $DATE


Show that the complex integral is zero for any closed, piece wise smooth path

Suppose $\gamma$ is a closed, piecewise smooth path and suppose $n \neq -1$.  Show that $\int_\gamma z^n dz = 0$  I've spent way too much time with this problem.  I need a push in the right direction.  I've basically been trying to show that this function has an antiderivative on some region, but is that enough or even the right path?


Tour of Stack Exchange offices, other than NY HQ?

I really got the idea from  I live closer to Denver, is there much of an office there? What about your London offices?    Can we have a sneak peak at the other offices as well?


My system log is filling up with messages like the following: sshd[17572]: Invalid user admin from 71.213.202.114 port 45636   sshd[17572]: Received disconnect from 71.213.202.114 port 45636:11: disconnected by user [preauth]   sshd[17572]: Disconnected from invalid user admin 71.213.202.114 port 45636 [preauth]    There are attempts for 13 users on 1 - 3 ports each from one IP before the cycle repeats from another IP. My firewall config is:     Name Type Targets Filters Protocols / ports Action Priority Network     default-allow-icmp Ingress Apply to all IP ranges: 0.0.0.0/0 icmp Allow 65534 default   default-allow-internal Ingress Apply to all IP ranges: 10.128.0.0/9 tcp:0-65535 Allow 65534 default   ” ” ” " udp:0-65534 ” ” ”   ” ” ” " icmp ” ” ”   default-allow-rdp Ingress Apply to all IP ranges: 0.0.0.0/0 tcp:3389 Allow 65534 default   default-allow-ssh Ingress Apply to all IP ranges: 0.0.0.0/0 tcp:22 Allow 65534 default   jamulus-fj Ingress jamulus-fj IP ranges: 0.0.0.0/0 udp:22124 Allow 1000 default     With the exception of trying to open UDP 22124, this is the default Google Cloud setup. I’m a relatively inexperienced admin. I want to have reasonable security and keep my log files from filling up every 30 minutes. Another post suggests that “Open only ports 80 and 443 to the world, all other ports must be restricted to expected IPs”. How can I do this? Any other suggestions that would address my concern?


Stop nagging new users about their accept rate

I'm on Stack Overflow and will stop using this site due to pests. The 'accept an answer' is fine if:   the person who asked the question found utility in an answer has enough knowledge to recognize a good answer   Here's the problem.  Newbies like me don't have enough knowledge in the subject matter to recognize a good answer.  As an example, say you're learning how to work on motorcycles and you ask "I have a loud mechanical noise coming from the gearbox area" and someone says 'you need to synchronize your carburetors.'  Well you're just LEARNING so you can't 'ACCEPT' that answer, -- you just don't know. (by the way, sychronizing the carbs IS in fact the right answer to the above! The noise was the primary drive chain inside the engine - but you didn't know that -- see my point here?)  Okay, meanwhile I'm getting these pests saying 'Your acceptance rate is terrible' well B.S. I don't know enough yet!  It's  too much of a distraction and it GIVES THIS SITE A NEGATIVE 'BULLYING' VIBE.  Being berated in public, on a public forum, is NOT COOL.   Here's the suggestion.  Tell users to LAY OFF NEW PEOPLE. Tell folks "new users don't always know enough to recognize a good answer.  Let them learn enough of the subject matter, then they will naturally know the good from the bad."  Otherwise I'll stop using the site.  I'm tired of being bullied, harrassed, hen-pecked, and brow-beaten.  I came here to learn, not bullied to follow a protocol that makes NO SENSE when you have no idea what answer to accept.


In Batman #1 in the New 52, when we visit the Batcave for the first time, we see a dinosaur:     What... is up with that? It is a completely awesome cave decoration - but what else is it? Is it a non sequitur or is it a call back to an earlier storyline? I imagine it's the latter – a life-size T-rex model is an expensive piece of decor, even for Bruce Wayne.  Bonus points: are there any other relics from past storylines visible in this Batcave?  Update: here's a shot of the other panel that gives us a view of the "showroom" (including the huge dice).


Number of $k$-dimensional subspaces in $V$

I know my following question is somewhat similar to  but still I need help .  How many $k$-dimensional subspaces of a $n$-dimensional vector space $V$  over the finite field $F$ with $q$ elements are there?