In my previous version, in Natty I think, I installed MS Office and some other windows software via wine. They have cluttered a lot of places including the Open with and other mime related operations. Is there a way to purge them and remove all wine based entries that now I have no wine program installed?  I want, if possible to purge all entries that have to do with wine. I installed/uninstalled them using wine. Purging wine does not help  TIA

I recently ran the iTunes 10 installer in Wine and everything seemed to go well. Then, when I tried to run it, it would constantly crash/and the appearance would be glitchy. After looking at the Wine website, it turns out that iTunes 10 has a 'garbage' rating of Wine compatability.  Now I'm trying to remove/uninstall iTunes, QuickTime, and the other applications that come default with installing iTunes (such as Bonjour, etc.). However, when I run the 'uninstaller' that wine provides for the programs, it instead executes what appears to actually be the original installer! I've tried deleting all the configuration/data files in my Wine's file-system, but to no avail.  Any help is greatly appreciated!  Edit1: After re-running the uninstall process and then rebooting, the program (iTunes 10) still remained installed.


Every connection needs to be opened and closed. But what time is the best or it depends on the situation?   Open connection when initiate a windows(WPF), form(Windows form), webpage(ASP.NET) and close when the user close window/form/webpage. Open connection only when user calls the database. For example the user click "Add" button and we run the SQL "INSERT..." then close the connection ASAP. Then if the user click Add/Edit again we have to reconnect to the database, run the SQL and close it ASAP again?   Both solutions have their advantages. By keeping the connection, we will make the program more performance. By keep connecting and disconnecting, the performance will drop.

I have a .net client application which is connected to a remote database. Is it safe to keep a single connection open for the lifetime of the client (hours)? Does the answer hold if I have multiple (10 or 100) clients running?


