Currently when I right click on a directory and select Open in Terminal the default is still GNOME terminal. I have Terminator installed. Is there a way to make it default instead?  I have read , and wonder if the situation has been improved?

The nautilus-open-terminal package adds a menu/right-click option to open a terminal in the current directory.  I want to change this from opening gnome-terminal to opening terminator. , however these instructions do not appear to be valid any more, and I can't find any place in the system settings where the default emulator can be changed.  I also tried:  $ sudo update-alternatives --config x-terminal-emulator   choosing  * 0            /usr/bin/terminator               50        auto mode   But this does not appear to have any effect. Any idea how I can get this to work?


I usually hear people ask others "What's up？" when they first meet each other.  But what does this sentence mean?   Does it mean "How are you?"  or "What are you doing?'  And if asked with such phrase, how should I answer?

"What does it really mean when one asks - what’s up?"  What should be my reply? What I am busy with or upto? I am assuming its informal usage.  Also I doubt if one should use it in formal meetings. Any guidance/suggestions ?  Thanks


I am an novice.  I want to draw this picture   But I meet a problem  I found a heart outline image from the internet and dropped on my ps file. When I was trying to fill this heart with a pure color, it becomes something like this

I am a novice for graphic design.  I have a low quality image which is given by my friend, its size is really small, but we want to make it bigger and clearer so that we can use it as a banner or logo or etc.    So my question is what is the easiest way to get a better quality image from a given(smaller, low quality) image?   Should I manually draw it, and how, what tools to use? Or is there a way which I can easily convert it to a vector and then increase the size and then save it back as a png?


In my java app deployed on tomcat, about 500K items (can go even upwards) are added to ArrayList. Then, these list(s) are iterated to check some conditions.  Que- For this scenario, would using LinkedList gain performance?  Any pointers from practical experience for volume of data exceeding 200K items~ 1 million items.  Mostly list of strings and objects having multiple properties mostly string (Basically get data from DB, convert it to Java objects and send it over via HTTP) If size of data is expected to stay within 100K or less, would there be a difference

I've always been one to simply use:  List<String> names = new ArrayList<>();   I use the interface as the type name for portability, so that when I ask questions such as these I can rework my code.    When should  be used over  and vice-versa?


I am getting this error though limit 100 is provided in SOQL statement.Can someone please suggest a way out here? Apex code:  public  class Attachments_11{ public List<attachmentCaseWrapper> caseWrapper= new List<attachmentCaseWrapper>(); public void Attachments_11(){}  public List<Attachment> getattachedFiles() {         List<Attachment> attachedFiles = [select ParentId,ID,Parent.Name from Attachment limit 10];        return attachedFiles ;      }  public List<attachmentCaseWrapper> getcaseWrapper(){ LIST <ID> K=new List<Id>(); for(attachment a :[SELECT PARENTID FRom attachment where Parent.recordtype.sobjecttype='Account']) {k.add(a.parentid);}  //List<Call2_vod__c> listCases = new List<Call2_vod__c>([select Account_vod__c,name,Account_vod__r.Name,id from Call2_vod__c where signature_date_vod__c!=Null and account_vod__C in :k limit 10 ]);  //List<Id> hcp=new List<Id>();  list<list<Call2_vod__c>> listOfLists = new list<list<Call2_vod__c>>(); list<Call2_vod__c> listOfContacts = new list<Call2_vod__c>(); for (Call2_vod__c c : [select Account_vod__c,name,Account_vod__r.Name,id from Call2_vod__c where signature_date_vod__c!=Null and account_vod__C in :k limit 100] ) {     if (listOfContacts.size() > 999)     {         listOfContacts = new list<Call2_vod__c>();         listOfLists.add(listOfContacts);     }     listOfContacts.add(c);  }  //and the last set... listOfLists.add(listOfContacts);  system.debug(listOfLists.size()); for (list<Call2_vod__c> cons : listOfLists) {     system.debug(cons.size());     for (Call2_vod__c con : cons)     {         system.debug(con.Name);   for (Attachment atf : [Select Id,Name,ParentId from attachment where parentId =:con.Account_vod__c AND Parent.recordtype.sobjecttype='Account' limit 1]) {       map<id,Attachment> mapCaseAttachments = new map<id,attachment>();          mapCaseAttachments.put(atf.ParentId,atf);          System.debug('keys in the map: ' + mapCaseAttachments.keySet());             System.debug('list of values in the map : ' + mapCaseAttachments.values());        }      } } /*for(Call2_vod__C c : listCases ) { hcp.add(c.account_vod__C); }*/        //for1      map<id,Attachment> mapCaseAttachments = new map<id,attachment>();         for (List<Call2_vod__c> cs : listOfLists) {                for (Call2_vod__c c : cs)    {       attachment atf = mapCaseAttachments.get(c.Account_vod__C);            attachmentCaseWrapper cw = new attachmentCaseWrapper(c,atf);            caseWrapper.add(cw);           }         }     // for2       return caseWrapper;    }    public class attachmentCaseWrapper {     public string Call_Name     {get; set;}     public string accountName    {get; set;}     public string attachmentId   {get; set;}      public attachmentCaseWrapper (Call2_vod__c cse, Attachment atf) {       Call_Name = cse.Name;       accountName = cse.Account_vod__r.Name;       if (atf != null) {         attachmentId = atf.id;         System.debug('***************************************************attachmentId : ' + atf.id);       }      }   }  }   Apex Page:  <apex:page controller="Attachments_11" renderas="pdf" >   <apex:form id="theForm"> <apex:pageBlock id="details">  <apex:pageBlockTable value="{!caseWrapper}" var="j">                  <apex:column value="{!j.accountName}"/>                   <apex:column >          <img src="/servlet/servlet.FileDownload?file={!j.attachmentId}"/>          <!--apex:image url="/servlet/servlet.FileDownload?file={!j.attachmentId}"/-->          </apex:column>       </apex:pageBlockTable>                    </apex:pageBlock>   </apex:form>   </apex:page>   Error: Too many SOQL Queries 101

I am getting a Too many SOQL queries: 101 error on a trigger when I am trying to deploy another trigger.  I am posting the trigger which is causing the error.  trigger rollupAccountShowings on Account (before insert, before update) {    if (trigger.isinsert) {       for (Account a:Trigger.new){           a.No_of_Viewings__c = 0;        }    } else {      for (account a : [select                   id,                  (select id from pb__Showings__r)                  from account                   where id in:trigger.new LIMIT 1]) {           trigger.newMap.get(a.id).No_of_Viewings__c = a.pb__Showings__r.size();      } }   Can anyone correct me where I have gone wrong and suggest me the changes.  Thanks


Completely ignored arguments: [--nativeLauncherVersion, 301] [08:39:10] [Client thread/INFO]: Setting user: WizardIMP [08:39:12] [Client thread/INFO]: LWJGL Version: 2.9.4 [08:39:13] [Client thread/INFO]: Reloading ResourceManager: Default [08:39:13] [Sound Library Loader/INFO]: Starting up SoundSystem... [08:39:14] [Thread-5/INFO]: Initializing LWJGL OpenAL [08:39:14] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [08:39:14] [Thread-5/INFO]: OpenAL initialized. [08:39:14] [Sound Library Loader/INFO]: Sound engine started [08:39:15] [Client thread/INFO]: Created: 1024x512 textures-atlas [08:39:19] [Client thread/INFO]: Connecting to node265.minecraft.toomanynodes.com., 41690 [08:39:21] [Client thread/INFO]: [CHAT] Welcome, WizardIMP to PvP-Dimensions Open Beta! [08:39:21] [Client thread/INFO]: [CHAT] [mcMMO] Running version 1.5.05-SNAPSHOT-b136 [08:39:21] [Client thread/INFO]: [CHAT] [mcMMO] www.spigotmc.org/resources/mcmmo.2445/ - mcMMO Website [08:39:21] [Client thread/INFO]: [CHAT] WizardIMP joined the game [08:39:21] [Client thread/INFO]: [CHAT] Welcome, [Donator]WizardIMP! [08:39:21] [Client thread/INFO]: [CHAT] Type /help for a list of commands. [08:39:21] [Client thread/INFO]: [CHAT] Type /list to see who else is online. [08:39:21] [Client thread/INFO]: [CHAT] Players online: 1 - World time: 9:03 AM [08:39:21] [Client thread/INFO]: [CHAT] You have no new mail. # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffc1e3db7c, pid=8484, tid=6112 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig75icd64.dll+0x55db7c] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Anirudh\AppData\Roaming\.minecraft\hs_err_pid8484.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Minecraft keeps closing a whenever I try to play on multiplayer and its keeps saying that I have a file open. Here is the crash report:  Completely ignored arguments: [--nativeLauncherVersion, 301] [17:43:10]  [Client thread/INFO]: Setting user: Legend_2007 [17:43:10]  [Client thread/INFO]: (Session ID is <censored>) [17:43:13]  [Client thread/INFO]: LWJGL Version: 2.9.4 [17:43:14]  [Client thread/INFO]: Reloading ResourceManager: Default [17:43:16] [Sound Library Loader/INFO]: Starting up SoundSystem... [17:43:16] [Thread-5/INFO]: Initializing LWJGL OpenAL [17:43:16] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [17:43:17] [Thread-5/INFO]: OpenAL initialized. [17:43:17] [Sound Library Loader/INFO]: Sound engine started [17:43:25]  [Client thread/INFO]: Created: 1024x512 textures-atlas [17:43:35]  [Client thread/INFO]: Connecting to play.cubecraft.net, 25565 [17:43:38]  [Client thread/INFO]: [CHAT]                                        #  # A fatal error has been detected by the Java Runtime Environment:  #  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd2ee92177, pid=3040, tid=5852  #  # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18)  # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops)  # Problematic frame:  # C  [ig75icd64.dll+0x12177]  #  # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows  #  # An error report file with more information is saved as:  # (i got rid of this part because it showed private info)  #  # If you would like to submit a bug report, please visit:  #   http://bugreport.sun.com/bugreport/crash.jsp  # The crash happened outside the Java Virtual Machine in native code.  # See problematic frame for where to report the bug.  # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


Today I , but I've not been notified about it and I don't see it in Achievements popup:

Yesterday, I have received two : Revival, and Self-Learner. However I was only notified of the Revival badge, because apparently the Self-Learner badge is not considered "".  What badges have their notification suppressed if the user has a 200-rep account somewhere on the Stack Exchange network, i.e. they won't trigger a new item in our achievements dialog?


Show that if $\int fh < \infty$ for all $h \in L^q$ then $f \in L^p$  We can assume we are on Lebesgue measure if necessary. This seems like it should not be hard to show but this is the first problem i encountered which wants you to prove integrability. My idea was as follows. Let $A_n=\{x | |f(x)||>n\}$ then we have two options, either $\mu(A_n)<\infty$ for some $n$ or $\mu(A_n)=\infty$ for all $n$. The first case: By continuity of measure we know that for some big $M$ $\mu(A_M)<1$ and so it's characteristic function belong to $L^q$ and we know the integral over that set is finite. So now we have the function is bounded on an infinite set. I am not sure what to do now. My suspicion is pick a good $h$ but I do not know how. Hints would be appriciated.

Let $f$ be a measurable function on a measure space $X$ and suppose that $fg \in L^1$ for all $g\in L^q$. Must $f$ be in $L^p$, for $p$ the conjugate of $q$? If we assume that $\|fg\|_1 \leq C\|g\|_q$ for some constant $C$, this follows from the Riesz Representation theorem. But what if we aren't given that such a $C$ exists?


Quick question, we have a Windows AD domain "company.com"  Computers are joined to this Windows domain "company.com" and we also have a web server at "www.company.com".  A request has come in that the higher ups also want our website to respond to "company.com" (without the www).  Since this is our AD Domain name, is there some sort of trick where I can point only port 80 traffic on "company.com" to a web-server, or would I have to run IIS/redirect on all the AD servers?

In our network the name of the network domain is also the domain of the organization's website (say, example.com). Externally, people can enter example.com to visit our website, but internally, this points to one of the several domain controllers, we have for Active Directory, some of which do not even run a webserver.   As a result of this, links to http://example.com don't work internally (only www.example.com does work internally).  How do we point http requests transparently to the web server, and what side effects does this have?


If an answer received a bounty, the green bounty indicator will disappear when voting on the question.

When I use the mobile app to vote for an answer that was awarded a bounty,  the bounty is no longer shown until I reload the answers.


I've noticed that the second argument of \fontsize appears to get ignored sometimes when wrapped in curly braces.  Instead, the text appears to be set with minimal leading.  Example 1:  \fontsize{18}{100} \selectfont Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah   Output with ridiculously large space between lines, as specified:    Example 2:  {\fontsize{18}{100} \selectfont Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah}   Output with no space between lines, despite request for outrageous space between lines:  I've tried this in several setups: on my own machine, and in two online compilers, in PDFLaTeX right out of the box, with no packages loaded.  I noticed it for the first time while using XeLaTeX, though.  Is this a bug in \fontsize?  Is it somehow supposed to work like this—is there some rational reason for the leading to break when the thing is placed in curly braces?  To add to the weirdness, the strange behavior appears to go away if an empty line is added before the closing curly brace.  So the following example gives output apparently identical to that of Example 1.  Example 3:  {\fontsize{18}{100} \selectfont Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah  }

I was working on a Beamer presentation, and noticed that, if I open a group scope and use a \tiny, the font size will bet set, but there will be a large space between lines. However, if I issue a \par at the end of the paragraph, it works as intended:  \documentclass[t]{beamer} \newcommand{\shortlipsum} {Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue euneque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra}  \begin{document} \begin{frame} \shortlipsum  {\tiny \shortlipsum\par   % <--- removing this \par will break line spacing } \end{frame} \end{document}   Here's a comparison between not using and using \par:    Am I doing it the right way? Why is \par the right way?


At the moment when a new user gets downvoted, he or she has no idea what's going on, and while I do think that spending at least a minute to go through Tour is a good etiquette, most people just don't do it. The purpose is to keep SO of high quality and it would be so much more helpful if new users actually understood at least some of the rules, rather than simply getting new accounts or leaving in frustration.  My suggestion is to add automated standardized comment when a question from a new user gets, say, three downvotes. It can link to Tour / FAQ and say something along the lines of "Your question has got a few downvotes. It indicates that the community doesn't find your question useful and / or it lacks research effort. Please take a Tour to learn how the site works." The author can be Community.  I feel like it will benefit SO, as new users will have a better idea about the workings of the site. There is not much benefit in downvoting user to -10 if he or she doesn't understand what's wrong. We see the recurring situation when users come here and say "why my question was downvoted / closed" when the answer is pretty obvious (to us). That means, the visibility of this information can be improved.

Problem People post a bad question, for any of the following reasons:  Not researched Off topic Poorly written/formatted No sign of any attempt to solve problem Classic help vampire question etc  This gets downvoted and often without comments. It's exhausting and tiring work to constantly coach newbies about how to improve their question, because most don't bother to update and oftentimes the only response you get back is "f you why u so mean" types of feedback. Suggestion Whenever a question from a user with less than 50 reputation receives a downvote, automatically generate a comment from the Community user which says:  Welcome to Stack Exchange! You might have noticed your question received a downvote. Voting here is anonymous, but you can find possible reasons for this  as well as suggestions for how to improve your post. You may also find it helpful to read the [FAQ] to better understand what types of questions are on/off topic.  Note the link to "here" can link there or to a more comprehensive "what does it mean when I got downvoted?" post. The [FAQ] link would be to the site on/off topic section. Reason this resolves problem If I downvote a question, I want to help users learn but I am not going to try to search for the diamond in the ruff constantly. I don't think I'm alone in this. Adding customized comments is a lot of work. There are a ton of crap questions posted on SE. Honestly, I don't care that I'm "supposed" to be willing to post personalized, "how to improve your post" comments. It's a pain to constantly put these on questions when the majority of the time they get ignored anyways. Another problem is that if you do post a comment trying to help, you often get attacked by the asker and blamed for all the other downvotes. This is frustrating and not a positive reinforcement. But I will upvote a comment that gets autogenerated as a "support" type of thing, because it is very easy and painless. And, honestly, if someone gets a comment like that explaining how to improve their post and doesn't bother to update their post or request clarification I really, really, really don't care about their feelings being hurt.


I am using Ubuntu and I'm quite new to this OS. How can I install PHP 5.6.8?

I am trying to update to install PHP 5.5, 5.6 or 7.0 in Ubuntu 12.04/14.04/16.04 LTS, and I can only get PHP 5.3.10 for Ubuntu 12.04, PHP 5.5.9 for Ubuntu 14.04 or PHP 7.0.4 for Ubuntu 16.04 using official repositories (using apt-get).  I'm not really sure how to do a manual update – as I need:   to play around with the new(est) PHP features to install older PHP version due support in the software


I'm working with the JetBrains Clion IDE. To be able to start Clion from any directory, I added cide/bin to your $PATH environment variable. Here cide is the installation home. The updated $PATH variable for the machine is: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:cide/bin  When I try to execute the file clion.sh that is in cide/bin gets the error bash: ./clion.sh: No such file or directory

Update: Included a lot more relevant information, thank you for suggesting including this! I am very new to Linux and I am trying to run scripts that someone else created. I recently learned about the $PATH variable, and realized that I need to add my scripts folder to my $PATH variable in order to make it callable from anywhere on the terminal. However, even when I add the folder containing my script to the $PATH variable, the script inside is not being recognized. I have edited my bashrc file in a text editor, at the bottom to include: #Modify $PATH export PATH="/home/eli/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"  My script is located in /home/eli/bin, if I don't specify the entire path, the script will not run despite this bin being in my $PATH variable. So, here's my $PATH variable: (base) eli@eli-XPS-13-7390-2-in-1:~$ echo $PATH /home/eli/miniconda3/bin:/home/eli/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games  Here are my script permissions: (base) eli@eli-XPS-13-7390-2-in-1:~$ ls -al ~/bin/trim2bRAD_2barcodes_noAdap.pl -rwxr-xr-x 1 eli eli 3064 May 19  2018 /home/eli/bin/trim2bRAD_2barcodes_noAdap.pl  Here is the output when I try to run the script without being in the directory or specifying the exact path to the file: (base) eli@eli-XPS-13-7390-2-in-1:~$ ./trim2bRAD_2barcodes_noAdap.pl bash: ./trim2bRAD_2barcodes_noAdap.pl: No such file or directory


I'm getting this error declare: -A: invalid option while declaring the following map  declare -A ApiResourcePath_LambdaFunc_Map=( \     [signup]="CreateUser" \     [verify-user]="VerifyUser" \     [login]="Login" \     [change-password]="ChangePassword" \     [forgot-password]="LostPassword" \     [reset-password]="ResetPassword" \     [refresh-token]="RefreshToken" \ )   I didn't find any syntax error here. Why I am getting this error ?

I was using associative arrays in my script, hence I used to declare them by the   typeset -A <array_name> command, and it worked fine in the bash prompt  But when I use it in my script, I get the following error   typeset: -A: invalid option typeset: usage: typeset [-afFirtx] [-p] name[=value] ...  An alternative solution will also be acceptable for me.  SIDENOTE: I tried typeset -a but it declares an indexed array. But I want an associative array.


As I know for selecting a part of a string we use split. For example, if node1.Text is test (delete) if we choose delete   string b1 = node1.Text.Split('(')[0];   then that means we have chosen test, But if I want to choose delete from node1.Text how can I do?  Update:  Another question is that when there are two sets of parenthesis in the string, how one could aim at delete?. For example is string is test(2) (delete) - if we choose delete

I have a string User name (sales) and I want to extract the text between the brackets, how would I do this?   I suspect sub-string but I can't work out how to read until the closing bracket, the length of text will vary.


The railway station is far away.    Where is the adverb here, and what does it modify? My answer was "away", but I am not quite sure if it's correct.  I am also confused by      I would rather wait   as i don't know what "rather" modifies.

I wanted to ask a question about the adverbs away and apart.   The villages are miles apart. The exam is only two weeks away. It is three days apart. It is five kilometers away/apart.   Away and apart are supposed to be adverbs right? So they must be modifying either adjectives, adverbs, or verbs -- right?  What do they modify in these examples?  FIrst example, miles apart: does apart modify miles (which is a noun)?  Same thing goes for away, like two weeks away.  Two weeks is a noun.


I recently purchased a laptop with Windows 10 on it. I attempted to then install Ubuntu alongside it by taking a USB and using a tool (E.G. Rufus) to burn the necessary Ubuntu installation packages. Long story short, I was able to install Ubuntu, but could not boot into Ubuntu, even following several guides such as changing the Windows bootloader to load the GRUB loader, which all failed to work. I ended up using the "clean" command from Windows DiskPart to delete Windows.   I then installed Ubuntu again, and now have a working version of Ubuntu on my computer. However, I'd like to take a crack at installing Windows 10 alongside it (so this time I'd be installing Windows 10 on Ubuntu as opposed to my first attempt at installing Ubuntu after Windows) and was wondering if someone could guide me in the right direction.

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


I'm using python 3.7.xx. Entering a value into my function, converting it to a float, multiplying it by 100, then printing said variable results in a mysterious .0000000001 being attached to my expected value.    def get_change(amt):      hun_amt = float(amt) * 100      print(hun_amt)     print("How much money you got?")  amt = input()  get_change(amt)   If inputted .07 I receive 7.000000000000001 in the console.  Where is this coming from?

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


I am getting two type of responses from the server the first one in case of the routes is being sent to the server with the JSOn string then I get as response {"status":230,"routes":[1,9,3]} or not being sent then I get {"status":201}. Currently the app crashes if the response is {"status":201} and I am getting:     Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference   How can I prevent that? I want to do nothing if that the server response?              Gson gson = new Gson();             StopsJSON data = gson.fromJson(sb.toString(), StopsJSON.class);              routes = data.getRoutes();  @Override     protected void onPostExecute(Void result) {         // Intent with Conetxt of the Asyntask class and         Intent intent = new Intent(mContext, MainActivity.class);         intent.putIntegerArrayListExtra("stop_route", routes);         intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);         mContext.startActivity(intent);      }   In MainActivity:  @Override     protected void onNewIntent(Intent intent) {         // TODO Auto-generated method stub         super.onNewIntent(intent);          // getIntent() should always return the most recent         setIntent(intent);          Bundle extras = getIntent().getExtras();         if (extras != null && extras.containsKey("stop_route")) {              final ArrayList<Integer> routeList = extras                     .getIntegerArrayList("stop_route");             int routeListSize = routeList.size();             if(routeListSize > 0){       } }

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 am using below code,i have checked pathname and sheet name is all fine. I am using fillo version fillo-1.15.  public class T_Test {     public static void main(String[] args) throws Exception{         try {             com.codoid.products.fillo.Fillo fil_res = new com.codoid.products.fillo.Fillo();             com.codoid.products.fillo.Connection con_res = fil_res                     .getConnection("C:\\Users\\admin\\workspace\\Good Connect\\Test_Data/Result\\LifePlanner_Result.xlsx");             String sql_res = "update Result_Data SET Product_ID = 'Sampoorna Raksha' Where TestCase_ID = 'TC1_SIS' ";             System.out.println(sql_res);             com.codoid.products.fillo.Recordset recordset_rec = con_res.executeQuery(sql_res);             con_res.close();         } catch (Exception e) {             System.out.println("Exception result set:" + e.toString());         }     } }   Error is below:     java.lang.NullPointerException   Exception result set:java.lang.NullPointerException       at com.codoid.products.parser.SelectQueryParser.isWherePresent(SelectQueryParser.java:66)       at com.codoid.products.fillo.Select.getRecordset(Select.java:47)       at com.codoid.products.fillo.Connection.executeQuery(Connection.java:56)       at GoodSolutionAgence.T_Test.main(T_Test.java:89)


I have been updating an old (from 1999) Python script to Python 3. Occasionally I have found . It is typically used in something like:  some_var = regex.compile(pattern, regex.casefold)   How would I go about changing this so it works in the latest Python 3?

In Python, I can compile a regular expression to be case-insensitive using re.compile:  >>> s = 'TeSt' >>> casesensitive = re.compile('test') >>> ignorecase = re.compile('test', re.IGNORECASE) >>>  >>> print casesensitive.match(s) None >>> print ignorecase.match(s) <_sre.SRE_Match object at 0x02F0B608>   Is there a way to do the same, but without using re.compile. I can't find anything like Perl's i suffix (e.g. m/test/i) in the documentation.


I thought the community user was locked at one rep, but , it says the community user had three rep on meta unix and linux. See this:  There, the comments and answers say that the community user can't gain rep. How did this happen despite it being locked at one rep?

After finding , I thought about inspecting Community's ♦ profiles. What did I notice? Community ♦ have more than 1 rep on some meta sites.    - 5 rep  - 3 rep  - 3 rep  - 3 rep   Why is it?


I'm trying to convert the mouse position (Input.mousePosition) into world points, but for whatever reason the X and Y coordinates are always, always 0. Here, I printed mousePosition and ScreenToWorldPoint()'s output:  The -10 in the Z is understandable, but why do I get 0s in X and Y regardless of the actual, varying mouse position? This is inside a custom display I set inside Game View (1440x3040). I tried Free Aspect, but that didn't change anything. I tried parenting the script to an empty game object centered on origin just in case, but that didn't do anything either. The code: Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); Debug.Log(mousePos); Debug.Log(Input.mousePosition);  Or, more generally: private bool hitProjectile() {     bool hit = false;     Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);      Debug.Log(mousePos);     Debug.Log(Input.mousePosition);      if ((mousePos.x >= (pt.position.x - radius) && mousePos.x <= (pt.position.x + radius)) &&         (mousePos.y >= (pt.position.y - radius) && mousePos.y <= (pt.position.y + radius)))         hit = true;      return hit; }  The game is in 2D, the camera is perspective, and I'm using URP. The script is trying to determine if the mouse clicked on a circle (/w a CircleCollider2D). What the hell is going on? I hope this is not a URP thing. I've had nothing but bad experiences with it.

Whenever I use ScreenToWorldPoint(Input.mousePosition) and display the output in console this always gives me the same coordinates. MyCode: Vector3 screenToWorld;  void Update() {     screenToWorld = Camera.main.ScreenToWorldPoint(Input.mousePosition);     Debug.Log(screenToWorld); }


I check my Moto G XT1033 phone on daily basis hoping that one day I will get Android 5.0. But I didn't haven't got the update yet.  Is there any current expected date it will be released in India?

Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also:


I have a view with full pager, i am showing 10 items per page. Now pager shows up like...  1    2    3    next ›    last »   I want to to show each pager number from which count it will start and end...like   1-10    11-20    21-30    next ›    last »   How can I do this?

I am using the full pager in views module. I am displaying 40 items per page. The full pager display links like this  1 2 3 4 5 next last   I want to change it to this  1-40 41-80 81-120 next   How will I do this? Any idea about this?


Why I believe this is not a duplicate: This  might be the same, but the accepted answer is only a partial answer, because it gives no reason as to why those are the only solutions. Since the answer is accepted, that question will likely not receive any further answers. I would like to reopen this question in order to place a bounty and hopefully get a more complete answer.    When does $s^*=s$?  $s^*$ represents the dual of $s$, where $s$ is a compound proposition involving only $T, F, \wedge, \vee, \neg $, and $s^*$ is obtained by interchanging $T$ for $F$, $F$ for $T$, $\wedge$ for $\vee$, and $\vee$ for $\wedge$.  A big obstacle is that question is from the $2^{nd}$ section of chapter $1$ of a $2000^-level discrete math book, so we are not even introduced to induction. I don't even know what sort of tools I'm supposed to use to solve this.  What I've tried:  First, I drew up some truth tables of compound prepositions and their duals to look for any patterns, and what I noticed  (in the few examples that I tried) was that the number of "True" outputs of $s$ was equal to the number of "False" outputs from $s^*$. For example, if $s$ was a compound proposition of $p, q, r$ and $s$ was true in $5$ cases and false in $3$, $s^*$ was false in $5$ cases and true in $3$ (they didn't match up though).  I think that if $a=b$, then $a^*=b^*$. I'm not sure how to prove this or if it's even necessary to prove it, but I suspect it's true. If it is, then at least $s^*=s$ holds for compound propositions $s$ which can be simplified to a single proposition. For example $s=(p \vee F) \wedge (q \vee T)=p$, therefore $s=p=p^*=s^*$. I know that in the definition of "dual" $s$ has to be a compound proposition; but as an exercise, the book asked to find the dual of this $s$ so I guess it's valid. If this is the only time when $s^*=s$, then I was thinking we can prove this by induction (even though we're probably not supposed to use it.) We know that if $s$ reduces to $p \wedge q$ or to $p \vee q$, then $s^* \ne s$, and then maybe we could use induction to show that if it reduces to a simpler proposition of $n+1$ variables, $s^*=s$ also doesn't hold.

So I am studying computer science and right now I am stuck on a problem.  When does s∗ = s, where s is a compound proposition?  So far the only thing I can come up with is:  s* = s when the compound proposition is composed only of the same           propositions. (ex. p ∧ p = p ∨ p)  The book defines duality as:  The dual of a compound proposition that contains only the logical operators ∨, ∧, and ¬ is the compound proposition obtained by replacing each ∨ by ∧, each ∧ by ∨, each T by F, and each F by T. The dual of s is denoted by s∗. (Discrete Mathematics and its Applications, Rosen, 7e)  Any help would be great, this is a tricky one.


In Net Framework 4.x I can get the start of week by:  dateStart = DateTime.Today.AddDays(-1); weekStart = dateStart.StartOfWeek(DayOfWeek.Monday);   But in Net Core the StartOfWeek function doesn't exist. Any idea how I can achieve this in Net Core 2?  Thanks

How do I find the start of the week (both Sunday and Monday) knowing just the current time in C#?  Something like:  DateTime.Now.StartWeek(Monday);


I have a collection of old games in a CD (from year approximately 1995). One the games included is Heroes of Might and Magic 1. I would like to get this game working properly on my computer but so far I haven't had any luck. I googled and tried DOSBox with newbie instructions but I couldn't get it to work. I only got a message "This program cannot be run in Dos mode" from DOSBox. I attached a picture that highlights what my game folder includes etc:     Thank you! P.S. If there's any more information you need, please ask.   UPDATE:   My operating system is:   Windows 7 Home Basic, 64-bit

I am trying to install the 16-bit game, "NBA Live 98" on my parents' desktop computer, but I got a message that says, word for word:     The version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.   Problem is, this computer game is obviously out of date and no longer supported.  Note: The desktop has Home Premium, so XP Mode and Program Compatibility Mode are out of the question. Also, my parents are not willing to downgrade their computer to XP (they discarded the OS CD years ago), and my backup desktop doesn't have a single administrator (everyone's limited). Finally, my laptop charger is broken, so I can't use my Dell Vista.


Clara the Fighter finds herself facing a huge undead, the Frost Giant Skeleton. She attacks twice with her scimitar, and again with her light hammer! The undead reels back as it takes bludgeoning damage, which it is vulnerable to! On her next turn, can Clara make the Attack Action using her light hammer instead of her scimitar without switching hands?  Here's the breakdown (assuming all attacks hit): Turn 1 Action: Attack (scimitar, right hand) = 2 x (1d6 + Str) slashing Bonus: Off-hand attack (light hammer, left hand) = 1d4 bludgeoning, x2 because of vunlerability Turn 2 Action: Attack (light hammer, left hand) = 2 x (1d4 + Str) bludgeoning, x2 because of vulnerability Bonus: Off-hand attack (scimitar, right hand) = 1d6 slashing Is the above allowed?

The PHB on p. 195 (or the ) says:     When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative.   The rules do not make a distinction between "main-hand" and "off-hand" weapons.  My character dual wields a shortsword with her right hand and a dagger with her left hand.  Could my character attack with her left hand dagger first, doing 1d4 + STR/DEX mod damage, then attack with her right hand shortsword, doing 1d6 damage?  Does it matter which weapon I attack with first when two-weapon fighting?


My phone is currently bricked and I'd like to keep in touch with people I only talk to on Snapchat. Is there any way I can emulate it on Ubuntu 18.04? Some people suggested installing Bluestacks via Wine. I tried that, but when I run the .EXE installer, nothing happens.  Has anyone managed to run Bluestacks on Ubuntu successfully?  I've also tried Genymotion, but I have no idea how to download Snapchat for Android emulated in Genymotion. I thought Google Play was pre-installed on every single Android device, but that does not seem to be the case. I tried downloading the .APK file on the emulated phone, too, but it did not work for some reason.  I apologise for my incompetence and English.

I will like to know some of the android emulators that work really well with Ubuntu 11.10 and above. I want to try 'whatsapp' on Ubuntu through an android emulator. Thanks in advance


Authors usually give the following definition (or some variation) of meromorphic function:     Let $G$ be a region (i.e. open connected subset of $\mathbb{C}$). A   function $f$ is said to be meromorphic in $G$ if it's holomorphic in   $G$ except in a discrete set of poles.   However I think we should also consider removable singularities in the definition of meromorphic function. There is a theorem that says:     If $f$ and $g$ are holomorphic in $G$ then $f/g$ is meromorphic in $G$.   This theorem is no longer true if we take the usual definition. Take for example $f,g:\mathbb{C}\to \mathbb{C}, f(z)=g(z)=z$ and define $h:\mathbb{C}-\{0\}\to\mathbb{C}, h(z)=f(z)/g(z)$. Then $h=1$ in $\mathbb{C}-\{0\}$, however $h$ is not meromorphic in $\mathbb{C}$ in the sense of the previous definition because $0$ is not a pole, is a removable singularity.  Most authors only mention poles in the definition of meromorphic functions, but I think that's not strictly correct. If I'm right, I would like to see an author considering removable singularities in the definition of meromorphic functions.  There is a similar question here  but I don't like the phrasing of the question and the answer.  I would like to have a reference text considering these details. For example Lang, Conway and Ahlfors all give the definition without removable singularities.

I'd like to know about the definition of meromorphic function. Usually I see the definition of meromorphic function as follows: Let $D\subset\mathbb C$ be a connected open set,  a function $f$ defined on a subset $U$ of $D$ and with value in $\mathbb C$ is meromorphic on $D$ if the following conditions are satisfied:   $P(f)=D\setminus U$ is a set of poles $P(f)$ is discrete in $D$ $f$ is holomorphic on $U$.   However, in the book " Complex anlysis for mathematics and engineering" by John H. Mathews and Russel W. Howeell, $P(f)=D\setminus U$ is a set of poles and removable singularities.  I think removable singularities are not real singularities, since we can extend the function to the holomorphic function. Thus, two definitions may be almost same.   I'd like to know how other people think about this question.   Would you give any comments about this question? Thanks in advance!


Is (∀n ∈ R, A(n)) ∨ (∀n ∈ R, B(n)) the same as  ∀n ∈ R (A(n)) ∨ B(n)). My belief is that it should be the same no?

I have to prove if the following statement is true or false $$\forall x : (P(x) \lor Q(x)) \Leftrightarrow \forall x : P(x) \lor \forall x : Q(x)$$  I understand the first statement as, for every $x$, at least one of the functions $P$, $Q$ is true. For the second statement, at least one of the functions $P$, $Q$ is true for every $x$. Is this correct? When yes, how could I prove this? Using the distributive law will clearly render me the wrong result.


When i need to upload a database to a hosting provider with a php based website, the only things i need to care about is :  1) SQL injection, i can skip this using magic_quotes and if magic quotes is not on, i add addslashes. 2)prevent user to upload malicious file to my website by setting a control, Both on which file extension (example just .jpg or jpeg) and which file type (image/jpg ecc).  Now it's just these the 2 main things i need to worry?  And: if i just make the administrator of the website be able to upload image or insert new article in database after he enter a  password, i need to prevent that 2 kind of attack? Or that area is safe after i encode my password with md5 on database?  Last: if i encode my password in MD5, when the user enter the password i need to encode it Before sending it with method POST?  EDIT:  For whoever downvote my question, the 2 attack i posted was just an example, so my question was wider, like, what i need to be informed on if i want to prevent attack to my website. Just to have something and go to look for it. In fact MOST tutorial on the net, specially in my native Language are outdated or bad.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'm transcribing some speech and I came across     One of the accusations that certain non-Orthodox Christians level against the Orthodox is that we worship idols.   However, I am not certain on how to style the word "non-Orthodox" properly.  Is there a reference I can consult here? Is there one right way, or are multiple forms acceptable?  For example:   "Nonorthodox" makes sense because 'nonorthodox' is a normal word, but should be capitalized as part of a proper noun. "non-Orthodox" makes sense because "Orthodox Christian" is the base term, but Nonorthodoxy is not a specific class of Christianity.