I am trying to modify a syllabus I found on internet. In particular, I would like to include some logos before the Course name and description. My MWE is the following:  \documentclass[11pt]{article} \usepackage{fullpage} \usepackage[left=1in,top=1in,right=1in,bottom=1in,headheight=3ex,headsep=3ex]{geometry} \usepackage{graphicx} \usepackage{float}  \newcommand{\blankline}{\quad\pagebreak[2]}  \title{Course Code: Course Title} \author{Instructor name} \date{Semester, Year}  \usepackage[sc]{mathpazo} \linespread{1.05}  \usepackage[T1]{fontenc} \usepackage[mmddyyyy]{datetime} \usepackage{advdate} \newdateformat{syldate}{\twodigit{\THEMONTH}/\twodigit{\THEDAY}} \newsavebox{\MONDAY}\savebox{\MONDAY}{Mon} \newcommand{\week}[1]{   \paragraph*{\kern-2ex\quad #1, \syldate{\today} - \AdvanceDate[4]\syldate{\today}:}   \ifdim\wd1=\wd\MONDAY     \AdvanceDate[7]   \else     \AdvanceDate[7]   \fi } \usepackage{setspace} \usepackage{multicol} \usepackage{fancyhdr,lastpage} \usepackage{url} \pagestyle{fancy} \usepackage{hyperref} \usepackage{lastpage} \usepackage{amsmath} \usepackage{layout}  \lhead{} \chead{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   \rhead{\footnotesize Text in header}   \lfoot{} \cfoot{\small \thepage/\pageref*{LastPage}} \rfoot{}  \usepackage{array, xcolor} \usepackage{color,hyperref} \definecolor{clemsonorange}{HTML}{EA6A20} \hypersetup{colorlinks,breaklinks,linkcolor=clemsonorange,urlcolor=clemsonorange,anchorcolor=clemsonorange,citecolor=black}  \begin{document}  \thispagestyle{empty}  \noindent \begin{minipage}{.17\textwidth} \begin{flushleft} \includegraphics[width=2.5cm]{example-image-a.png} \end{flushleft}  \end{minipage} \begin{minipage}[c]{.66\textwidth}\centering {\bfseries Ph.D. in Economics, Management \& Statistics}\par \medskip {\bfseries University of A \& University of B}\par \medskip \end{minipage} \medskip \begin{minipage}{.17\textwidth} \begin{flushright} \includegraphics[width=2.5cm]{example-image-b.png} \end{flushright}  \end{minipage}  \maketitle    \begin{tabular*}{.93\textwidth}{@{\extracolsep{\fill}}lr}   E-mail: \texttt{username@ncsu.edu} & Web: \href{www4.ncsu.edu/~username}{\tt\bf www4.ncsu.edu/~username}  \\   Office Hours: M 10-11:45am  &  Class Hours: T/Th 3-4:15pm \\   Office: ... & Class Room: ... \\  & \\ Lab Room: ... & Lab Hours: W 3-5pm \\ &  \\ \hline \end{tabular*}  \vspace{5 mm}   \section*{Course Description}  Bla bla bla ...  \bigskip  \noindent New paragraph. Bla bla bla ...   \section*{Required Materials}  \begin{itemize} \item Course notes available on Moodle. Books. Tech. Bla bla bla ... \end{itemize}  \section*{Prerequisites/Corequisites} Prerequisites: MA 116, ... .  Corequisites: ... .  \section*{Course Objectives} Successful students: \begin{enumerate} \item ... \item ... \item ... \item ... \item ... \item ... \end{enumerate}   \end{document}   However, the logos and the names of the Universities appear in a separate page. Instead, I would like to have them just before the Course Title. Any suggestion? Thanks in advance.

I want my page to look something like this (using \documentclass{article}):     text       title       text   but I can't get it right, it puts my title on the next page leaving my first text paragraph on separate page. What should I do?


With a js module pattern, I think functions are commonly defined like this:  var loadData = function(myParam1, myParam2){}   However, the js module pattern still works with functions defined like this:  function loadData (myParam1, myParam2){}   Is there any practical reason to define functions as variables in a js module?  Is a function variable generally expected from a design standards perspective for a publicly exposed method within a js module?  Or is the implementation style really more of a matter of personal preference?

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


I may be thinking/using header files the wrong way, but currently I'm using 1 .cpp file and the rest are all in header files. I have things like a screen which is an array of characters in a header file, I have the function to draw the screen to the terminal in a header file, I have all my global variables in a header file, but I have game.cpp where all those files will be used. I am doing this wrong? I feel like at this point there's no reason to use .cpp files. Header files seem to be so much better because I avoid the issue of redeclaration.

Why does C++ have header files and .cpp files?


I have a word document that was created using 9 X 6 as the custom paper.  I dont have that size paper just the normal 8 x 11.5.  How can I setup word to print the document with its current size but on the normal paper?


I'm new to Ubuntu OS, recently I'm installed Ubuntu 16.04 LTS on my system. I'm trying to enable my root user by terminal using following commands :  sudo passwd root   and then :  sudo passwd -u root   It gives me a message :  passwd: password expiry information changed   But when I'm restarted my system it did not shows ROOT account for login. Is I made any mistakes.   I referred following link : In this link they give the answer to enable root user, but it is not working in my case.   Please any kind of help is appreciated. Thanks in advance.  What if I want to install any software for all users, without using terminal and commands, how can I do that ?

Why does Ubuntu not allow the GUI users to login as root at the time of system start up like administrator in Windows?  Why they are restricting us to login only through the terminal?


When adding a new object in object-mode a dialog with settings pops up. I know it is possible to bring that dialog back, but can't remember how?

hello everyone I have a little problem, how do I bring up the menu in the circle? when I select another object the menu becomes non-existent


I have to use PHP code in contextual filter code in a "Arguments/Contextual Filters" of a view:   global $user; $uid=$user->uid;  $pid=db_query("select pid from profile where uid='$uid';")->fetchField();  $equipo=db_query("select field_equipo_proyecto_target_id from field_data_field_equipo_proyecto where entity_id='$uid';")->fetchField();  $num_equipo=db_query("select field_num_equipo_proyecto_value from field_data_field_num_equipo_proyecto where entity_id='$equipo';")->fetchField();;  printf("%02d",intval($num_equipo)); return sprintf("%02d",intval($num_equipo));   I think I have some error because I can´t get a correct value. I would like to know how display variables such as $num_equipo, etc to debug my code easier.

In views I can add PHP snippets for custom validation or when I want to provide default value for contextual filter. It is telling me that I can use $view or $argument - but where is documentation of these objects? Where can I read what are my possibilities in these areas (or how check this, by using debugger for example)?


Here is the background. So, I am playing in a campaign where I have a homebrew spell with allows me a Zombie-like companion (basically a Zombie with additional HPs).   If I cast the spell every 8 hours for 8 days, I get to keep it as a permanent companion. However, I'm trying to work out how I can restore or increase its HPs, so that it doesn't die (lol) on me.   Would a Zombie companion (un)naturally recover HPs each day?   This is not a question about "healing" an undead creature such as a zombie.

Fifth edition seems to have removed any means of healing undead.  The positive/negative energy duality of 3rd edition seems to be gone. Negative energy spells now do necrotic damage; some undead are resistant or immune to necrotic damage, but it isn't listed as healing them. Classic negative energy spells like inflict wounds and harm don't list undead healing as a possible effect.  For zombies and skeletons it might not matter, but liches and vampires would never risk their necks if they didn't have some way to recover hit points. What is it?


I'm looking for an algorithm to create a table of false color. Of course we can use something like  void ImgCoreQCV::GeneratePseudocolorTab(vector<Vec3b> &vec, int iNColor) {    for(int i=0; i<iNColor; i++){         int b = theRNG().uniform(0, 255);         int g = theRNG().uniform(0, 255);         int r = theRNG().uniform(0, 255);      /*int b = rand()&255;     int r = rand()&255;     int g = rand()&255;*/      vec.push_back(Vec3b((uchar)b, (uchar)g, (uchar)r));     } }   but often generated color are very similar. Perhaps there is an algorithm in which the difference between the perception of colors is maximum?

I wrote the two methods below to automatically select N distinct colors. It works by defining a piecewise linear function on the RGB cube. The benefit of this is you can also get a progressive scale if that's what you want, but when N gets large the colors can start to look similar. I can also imagine evenly subdividing the RGB cube into a lattice and then drawing points. Does anyone know any other methods? I'm ruling out defining a list and then just cycling through it. I should also say I don't generally care if they clash or don't look nice, they just have to be visually distinct.  public static List<Color> pick(int num) {     List<Color> colors = new ArrayList<Color>();     if (num < 2)         return colors;     float dx = 1.0f / (float) (num - 1);     for (int i = 0; i < num; i++) {         colors.add(get(i * dx));     }     return colors; }  public static Color get(float x) {     float r = 0.0f;     float g = 0.0f;     float b = 1.0f;     if (x >= 0.0f && x < 0.2f) {         x = x / 0.2f;         r = 0.0f;         g = x;         b = 1.0f;     } else if (x >= 0.2f && x < 0.4f) {         x = (x - 0.2f) / 0.2f;         r = 0.0f;         g = 1.0f;         b = 1.0f - x;     } else if (x >= 0.4f && x < 0.6f) {         x = (x - 0.4f) / 0.2f;         r = x;         g = 1.0f;         b = 0.0f;     } else if (x >= 0.6f && x < 0.8f) {         x = (x - 0.6f) / 0.2f;         r = 1.0f;         g = 1.0f - x;         b = 0.0f;     } else if (x >= 0.8f && x <= 1.0f) {         x = (x - 0.8f) / 0.2f;         r = 1.0f;         g = 0.0f;         b = x;     }     return new Color(r, g, b); }


Trying to create custom email validation for below rules   The local part can be up to 64 characters in length and consist of any combination of alphabetic characters, digits, or any of the following special characters: ! # $ % & ‘ * + – / = ? ^ _ ` . { | } ~ The period character (".") is valid for the local part subject to the following restrictions: A. it is not the first or last character B. two or more consecutive periods top level domains cannot be all numeric hyphens cannot be the first or last character      ^([a-zA-Z0-9!#\$%&‘*+/\=\?\^_'`}{\|~-][.]?)@[a-zA-Z0-9]+(?:(.)\0?(?!\1))[a-zA-Z0-9-]*[a-zA-Z0-9]+(.[a-zA-Z0-9]{2,63})+$   First part (before @ )is good but unable to place    two or more consecutive periods hyphens cannot be the first or last character  for example leela.test@te-st.gm-ail.com(correct) leela.test@te-st..gm-ail.com(incorrect) leela.test@.te-st.gm-ail.com(incorrect) leela.test@-te-st.gm-ail-.com(incorrect) leela.test@.te-st.gm-ail-.com(incorrect) leela.test@test.gmail.com(correct) leela@gmail.com(correct) leela@test.gm-ail.com(correct)   Please help.

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I got notifications yesterday that I had earned gold tag badges on scifi stack exchange which was odd because I earned those badges years ago and was actually the first person to have those. Notification:  Badge 1:  Badge 2:  Here's  I closed as duplicate about a year ago with my gold tag badge privileges.

Across the network, users are reporting cases where tag badges are re-awarded:   (Role-playing Games)  (Mathematics)  (Spanish Language)  (Arqade)  They basically lose all their tag badges, and then get them all back at once:


On nearly every camera I've used, the scale of shutter speeds goes something like:  1s, 1/2s, 1/4s, 1/8s, 1/15s, 1/30s, 1/60s, 1/120s, 1/250s, 1/500s, 1/1000s, 1/2000s  whereas clearly a scale of halves actually runs:  1s, 1/2s, 1/4s, 1/8s, 1/16, 1/32s, 1/64s, 1/128s, 1/256s, 1/512s, 1/1024s, 1/2048s.  That's close enough, but still, there's a difference, and I imagine that with high-precison electronic shutters it's quite possible to be right on the mark with timings.  Where on the scales are the marked, nominal values generally intended to be true (i.e. where are the shutter makers aiming for true accuracy, even if it's only an aim):   along the up to 1/8s range (where they match the actual scale of halves) along the 1/15-1/120s range (where they are off at a ratio of 0.9375) along the 1/250s and faster range (where they are off at a ratio of 0.9765625)?   I am well aware that mechanical and even electronic tolerances may in most circumstances render quibbles over tiny fractions of a second moot. I am equally well aware that many of the scales and numbers used in photography are convenient approximations, and not intended to be taken at face value.   Even so, the fact remains that in design and manufacture an approximation of an ideal still requires a conception of that ideal. Just because a standard is an ideal and can't be met, or it doesn't really matter if it's not met, doesn't mean that design and manufacture don't need ideals, or don't work with them.   I guess that the point of truth in the shutter timings scale is 1s=1s, and all the other numbers are allowed to be approximations if necessary, but it would be nice to know.

Here are some common shutter speeds you will find on most DSLR cameras:   1/15, 1/30, 1/60, 1/125, 1/250, 1/500, 1/1000, 1/2000, 1/4000   As you move from left to right, or as you increase the shutter speed, you are halving the amount of light that hits the sensor. In other words, you are decreasing the amount of light by one stop for each step. So 1/30 is half of 1/15, and 1/60 is half of 1/30. But then you come to 1/125, which is not half of 1/60. Half of 1/60 is 1/120. This is basic math.  So you break the sequence or pattern. But as you continue, it starts to make sense again. So 1/250 is in fact half of 1/125, and 1/500 is in fact half of 1/250, and 1/1000 is in fact half of 1/500, so on and so forth.  So there appear to be two distinct sequences here.   1/15, 1/30, 1/60 1/125, 1/250, 1/500, 1/1000, 1/2000, 1/4000   Is there a sane reason for this?  I know that people sometimes talk about half stops or even thirds of a full stop. But then what is 1/125 the half stop, or third stop of? If you increase 1/60 by a third you get 1/180. This setting does not exist in the standard sequence. The closest you will get is 1/160. If you increase 1/60 by a half, you get 1/120 and it doesn't exist either.  Is this all arbitrarily set by the camera manufacturers, or is there perhaps some reason and history behind this?


Want to open in my Gmail email account, but can't.  I've set up a new Gmail account for a friend on my computer and now every time I go to my Gmail account, my friend's login details come up instead.

I have a Gmail address with my employer, a personal Gmail address, and a Gmail address for my personal business.  My girfriend also has a Gmail address she uses on the same PC. Currently this requires much logging in/out to switch between everything because besides Gmail I use Google Docs, App Engine, and other sites that use the same credentials.  Is there a way to keep all of these accounts open in the same browser at the same time without constantly having to log in/out?


I was making this tomato bisque and the recipe called for 1 cup sugar so I thought I added 1 cup of sugar. But what I added was 1 cup of truvia, an artificial sweetener so my 1 cup of sugar is really 2 cups of sugar. I have added 3 cans more of diced tomatoes plus some dill, even a can of tomato sauce. There is 1 quart of half and half and 1 quart of heavy cream. How can I salvage the soup?

I was making this recipe: , which was from the old Lincoln Del, one of my mom's favourite places. I mistakenly doubled the sugar, putting in 1/2 a cup instead of a 1/4 of a cup. Given the 2/3 of a cup ketchup, which was Heinz, the soup turned out way, way too sweet.   Is there any way I can rescue this?


How do I install ISO file in Ubuntu virtualbox with 64 bit? I have the ISO file yosemite.

I installed 64 bit Ubuntu 14.04 in my home PC and Virtual Box in it. But the real problem is V box only shows 32 bit OSes. I had a same problem in 12.04 also(and i didn't got a solution!). Is there any solution for that? I really need to install 64 bit windows as a VM. I use V Box version 4.3.10.


Update: I found my answer in an answer to another feature request. Basically, this was done for accessibility reasons, as well as to make the style match. I didn't find that post initially because the question there asks about something entirely different; this question helps other users who search for this find that post.  I recently realized I made an incorrect comment, and I proceeded to delete it. However, when I was mousing over the comment to show the button to delete it, I noticed that the button to delete the comment had changed from the gray X symbol to the word "Delete":        Also, I noticed that the "Edit" button is now capitalized, whereas it used to be lowercase.  Is this an intentional change, or a bug?

If I write a comment, make a typo, submit the comment, and then notice the mistake and want to correct it by editing the comment, I can't do that as a keyboard-only user.  If I try to tab to the "edit" button, the focus goes from the timestamp of the comment, straight to the () delete button, skipping right over the "edit" button.  Could we please be able to tab to "edit"?  If you're confused as to why it's important that things be accessible without the mouse, please read up on . While I thankfully don't have any physical problems with using  a mouse, I'm using my time with a broken mouse to give accessibility feedback so that people who need it can get a better site experience.


I've just performed a clean install of OS X Yosemite 10.10.3 on my new hard drive. Before installing i formatted the disk as an encrypted drive. When i start up my machine now i get to select between my account and button showing a question mark stating update required before the actual booting starts. I assume this is for decrypting the drive. When selecting my personal account the machine boots right into the operating system without a detour. When selecting the question mark i get prompted to select my personal account after the process of booting is finished.  I am certain that this unnecessary second option is due to the encryption of the hard drive as it first showed after restarting during the installation process when no user account had yet been created. However i have no idea how to get rid of it. Help therefore is appreciated.

A couple of days ago I updated my Macbook Pro to OS X Yosemite, the update was fine and everything seemed to be working. However since this whenever I had shut down then later logged back in or restarted my macbook I have encountered the screen pictured below.   My user profile has no picture and says [update needed] rather than my name. I can still select it, enter my password and log on. An update complete and then everything is ok. The same thing happens every time I go to log on.   Any ideas of how to solve this  Thanks


I was reading the other questions about how flags now convert to close votes since I just breached 3k rep, and I was wondering -- does this mean I am no longer eligible to obtain the Marshall Badge (500 flags)? I'm at 142 right now and I'm kind of bummed out to hear that I might not be able to get the badge anymore.

Possible Duplicate:          I recently got the ability to cast close votes. So, even if I flag a question as 'not constructive' or 'not a real question', it is still considered as a close vote. What is strange is that my 'helpful flag' count has stopped increasing after this change. Or at least it doesn't increase in cases where my flagging was automatically changed to a close vote and the post actually was closed. Is this how it is supposed to be?   I am guessing that once the post gets closed, the moderators are probably not bothered about marking flags as helpful. The only problem is that the Deputy badge will be much more difficult to get now. Earlier all the flags were getting converted to helpful, but now they just go in as close votes and don't show up on my profile page.


Why is it that when I run curl against a REST API, the special characters (!) in my key are interpreted by the shell?   curl https://foo.my.salesforce.com/services/data/v28.0/ -H "Authorization: Bearer '00DE0000000K0eM!AQYAQGgmLxxxxxxxxxxx'"   -bash: !AQYAQGgmLxxxxxxxxxx'": event not found   According to , using a single quote should prevent bash from interpeting the string  As a workaround, I tried using a \ character, however that causes the key to be rejected.   curl https://foo.my.salesforce.com/services/data/v28.0/ -H "Authorization: Bearer '00DE0000000K0eM\!AQYAQGgmLxxxxxxxxx'"   [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]   How can I prevent bash from interpreting the string?

Today, I was caught redhanded while attempting to code golf a password generator for Twitter.  import string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))   90 chars. Since that is a lot of spare space, I decided to raise the bar and make it executable too.  echo -e "#!/usr/bin/python\nimport string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))">pg;chmod +x pg;./pg   139 chars. Nice, except obviously bash chokes on the exclamation point.  badp@delta:~$ echo -e "#!/usr/bin/python\nimport string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))">pg;chmod +x pg;./pg bash: !/usr/bin/python\nimport: event not found   Pesky exclamation point. "Let's escape it," I thought! I do have one spare character after all.  echo -e "#\!/usr/bin/python\nimport string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))">pg;chmod +x pg;./pg   Obviously...  badp@delta:~$ echo -e "#\!/usr/bin/python\nimport string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))">pg;chmod +x pg;./pg ./pg: line 2: syntax error near unexpected token `(' ./pg: line 2: `import string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))' badp@delta:~$ cat pg #\!/usr/bin/python import string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))   Leaving my asinine code golfing aside -- I can't explain this.  With \!, the exclamation point was escaped, except it really wasn't, because the \! was left as-is for echo to pick up.  One solution could have been using \x21 instead, but I'm not convinced that's the proper way of escaping an exclamation point in a bash command.  tl;dr: How do you properly escape an exclamation point in a bash command?


This is more like only well-known fact to me, but no one really coherently explained it to me. I’ve only done questions for proving that a polynomial is an identity: for example, in the case of a quadratic, all the three standard coefficients should be zero for it to be an identity. I wanted more intuition for this. Can someone explain the whole topic and relevant surrounding stuff to me?

How can I prove, that a polynomial function $$f(x) = \sum_{0\le k \le n}a_k x^k\qquad n\in\mathbb N,\ a_k\in\mathbb C$$ is zero for at most $n$ different values of $x$, unless all $a_0,a_1,\ldots,a_n$ are zero?


Teachers and students sometimes refer to homework assignments as "homeworks". Is that an acceptable usage?

I was wondering if "homework" is countable? I remember it is an uncountable noun when I learned English in middle school.   Suppose now I would like to ask my teacher to hand back my graded "homeworks" of last three times. How shall I ask him?


I created a thick glass bottle and duplicated the interior faces to make a new object to create the liquid inside.   I went in the edit mode, selected the faces I wanted to copy and duplicated them with ShiftD. Then I pressed P to  separate the duplicated faces.   Now I try to make a duplicate of that liquid to make it flow out of the bottle, and I simply need the duplicate of one face of it. So I go to edit mode and do as I did to make the liquid from the bottle faces... but as soon as I'm back to the object mode and I want to move the duplicated faces, every thing moves with it...   I played around and tried things, and while doing so I realized that if I dupe the liquid object in object mode using ShiftD and press 0 to place it where the original is, they move together if I duplicate it and place it somewhere else so that they are separated.   Also if I pick one of the two separated objects and make it intersect with the other one, release my left mouse button to place it there, and then try to move it again, they both move together, but not at the same speed.  I really don't understand what is going on and I'm sure it's really badly explained, so what I'll do is make a screen capture of my Outliner and record the behavior of the objects and upload those to help you understand.

I'm facing this frustrating "feature" that I can't seem to remedy; when I duplicate an object (and now, even when I create two completely new objects), their transformations/scaling is synchronized. This is extremely annoying when trying to use any sort of transformation keyboard shortcut.  It should be noted by going to the properties menu (N) and manually setting the properties works just fine.  For instance, here is just the camera selected (trust me, I made sure):   And when I try to transform by clicking+dragging on the X axis OR by hitting G->X, this happens:   They are not grouped (verified by going to the Groups list up in the Scene panel) and they do not have parents (verified by going to Object->Relations).  I have tried the unlink command as well, to no avail.  I have seriously run out of options; what did I change to have my G->X shortcuts transform multiple objects? It seems completely at random, too; certain objects seemed to be "linked" to other random objects, and this "linking" is guaranteed when duplicating even when I do a non-linking duplicate (Shift+D).  What gives?


Sometime application having crash issue and my crash log show me Error like this :    Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v4.util.SparseArrayCompat.size()' on a null object reference        at android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:570)        at android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:480)        at android.app.Activity.performSaveInstanceState(Activity.java:1495)        at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1316)        at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:5194)        at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4519)        at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4582)        at android.app.ActivityThread.access$1300(ActivityThread.java:218)        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1747)        at android.os.Handler.dispatchMessage(Handler.java:102)        at android.os.Looper.loop(Looper.java:145)        at android.app.ActivityThread.main(ActivityThread.java:6917)        at java.lang.reflect.Method.invoke(Method.java)        at java.lang.reflect.Method.invoke(Method.java:372)        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)   how to fix this error??  please help me thanks in advance.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've tried all the ways from the answers here, but have not worked. So far I have done:    jQuery(function($) {   $(document).ready(function(){       $("#sb-search").click(function(){           $(".sb-search").addClass("sb-search-open");           $("body").click(function(){               $(".sb-search").hasClass("sb-search-open");               $(this).removeClass("sb-search-open");           });       });   }); });
     <form autocomplete="off" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">         <input class="sb-search-input" type="search" value="" name="s" id="s">         <input class="sb-search-submit" type="submit" value="">              </form>
      I want to remove the .sb-search-open class after clicked outside the div

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


I want to know where the source is to look all tables available to query. For example, a few months back I came to know we can query ApexClass, TestCoverage, etc.  SELECT Id, CreatedBy.Name FROM ApexClass SELECT Id, RecordType.Name FROM RecordType   Is there a way I can know how many tables are available to query through SOQL?

Except standard object or custom setting, what are the other things can be queried. example : Apex Jobs.