I have a question regarding the use of hyphens in words with certain prefixes. For example,     Neo-Nazism   Neo-Confucianism   Neo-liberal     are words with a hyphen, but     Neoplatonism   Neocolonialism   are words without hyphens. I'm especially confused with neo-Confucianism and neoplatonism: one contains  a hyphen and a capital letter and the other doesn't.  Is there a specific rule for hyphens in words with prefixes or is it purely arbitrary?


Let's say I want to make an event reminder in Python.  It would read a file on startup containing a list of events (meetings, birthdays, etc), figure out which one is soonest, and then do something like time.sleep(1e7).  Actually, that doesn't work: trying to sleep for ten million seconds gives an OverflowError.  Okay, no problem: we'll call time.sleep(2**22) in a loop.  It's a bit less elegant, but the overhead of waking up our process every 7 weeks for no good reason should have basically no impact on system performance or battery life or all those good things everyone likes when they warn us against calling sleep in a loop.  But!  This doesn't work!  It seems to work, unless you test what happens when you hibernate the computer.  If you call time.sleep(60) and immediately hibernate, and then immediately power it back on, you will find that the time the computer spent turned off "doesn't count"; the program will wake up late, even if the whole hibernate/wake up thing took less than a minute.  So, what to do about it?  A common suggestion in this situation seems to be a busy loop: call sleep, and then when you wake up, check the time to see how much more sleep you can afford.  The problem with this approach is that it forces you to take very short naps or else be very unreliable.  If the next event is several months away (maybe you just use the event reminder to keep track of birthdays), that doesn't mean we can afford to sleep for several weeks, because we don't know how much of that time the computer will be on.  It could be that the computer will hibernate mere minutes after we call sleep, and remain off until the day before the event we should remind about.  Thus, we could miss the event by several weeks, as well as whatever other events were shortly after it.  So, what's a safe time?  One second is certainly safe; in fact, one second is probably overkill.  Checking every ten seconds is probably safe; if someone put their computer to sleep and only turned it on less than ten seconds before their reminder is due, I don't think they can complain too much if it arrives a few seconds late.  One minute is more dubious; for some things, being reminded a minute late makes little difference, for others it does.  For instance, if your favorite TV show is at 4pm and your reminder is set to 3:59, then having it come a minute late is bad; the user had better know this can happen, and should set the reminder to 3:58 to compensate.  But the overhead of checking the time every minute is probably NOT negligible.  At the very least, it discourages the OS from paging out the python interpreter and giving the memory to a more deserving process.  Or if it does page it out, then the extra disk traffic generated every minute might slow down the game the user is trying to play, causing a glitch in the otherwise perfect 60 fps framerate.  Or maybe none of this would happen and I'm grossly overestimating the effects of calling sleep once in a while, but still feels wrong and kludgy and inelegant and inefficient and just plain icky.  The operating system knows how long I've been sleeping; this job is trivial from its end.  My program has no clue when the computer was hibernating, and it should not have to care.  There should be some way to get the OS to use its knowledge to wake me at the right time.  Am I right?  Is there in fact such a way?  And if so, what is it?