I'm trying to implement a generic Bag class which, can count the number of Objects in the bag greater than object x, for this I'm using a Date class to test it.  Bag code:  class Bag<T extends Comparable<T>>  {// generic class with T standing for a class  private T[] bag = (T[])(new Object[100]);                  private int numElements = 0; // junk in bag[numElements..]   void add(T x)  { // put x in bag         bag[numElements] = x; numElements++; }  int freq(T x)  { // how many x’s in bag?         int count = 0;         for (int i=0; i<numElements; i++)             if (bag[i].equals(x)) // .equals because T a class                  count++;         return count; }  int numGreater(T x) {//number of objects greater than x      int greaterThan = 0;     for(int i = 0; i<= bag.length; i++)     {         if(bag[i].compareTo(x) == 1)         {             greaterThan++;         }     }     return greaterThan; } }   Date code:  import java.util.*; import java.lang.*;  class Date implements Comparable<Date>   { // dates  private int day, month, year;  Date(int day0, int month0, int year0)  {     day = day0; month = month0; year = year0; }  public String toString()  {     return "" + day + "/" + month + "/" + year; }  private int elapsedDays()  {     // Number of days elapsed from 1/1/1900 to this date     int days = (year-1900)*365+(year-1901)/4;      int k = 1;     while (k<month)      {         int daysInMonth;     if (k==9||k==4||k==6||k==11)daysInMonth = 30;         else if (k==2)          {             if (year%4==0 && year!=1900) daysInMonth = 29;             else daysInMonth = 28;         }         else daysInMonth = 31;         days = days + daysInMonth;          k++;      }     return days + day;     }      public int compareTo(Date d)     {         if(d.elapsedDays() > elapsedDays())         {             return -1;         }         if(d.elapsedDays() == elapsedDays())         {             return 0;         }         return 1;     }    }   and finally the test program i'm using:  import java.util.*; import java.lang.*;  class BagTest { public static void main(String[] args)  {//finds dates greater than today     Bag<Date> ds = new Bag<>();     Date today = new Date(07,11,2013);     Date d1 = new Date(1,11,2013);     Date d2 = new Date(8,11,2013);     Date d3 = new Date(9,11,2013);      ds.add(today);     ds.add(d1);     ds.add(d2);     ds.add(d3);      System.out.print(ds.numGreater(today)); } }   The error message i'm receiving is as follows:  Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; can not be cast to [Ljava.lang.Comparable;         at Bag.<init>(Bag.java:6)         at BagTest.main(BagTest.java:8)   Thanks in advance for any help!

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


Let $T > 0$. Let $f \colon [0, T] \to \mathbb{R}$ be a Lebesgue measurable function with \[ \int_0^T \lvert f(s) \rvert ds < \infty. \] Suppose that \[ \int_0^t f(s) ds = 0 \] for all $t \in [0, T]$. Does it hold that $f(s) = 0$ a.e. $s \in [0, T]$? I know that if we add $f > 0$ to the assumptions above, the conclusion holds. But I don't come up with a proof for sign-changing functions at the moment. We can prove the positive functions version if we notice that the inclusion $C^\infty_c [0, T] \subset L^1[0, T]$ is dense. Thus, I tried to apply this fact for sign-changing version with $f^+ = \max(0, f)$ and $f^- = \max(0, -f)$, only to find that they did not work well with my effort. Do you have a good idea to obtain a proof, or a counterexample?

This is a corollary to a proof in Bass, but I don't understand why it follows from the proof he gives. I follow everything up until the last statement. Why is it that proving that the integral is $0$ for all Borel measurable sets guarantees it is true for all Lebesgue measurable sets? Am I missing something vital about the relationship between Lebesgue measurable sets and Borel measurable sets? Statement: Let $m$ be Lebesgue measure and $a \in\mathbb R$. Suppose that $f : \mathbb R \to\mathbb R$ is integrable, and $\int_a^xf(y) \, dy = 0$ for all $x$. Then $f = 0$ a.e. Proof: We prove the conclusion first for intervals, then for unions of intervals, then for open sets, then for Borel measurable sets. For any interval $(c,d)$, we have $$\int_c^df = \int_a^d f - \int^c_a f = 0.$$ By linearity, if $G$ is the finite union of disjoint open intervals, then $\int_G f = 0$. Now, if $G$ is open, then $G$ is the countable union of disjoint, open intervals, $G = \bigcup^n_{i=1}I_i$. We have $$\int_G f = \int \lim_{n\to\infty} f \cdot \chi_{\bigcup^n_{i=1} I_i}$$ and since $f_n$ is integrable for all $n$, and $|f_n| \le f$ for all $n$, by the dominated convergence theorem, $$\int_G f = \lim_{n\to\infty} \int_{\bigcup^n_{i=1}I_i} f =0.$$ Now, if $G_n$ is a decreasing sequence of open sets converging to $H$, since $|f \cdot \chi_{G_n}| \le f \cdot \chi_{G_1}$ for all $n$, we again have by the DCT that $\int_H f = 0 = \lim_{n\to\infty} \int_{G_n}f = 0$. Finally, if $G$ is a Borel measurable set, then we know that there exists a sequence $G_n$ of decreasing, open sets, that converge to some set $H$, where $H \setminus G$ is a null set. Thus, $$\int_G f = \int_H f = 0.$$ We have found that for every Borel measurable set $G$, $\int_G f =0$. Since $f$ is real valued and measurable, $f = 0$ a.e.


Let $f:R^2\to R^2$ be a continuously differentiable function such that $Df(x)$ is invertible for all $x\in R^2$ and $f^{-1}(K)$ is compact for every compact set $K$. Show that $f$ is surjective.   The first condition gives by the inverse function theorem that $f$ is invertible in a neighborhood of any point. But how exactly to use properness?

Let $f:\mathbb{R}^2\rightarrow \mathbb{R}^2$ be continuously differentiable, and assume $Df(x)$ is invertible for all $x\in \mathbb{R}^2$. Also for any compact $K$ in $\mathbb{R}^2$, $f^{-1}(K)$ is compact. prove $f$ is onto.  My Work:  This is an application of inverse function theorem because it satisfies the hypothesis of this thoerem. So $A=f(\mathbb{R}^2)$ is open in $\mathbb{R}^2$. So, $A^c$ is closed. Afterwards I was stuck. please give me a hint.


Property decorators are discussed at length in the documentation and the machinery which resolves them is discussed as well, but only for getters. I have been entirely unsuccessful in making a setter work for an uninstantiated class. Simple example:  My Property Decorator  class ClassyProp(object):      """ Classmethod + property """      def __init__(self, input_func):         log(f"ClassProp.__init__({input_func})")         self.func = input_func      def __get__(self, obj, cls=None):         log(f"ClassProp.__get__({obj}, {cls})")         return self.func      def __set__(self, obj, value):         log("__ClassyProp__.__set__()")      def setter(self, fset):         log("__ClassyProp__.setter()")      def fset(*args):         log("__ClassyProp__.fset()")   Test Class  class foo(object):     """ Test class """      def __init__(self):         pass      @ClassyProp     def f(cls):         """ Test property_lazy_static get , set """         pass   Run  print("======== ObjFoo ========")  ObjFoo = foo() print(ObjFoo.f) ObjFoo.f = 18 print(ObjFoo.f)  print("======== class foo ========")  print(foo.f) foo.f = 15 print(foo.f)   Yields  [      00s] ClassProp.__init__(<function foo.f at 0x7f4330c88268>) ======== ObjFoo ======== [      00s] ClassProp.__get__(<__main__.foo object at 0x7f4351522748>, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> [      00s] __ClassyProp__.__set__() [      00s] ClassProp.__get__(<__main__.foo object at 0x7f4351522748>, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> ======== class foo ======== [      00s] ClassProp.__get__(None, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> 15   NOTE: If I had ClassyProp return values it wouldn't say the function id, does say proper values for get, but I just wanted print outs for the purpose of debugging.  As you can see, the getter AND setter is called properly for the Instance of ObjFoo. But not for the uninstantiated class foo. Is having a property setter simply not possible on classes? The documentation states (I added breaks):     For objects, the machinery is in    - object.getattribute() which transforms b.x into    - type(b).dict['x'].get(b, type(b))        The implementation works through a precedence chain that    - gives data descriptors priority over instance variables,    - instance variables priority over non-data descriptors, and    - assigns lowest priority to getattr() if provided.     and     For classes, the machinery is in:      - type.getattribute() which transforms B.x into      - B.dict['x'].get(None, B)     With no mention of __set__ for either. (get obviously is working for both the class and the instance)  So I am left wondering now, is this possible? I see nothing in the documentation suggesting it isn't, but all testing suggests this.

I have a class with two class methods (using the classmethod() function) for getting and setting what is essentially a static variable.  I tried to use the property() function with these, but it results in an error.  I was able to reproduce the error with the following in the interpreter: class Foo(object):     _var = 5     @classmethod     def getvar(cls):         return cls._var     @classmethod     def setvar(cls, value):         cls._var = value     var = property(getvar, setvar)  I can demonstrate the class methods, but they don't work as properties: >>> f = Foo() >>> f.getvar() 5 >>> f.setvar(4) >>> f.getvar() 4 >>> f.var Traceback (most recent call last):   File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable >>> f.var=5 Traceback (most recent call last):   File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable  Is it possible to use the property() function with @classmethod decorated functions?


In Game Of Thrones, we see this symbol associated with the white walkers twice (that I remember, might be more).  I don't remember any explanation about it in the show. Is there any explanation in the books about the meaning of it (or maybe I missed it in the show)?

In S08E01 of Game of Thrones, we see this message:    We have seen this several times, the symbol drawn with horse heads, the stones around the Weirwood where White Walkers are created and in some caves, drawn by Children of the Forest.  Do we know the meaning behind this symbol? Does it or something similar occur in the books as well?


I'm having issues handling the submission of similar forms using the same submit function. My website imports event-data from Google cal, and depending on how many events there are, it creates similar forms for each event, using a foreach-loop. But I can't get the submission to work properly, giving the feedback message intended. Instead the page gets reloaded. This is the foreach-loop (php):  foreach ($feed->entry as $entry) {      $eventdetail = ...     $when_atr = ...     $title = ...     ...      echo '<form method="post" class="formClass" action="" >              <fieldset>

                         Header:                         <input type="text" name="header" id ="header" class="input" value="'.$title.'" />	                         ...                         ...

             </fieldset>             <input type="submit" value="Add!" class="button" id="submit" name="submit" />         </form>'; }   And this is my Submit-function:  $(document).ready(function(){      $("form.formclass").submit( function (event) {         event.preventDefault();         if(checkdate(this.date)){             var formdata = $(this).serialize();             $.ajax({                 type: "POST",                 url: "add_event.php",                 data: formdata,                 success: function() {                     $('#form').html("

");                     $('#message').html("
Event added!
")                     .append("
See you there.
")                     .hide()                     .fadeIn(1500, function() {                         $('#message').append("");                     });                 }             });         }         return false;     }); });   I've thought about giving every form their own ID, but can I use that approach without having to write different functions for all forms? Or is there another approach that is better? It seems like the communication between the forms and the function doesn't work at all at the moment, when I click the submit-button, the page gets reloaded and not even the checkdate-function is called, which implies that there is something wrong with the communication between the form and the function.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have a file in the below format.  [  I tried using awk and sed in all the possible ways which i am aware of but couldn't find a way to reformat the file in the format which i am looking for. I would like to have the file in the below format.    Any suggestions/help would be much appreciated. Thank you in advance.  Regards, Darshan

I have a file that has below entries:  [root@ovmm329 ovm_utils]# cat /tmp/disk.txt Physical Disk : 'IBM (67) device=/dev/mapper/360050768018206483000000000000453 shareddisk=true Physical Disk : 'IBM (58) device=/dev/mapper/36005076801820648300000000000043f shareddisk=true Physical Disk : 'IBM (59) device=/dev/mapper/360050768018206483000000000000440 shareddisk=true Physical Disk : 'IBM (71) device=/dev/mapper/360050768018206483000000000000497 shareddisk=true [root@ovmm329 ovm_utils]#   I tried using sed and awk in all possible way which I am aware of but couldn't get it in the required format. I would like to have the file in this format:  Physical Disk  device                                          Shareddisk IBM (67)        /dev/mapper/360050768018206483000000000000453  true IBM (58)        /dev/mapper/36005076801820648300000000000043f  true IBM (59)        /dev/mapper/360050768018206483000000000000440  true IBM (71)        /dev/mapper/360050768018206483000000000000497  true


I am trying to write to a csv file however everytime i get a null pointer exception. The data i wanted written to the csv file is being written but i get the error and i cant figure out why.  public static void writeCsvFile() {     FileWriter fw = null;     VendingMachine vm = new VendingMachine("Conall", 10);     try {         fw = new FileWriter("stock.txt");         //fw.append("ID");         for (VendItem item : stock) {             fw.append(String.valueOf(item.getId()));             fw.append(",");             fw.append(item.getName());             fw.append(",");             fw.append(String.valueOf(item.getPrice()));             fw.append(",");             fw.append(String.valueOf(item.getPrice()));             fw.append("\n");          }     } catch (Exception ex) {         ex.printStackTrace();     } finally {         try {             fw.flush();             fw.close();         } catch (Exception e) {             e.printStackTrace();         }     }  }   My file has the following in it:  1,Coke,0.7,0.7 2,Fanta,0.6,0.6 3,Galaxy,1.2,1.2 4,Snickers,1.0,1.0 5,Dairy Milk,1.3,1.3 6,Kinder,1.3,1.3   How can i fix the null pointer error as it seems to be working as i am looking it to, i.e writing the files in my stock to this file.  Thanks for any help

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I found that different answers are sometimes answering a question, even different methods are used and the execution speed is varying.  Did you ever think about the ability to accept more than one answer as a solution?  Could the quality of answers be rated with e.g. a quality scale (0: not useful, 10: excellent solution)?

Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs?


Is there some kind of academic norm that says "when I reject an applicant, I don't want anything to do with him?"  edit: If a professor is reading this, personal experience from himself and colleagues will be really helpful!

I'm currently a second year undergraduate student in mathematics and I'll have finished all my degree requirements two years early, but I'm at an absolutely great department so I don't want to graduate ASAP because I have a lot of opportunities here.  However, out of curiosity, I want to know if in a year or so if I could apply to graduate school and see if I can get in, and if I do, go, since I will have the option to graduate, or otherwise try again the year after. Is this frowned upon? Especially if I'll be applying to some of the same places twice? I'll probably be taking prelim courses anyway, so the course load isn't something I'd be missing out on, but the department is.


Im trying to delete a row from a database by clicking on a row in a table. Then the row get deleted using ajax request by picking up ID from the row.  my html is:

         Id	         Name

Add a row to the database
     <input id="NewPosition" />     <button onclick="PostData()" class="btn btn-info">Post data</button>
  <button id="Save" class="btn btn-success" onclick="UpdateData()">Update data</button>   My Javascript:  $(document).ready(function () {          UpdateData();     });       $('#tabble tr').click(function () {         console.log("It works!!!");         var value = $(this).find('td:first').html();         alert("Picked value is: " + value);       });      function PostData() {          var position = new Object();         position.PositionDescription = $('#NewPosition').val(),             $.ajax({                 url: 'http://localhost:50663/api/CropAssignments',                 type: 'POST',                 dataType: 'json',                 data: position,                 async: false,                 //success: function (data, textStatus, xhr) {                 //    console.log(data);                 //},                 error: function (xhr, textStatus, errorThrown) {                     console.log('Error in Operation');                 }              });          UpdateData();     };      function UpdateData() {          var tabBody = $('#tab');         tabBody.empty();         var tabulka = '';         //obj.CropAssignments.PositionId = $('#container').val();         $.ajax({             url: 'http://localhost:50663/api/PositionsAPI',             type: 'GET',             dataType: 'json',             success: function (data, textStatus, xhr) {                  //data.forEach(function (item, index) {                 //    console.log(index + " " + item.PositionDescription);                 //});                  data.forEach(function (item, index) {                     tabulka += '
' + item.PositionId + '	' + item.PositionDescription + '
';                     //console.log(index + " " + item.PositionDescription);                 });                  tabBody.append(tabulka);                 tabBody.sort();              },             error: function (xhr, textStatus, errorThrown) {                 console.log('Error in Operation');             }          });     };   this part of code should do the trick, but it doesn't do anything:  $(document).ready(function () {          UpdateData();     });   I tried to do this according to this example .   Any idea what is wrong here?  Any help greatly appreciated :)


The Lord of the Rings trilogy mentions the existence of Orcs and Uruks.  I know that Orcs used to be Elves as Saruman says that they were once Elves, but what did Uruks used to be and why are they bigger and better fighters than the Orcs?  What are the differences between Orcs and Uruks?

Just curious, reading the trivia section on IMDB for the LOTR films, in the trivia for TTT and  TROTK it says the following:     Tell-tale signs (grayer hair, blotchy skin) are introduced to show   that the Uruk-hai are an inbred set of creatures, who are already   starting to erode.   It is going on 10-15 years since I read the books and I am struggling to remember anything at all about this. Can anyone expand on this further and detail if they are actually falling apart?  I mean I understand that inbreeding is bad


If you have a Lorentz tensor $T$ with components $T_{\mu\nu}$, it seems clear that $$ \frac{\partial T_{\mu\nu}}{\partial T_{\rho\sigma}} = \delta^\rho_\mu \delta^\sigma_\nu. \tag{1} $$ However, if $T$ is symmetric, so $T_{\mu\nu} = T_{\mu\nu}$, there are two ways this derivative could be nonzero, so $$ \frac{\partial T_{\mu\nu}}{\partial T_{\rho\sigma}} = \delta^\rho_\mu \delta^\sigma_\nu + \delta^\sigma_\mu \delta^\rho_\nu. \tag{2} $$ Does this mean the first expression is wrong? It seems that some information is lost if one naively uses the first expression with a symmetric matrix, because the result lacks the symmetry in $\mu$ and $\nu$ and in $\rho$ and $\sigma$ that the derivative must have.  Additionally, should there be a factor of $\frac{1}{2}$? If one sets $\mu = \nu = \rho = \sigma$, then the second expression yields 2. However, introducing this factor seems to then yield $\frac{1}{2}$ when $\mu = \rho$ and $\nu = \sigma$ but $\mu \neq \sigma$, when it should yield 1. What am I missing?

For a variation of the metric $g^{\mu\nu}$ with respect to $g^{\alpha\beta}$ you might expect the result (at least I did):  \begin{equation} \frac{\delta g^{\mu\nu}}{\delta g^{\alpha\beta}}= \delta^\mu_\alpha\delta^\nu_\beta. \end{equation}  but then to preserve the fact that $g^{\mu\nu}$ is symmetric under interchange of $\mu$ and $\nu$ we should probably symmetrise the right hand side like this:  \begin{equation}\frac{\delta g^{\mu\nu}}{\delta g^{\alpha\beta}}= \delta^\mu_\alpha\delta^\nu_\beta + \delta^\mu_\beta\delta^\nu_\alpha.\end{equation}  Is this reasonable/correct? If not, why not?  It seems that I can derive some weird results if this is right (or maybe I'm just making other mistakes).


How reasonable would it be to speak TLS over the secp256k1 curve? My initial experiments show that OpenSSL supports it (albeit with special flags, see below): Running an OpenSSL client against an OpenSSL server (or some random node.js server that I found) negotiates the suite ECDHE-ECDSA-AES128-GCM-SHA256 and establishes a regular TLS 1.2 session.  On the other hand, neither curl nor browsers appear to like that particular curve. (Although that is not necessary for my use case.)  The reason I'm using secp256k1 is because there is a nice algorithm to derive new keys from an existing key (BIP 32). Those keys cannot be correlated with each other, which is a big plus in peer-to-peer scenarios.  Now my question is: Is it reasonable to use an uncommon curve like secp256k1 for TLS? Or alternatively, is there a secure mechanism to derive a private key for another (more common?) curve from a secp256k1 private key?    The flags I mentioned above: -curves "X25519:P-256:P-521:P-384:secp256k1"    Edit: My question is less about theoretical weaknesses of secp256k1, but rather what kinds of practical problems to expect.

I am wondering whether there are any properties of the curve which would technically make it easier to attack than any other curves of 256 bits in size.  I have heard that being a Koblitz curve, it has a few bits weaker security than some other curves of the same size - I was wondering if anybody has a source for a proof (or sketch proof) of this fact if it is true, and for any other properties that may make the secp256k1 considered weaker.  EDIT: I have found this website  which states that the curve does NOT satisfy all of the safety requirements for that website - however I am unable to understand the parameters under which it is considered not safe, and explanation on this would be nice too thanks :)


i'm currently on Ubuntu 20 and i wanted to dual boot with cent-OS but i only have a one hard disk and somehow i couldn't manage to create a separate partition in Ubuntu to install centos it on. i tried to use gparted tool but it didn't allow me to create partition even though i never created a part before ever since i installed Ubuntu. and i was wondering that if i tried to install cent and then create a partition for it from inside the custom partitioning tool it offers during installation, will that erase my current data or it will install it self on a free space ??

I have this 72 GB hard disk that I installed Ubuntu 14.02 LTS 64 bit on. Now, I want to split it and leave 50 GBs for Ubuntu and install in the to-be-created partition the server version of the OS.   The issue at hand is that GParted won't let me change the size of the partition I want to shrink. It reads : minimum size = 72222 mb , maximum size = 7222 mb and obviously doesn't allow me to edit the partition.


My phone keeps downloading apps like "Cash Yourself", "Monkey Test" and many more.  I have tried to stop and clear data, but every time I am online they were download again.  How can I stop this?

When I long-press the "home" button to close all apps, there is an app named "time service" with android symbol and another named "monkey test" that are always open.   How to stop this?


If $J \neq 0$ is an ideal in $R=\mathbb{Z}[i] .$ Then I need to show that $J \cap \mathbb{Z}$ is an ideal in $\mathbb{Z}$.  My approach (Or the way I wanted to approach the problem): In order for $J \cap \mathbb{Z}$ to be an ideal, I need to show it's an additive subgroup of $\mathbb{Z}$, and that $\lambda x\in J \cap \mathbb{Z}$; for every $\lambda \in \mathbb{Z}$ and $x \in J \cap \mathbb{Z}$. But I really don't know how to show it in such a general case, when I don't know anything about the elements in J. I hope you can help me.

Let $\phi : R \to S$ be a homomorphism. If $N$ is an ideal of $S$, then $\phi ^{-1} (N)$ is an ideal of $R$.


I am wanting to change the background color of a cell when it reaches the value of another cell. i.e. when the value in R10 = the value in H10+10 I would like the background to change color.I also want the cells in those columns to be independent of each other i.e. when cell R5 = H5+10 I would like R5 to change color but not any of the other cells in column R

I want to change the fill color of cell C5 if it has the same value as cell A5.   Can this be done? I know how to format cell C5 if it has a certain value - but not when it is to be compared to the value of another cell.


How can I get the current battery level using the Cocoa framework running with Leopard?  Currently I am getting it running a NSTask with:   pmset -g ps | grep -o -e [0-9]*% | sed -e 's/%//g'   But I think this is a clumsy way of doing this.

How can I read the status of the battery on my MacBookPro from my own application?  Googling has so far only revealed APIs for device drivers to handle power events - there's nothing about user-land processes accessing this information.  thanks.


Overnight, TextWrangler crashed with a message "TextWrangler" is damaged and can't be opened. I deleted "TextWrangler" and download it again from the App Store.  I couldn't update from the Mac App Store, because the latest version of TextWrangler requires 10.8.5 or later, so Snow Leopard and Lion users are out of luck.  Since the crash happened at midnight, I wagered a guess that it was date/time related.  Sure enough, changing the system date back to November 11 magically "repaired" the "damaged" app and allowed it to start; while coming back to the present (November 12) made the app refuse to start, with the same message as before.  That's not a tenable long-term solution; but, all is not lost.  (See my "fix" in the answer section.)  I'm still curious as to why the app stopped working on a particular day though; and, if there is a better solution that stays "in channel" with the App Store.  Update:  It appears that this is .

Without having changed anything, I now get this message when I try to open the app "Breeze" - Other apps fail similarly on other Macs:    I tried to get rid of this message by re-installing it from the App Store, but nothing changes. Rebooting and changing gatekeeper security preferences also doesn't help by choosing "allow Apps downloaded from anywhere".   What the heck is going on?


I am building a very basic 2D game purely using pygame library in Python 3x. The "game object" is blit(ed) onto the screen using a loop and after each pass, there are calculations taking place in the background for example, to test for collision. Now as the game get's more complex with more features, the calculations take longer and hence the "game object" is put onto the screen once, but disappears for a split second when the calculations are taking place and appears again during the second pass, meaning it flickers. How can I tackle this problem? I cannot move ahead with more complex calculations for other features without avoiding the flickering due to more time required for the calculations.

Generally, what are the core things that one should do in the game loop, and what are some things that one shouldn't do in the game loop?


Quenya, the popular Elvish language is used in all The Lord of the Rings books and movies and appears very beautiful due to its flowing letters and has a charismatic visual appeal.  How would I go about learning the Quenya alphabet and word definitons?

If someone wanted to learn to speak Tolkien's Elvish languages ( and ) is there a guide to how to go about doing so?   Are there any authoritative sources regarding which language should be tackled first?


When light travels from low density medium to high density medium it's speed decreases according to refractive index of medium. And light is made of moving photons . That means photons are slow downed. So it should be possible to reduce the speed of light to zero and we can get a steady photon.

I have a quick question about the refraction of light, and I'm sorry if it seems a bit simplistic or even stupid, but I'm still learning.  We know that when light passes through a denser medium, it slows down. However, is there a limit to that slowing down? If no, wouldn't it be possible, with some type of medium we make ourselves (like a crystal), to decrease the light's speed down to a point where we would be able to "see the photons moving forwards"?  I know it is way more complicated than that and that you can't see light unless some other light bounces off it, what I mean is slowing down light to an extreme and unusual speed). That sounds completely absurd but I can't seem to find what is wrong. Can anyone can explain it to me? :)


This  really don't make sense and I think I should flag this, but if I should flag this answer what is the right flag? User just copy+pasted code from questioners post, exactly same code.

In stack overflow moderator tool, I saw an option like duplicate answer.    I checked one of the example:        and found what that option is.  In the above links, you can find an answer from a user that have the exact content and wordings in all of the posts.  But I have one query. Under which category I can flag these answers ?  I usually use the Other category and add my comment. Am I correct or do I need to do anything more ?    My suggestion:  It is very useful if there is a category called Duplicate answer (like Duplicate question) at-least in the moderator tool flagging options.  EDIT:  From the answers and comments,  I understand that it is a Community Moderator option. Please describe this in  of StackOverflow. So that everybody can understand it (Else they will ask it here and get down-votes like me ! :) )


I face the following issues in reference list. When I type, say, "Ann. Inst. H. Poincar\'{e} Anal. Non Lin\'{e}aire " in  WinEdt in biliography, the output is "Ann.---Inst.---H.---Poincar\'{e}---Anal.---Non Lin\'{e}aire", (a dash indicates a space) with extra space between words. This always happens, for example, when a reference that I am citing is at least three lines!

I am writing a paper and I have already added the references through bibtex.  There is something I don't like about the online references, they get to stretched out, from one side of the page to the other. And the online link gets out of the borders of the page.  Check the attached picture to understand what I mean. [3] is the problem    this is the bibtex code I use for that reference. Any solution? Suggestions?  @misc{domination, Title = {Heterogeneous Systems Dominate the Green500}, Author = { }, Howpublished = {\url{http://www.hpcwire.com/off-the-wire/two-brains-better-one-heterogeneous-systems-dominate-green500/}}, Month = nov, Year = {2013}, Url = {http://www.hpcwire.com/off-the-wire/two-brains-better-one-heterogeneous-systems-dominate-green500/}}


I just could draw the one with four arrows up parallel with one longer down also with appropriate spacing:  .

\documentclass[border=10pt]{standalone} \usepackage{pstricks-add,amsmath,amssymb} \begin{document} \begin{pspicture}[showgrid,arrowinset=0](0,-1)(4,2) \begin{psmatrix}[colsep=.5cm,rowsep=1.2cm] & [name=A]\,\,\,\,\,\,\,\,\,\,\,\,$M_{0,4} \times \mathbb{P}^1 $\\ [name=B]$B$ & [name=C]\,\,\,\,\,\,$M_{0,4}$ \end{psmatrix} \pcline[nodesep=.3]{->}(B)(C)       \nbput{$\kappa$} \pcline[nodesep=.3]{->}(A)(C)       \nbput[labelsep=.1]{$\pi$} \naput{\foreach \i in {0.1,0.25,0.4,0.55}{%     \pcline{->}(\i,-.4)(\i,.45)} \nbput[labelsep=.1]{$\sigma_i$}} \end{pspicture} \end{document}     After see all the answers, done :)   \documentclass[border=10pt]{standalone} \usepackage{pstricks-add,amsmath,amssymb} \begin{document} \begin{psmatrix}[colsep=.5cm,rowsep=1.2cm] & [name=A]\qquad $M_{0,4} \times \mathbb{P}^1 $\\ [name=B]$B$ & [name=C] \quad $M_{0,4}$ \end{psmatrix} \psset{arrowinset=0} \pcline[nodesep=.3]{->}(B)(C)       \nbput{$\kappa$} \pcline[nodesep=.3]{->}(A)(C)       \nbput[labelsep=.1]{$\pi$} \naput{\foreach \i in {0.1,0.25,0.4,0.55}{%     \pcline{->}(\i,-.4)(\i,.45)} \nbput[labelsep=.1]{$\sigma_i$}} \end{document}


My volume variable does not change when I run the code.  I tried changing the order of the code and new variable names, but the output doesn't change. The changeVolume() function doesn't do what it supposed to be doing.   Please help me figure out why it won't work. Bellow is my code and screenshots of me running it:  import java.awt.Color; public class HeadPhone{ //Three constants public static final int LOW = 1; public static final int MEDIUM = 2; public static final int HIGH = 3;  //a private int data filed for volume     private int volume; //and a pluggedIn value private boolean pluggedIn; //A private String data field for manufacturer private String manufacturer; //A private Color data field private Color headPhoneColor; //A private String field  private String headPhoneModel;  //setters and getters for the declared values public void setVolume(int volume){     this.volume = volume; } public int getVolume(){     return volume; } public void setPluggedIn(boolean pluggedIn){     this.pluggedIn = pluggedIn; } public boolean getPluggedIn(){     return pluggedIn; } public void setManufacturer(String manufacturer){     this.manufacturer = manufacturer; } public void setHeadPhoneColor(Color headPhoneColor){     this.headPhoneColor = headPhoneColor; } public Color getHeadPhoneColor(){     return headPhoneColor; } public void setHeadPhoneModel(String headPhoneModel){     this.headPhoneModel = headPhoneModel; } public String getHeadPhoneModel(){     return headPhoneModel; }  //A no argument default constructor public HeadPhone(){     volume = MEDIUM;     pluggedIn = false;     manufacturer = "Apple";     headPhoneColor = Color.WHITE;     headPhoneModel = "Mic-Enabled";         }  //toString method that returns  //the current set of headphones     public String toString() {     String headPhoneColorString = "";      if (headPhoneColor == Color.RED){         headPhoneColorString = "Red";     }     if (headPhoneColor == Color.BLUE){         headPhoneColorString = "Blue";     }     if (headPhoneColor == Color.BLACK){         headPhoneColorString = "Black";     }     if (headPhoneColor == Color.CYAN){         headPhoneColorString = "Cyan";     }        if (headPhoneColor == Color.YELLOW){         headPhoneColorString = "Yellow";     }     if (headPhoneColor == Color.WHITE){         headPhoneColorString = "White";     }      String pluggedUnplugged = (pluggedIn == true) ? "plugged in" : "unplugged";      return "\n\n Volume Set To: " + volume +             "\n Headphone set is: " + pluggedUnplugged +            "\n Manufacturer: " + manufacturer +            "\n Headphone Color: " + headPhoneColorString +            "\n Headphone Model: " + headPhoneModel;                } //a changeVolume method to adjust headphones volume public void changeVolume(int volume) {     if (volume <= LOW){         volume = LOW;     }else if (volume >= HIGH){         volume = HIGH;     }else{         volume = MEDIUM;     }                 }             //main class     public static void main(String[] args) {     HeadPhone defaultHeadphoneSet= new HeadPhone();             System.out.println(defaultHeadphoneSet);      HeadPhone set1 = new HeadPhone();     set1.changeVolume(HIGH);     set1.setPluggedIn(true);     set1.setManufacturer("Beats");     set1.setHeadPhoneColor(Color.RED);     set1.setHeadPhoneModel("Wireless");     System.out.println(set1);      HeadPhone set2 = new HeadPhone();     set2.changeVolume(HIGH);     set2.setPluggedIn(true);     set2.setManufacturer("BOSS");     set2.setHeadPhoneColor(Color.BLACK);     set2.setHeadPhoneModel("Noisecancelling");     System.out.println(set2);      HeadPhone set3 = new HeadPhone();     set3.changeVolume(1);     set3.setPluggedIn(false);     set3.setManufacturer("SkullCandy");     set3.setHeadPhoneColor(Color.CYAN);     set3.setHeadPhoneModel("Taptic");     System.out.println(set3);         }     }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Let $a$, $b$ and $c$ be positive real numbers such that $c < a+b$. Prove that $$\frac{c}{c+1}< \frac{a}{a+1} + \frac{b}{b+1}.$$

With $x+y\ge z$ $(x,y,z\ge0)$, prove that: $$\frac{x}{1+x}+\frac{y}{1+y}\ge\frac{z}{1+z}$$  I'm aware that using analytic view this is easy since $f(x)=\frac{x}{1+x}$ is concave in $[0,\infty)$. However I want to prove it using merely algebraic techniques. Is that possible?


So, I'm doing an engagement party for my sister-in-law's sister. Now, I haven't picked up my camera in probably 3 years... just kinda fell out of it. They ask me to do it as I won't really ask for much money. We're basically setting up a photo booth and I'll just take pics of people coming in. I want the pictures to look nice, of course, so I'm just looking for any advice!  I have a Canon EOS Rebel T3 and 18-55mm and 75-300mm lenses.

It is becoming someone common in my area to have what is colloquially called a photo booth at events such as weddings. Usually they are simply a camera on a tripod tethered to a computer, with lighting setup, and a background. An attendant is present to press the shutter release and to prepare the subjects. In other cases the setup is more elaborate with an actual "booth", self-service shutter release functionality(self-timer), and strips of dye-sub prints automatically created.  I am interested in specifically the simple setup of a photo booth with a camera on a tripod and an attendant/photographer assisting to capture the images.    What type of lighting setup would be needed?   What camera and flash settings would make sense for the various subjects?   Can I leave it in manual mode all night and only have an attendant press the shutter release?


After I upgraded to Ubuntu 17.10, I am facing a serious shortcoming in gimp. The screenshots are completely black.   Most likely this is a bug, but I thought of investigating a bit just to find out if I am missing something.  The other Screenshot software, version 3.25.0 is working fine.

After upgrading to Ubuntu 17.10 I noticed some of my screencasting applications are not working, for example screencasting tools like SimpleScreenRecorder and vokoscreen. ()  Also I noticed features like screenshot from GIMP is not working properly, producing blank screenshots (). Shutter too is producing glitchy screenshots ().  Screen-sharing option on Skype is also not working ().  The issue occurs sometimes on later Ubuntu releases too.  Why is this happening and how do I fix this?


I am interested to know if there is a solution to the following scenario: Assuming we have $n$ party members, is there a scheme that at the end of it, every party member $i$, holds a shamir's threshold share, $S_i$, of the secret $a$ where $k$ of $n$ can reconstruct $a$ using the shamir's threshold reconstruction and none of them individually knows the secret itself.

In usual $(t, n)$ secret sharing schemes, a secret $S$ is split into $n$ parts so that any $t$ out of $n$ parts reconstruct the original secret. So, suppose that there is a group of $n$ participants each one has a secret $x_i$ ($x_i$ may be its private key). My question is, is it possible to create a secret $S$ using the prexisting secrets $x_i$ ($i=1...n$) so that with any $t$ out of $n$ from these secrets ($x_i$) we can find the secret $S$?


This is not the duplicate question. As in that question user got blocked. That is not the case               **with me. ** As I joined math.stackexchange I have asked two questions. I was new at that time and didn't know how to write a question. Those questions are not too bad.  Then someone with lots of reputation points advised me to edit my questions with what I had attempted. And I did that. But still one of my questions is on hold. That's not the problem. Problem is that people downvoting again and again without telling a proper reason. Is there a way to stop that?  Here are the links of those questions:

TL;DR: I've gotten a previous account/IP address blocked from asking questions. It is pretty much the only thing I plan on using Stack Overflow for until I'm more experienced. I don't want to be a d*ck and consistently break any rules I might be breaking, but I don't understand what I'm doing wrong.    I recently had my account blocked from using the site's most basic features, essentially removing its usefulness to me on that account. I don't want to continue breaking any rules that have gotten me banned, because I don't want to offend a community of (mostly) people who are here to help others.  Why have almost all the questions I've created received a negative voting score?  I'd also like to know if people are banned solely because of downvotes, and if not, what have I done to deserve a ban?  The posts aren't only on this account; they are also on  and .  To clarify, I have already read the FAQ and how-to-ask.html. I did this before asking any questions on my first account, and I am already complying with these.


I know that there are multiple answers on this particular subject but I am yet to find something that works for my use case.  I have a 2D array (9x9) that I need to pass into a function by reference so that it can be stored in the main program after the function is done with it.  Here is the function declaration:  void ReadFile(ifstream& infile, string fileName, string filePath, int array[9][9]) // Opens, reads, outputs and closes the file   The file I am opening is a 9x9 grid of numbers, I need to store that grid into a local variable (9x9 array of integers) within main.  Anybody know how I can go about this?  James

I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:  const int board_width = 80; const int board_height = 80; void do_something(int[board_width][board_height]& array);  //function prototype   But this doesn't work. I get this error from g++:  error: expected ‘,’ or ‘...’ before ‘*’ token   What does this error mean, and how can I fix it?


Basically, my client wants to open the Blender file I'm working on but every time I send him the blender file he manually has to connect the textures with the objects.   Is there any way he can just simply open the .blender file with everything ready to go?

Whenever i try to send a project off to a render farm such as sheepit, it says it needs the textures packing with the file in order to render correctly.  How would I do this?


Is the derivative of a differentiable function always continuous? My intuition goes like this: If we imagine derivative as function which describes slopes of (special) tangent lines to points on a curve given by $f(x)$, then that slopes must be gradually bigger or smaller, but also I am not sure if this is true. I can't find counter example; $(x^2)' = 2x, (\sin{x})'= \cos{x}, (e^x)' = e^x,$ etc. This derivatives are all continuous functions. Examples, intuition, proofs  - all are welcome.

What is the difference between continuous derivative and derivative? According to my teachers solution to the assignment,it seems there exits difference between continuous derivative and derivative. However, aunt Google does not tell me what I want.  Edit: Here is a example. $$f(x) = \begin{cases} \frac{1-cos2x}{x} & \text{otherwise}  \\ k & \text{if x=0}  \end{cases}$$  Does k is continuous but not continuous derivative at $0$?  Thanks:)


I am using ArcGIS 10.1 for making maps showing the distribution of parcels and their attributes in a given area. I am working with anywhere from 20 to 50 parcels in a set, sometimes more. I often use Data Driven Pages (DDP) and dynamic text to speed the process along. My problem is that sometimes there are multiple parcels in close proximity to each other. I would like to be able to show the attributes of multiple parcels on one layout using ddp/dynamic text. How can I do this?   Update: This is an example of what I most commonly work on. I used ddp and dynamic text for the attribute data on the right of the map. I wish to use dynamic text for attributes for all parcels in the layout. How can this be accomplished? Further explanations and examples can be provided if need be.

I am creating a map series that has many polygons per sheet. There is annotation for the polygons however some polygons are very small with no annotation for them (annotation would completely hide a polygon). Thus, I have an attribute table where labels are stored for those specific polygons.   How can I have that table displayed on the map, with only the attribute values per sheet, rather than all 2000+ values?   I am looking for a simple, dynamic solution.


Is it possible to have Ubuntu put onto a 32gb sd card and be operated from a raspberry PI

I was thinking about buying a , and running Ubuntu on it. I have looked around the web, and a lot of stuff says that it's difficult for it to work on ARM processors. Has anyone figured out how to get a Raspberry pi to run Ubuntu?


Sorry if this is a off topic or duplicate question. I'm looking for An Introduction to LaTeX  in beamer documetclass in tex format. Any help will be highly appreciated. Thanks    Edited    I'm looking for a document in Tex format similar to . So that I don't have to type everything.

Is there a template that allows me to create slides with only some simple formulas at most?


I am about to send some sketches which I have scanned and and tidied up in Photoshop.  My scans were 300dpi at the scanner.  I've checked by docs and they all say 300 pixels per inch.  Here's an example:    I tend to work for web, so don't do print stuff.    Am I on the right track?  Are the files big enough for print?  Please excuse my novice-ness.  Thanks.

There are lots of other questions on Graphic Design which partly cover this, e.g. .  However, I have become frustrated at the number of questions and answers which confuse the two terms. I think understanding the difference is important.  So here's a place to answer this question well and clear up the confusion!


I am trying to create a mail sending application in C# using SMTP. I don't understand what parameters I should introduce in this declaration instead of username and password:  SmtpServer.Credentials = new System.Net.NetworkCredential("username", "password");   Is it the email, computer or literally the internet connection credentials?

Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it?


From Newton’s second law, $F=ma$, a massless object will always have zero net force. So can a massless pulley accelerate?

If we introduce the notion of a massless string to denote the fact that net force on a massless string will always be $0$, since it is massless. How can these massless strings ever accelerate when force on them is $0$?  As an example consider two blocks joined by a massless string , you push a block, the other block accelerates and so does the massless string . But massless string has no net force .  How to resolve this paradox?


Causing error when setText a value in edittext. Id Given is Correct ,if i give set Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference  Code Given Below here i cant setText Otp Code "otpcode.setText("12345");" in oncreate it works perfectely. when i give it in the method"recivedSms".it didn't work.  public class Change_Password_Activity extends AppCompatActivity { EditText user_name,pass_wd; public   EditText otpcode; private Button btn_submit; private String username,otp,password; private ProgressDialog prgDialog; private Typeface typeface;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_change__password_);     typeface = GlobalVariables.getTypeface(Change_Password_Activity.this);     prgDialog = new ProgressDialog(this);     // Set Progress Dialog Text     prgDialog.setMessage("Please wait...");     // Set Cancelable as False     prgDialog.setCancelable(false);      otpcode = (EditText)findViewById(R.id.otpedittext);     user_name = (EditText) findViewById(R.id.edittext_ch_user);     pass_wd = (EditText) findViewById(R.id.edittext_ch_passwd);     btn_submit = (Button) findViewById(R.id.button_changepswd);     otpcode.setTypeface(typeface);     user_name.setTypeface(typeface);     pass_wd.setTypeface(typeface);     btn_submit.setTypeface(typeface);    } public void recivedSms(String message) {     try     {         int smsnumbr= Integer.parseInt(message);         otpcode.setText(smsnumbr);      }     catch (Exception e)     {         Log.e("error", String.valueOf(e));     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


There is a  to upload all the layers from one folder in QGIS. Is there  a way to download all the layers from a project and save them in a new folder?

In my project, I use a lot of geodata from different directories. Now I want to give the QGIS project to a colleague (eg on a CD).  Is it possible to copy the shapes from different directories automatically to one directory?


Whenever I try using Alt+2+1 to get the section char (§) in Minecraft, I get ☻.  I also am unable to paste the section char.  I use a Corsair K55 RGB Keyboard and am running Windows 10.\  If you need more information, let me know.

According to , using §1 in an item's name should make the text colored dark blue.  However, when I copy-paste a command like this one into chat:  /give @p diamond_sword{display:{Name:"{\"text\":\"§1Sword\"}"}}   it comes out like this:  /give @p diamond_sword{display:{Name:"{\"text\":\"1Sword\"}"}}   See the problem? I can't copy § into chat!  Which means the name ends up being "1Sword" rather than "Sword" colored dark blue.  Why can't I copy § into chat? What can I do to fix it?  Note: I've tested this issue on Minecraft versions 1.14.3 and 1.12.2. It worked the same on both. Feel free to leave a comment if you need more details.


To prove:$$\prod_{k=1}^n\sin^2(2^kx)\le\left(\frac34\right)^{n-1}.$$  My approach so far: We have: \begin{align} \prod_{k=1}^n\sin^2(2^kx)&=\left(\prod_{k=1}^n\sin(2^kx)\right)^2\\\\ &=\left[\Im\left\{\prod_{k=1}^ne^{i\cdot2^kx}\right\}\right]^2\\\\ &=\left[\Im\left\{\exp\left(ix\sum_{k=1}^n 2^k\right)\right\}\right]^2\\\\ &=\left[\Im\Big\{\exp\big(ix(2^{n+1}-2^n)\big)\Big\}\right]^2\\\\ &=\sin^2\left[(2^{n+1}-2^n)x\right]. \end{align} Now how can I prove that (obviously if I haven't done any mistake so far) : $\sin^2\left[(2^{n+1}-2^n)x\right]\le\left(\frac34\right)^{n-1}\tag*{}\,?$  Please suggest... Thanks in advance.

Show that $$\sin^2x\cdot\sin^22x\cdot\sin^24x\cdot\sin^28x\cdots\sin^22^nx\leq\frac{3^n}{4^n}$$  I understand the result of an arithmetic sequence $(\sin1^\circ)(\sin3^\circ)(\sin5^\circ)…(\sin89^\circ)$, how about the geometric sequence case?


Gollum was once a normal hobbit like Frodo and Bilbo- yet after acquiring the Ring he became completely different. Why didn't this happen to Bilbo or Frodo? Yes, they were changed in some way, but it was not such a huge difference as in Gollum. His physical and mental state were drastically changed.

Why did Sméagol turn into a 'creature', but not Bilbo Baggins?  Déagol found the ring in a river, Sméagol stole it and then turned into a weird creature. Bilbo did not turn into a creature when he found the ring.


I'm struggling to remove the "Upgrade to Windows 10" Notification Area Icon on a bunch of Win 7 Pro machines on a 2008 R2 domain.  No WSUS server.  I've tried enabling "Turn off the upgrade to the latest version..." setting in my domain's Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update, then gpupdating on my own PC to test.  Restart.  Update gp again.  Restart.  The icon is still there.  I need to install WSUS - it's a rainy day project that I've been planning on for a while.  But it's sunny right now and I have more important shit to triage.  Any ideas?  Thanks!  Edit: this question is not a duplicate, because these hosts are all part of a domain.  It's fundamentally a very different situation.  I'm looking for a GP-style fix; registry hacks one at a time on individuals' PCs are not something I have time to do.

One of our remote Windows 7 Professional users just reported that he received an Upgrade Reservation Offer for Windows 10. It appears the  running in his system tray is legit. So far, this is only seems to be hitting  devices that are not domain-joined.  Short of uninstalling/hiding the Windows Update that enabled the upgrade, is there any way to disable the Upgrade App (and of course the upgrade itself)?


Let   $y_n = 1+\frac{1}{2^k}+\frac{1}{3^k}+...+\frac{1}{n^k}$, where $n\in \mathbb{N}$ and $k\geq 2$.  I need to show that this sequence is convergent.   I did $y_{n+1}-y_n$ and I got that it is bigger than $0$ so the sequence is growing and I know that $y_1 \leq y_n$ but I need to also find a number which is bigger then $y_n$ which I do not know how to do. The answers says that I need to show that the sequence is smaller than $2$ but I really do not have any idea how to do it.

To prove the convergence of the p-series   $$\sum_{n=1}^{\infty} \frac1{n^p}$$  for $p > 1$, one typically appeals to either the Integral Test or the Cauchy Condensation Test.  I am wondering if there is a self-contained proof that this series converges which does not rely on either test.    I suspect that any proof would have to use the ideas behind one of these two tests.


Just wondering if there is any open source solution which comes close to safe FME? I would like to integrate it into my workflow, but it´s just another few thousand which my employer has to give out for software.  Does anyone know of anything similar?

I am interested in the pros and cons of various spatial ETL (extract, transform, load) tools.  If you have used the items listed here (or add your own), I seek your opinions and experiences.  In particular I would like to see usability comparisons of:    (proprietary)  (proprietary, subset of FME features)  (open source)  (open source)  (I don't know that it is truly ETL, but more of a file translation toolset) Any additional lot listed   There is no need to give a review of ALL software mentioned.  If you are experienced with even one then that will be very beneficial in making a decision about which direction to go.  Example: I am looking to create a schema conversion function that will allow me to select the input layer, create a translation, and output to a new, pre-defined schema.  Optimally, after creating the translation script, I would like to have an interactive form where I can "map" fields in my input layer to the output layer (ie- The output layer will have a field called "Address", what is it called in the input layer?)  Some were mentioned in the Q&A at   And here are a couple of related articles that I found.


When I insert Mesh > Landscape, the landscape appears along with its specific toolbar on the left.  If I save the landscape, then reopen it, the landscape toolbar does not appear.  How do I make it appear?

When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters.   Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this?


I've been trying to figure out his name, and some people tell me it's Mildred and some say it's John Hurt - which one is it?

Is there anywhere (in canon) where the Doctor's real name is ever revealed? I know that several people do know it or learn it at some point (like the Master, River, and Clara for example), but is it ever revealed to us?


If n is a prime no. Is it necessary that $2^n - 1$ is also a prime no. I know that the converse is true, but i want to know about this statement. If it's wrong plz. Give an eg. If its right plz. Prove it.

Exactly what the name entails. The function $2^n-1$ I see largely tends to generate primes when $n$ is prime. However, a week ago I heard that this was horribly false. Please show me a disproof.


One of our websites has a glitch which occasionally takes it down - the back end needs to be restarted.  The replacement is not yet ready for production, so I've created a VBS script which polls the server and restarts the server if:  a) The HTTP status code <> 200, or b) The page loads but a substring is not found on the page.  The HTTP status check times out if the tomcat service fails to respond; I would like to call a function if that occurs.  Is it possible to capture and handle a timeout?  This is a snippet of my relevant code pieces.  xmlhttp.setOption 2, 13056 xmlhttp.open "get", "https://www.mywebsite.com/thisurl", false xmlhttp.send  if xmlhttp.status <> 200 then     call restartTomcat()     call emailAlert() end if   Thank you in advance.

I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.  For example,   On Error Resume Next 'Do Step 1 'Do Step 2 'Do Step 3   When an error occurs on step 1, I want it to log that error (or perform other custom functions with it) then resume at step 2. Is this possible? and how can I implement it?  EDIT: Can I do something like this?   On Error Resume myErrCatch 'Do step 1 'Do step 2 'Do step 3  myErrCatch: 'log error Resume Next


I have two points, for which I know Cartesian coordinates. I want to move one towards the other over specific distance.    That's about the same as saying I want the distance between the points equal to specific value:    How do I achieve that? I think it's the basic in any game and vector operations, moving Cartesian point towards specific location...  I tried derivating this using high school algebra but it doesn't look too good. In the end, I end up with quadratic equation. Check my progress:    I know desired distance between A and B. I know A's coordinates and I know B's coordinates ratio:   $distance = \sqrt{(A_x-B_x)^2+(A_y-B_y)^2}$ $B_x = B_y*q$   The second equation comes from the fact that as long as we move point over straight line, it's coordinates are function of linear equation and their ratio is constant. In math: $B_x/B_y = q$ where $q$ is constant value.  First I substitute $B_y*q$ for $B_x$ and then $(...)^2$ whole equation:  $distance = \sqrt{(A_x-B_y*q)^2+(A_y-B_y)^2}$  I used wolfram to simplify this:  $distance^2 = (A_x-B_y*q)^2+(A_y-B_y)^2$  This is Wolfram's result:  $distance^2 = B_y^2*(q^2 + 1) - 2*A_x*B_y*q - 2*B_y*A_x.y + A_y^2 + A_x^2$  I formatted it to look like typical quadratic equation:  $B_y^2*(q^2 + 1) - B_y*(2*A_x*q + 2*A_y) + A_y^2 + A_x^2 - distance^2 = 0$  Now this is where it's getting messy, so I'll make standard quadratic equation substitution:  $a = q^2 + 1$ $b = 2*A_x*q + 2*A_y$ $c = A_y^2 + A_x^2 - distance^2$    Finally:  $$B_{y 1,2} = \frac{-b +- \sqrt{b^2 - 4*a*c})}{2*a}$$  And I just don't want to even try to de-substitute that. I mean what of it, I need one result, not two of them...

I am regular user of StackOverflow, but new here.  I'm trying to guess how to do that:  Given a straight line (x1, y1, x2, y2) how can i get the point into the line (x, y) who are at an n distance from x1, y1?    I'm very bad with math, and I'm developing a 2D game. That should be forbidden!!   Thank you very much!!


Determine all sets of non-negative integers x,y and z which satisfy the equation $2^x + 3^y = z^2$  This came in the 1992 INMO and curiously enough also seems to have been included on the 1996 BMO Round 2? I have never heard of a question being directly copied from another Olympiad so this was a first for me. Anyways, first, I looked at the case $y=0$. This quickly gave me one solution, viz $(x,y,z)=(3,0,3)$ Next, I considered $x,y,z>0$ We know $2^x + 3^y \equiv (-1)^x+0 \bmod 3$ and that perfect squares are $\equiv 0,1 \bmod 3$. It is easy to see that the only combination that works is $x$ be even and $z=3m+1$ type $\Rightarrow z$ is odd Also, we know that odd perfect squares are $\equiv 1 \bmod 4$. Further, $3^y\equiv (-1)^y \bmod 4$ and since $x$ is even it implies that $x≥2$ thus $2^x$ is divisible by $4$. This further implies that $(-1)^y \equiv 1 \bmod 4 \Rightarrow y$ is also even. Let $x=2k$. Then our original expression becomes $$3^y=(z+2^k)(z-2^k)$$ We have two possibilities: first is that $(z-2^k)=1$ and $(z+2^k)=3^y$ and second is $(z-2^k)=3^{y-a}$ and $(z+2^k)=3^a$. But since we previously established that $z=3k±1$ and as $2^k \equiv (-1)^y \bmod 3$, we can quickly discard the second possibility. So we finally have, $$(z-2^k)=1$$ $$(z+2^k)=3^y$$ Here I got woefully stuck. Another thing I got was that $k$ is also even (which means $x$ is itself a multiple of $4$). One more thing is that since $y$ is even $3^y$ is divisible by $9$. I don't know how we can use this fact right now but I thought it could be worth mentioning. Any help to proceed would be appreciated, thanks.

Find all possible solutions of $$2^x + 3^y = z^2.$$    My approach.   First I substituted $x = 0$, and got the solution, then for $y = 0$. And for $x >  0$ and $y > 0$ , I just know the Pythagorean triple and got the solution as $(4,2,5)$ and $(4,2,-5)$. Please help me to solve it properly.


I want to root my samsung galaxy note2 n7100. I saw lots of tutorials on internet. But no tutorial give me a 100% guarantee. :( can anyone help me to root my mobile?

How to root Samsung Galaxy Note 2? I have no experience with rooting. Model number is GT-N7100. Android-version 4.1.1.