I'm looking for a library in Python which will provide at and cron like functionality.  I'd quite like have a pure Python solution, rather than relying on tools installed on the box; this way I run on machines with no cron.  For those unfamiliar with cron: you can schedule tasks based upon an expression like:    0 2 * * 7 /usr/bin/run-backup # run the backups at 0200 on Every Sunday  0 9-17/2 * * 1-5 /usr/bin/purge-temps # run the purge temps command, every 2 hours between 9am and 5pm on Mondays to Fridays.   The cron time expression syntax is less important, but I would like to have something with this sort of flexibility.   If there isn't something that does this for me out-the-box, any suggestions for the building blocks to make something like this would be gratefully received.  Edit I'm not interested in launching processes, just "jobs" also written in Python - python functions. By necessity I think this would be a different thread, but not in a different process.  To this end, I'm looking for the expressivity of the cron time expression, but in Python.   Cron has been around for years, but I'm trying to be as portable as possible. I cannot rely on its presence.


I have a new cipher, and I want to get it properly vetted, but I don't have a strong way to prove its security properties.  I'm an amateur without ties to a strong cryptographer/university.  I have attempted a few indistinguishability proofs, but these are "back of the napkin" proofs and are likely not rigorous.  (I have colleagues that have done cryptanalysis on it, but they are not theorem types.)  As a result, I feel that I don't stand a chance of getting it published without a proof of security, but I feel that I can't find someone to help without it being published.  How can I find someone willing to join on and help write a compelling proof, and generally help write a compelling paper, (or identify a weakness that prevents me from doing something stupid with the cipher)?  Given that I have done these things:   Review previous ciphers, find they're not what you want, invent new cipher Internally analyze it (plots, prototype code, etc.) Socialize it to cryptanalyst peers, get tentative green light (rather, absence of red light - no new findings in a while)   Is this a reasonable path going forward:    rump session Have follow-on discussions at conference, express my need, find someone that way Submit as a work-in-progress in lower tier, but bonafide crypto conference Submit as a journal article   Is a rump session a good way to go to find interested math types, and/or as a first step to announcing the idea?  Are there other alternatives, such as quarterly meetings of some group that might be willing to hear the idea?  Similarly, is there a good "starter conference" for crypto open to new ideas that might lack the mathematical rigor?  , the main answer suggests that formalisms are a prerequisite to publishing: "If you submit a cipher, one would expect at least a formal analysis of why you think this is a good idea."  My question is what if you don't have that ability - how do you find someone that can help with that?  The rest of the answers on the thread went into how to make it into a bachelor's thesis.    In additional defense of this thread, there are many great suggestions that don't appear on that other post.  While I'm biased - but have nothing to gain - these threads are unique.  I'm okay with marking as duplicate as long as somehow you can merge the useful answers below into the other question.

In the last months I was searching for a subject for my bachelor thesis. I came up with an idea for a new cipher concept that works by combining already known techniques in a (hopefully) new way.  So I talked to our professor for cryptography. Although she could not find any obvious weaknesses she mentioned that the review of a cipher is an ongoing and protracted process and therefore not suited as a subject for a bachelor thesis.   Is there a way to publish the concept to get some reviews? What could one do to prevent the idea from falling into oblivion somewhere on my hard drive?   Update  I totally understood her reasons why this subject is not suitable. The question was more about the possible ways I could evolve, publish or analyze the idea (independently from my thesis). Sorry for the confusion this might have caused.


I have a e-scooter with 10" by 2.50" wheels that needs a tube. Will a 10" by 2" tube be compatible with the tire? Or do I need to purchase one with the same size as the tire? Please let me know. Thank you

I recently got a puncture and when I went to replace the inner tube I discovered that I'd bought the wrong size tube. My tyre is 700 x 40c, the tube is 700 x 28-35c.  What is likely to happen if I use this tube? Will the tube explode when I attempt to inflate it?


I'm having problem with ArcScene. I'm doing a project on the visual impact of felling areas of forest in locations regularly visited/used by people.   I have viewpoints and have created a TIN model for ArcScene. However when i try to drape my other layers - forests, roads, viewpoints - some become patchy and disappear beneath the surface of the TIN in ArcScene.   I have tried converting these features to 3D, adding layer offsets and extruding features but they just seem to make the imagery worse. I have also set the drawing priority to its lowest for the TIN and all others layers' priority to their highest.

I have a DEM of my study area, and the streams in it.  Whenever I add both to ArcScene, and drape the vectors over the DEM, some of the vectors disappear from over the surface, and are visible under the surface. (see Image below).   Are there any specific settings to properly drape the vectors over the DEM? Are there any other options or software that produce a better result (visually) when you have to drape vectors over a DEM?


I played with my friends for 2 hours and when we booted up again we saw that the items were not saved and my M60.  What should I do,

In Magicka, you and your "wizard bros" have a saved, progressed multiplayer game.  You have the M60 from chapter 3 (I think, just got into this game) and when you come back, the players are wiped from the game instance (IP game / private). Is there anyway to spawn this item? Somehow with a Steam update we lost character data in our game. We still had all the usual robes we were always accessible to - however our host lost his sword, I lost my beloved M60 (best item in the game IMHO) and another player lost their off hand.  We crossed a chapter point then "called it a night because we're all married old men". However, I'm a child when it comes to my M60.  Any thoughts / suggestions?


Definition. A subset of $\mathbb{R}$ is called open if it is a union of open intervals.  Example. Show that $\mathbb{Q}$ is not open.  How can I show to use the definition? Can you give a hint?

I have a feeling they are neither closed nor open as the $\mathbb{R} \setminus \mathbb{Q}$ cannot be open or closed either...


Just upgraded Ubuntu 16.04 to 18.04. On 16.04, I had a lot of shortcuts with custom icons on 'Launcher' for quick access. After the upgrade, all the icons are changed to standard text (?) icons and I'm unable to move them to 'Favorites' which seems to have replaced the 'Launcher' on 18.04. What to do?

I have made .desktop files for Ubuntu 16.04 to access my Google Chrome profiles, but once I upgraded to Ubuntu 17.10 (it worked up to Ubuntu 17.04) they got removed from the dock and I can't pin them back. Sample File: #!/usr/bin/env xdg-open  [Desktop Entry] Version=1.0 Type=Application Terminal=false Icon[en_US]=google-chrome Name[en_US]=Google Chrome Exec=google-chrome --profile-directory=Default Comment[en_US]=Chrome Name=Google Chrome Comment=Chrome Browser Icon=google-chrome Categories=Browser;Internet;


If $a_1^2 ≡ a_2^2 \pmod p$, then $p$ divides $a_1^2−a_2^2$, so $p$ divides the product $(a_1 − a_2)(a_1 + a_2)$. I read in a chapter related to  quadratic residues and nonresidues that  unique prime factorization now tells us that $p$ divides $a_1 − a_2$ or $p$ divides $a_1 + a_2$, and so either $a_1 ≡ a_2 \pmod p$ or $a_1 ≡ −a_2 \pmod p$.  Why? It could be the case where both $p$ divides $a_1 − a_2$ and  $p$ divides $a_1 + a_2$.

Ok, so an ideal is prime if for every $ ab \in I $, $ a \in I $ or $ b \in I $.  Now the two questions:  1: Is that an inclusive or exclusive or? Can both $a$ and $b$ be in I?  2: Can $ab$ be equal to either $a$ or $b$?


SE reputation and privileges system is well balanced: we do not trust new users we know nothing about until they earn the community trust by participating in SE activities.  However, sometimes for new users it is very difficult to get started as the basic privileges are very restrictive. For example, a colleague of mine, a brilliant programmer, hesitated when I encouraged him to use SO because of this barrier placed to guard SE from unknown users.  I propose a new feature: "an invitation to SE", a trusted user (X reps and up) will get a bank of invitations he/she can use to invite people they know and trust. A new user that was invited will start with enough reputations (I believe 15) so that he has no "new user restrictions", (instead of 1) reflecting the fact that by invitation he is not a stranger to the community and deserve to be trusted with some privileges.   I believe a somewhat similar "invitations" mechanism was installed recently in SE careers website.    UPDATE: (Aug 6th,2015) Regarding concerns raised by : - a "walk-in" user cannot be trusted at first because we don't know him, in contrast we (or at least someone) knows the "invited" user and believe he/she can be trusted to a certain extent. Maybe trusted just enough to remove the "new user" restrictions. - I don't think invited users deserve the rep-boost, but it's the easiest way I could think of to remove the "new user restrictions" -- if you have another way of achieving this goal it should be just as good for this feature. - The most significant barrier is the restriction on leaving comments: during the time I am active is SO, this restriction was the most "painful" for new users. - How to prevent "abusing" of this mechanism? well, first, I think "invitation" privileges should be given only to "trusted users" (I believe 20K reps and up). These users care about SE, knows how it works and we trust their judgement when they invite users that can contribute to the community. Second, there will be given only a restricted amounts of invitations per trusted user to "hand out", he/she should only get more if the users that he/she invited are indeed "good" users (i.e., gained extra X reputation over T days). Thus we can control the amount of invitations that can be handed out. If this features works well more invitations can be given to trusted users.      Status: (Aug 13th, 2015) Judging by the answers/comments/downvotes I guess that's a "no" for this feature request. Well, was worth trying pushing this idea. I appreciate the feedback. Thanks.

I am suggesting a Mentor privilege at 7.5k. It would be on a per-user per-site opt in basis.  At some reputation level (perhaps 7.5k) there could be an opt in "mentor" privilege.  If someone opts in then when a new user signs up, they become their Mentor. The new user is the Mentee.  They will get notified of any posts or suggested edits they make, and can help and support them.  While this would by no means help everyone (I'm sure there are more new people signing up than there are 7.5k people willing to help them), it could help mitigate the "new user's bad posts" and such like.  By no means would being someone's mentor mean you are the only person who can edit and help them, and you aren't obliged to do so - but if you have opted in then you should help.  How would this work?   Any Mentor would have no more than 5 active Mentees at once. Once the Mentee gets to 125 rep, the downvote privilege (or any other level deemed sensible) they are no longer a Mentee. If they aren't active for a month, they are no longer a Mentee. If the Mentor has 5 Mentees (i.e. cannot mentor anyone else) then any Mentee not active for 2 weeks is no longer a Mentee. The Mentee can opt out at any time, the Mentor can opt out, but if they opt out a lot (say 5 people in 2 months) they are blocked from the privilege for 2 weeks. The Mentor gets no extra rep. They can still get rep from answering their Mentee's questions and similar. Once the new user gets 20 rep on the site, a chat room is created for them to talk. No user with the association bonus will become a Mentee. This would (maybe) be opt in for sites. For example, this might not be at all useful for this site, or for , but on  or  I imagine this could be quite good.    appears to be asking the same thing, based on the title, but that is asking about people who know each other offline mentoring each other.    Every single one of these suggestions (especially the numbers) is open to discussion. Maybe 125 is to low to stop being mentored, or maybe it's too high. What do you think?


Can you ever have a question mark after a full-stop/period?  Imagine that Q.N. is the name of a secret society, and people just call it Q.N. Which one of the following is correct?  What time are you going to Q.N.? What time are you going to Q.N? I feel that the second is correct, but for some reason the first one is speaking to me as well. Any advice would be appreciated?

After reading  post, I was struck by the omission of the period (full stop) at the end of the acronym given.     A.V.C   I've never seen this before here in the States.  Is it permissible here? In England? Elsewhere?  Is it common anywhere?


Im confused because well people say that sometimes you use a capital letter in mom and dad. So when do you use capital letters for mom and dad?

I am trying to understand capitalization rules with Mom and Dad. I believe I have it correct below, but please let me know if I do not.     The one thing I learned from my dad was that it was good to earn the trust of one's children. Dad has shown me how good that a dad can be. One day when I went to his house, and Dad wasn't there, I ran outside....   The above passage is just made-up just so that you would see what I mean about capitalization. Let's put numbers by each one, like so:     The one thing I learned from my dad(1) was that it was good to earn the trust of one's children. Dad(2) has shown me how good that a dad(3) can be. One day when I went to his house, and Dad(4) wasn't there, I ran outside....    This is one where I'm not certain. I believe in this sense I'm showing possession here with "my", and it just didn't seem right saying "my Dad". I don't know what the grammar rule is here, or if I even have it right. This one is obvious—it starts the sentence. In this case, I'm using Dad like a name instead of saying "Larry". Therefore, it should be capitalized. Again, just like 3.


I'm running a one-way Bayesian GLM (in brms in R) between three groups (Class), using a heteroskedasticity adjustment: brm(bf(Var ~ Class, sigma ~ 0 + Class), data = df)  When I plot the condition effects it's very clear that there are group differences, but I'm not sure how to "test" this. When I look at the output, it's also clear that the CIs don't overlap. I almost feel like maybe I don't need a formal test because the CIs don't overlap, but not sure if that applies. I'm guessing this is really simple and I'm just a noob (true). Any recommendations conceptually or in terms of packages?

Andrew Gelman wrote an extensive article on why Bayesian AB testing doesn't require multiple hypothesis correction: , 2012.  I don't quite understand: why don't Bayesian methods require multiple testing corrections?  A ~ Distribution1 + Common Distribution B ~ Distribution2 + Common Distribution C ~ Distribution3 + Common Distribution Common Distribution ~ Normal   My understanding is that the Bayesian approach shown above accounts for the shared underlying distribution by all the hypothesis (unlike in a frequentist Bonferroni correction). Is my reasoning correct?


$\#$ is the cardinality.  I tried to create an injection from X to XUY and another from XUY to X, than, it is possible to proof that there is a bijection between the sets due the Cantor-Bernstein Theorem. But I failed, I was not able to create the injections.

This seems evident, but I cannot come up with a reasonable proof for:  Question: show that if $X$ is an infinite set and $Y$ is a countable set, then $|X \cup Y|=|X|$


Really sorry as I'm a beginner and I don't know enough to characterize, or accurately search for what the problem may be. I've taken a picture of what I'm seeing, where it appears the faces have different textures, but nothing shows up under materials, and it's currently causing the solidify modifier to thicken differently along the edges and inside the areas.   I appreciate any help you all may give!

While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem?


I wanted to get back to the last commit to see if it was still working back then. I was doing this in Eclipse and chose Show in History -> Second latest commit in Master -> Reset (Hard) I did a hard reset because I wanted my files to be the same as they were in that commit. Would a checkout have been sufficient? I can't see my latest commit anymore. Is it gone now?

Is it possible to undo the changes caused by the following command? If so, how?  git reset --hard HEAD~1


I want to break the loop by a string input . But the program is taking input infinitely.  public static void main(String[] args) { int i; String test; Scanner inputString = new Scanner(System.in);     while(1==1){     test=inputString.next();     if(test=="Break"){         break;}    } System.out.println("the loop actually broke");  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


The density difference between the clouds and the atmosphere favours the clouds to fall. Why don't they?

Clouds are made up of tiny water or ice droplets, depending on temperature. This implies that cloud density is greater than that of dry air. Why don't clouds sink through their surrounding atmosphere rather than float by in a variety of formations?


I want to find/list/search packages depending on a specific package on FreeBSD with pkg tool. How can I do that? Something like:  # pkg list dependent-upon llvm40 ???

I have a headless FreeBSD server where some port has installed tons of X11-related packages. I would like to find out what these ports are so I can get rid of the unwanted X-related packages. Is there a way to figure this out?


I tried with all options:   To start Themes Service, Desktop Windows manager, etc. all the running. I also tried "gpedit.msc" > and set Prevent Theme Changes setting to "Not Configured", etc. I also ran the "Re-run assessment" for the Aero, it is completed, but no effect after that. But, I see that 3D is enabled in my graphics.   But nothing seems to get the Aero themes enabled, they are all greyed out.  My laptop is provided by my company, I have admin rights, but I am not getting how to enable the aero themes.  How can I enable Aero themes?

Brand new machine that was working fine then randomly it changed the theme when I booted into a sort of "basic" theme (white task bar, no see through windows etc) I've done and attempted many fixes and I still don't understand why it doesn't work. I've tried these two solutions:  and  These solutions included registy changes, stopping/starting services, and force starting the aero theme. The closest I got seems to be when I went into: Control panel (category view) > Find and fix problems (System and Security) > Display Aero Desktop Effects I follow through the wizard and let it do its thing and then I get an error window that pops up: Personalization - "This theme can't be applied to the desktop. Try clicking a diffrent theme." That's what I get from the wizard. What can I do? My drivers are all up to date, there are no viruses on the computer, directx is installed and updated, and the registry is all correct. EDIT: When I boot the computer, I get a notification stating that windows failed to communicate with the windows desktop services.


Before I get started, I am not looking for "layman's terms". That involves "dumbing down" concepts to make them simple to understand, but often result in the analogies and descriptions being inaccurate. What I am referring to is the phenomenon of a subject matter expert writing a poor or unclear explanation due to not realizing that some aspects of what they are describing are not obvious. or common knowledge in the target audience. It is something that I see repeatedly happening when reviewing software documentation and SOPs (Standard Operating Procedures) but am unsure if a word to describe the whole thing without having to explain it every time exists in english. For example, you may write extensive documentation on how to resolve Alert 1875 on System X. Your document goes into extensive detail about what logs you are looking for in order to establish the root cause of the alert, etc. And a neophyte to the team raises their hand and asks "Ok, how do I check the logs?" because the expert took for granted that people reading the document would be familiar with what convention/system/application is used to access said logs. If such a term exists in english, I would want to use it when telling someone I want my SOP to be reviewed by a person who is my contemporary but is not knowledgeable on the subject in order to catch myself being guilty of <insert-word-here> Or "Dan hasn't touched System X yet, be sure to have him review your SOP to avoid <insert-word-here>"

If I were to use an analogy with someone as a way to explain something, but the subject of my analogy was beyond their knowledge, what might be the most concise phrasing to inform me that my analogy is a bad one specifically because the analogy is beyond the person I am speaking with.  Ex. If I were to use computer components to explain a concept to someone who has no knowledge of computers.  I see this kind of thing happen frequently in discussions about scientific things, such as climate change. With climate change, as an example, a scientist may attempt to explain their proof while a denier may not even understand how the "proof" came to be a guaranteed conclusion (therefore the scientist would be the one doing the concept I'm trying to describe).  Another, possibly better example, would be when trying to explain something to a child using concepts (or simply language) too sophisticated for the child to understand, you would be doing the thing I'm looking for.  Thanks!


I want to show that $x''=x|x|, \quad$ $x(0)=a, \quad$ $x'(0)=b$ has a unique solution for all $a,b \in \mathbb{R}$.  I tried to show that the function is globally lipschitz, but did not succeed. And since it is continous, if it were globally lipschitz that would have worked to show uniqueness for all $a,b \in \mathbb{R}$.   In the solution sheet, they just mention that '$f(t,x)=x|x|$ has a continous first derivative'. I cant really grasp this, how is it possible to show uniqueness for all $a,b \in \mathbb{R}$ by just arguing that 'it has continuous first derivative' ?

Show that the Cauchy problem $x''=x|x|,x(0)=a,x^{\prime}(0)=b$,has a unique solution for all $a,b\in \Bbb R$. (The Problem is from A text book on ordinary differential equation by Shair Ahmad and Antonio Ambrosetti,exercise 4.3,pg:70)  My attempt:  I am using this theorem(given in book,page 69):  $\begin{cases} x^{(n)}=f(t,x',x'',...,x^{(n-1)})\\              x(t_0)=\alpha_1,x'(t_0)=\alpha_2,...,x^{(n-1)}(t_0)=\alpha_n      \end{cases}$                                         (1)  If $f:\Omega \to \Bbb R$ is continuous and locally lipschitzian with respect to $(x_1,x_2,...,x_n),$ then (1) has a unique solution,defined in a suitable nbd of $t_0$.($\Omega$ is an interval containing point $(t_0,\alpha_1,...,\alpha_n)$)  (The function $f$ is called locally lipschitzian at  $(t_0,\alpha_1,...,\alpha_n) \in \Omega$ with respect to $(x_1,x_2,...,x_n)$ if $\exists$ a neighborhood $U \subset \Omega$ of $(t_0,\alpha_1,...,\alpha_n)$ and a number $L>0$ such that, denoting by $|.|$ the euclidean norm in $\Bbb R^n$, one has   $|f(t,x_1,x_2,...,x_n)-f(t,z_1,z_2,...,z_n)|\leq L |(x_1,x_2,...,x_n)-(z_1,z_2,...,z_n)|$ for every$(x_1,x_2,...,x_n),(z_1,z_2,...,z_n) \in U$. )  clearly $f$ is continuous.therefore we will show that $f$is lipschitzian at point $(0,a,b)$.  To prove lipschitzian at point $(0,a,b)$ we have to show that $\exists$ a nbd U of $\Bbb R^3$ containing point$(0,a,b)$ and a number $L>0$ such that  $|f(t,x,x_1)-f(t,z,z_2)| \leq L||(x,x_1)-(z,z_1)||$   $\forall (t,x,x_1),(t,z,z_1) \in U$  here $||(x,x_1)-(z,z_1)||=\sqrt{(x-z)^2+(x_1-z_1)^2}$  Now $x|x|$ is differentiable everywhere on $\Bbb R$.therefore it is locally lipschitz on any finite interval of $\Bbb R$. therefore we have (for finite interval)  $|x|x|-z|z||\leq L|x-z|$ for some number $L$.  Now   $|x|x|-z|z||\leq L|x-z| \leq L \sqrt{(x-z)^2+(x_1-z_1)^2}$  $\therefore$$|f(t,x,x_1)-f(t,z,z_2)| \leq L||(x,x_1)-(z,z_1)||$   $\forall (t,x,x_1),(t,z,z_1) \in U$ where $U$ is any nbd of finite radius of $\Bbb R^3$ which contains the point $(0,a,b)$  Hence given problem has a unique solution for all $a,b\in \Bbb R$.   I am confusing whether am I correct or not?If it is not correct then where am I making mistake?and how to solve this problem?Thank you in advance.


I am using Jackson Core version 2.8.3, but why do I keep getting java.lang.NoSuchMethodError? I am not using any other Jackson's modules, just the core (streaming) API  Object[] result = imageGenerator.generate(lowerBound, upperBound, fileNames); MWNumericArray array = (MWNumericArray)result[0]; try (Writer writer = response.getWriter();      JsonGenerator generator = res.getJsonFactory().createGenerator(writer)) {       generator.writeStartObject();          generator.writeFieldName("dimension");          generator.writeArray(array.getDimensions(), 0, 2); // java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.writeArray([III)V           int[] pixels = array.getIntData();          generator.writeFieldName("pixels");          generator.writeArray(pixels, 0, pixels.length);      generator.writeEndObject(); }   Stack trace  at servlet.IonImageGeneratorServlet.processRequest(IonImageGeneratorServlet.java:48) at servlet.IonImageGeneratorServlet.doGet(IonImageGeneratorServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:305) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) at java.lang.Thread.run(Thread.java:745)

I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


I have 1TB external HDD, the file system is NTFS and i need to convert it to Ext3. My operating system is Ubuntu 10.10 is there anyway to do so without losing my data??    Thanks for your help

Is it possible to convert an ntfs partition to ext3?


I want to have the "^" sign over the "=" sign.  I have tried \newcommand{\defeq}{\overset{^}{=}}, \newcommand{\defeq}{\stackrel{\text{^}}{=}}, \newcommand{\defeq}{\overset{\^}{=}} and different combinations of these, but none have worked yet.  Also, I would like my command only to work in math mode (in the {$$}, \begin{equation}, and such environments). I do not want it to work in textmode, so the output of \defeq , {$\defeq$} should be , ^= (but the ^ over the =).

I would like to produce a new equal symbol looking like this. .  What is the best way to do that ? Pure TeX ? TiKz ?  I'm looking for ways to do that rather than to a ready to use solution such as to be able to other new symbols alone.


Sometimes me have indicated that you can not put a return in the middle of a conditional or a loop, because it breaks the process. However, now have indicated to me that if you can do, and is better. I'm confused. Usually would happen in a function  Can you put a return? Is not it? Why? Or doesn't it make any difference?  Example:  if (i == 0) {     //other code     return true; } else {     //other code     return false; }   or  if (i == 0) {     //other code     b= true; } else {     //other code     b= false; } return b;

Are there good reasons why it's a better practice to have only one return statement in a function?   Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?


If I execute the codes below without  if name == 'main', nothing is printed on the screen. That is, if name == 'main' seems to be essential. What is the function of if name == 'main'?  # if __name__ =='__main__':        # main()   def input_celsius_value():     value = float(input("input celsius for converting it to fahrenheit : "))     return value  def convert_celsius_fahrenheit(celsius_value):     fahrenheit_value = ((9/5)*celsius_value)+32     return fahrenheit_value  def print_fahrenheit_value(celsius_value, fahrenheit_value) :     print("celsius temperature : %f" %celsius_value)     print("fahrenheit temperature : %f" %fahrenheit_value)  def main():     print("This program converts celsius to fahrenheit")     print("============================")     celsius_value = input_celsius_value()     fahrenheit_value = convert_celsius_fahrenheit(celsius_value)     print_fahrenheit_value(celsius_value, fahrenheit_value)     print("===========================")     print("This program ended")   if __name__ == '__main__':        main()

Given the following code, what does the if __name__ == "__main__": do?  # Threading example import time, thread  def myfunction(string, sleeptime, lock, *args):     while True:         lock.acquire()         time.sleep(sleeptime)         lock.release()         time.sleep(sleeptime)  if __name__ == "__main__":     lock = thread.allocate_lock()     thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))     thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock))


I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


I need to get the apk file for an app from a development device (Galaxy Nexus). I've had very little contact with Android before.  I know the name of the app and have tried to search the "internal storage" that shows up in explorer when I connect it but no apk file with the app name shows up.  I also tried logging into the shell using adb, but I have no "find" command and no permission to list "/data/" where the apk files are supposed to be.  I'd really appreciate if someone could help me out here! Thanks!

I have a rooted android phone. I am trying to pull the applications from /system/app/. However this simply does not copy the apk. What I have tried.      adb shell     su     cd data     cd app     ls   A lot of applications are shown. However when I try to pull it it says   adb pull /data/app test  pull: building file list... 0 files pulled. 0 files skipped.   When I try to pull it from the system/app it pulls it but no file is created on my computer. I have specified the file name, tried with it and without it. Could someone please tell me what I am doing wrong?  I have also tried it individually with specific apks. But that doesnt work either.


Let $G = \mathbb Z/2\mathbb Z × \mathbb Z/2\mathbb Z$. Use Cayley’s theorem to determine explicitly a subgroup of $S_4$ that is isomorphic to $G$.

Find a subgroup of $S_4$ isomorphic to $\mathbb{Z} / 2\mathbb{Z} \times \mathbb{Z} / 2\mathbb{Z}$.  Here is what I have so far: We need to find a subgroup of $S_4$ that is isomorphic to $\{0, 1 \} \times \{0, 1 \}$. Now, $\{0, 1 \} \times \{0, 1 \} = \{(0,0), (0,1), (1,0), (1,1) \}$. The pairs $(0,0)$ and $(1,1)$ tell us that the identity map, $e$, is present. The pairs $(0,1)$ and $(1,0)$ tell us that the transposition map, $\tau$ is present. So a subgroup of $S_4$ isomorphic to $\mathbb{Z} / 2\mathbb{Z} \times \mathbb{Z} / 2\mathbb{Z}$ must be $\{e, \tau \}$.  Comment: This seemed too easy and I'm thinking there must be more. Thank you for your help!


Let $f$ be an analytic function defined on open unit disk with $|f(z)|\leq 1-|z|$. I need to establish $f$ is zero on disk .  If I'm able to prove that $f(0)=0$ and $f(0)\leq f(z)$  then $f$ is identically zero, I'm not able to achieve either of them. Any hint would be sufficient.

$f$ is analytic function on open unit disk, and $|f(z)|\le 1-|z|\forall z\in D$, we need to show $f\equiv 0$, just a hint please.


so i currently start to cook beef short ribs on a vertical smoker. The short ribs i used comes from australian company called hardwicks. I cook the ribs at 250-285F. Vent are fully opened. Weather is sunny. I marinade them on sweet soy sauce overnight. I use black pepper, cumin powder, paprika powder, onion powder, garlic powder, and sea salt. I spritz them when it reaches 170, and when it hits 190, i wrap it on alumunium foil with some spritz. After hitting 201F i take it out, rest it for an hour, but instead of being butter-like texture, it still chewy. I don't know how long i cook, i jjst focused on the internal temperature itself. So does anyone know why it still chewy and not butter-like when it cutted? Thanks everyone, sorry bcs english is not my first language. Cheers!

In short:    Kamado at 250-275f Short Ribs in for 4-5 hours    The ribs have a layer of meat, then a small layer of fat, and then the meat on the ribs themselves.  The top layer gets reasonably soft and edible, but the main chunk of beef is much too chewy still.    I've had two goes at this, the first time the temperature was closer to 300f, and a bit shorter cooking time. In both cases, I stuck a toothpick in both parts of meat, and it went in as if the meat was soft and tender.  Basically, what am I doing wrong? Not enough time? Not enough heat?  I worried that I might overcook them and dry them out. So I might try again, but wrap them in foil halfway through...  EDIT: What I did that worked First of all, it's a shame that I can mark both answers as answers, because they both helped. What I did was to smoke the ribs at 270-285f for 5.5 hours, and they were bloody perfect. I started at 270, and opened the bottom vent enough that the temperatures slowly went up to 280 over those 5.5 hours. Thanks to everyone for the help.  Edit: And thanks to the user who edited my question and made it worse. At least learn grammar first, and maybe contact the person asking what their intent is.


are hypothetical, real (non-virtual) particles made up of gluons, the particle of the gluon field that interacts with quarks. The gluons have a color charge themselves and they can form a bound state (the ball). According to lattice computations in Quantum Chromodynamics, they have a mass that varies from . This mean that a bound state of massless particles can form a massive particle. Is the mass of the glueball non-zero only because the constituting gluons interact strongly? Don't massless particles stay massless, even when they form a bound state? Has the glueball a velocity less than c, while the gluons themselves speed with c (which would mean that it has mass)?

From      Glueballs are predicted by quantum chromodynamics to be massive, notwithstanding the fact that gluons themselves have zero rest mass in the Standard Model. Glueballs with all four possible combinations of quantum numbers P (parity) and C (c-parity) for every possible total angular momentum have been considered, producing at least fifteen possible glueball states including excited glueball states that share the same quantum numbers but have differing masses with the lightest states having masses as low as 1.4 GeV/c2 (for a glueball with quantum numbers J=0, P=+, C=+), and the heaviest states having masses as great as almost 5 GeV/c2 (for a glueball with quantum numbers J=0, P=+, C=-).   Rather than going through a list of possible mechanisms that unfortunately I know next to nothing about, such as can the mass be attributed to virtual quarks, or binding energy between the gluons, I would rather leave the question as in the title to find out as much as I can.  Also, although the SM is firmly established, would the discovery of Glueballs buttress it further?  My apologies for not knowing more about the interior of hadron like particles or if the answer is readily available (or worse, blindingly obvious).


A paragraph on the  begins thus:     The title of a work of Cardano's, published in 1552 ...   I believe this to be the correct usage, although I wonder if      The title of a work of Cardano, published in 1552 ...   is also correct.   Can someone clarify?

He's a friend of mine.   That's a car of his.   Why do we use the possessive when the meaning would be the same while not using it (e.g. a friend of me and a car of him)?  I thought maybe it is short for That's a car of his [cars], but I have no way of making sure; it sounds a little odd that way to me.


I have a piece of code that selects a layer based on the data frame extent.  the code works when I use the code within ArcMap.  However, as soon as I try run this as a stand alone script, nothing gets selected. So some empty Excel files get created.  I have no understanding of why running this as a standalone script would be any different.  import os import arcpy import sys  #create polygon for DF extent def getDataFramePoly(mxd):     mxd = mxd     df = arcpy.mapping.ListDataFrames(mxd)[0]     extent = df.extent     array = arcpy.Array()     array.add(extent.lowerLeft)     array.add(extent.lowerRight)     array.add(extent.upperRight)     array.add(extent.upperLeft)     array.add(extent.lowerLeft)     polygon = arcpy.Polygon(array)     return polygon   #get relevant layers function def getLayers(layers, datasources):     analysis_layers = []     layers = layers     for lyr in layers:         if lyr.supports('DATASOURCE') and str(lyr.dataSource)in datasources:             analysis_layers.append(lyr)     return analysis_layers   mxd = arcpy.mapping.MapDocument(r"G:\mxdName.mxd") df = arcpy.mapping.ListDataFrames(mxd)[0] #First Dataframe extent = df.extent  #select layer by DF df_extent = "DF_EXTENT" polygon = getDataFramePoly(mxd) arcpy.MakeFeatureLayer_management(polygon,df_extent)  #feature classes that should be included in analysis dataSources = [r'datasourcePath' r'datapayt']  analysis_layers = getLayers(arcpy.mapping.ListLayers(mxd,"",df), dataSources) excel_out_path = r'C:\Users\Bbrokling\Desktop\Test'   #Select visible features i = 0 for lyr in analysis_layers:     arcpy.SelectLayerByLocation_management(lyr,"INTERSECT",df_extent)     desc = arcpy.Describe(lyr)     if not desc.FIDSet  == '':         print 'Layer has a selection'      if lyr.symbologyType == u"UNIQUE_VALUES":         desc = arcpy.Describe(lyr)         symField = lyr.symbology.valueField         symClassValues = lyr.symbology.classValues         otherValues = lyr.symbology.showOtherValues         if not otherValues:             for x in desc.fields:                 if x.name == symField:                     print x.type                     fieldType = x.type             if fieldType in ['SmallInteger', 'Double', 'Integer']:                 newclassvalues = tuple([float(x) for x in symClassValues])             else:                 newclassvalues = tuple([x.encode('UTF8') for x in symClassValues])             newQuery = "{} in {}".format(symField, newclassvalues)             arcpy.SelectLayerByAttribute_management(lyr,"SUBSET_SELECTION",newQuery)     out = r'%s\%s.xls' % (excel_out_path,lyr.name)     desc = arcpy.Describe(lyr)     if not desc.FIDSet  == '':             print 'Layer has a selection'     table_view_Name =  "tableView%s" % str(i)     arcpy.MakeTableView_management(lyr, table_view_Name)     arcpy.TableToExcel_conversion(table_view_Name, out)     i += 1

I have two different layers. One layer contains features that are supposed to sit directly on top of features in the other layer.  With ArcPy I'm doing a SelectLayerByLocation with "ARE_IDENTICAL_TO" and then a "SWITCH_SELECTION" in order to find which features from layer one aren't directly on top of layer two, and then updating the geometry accordingly.  However, ArcPy is giving me different (incorrect) results than using the Select by Location in ArcMap.  Granted the feature is only 0.01 ft away from the other, but it's still not identical.    When using ArcPy, the feature above with the S is selected, but when I use Select by Location in ArcMap it's not.  layer1_fl = arcpy.MakeFeatureLayer_management(layer1, layer1 + "_fl") layer2_fl = arcpy.MakeFeatureLayer_management(layer2, layer2 + "_fl")  arcpy.SelectLayerByLocation_management(layer1_fl, "ARE_IDENTICAL_TO", layer2_fl)   Any idea why it's acting this way?    As suggested by @FelixIP  I added arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(102726) and all worked as expected.


I'm trying to understand the use of Euler's Totient Theorem in RSA. It is defined as : if $a$ is coprime with $n$ then $$ a^{\phi(n)}\equiv{1 modn} $$ I am unable to understand how the above implies that for any integers $m$ and $k$ the following statement holds :  $$m^{k*mod\phi(n)}\equiv m^{k}mod n $$

I'm trying to understand the working of RSA algorithm. I am getting confused in the decryption part. I'm assuming   $$n = pq$$ $$m = \phi(n) = (p - 1)(q - 1)$$  E is the encryption key $\gcd(\phi(n), E) = 1$  D is the decryption key, and  $DE = 1 \mod \phi(n)$  $x$ is the plain text  Encryption works as ($y = x^E \mod n$) and decryption works as ($x = y^D \mod n$)  The explanation for why the decryption works is that since $DE = 1 + k\phi(n)$,  $$y^D = x^{ED} = x^{1 + k \phi(n)} = x(x^{\phi(n)})^k = x \mod n$$  The reason why last expression works is $x^{\phi(n)} =  1 \mod n$ ? According to Eulers theorem this is true only if $x \text{ and }\phi(n)$ are coprimes. But $x$ is only restricted to be  $0 < x < n$  and $\phi(n) < n$. So $x$ should be chosen to be coprime with $\phi(n)$?  Help me clear out the confusion!


I've been catching enough Magikarp to evolve my 2nd Gyarados over the past few days. Normally I would just catch, transfer... catch, transfer... repeat. Sometimes I don't keep up with that, and will have 30-40 Magikarp to transfer to the Professor to get the extra candy.  Is there a way to mass transfer multiple Pokemon at once? Or am I stuck with the mundane process of one at a time?

Is there a way to transfer more than one Pokemon at a time to the professor?  Or possibly an addon that gives me this ability?  Vendoring all the trash Pokemon for candies individually is really annoying and time consuming.


I am trying to remember the name of a movie I saw when I was a kid (90s). This is about an alien (I vaguely remember being a black scorpion type) that was moving from human to human (as they got killed) and controlling their mind, making them act violently.  The only scene I can clearly remember is that the action takes place in the street at night, after one human was killed, the hero (a man) sees the alien quickly run on the ground and move onto another human.

I saw part of this movie back in the 80's or early 90's on late night cable TV. I remember the cops were chasing a bad guy, and the bad guy turned out to be possessed by some sort of creature.  This creature had the ability to move from host to host by crawling down their throats (sort of like the Edgar suit in Men in Black). It may have been a bug, or a slug. I think it was black.


Solving the following exercise I have some doubts. I want to show that \begin{equation*}     \int_{0}^{\infty}\frac{\sin(x)}{x}dx=\frac{\pi}{2} \end{equation*} I tried the following: Let $\gamma$ be the upper semicircle \begin{equation*}         \int_{\gamma} \frac{\sin(z)}{z} dz = 0     \end{equation*} how do we have to \begin{equation*}         f(x) = \frac{\sin(x)}{x} = \frac{\sin(-x)}{-x} = f(-x)     \end{equation*} Note that \begin{eqnarray*}         0 = \int_{\gamma} \frac{\sin(z)}{z} dz         & = &   \int_{-R}^{R} \frac{\sin(z)}{z} dz + \int_{C_{R}} \frac{\sin(z)}{z} dz\\         & = &   \int_{-R}^{R} \frac{\sin(x)}{x} dx + \int_{C_{R}} \frac{\sin(z)}{z} dz\\         & = &   2\int_{0}^{R} \frac{\sin(x)}{x} dx + \int_{C_{R}} \frac{\sin(z)}{z} dz\\     \end{eqnarray*} then \begin{eqnarray*}         -2 \int_{0}^{R} \frac{\sin(x)}{x}dx          & = &   \int_{C_{R}} \frac{\sin(z)}{z}dz\\         & = &   \int_{0}^{\pi} \frac{\sin(Re^{i\theta})}{Re^{i\theta}} Rie^{i\theta} d\theta\\         & = &   i\int_{0}^{\pi}\sin(Re^{i\theta})d\theta\\         & = &   -\int_{u(0)}^{u(\pi)}\sin(u)udu\\         & = &   -\left(u\cos(u)|_{u(0)}^{u(\pi)}-\int_{u(0)}^{u(\pi)}-\cos(u)du \right)\\         & = &   -\left(Re^{i\theta}\cos(Re^{i\theta})|_{0}^{\pi}-\sin(Re^{i\theta})|_{0}^{\pi} \right)\to -\pi\text{ when }R\to\infty\text{ ?}\\     \end{eqnarray*} I do not think this last step is correct, however I see it necessary, I do not know if my reasoning is wrong or I should approach the problem from another point of view. Is my reasoning correct? I have my doubts about being able to take the closed curve, because at $ z = 0 $ there is a singularity and it is located on the border of the region enclosed by my curve PD: This requires the use of contour integral, although another method is also welcome

This refers back to $\int_{-\infty}^\infty \frac{\sin x}{x} \mathrm{d}x = \frac\pi2$ already posted. How do I arrive at $\frac\pi2$ using the residue theorem? I'm at the following point: $$\int \frac{e^{iz}}{z} - \int \frac{e^{iz}}{z},$$ and I would appreciate any help.


So, I just got into 'C++' dev, and I am wondering how, exactly std::endl and \n differ. I looked it up, and I think endl flushes the buffer, which, I believe, means its no longer being temporarily stored in memory, and is now being printed out into a text file or a terminal. My question, though, is whether you can use \n for console applications too, which is printing onto a terminal, and it outputs the same. Is my interpretation of the buffer and flushing wrong? If so, what exactly does these mean?  EDIT: The question is mainly about how \n can behave the same way in the terminal if things are only outputted onto the terminal if they've been flushed.

Many C++ books contain example code like this...  std::cout << "Test line" << std::endl;   ...so I've always done that too. But I've seen a lot of code from working developers like this instead:  std::cout << "Test line\n";   Is there a technical reason to prefer one over the other, or is it just a matter of coding style?