Running Yosemite 10.10.2 (14C109). The icons in the Dock cannot be dragged. When I click on an icon, it darkens, but then moving the mouse simply removes the focus on the icon. I cannot move the icons around, or off of the icon bar.  Things I have tried:  - killing Dock process  - deleting/moving preference files  - restarting

I have been having issues with Finder and the Dock ever since the upgrade to 10.10.1 (I can't be certain they weren't there in 10.10).   I am unable to drag items off of the Dock (to remove them). I also can't drag items from the download stack that I have beside my trash can in the dock. Dragging the item simply does nothing. If I drag it somewhere and release the mouse button, it just opens the app/file. And in Finder, I am only able to drag and move/copy 86 items. I can select more but when I drag them to a new folder or other location the most that will get moved is 86.  I have confirmed the issue with a friend but have several other friends for which everything is working fine.   I have a mid 2012 retina MBP and my friend has an older (2010 i think) non retina MBP. I have restarted several times and tried to find any sort of setting that might be turned off. Googling doesn't seem to turn up any information either. So I am mostly wondering if anyone else is having this issue and/or if it is an OSX bug or how to fix it.  Thanks.  Update  Running repair disk permissions from disk utility then restarting worked for a while. But then things went right back to not working again. Going to test some things to see what might be causing it to revert.  Update 2  It turns out that restarting does fix it temporarily and repair permissions has nothing to do with it. I am assuming I didn't notice this before because it is being caused by an application that was reopening (because I usually check off the "Reopen applications" option).  Update 3  For clarity, here are videos showing what the issue is.    In this video it is working as it should be (right after a restart): In this video it is not working:


With relation to  Question which is about editing the question makes a comment meaningless, today I saw another situation where when a comment was flagged and deleted comments following the flagged comment, became meaningless as in  question.  In that scenario, after Jon Skeet's comment (2nd comment), other comments address the now deleted 3rd comment by the OP, which insulted one of the commentors. And since it is deleted, those comments following it, make no sense.  How can we avoid such a situation?

I put a lot of effort in writing comments in a conversation, arguing against one initial comment made by another user. That user finally deleted her original comment, as well as an ulterior one, rendering the whole conversation meaningless to any other potential reader.  I can understand that one would not like traces of its past errors to remain forever visible on the Internet, but it is obvious that everybody is exposing himself to that when posting on Stack Exchange, and should accept the risk. The conversation was polite and, to my mind, interesting – deleting it does not do any good.  I find it rude and disserving to the community to thus break a whole conversation. My comments now seem to spring out of the blue – you can guess what that makes me sound like.  If the deleted comment doesn’t come back, I’ll have to delete my comments and consider my time lost. Maybe I’m wrong in caring about that, and I got too invested in commenting what went a bit off-topic (but not that much).  Still, I find this pretty rude on the part of the deleter – although she did post a comment saying that she deleted her comment (actually, she deleted two).  The conversation is here, right below the original question:   I did read  and . So deleting or flagging my own comments as obsolete seems to be the right thing to do now.  But I’m unhappy with the time wasted, and, most importantly, I disapprove of that user’s behaviour. What can I do? Would I be right to comment that such a deletion is rude?


During corner kicks, players sometimes commit an infringement against their opponent just before the ball is in play. Then the referee blows her whistle because she is either warned by another match official or sees the infringement herself. After that, she takes the proper disciplinary action and makes the corner kick be re-taken. Should the referee follow the same procedure if a similar event happens during a throw-in?

In the following scenario, can the referee cancel the goal?  The ball goes out of play. A fight begins between to player of different teams. The referee warns both players, ends the fight and restarts the play. Plays restarts and one of the players who fought scores a goal just 10 seconds after the game restarted. At the same time, assistant referee warns the head referee that the player who scored a goal had hit his/her opponent during the fight. The head referee shows the player red card and sends him/her off.  In my opinion, the referee can send the player off but cannot cancel the goal, even though the goal was scored by the player who must have been sent-off. The reason why I think like that is, the position has changed after the fight. Am I right?


Does anyone know how to calculate the point in polygon from the given points and the buffer output using python qgis. I have every thing loading the data and retrieving the output. But now I want to count the points in polygon. I was checking this  but that didn't work.  Code:      from PyQt4.QtCore import *     from PyQt4.QtGui import *     QgsApplication.initQgis()     uri = QgsDataSourceURI()#4326      #loading fisrt layer with multistring     uri.setConnection("localhost","5432","db_name","postgres","password")     uri.setDataSource("schema_name","table_name","column","")     vlayer = QgsVectorLayer(uri.uri(),"LayerName1","postgres")     QgsMapLayerRegistry.instance().addMapLayer(vlayer)      #loading second layer with points around it      uri.setConnection("localhost","5432","db_name","postgres","password")     uri.setDataSource("schema_name","table_name","column","")     vlayer = QgsVectorLayer(uri.uri(),"LayerName","postgres")     QgsMapLayerRegistry.instance().addMapLayer(vlayer)      #creating buffer     mc = iface.mapCanvas()      layer = mc.currentLayer()     print layer.name()     QgsGeometryAnalyzer().buffer(layer, "C:/Users/***/aa.shp", 0.0004, False, False, -1)      #loading back buffer     layer1 = iface.addVectorLayer("C:/Users/***/aa.shp", "layer_name", "ogr")     layer1 = qgis.utils.iface.activeLayer()  #point in polygon     provider = layer.dataProvider()     provider.select()     feat = QgsFeature()     vertex_count = 0     while provider.nextFeature(feat):           geom = feat.geometry()           if geom.type() == QGis.Polygon:             layer_vertices = 0             if geom.isMultipart():               polygons = geom.asMultiPolygon()             else:               polygons = [ geom.asPolygon() ]             for polygon in polygons:               for ring in polygon:                 layer_vertices += len(ring)             print "Feature %d: Vertices %d" % ( feat.id(), layer_vertices)             vertex_count += layer_vertices             print "Total vertices: %d" % (vertex_count)     ERROR:  provider.select() AttributeError: 'QgsVectorDataProvider' object has no attribute 'select'   Also please can you guys share the link or the code for counting points in polygon. Few of them posted the same error can anyone share the code with explanation for point in polygon.

Is there any simple integration for calculating count of points in polygon using QGIS-Python integration?   In other words, are there any pre-defined functions for points in polygon of QGIS using python, so that we can use them in our python script?


What is the proper way to filter data in an application?  The example displays a case where the filter shows the population for the selected city.        Automatically filter data when selection changed:         Or        Filter data after the button "Filter" got selected:

We are integrating a BI tool into our maintenance system and I am currently evaluating two viable products to put forward as a recommendation.   One item where these tools differ is their filtering capabilities, one follows the path of selecting criteria and then applying filters altogether. The other updates in real time as soon as a value is selected in the filters.  Are there any viable UX studies or consensus, leading me to believe that one is better suited to a users needs?  The tool would be used on desktop applications only, not phones or tablets.  We will be using 7-8 list style filters, where you can select one or more items from each list like so:


I was working on some code made by someone else and came across in if statement that looks like this      IF($res === true){     do_something();}  This code is called many times and seems to be working.  What is it doing?  I know one equals is assignment and two is comparison.  What does the three equals sign operator do?

What is the difference between == and ===?  How exactly does the loosely == comparison work? How exactly does the strict === comparison work?  What would be some useful examples?


Can somebody explain, why do we have to implement hashCode() and equals() method everytime we write a new class? Its a good practice to write hashCode() and equals() for a new class? How Does hashcode() works in hashMap? Why does TreeSet sort like?    Entries  "102. Hello one o two" "12. Hello twelve" "1. Hello One"    in following manner  "1. Hello One" "102. Hello one o two" "12. Hello twelve"   Thanks in Advance.

What issues / pitfalls must be considered when overriding equals and hashCode?


A guy wakes up at a place similar to an hospital and begins to run away from there. Seems to be on Earth and he's being chased. At some point he realizes he has super strength, like an orange glow comes out from his arms. At the end he realizes he's not on Earth, he's on a spaceship that imitates Earth.

There's this sci-fi movie I'm trying to find. I'm sure it's post 2010. Here's what I remember:  Group of teenagers enter a house and lose consciousness. They awake somewhere that looks Earth-like. One of them appears to have like a mechanical hand that has been surgically attached to his arm. This gives him super strength. They try to escape the facility they're being held in. Somewhere during the movie (possibly at the end), they break out and discover they're in space on some sort of spaceship.  On Google, I tried several combinations with "teenagers", "alien", "abduction", but for the life of me I can't find it.


I use Jsoup for parsing web data , my code like this:  Document document = Jsoup.connect("http://www.nt-movie.com.tw/showtime.php").get();  Elements elements=document.select("li");  for (Element elementTime : elements){                     String time=elementTime.getElementsByClass("times gray33").text();                     String spiltTime[]=time.split("");                     Log.d("time",spiltTime.toString());                 }   When i haven't split time , it show like the photo:  I try to split time , it becomes to...   I want to let it shows like:  10:00  11:00  12:10  . . .  My question is that do i split time successfully or not ? Any help would be grateful, thanks.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I have a program that currently I'm trying to create a player with customizable integers. I use this object:  public class Player {     public String player = null;     private int Strength=0;     private int Defense=0;    private int Magic=0;    private int Resistance=0;    private int Skill=0;    private int Luck=0;     public Player(String name, int int1, int int2, int int3, int int4, int int5, int int6) {        this.player = name;        this.Strength = int1;        this.Defense = int2;        this.Magic = int3;        this.Resistance = int4;        this.Skill = int5;        this.Luck = int6;    } }   I use this main class to run it, and set the integer and string values.  public class Main { public static void main(String[] args) {   Player[] playerList = new Player[] {new Player("Player1", 3, 3, 2, 1, 1, 3),new Player("Player2", 1, 1, 1, 1, 1, 1)};    }   }  However, whenever I attempt to print this, it prints this:Player@659e0bfd I looked through similar questions, but I am not sure where to put the @Override in my program, and if I need to do something different since I have multiple integers, and a string. I only want the string to print out. (Also, is there a way to print out just one part of the playerList, ie. the first section "Player1")


I switched from windows to Ubuntu yesterday and I'm just starting. I had two partitions on windows as it's normal there and I left as it was. I want to install software on Local Disk :D, not C, but I have no idea about the solution. Can anyone help me?

So I know you can share files between OSes with NTFS partitions, but can I install Linux packages/programs/software into the NTFS partition and will they work fine on the Linux OS?  My situation:   I have an SSD with low memory. It has Windows and I'll partition it to have Linux as well. I am hoping I can give 20 GB to an Arch Linux root (/) and it'd be enough. I have an HDD for large files and programs, right now only large Windows programs are in here, but I wanted to put in the large Linux programs in there as well.   I understand Linux stores binaries in the /bin folder so I'm not sure, were I to install something in the HDD, that it would work.   implies that I would need to create an ext4 partition inside the HDD in order to install programs in it (or store program data in it).     You can create an ext4 partition in the HDD and mount it at /home/[your user name]/.wine   You can create a separate Steam (ext4) partition in the HDD if you want.    it also says:     Only "static-binary" compiled programs may be installed (rather copied) in sub-folders of /home and expected to work.   Which seems like it'd be the answer to my question, but I'm not sure what it means.


I posted  which a moderator put on hold for the following reason:     Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow. – Sven   Why do moderators with enough reputation put on hold rather than migrate to what they think is the correct site?  Additionally, why can't users move their own questions?

For example my  was closed and not migrated. I think it was a right choice:     Questions on Super User are expected   to generally relate to computer   software or computer hardware in some   way, within the scope defined in the   faq.   In the FAQ it says that smartphones do not use computer software or computer hardware and that is ok, but why this question was not migrated to another SE site?  What can I do to migrate it? (It does have a one very good comment.) Or should I forget about it and ask it again on another site?


I need help on test class, this is my class:  When creating a task of type (Phone Call or Last Face to Face) then update the account fields  I have a trigger:  trigger TaskTrigger on Task (after delete, after insert, after undelete, after update, before delete, before insert, before update) {      TaskTriggerHandler handler = new TaskTriggerHandler (Trigger.isExecuting, Trigger.size);     //After Update      if(Trigger.isUpdate && Trigger.isAfter){          handler.OnAfterUpdate(Trigger.new,Trigger.oldMap);     }  }   TriggerHandler class:  public with sharing class TaskTriggerHandler {      private boolean trigger_isExecuting = false;     private integer batchSize = 0;      public TaskTriggerHandler ( boolean isExecuting, integer size){         trigger_isExecuting = isExecuting;         batchSize = size;             }      public void OnAfterUpdate(List<Task> Tklist, Map<id,Task> OldMaplst){         //EXECUTE AFTER UPDATE LOGIC         //first condition is to check the record type then           Set<ID> tid = new Set<ID>();          list<Account> acclst = new list<Account>();          for(Task tk:Tklist){         if(tk.Whoid!=null && tk.WhoId.getSObjectType().getDescribe().getName()=='Contact'){          tid.add(tk.whoid);             }           }         List<Contact> con = new List<Contact>();         con=[select id,accountid from Contact where id =:tid];         Map<id,account>Lstacc=new Map<id,account>();         if(!con.isEmpty()){             account acc;             for(Task tk:[select id,LastModifiedBy.name,type,LastModifiedDate from task where id in :Tklist]){                 DateTime dt = tk.LastModifiedDate;                 Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());                 acc=new account(id=con[0].accountid);                     if(tk.type=='Face 2 Face Meeting'){                         acc.Last_Face_to_Face_Activity__c= myDate;                         acc.Last_Visited_By__c =tk.LastModifiedBy.name;                      }                     else if(tk.type=='Phone Call'){                      acc.Last_Call_Activity__c =  myDate;                     }                      Lstacc.put(acc.id,acc);         }                 if(!Lstacc.isEmpty())                     Update Lstacc.values();      }   } }   My test class:  @isTest public class TaskTriggerHandler_Task {      static testmethod void TestTriggerHandler(){         // find insurance agent record type      // RecordType acctInsAgent = [SELECT Id FROM RecordType WHERE SobjectType ='Account' AND DeveloperName ='Insurance_Agent'];          Account a = new Account (Name='Insurance Agent Test');         insert a;          //Create a contact          Contact c = new Contact(FirstName = 'fname', LastName = 'lname',Email = 'test@gmail.com', Phone = '1234567890');         insert c;           test.startTest();          //Create a Task          task t = new Task(Subject='Donni',         Priority='Normal',         type='Phone Call',          status ='Completed',         WhoId = c.Id,         WhatId = a.Id                         );          insert t;          if(t.Type == 'Phone Call'){             //update account with last face to face, last call activity and last touched by fields                DateTime dt = t.LastModifiedDate;                 Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());                a.Last_Face_to_Face_Activity__c = myDate;              update a;              system.assertEquals(myDate, a.Last_Face_to_Face_Activity__c);            test.stopTest();         }     } }

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How do I start writing my first unit test?  How do I unit test this code?  I need help writing this unit test.   Salesforce Stack Exchange looks for detailed, specific questions that the community can help you with, and can't write tests on your behalf. We feel that working with the resources below can help you get started, and we encourage you to make an attempt to write your test and return to SFSE with your specific questions when you encounter challenges you can't resolve.


I'm a new to LaTex. I'm trying to make my CV using Latex. I used tables. But when I use table, it jumps to next page instead keeping continuous with others. Here is my script,   \documentclass[10pt]{article}  \usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry} \usepackage{fontspec} \usepackage{hyperref} \usepackage{enumitem} \setlist{nolistsep} \usepackage{changepage} \usepackage[table]{xcolor} \usepackage{graphicx}  \begin{document} \centerline{\huge\textsc{My Name}} \vspace{1cm} \begin{minipage}{0.4\textwidth}     \begin{flushleft}         \textbf{Contact Information}\\         \vspace{0.2cm}         \begin{tabular}{p{2.5cm}ll}             Name &: &\\             Address&: & \\             Tel&: & \\             Email &:& \href{Email}{Email}         \end{tabular}\\         \vspace{0.2cm}         \textbf{Personal Information}\\         \vspace{0.2cm}         \begin{tabular}{p{2.5cm}ll}             Date of Birth & : &\\             Nationality & : & \\             Sex & : & \\             Marital State & : &\\         \end{tabular}      \end{flushleft} \end{minipage} \hfill \begin{minipage}{0.4\textwidth}     \begin{flushright}     \end{flushright} \end{minipage}\\ \vspace{1cm} \hfill \begin{table}[!htbp]     \begin{tabular}{p{5cm}p{12.5cm}}         &\\         \textbf{EDUCATION} & \\         \hline         &\\         Date & \textbf{Master} \\         & University\\          &\\         Date & \textbf{Bachelor} \\         & University\\         &\\         \multicolumn{2}{l}{\textbf{PROFESSIONAL EXPERIENCE}}\\         \hline         &\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\     \end{tabular} \end{table} \end{document}   Thanks you in advance

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


I want to read a string from a file which is in the asset folder. I can read wihtout problem but I have a strange problem when I try to manipulate these string.  Content of my data file  [001] [SCA]   23 [NBT]   2 [END]  public static String readLevelFromFileAsset(String filename, Context ctx, String levelID)  {     String Content = null;     try {         AssetManager am = ctx.getAssets();         InputStream is = am.open(filename);          if ( is != null )         {             InputStreamReader inputStreamReader = new InputStreamReader(is);             BufferedReader bufferedReader = new BufferedReader(inputStreamReader);             String receiveString = "";             StringBuilder stringBuilder = new StringBuilder();              while ((receiveString = bufferedReader.readLine()) != null )              {                 Log.d(TAG, receiveString + " : " + receiveString.length());                  byte[] bytes = EncodingUtils.getAsciiBytes(receiveString);                 for(int i = 0; i < bytes.length; i++)                 {                     Log.d(TAG,String.valueOf(bytes[i]));                 }                  if(receiveString == "[001]")                 {                     Log.d(TAG, "Hello");                     stringBuilder.append(receiveString);                 }             }              is.close();             Content = stringBuilder.toString();         }      }     catch (FileNotFoundException e) {         e.printStackTrace();     }     catch(IOException e){         e.printStackTrace();     }     catch(Exception e){         e.printStackTrace();     }     finally     {         Log.d(TAG, Content);     }       return Content; }   Ce content of the logs: [001] : 5 91 48 48 49 93  My question is : WHY the word 'Hello' is not written in the log ?  it seems that in the 'IF' the receivestring is unknown !

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?


I recently applied the latest SQL Server CUs (Cumulative updates) for their current SPs (Service Packs) on our SQL Servers.  I'm getting the sense that I actually really need to update all of them to the latest SP + CU.  For example, we have a 2014 SP2 server, which now has the latest CU for SP2 (SP2 CU18).  Should I update it to the latest SP + CU (SP3 CU4)? Thanks, -Peter

I have given an RTM version of SQL Server 2014 and I need to apply the latest SP (currently SP2) and CU (currently CU8). Do I need to apply SP1 first? Or can I straight move to SQL Server 2014 SP2 CU8 without applying the old Service Pack 1 and the related Cumulative updates?


I'm a C# developer for many years and used Java several times. And now because of Mobile Development area I am moving to, I commenced to use Java even more.   At this point, it might look like a simple question but I still want to know that in Java we can import a single class or the entire package and in C# we cannot. Aside from reducing extra recommendations in the auto-completion, what good benefit does this "importing one class only" bring?

It is much more convenient and cleaner to use a single statement like  import java.awt.*;   than to import a bunch of individual classes  import java.awt.Panel; import java.awt.Graphics; import java.awt.Canvas; ...   What is wrong with using a wildcard in the import statement?


So I have had a website since about 2006. It's  . Recently I've noticed that no results will show up for it in google. I do have a secondary domain(that I plan on getting rid of) pointing to it but I don't understand why google would suddenly not show my site.  I believe it was showing up a few months ago and my website is hardly ever down, like one or two days I believe has been the most it's been down in a row in this time period.   Is there something wrong with my DNS or other configuration that would make google not index me?   For reference I've tried:      and the heading from my site   A few show up with the therusticstone.com domain(the one I plan to point somewhere else) but none show up directly linking to earlz.biz.tm.   Update  Ok, I got my site verified and such and it says there are zero crawls and all that. When going to the Lab's feature "Fetch As Google Bot" I found the problem. I tried to simply do  and it said "DNS not found." I don't see any obvious problems with my DNS records though and I haven't changed them in months

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


In main.php i call settings.php with ajax, inside settings there is one input text field with id #newlogintext, if i put the jquery keyup in settings.php it's working, but if i put it in main.php it's not.  in main php call settings.php :  function CheckSettings() {  $.ajax({    type: 'POST',    url: 'settings.php',    data: form_data,    success: function(data)     {       $("#settings").html(data);     } }); } CheckSettings();   Keyup:  $( document ).ready(function() { $("#newlogintext").on("keyup", function(){ alert("test"); }); });   Settings php:
  General Settings

New login:
 <input id="newlogintext" type="text" name="newlogin" />

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


We are travelling from the USA to the UK/Scotland/Ireland for a family wedding/ tourism in November 2019 (for 2 weeks).  My husband was convicted of Assault,Family Violence in 2017 (misdemeanor). He’s a US citizen and in Texas.   Complicated story, but he should never have been arrested, albeit for a rogue cop that was "after" an arrest. The "victim" (daughter) told cops not to press charges and he did anyway under The State!  No sentence, just time served (3 days).   Anyway, could this affect him entering the UK?  If so, should he apply for a Visa? We haven't travelled to the UK before.  I'm Australian, so won't have an issue.  Thank you for your assistance.

I have a friend with a criminal record who wants to go to London with me and I'm trying to determine if that is actually a possibility.  This friend was convicted of a class A misdemeanor on Dec 14, 2011 for theft. The court disposition was deferred so they weren't sentenced to any jail time (although they were in jail shortly following their initial arrest and prior to their being bonded out). They were, however, placed on probation for two years.  Since they were never actually sentenced to jail time it seems like, per , that their visiting the UK shouldn't be a problem.


I know that the answer is $\frac{6!}{2!2!}$, but I'm just curious why this is so. I got no intuition for this stuff.

Using all the letters of the word ARRANGEMENT how many different words using all letters at a time can be made such that both A, both E, both R both N occur together .


How to destroy an object in a condition? for example:  Car c = new Car() if (something) //destroy car   I have tried to set the object to null but it didn`t work...

I know from reading  that the "primary" use of the IDisposable interface is to clean up unmanaged resources.  To me, "unmanaged" means things like database connections, sockets, window handles, etc.  But, I've seen code where the Dispose() method is implemented to free managed resources, which seems redundant to me, since the garbage collector should take care of that for you.  For example:  public class MyCollection : IDisposable {     private List<String> _theList = new List<String>();     private Dictionary<String, Point> _theDict = new Dictionary<String, Point>();      // Die, clear it up! (free unmanaged resources)     public void Dispose()     {         _theList.clear();         _theDict.clear();         _theList = null;         _theDict = null;     }   My question is, does this make the garbage collector free memory used by MyCollection any faster than it normally would?  edit:  So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as database connections and bitmaps.  But suppose that _theList in the above code contained a million strings, and you wanted to free that memory now, rather than waiting for the garbage collector.  Would the above code accomplish that?


The Multiverse theory says that there are infinite alternatives of our universe, many of them are very similar to the one were we live other are completely different. But the number of parallel universes isn't infinite. It' s a very, very, very.... huge number because we have to consider all the possible configuration of the universe (for example the number of the particles at the power of itself multiplied by....) but at all it shouldn't be infinite.   Is this wrong?

Parallel universe: in every universe, you are presented with a different decision. Does that mean there are an infinite amount of parallel universes? I.e., if in one universe I choose to go left, I am then presented with different choices vs if i choose right, and that creates more universes with more decisions to be made.  Or does it mean that in the end of one's life we end up in the same place, meaning that its just one parallel universe that eventually collides with the other.


I am trying to match only the phrase that is positioned at the end of the sentence, just after a comma. I could split the string by commas and grab the last index but how can I do the same with regex that finds 1 or more words going form right to left and ends at first comma?  string str = "some string, number 555 more strings, final string"; var match = new Regex(@"(?=,\s).*", RegexOptions.RightToLeft).Match(str).Value; Console.WriteLine(match); // , number 555 more strings, final string   In snippet above I tried to match final string only.  If regex101 had the right-to-left feature I would tinker with it as usually until I found the proper syntax.   I tried to use both lookahead and lookbehind but I find it very confusing when going right to left.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


The screenshot is taken from the book Elementary Analysis : The Theory of Calculus by Kenneth A.Ross (1st Edition). Can anybody guess the font here. I am guessing that the font used is ITC Veljovic LT Book but I am not sure. Secondly, how do we use this font in LaTex. Is it possible? Adding another screenshot, to get a view of the font.

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


I'm trying to get size of an array in c and for some reason I'm getting a wrong answer for this popular method.      int innerprod(int *v, int *u) {    int n = sizeof(v)/sizeof(v[0]); printf("%d\n",n);             // ouptut here is giving me '2' for a '3' size array           double result = 0.0; for (int i = 0; i < n; i++) {     result += v[i]*u[i];     printf("%d\n",v[i]*u[i]); }     return result; }  int main() { int V[3] = {3,4,-1};   //a 3 size array int W[3] = {7,-2,3}; int x = innerprod(&V,&W); printf("%d\n",x); }

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


While I was reviewing some Q/A I wanted to edit one of them but the Edit link didn't work  Also no notifications popped up nor a warning of some kind was shown  Then I tried directly outside the Review Tool, loaded the Q/A and pressed Edit and a warning showed telling something like "I had my edit queue pending approval full" so I couldn't tried to edit now  That warning never showed up inside the Review Tool  Right now I have full edit powers so I can't reproduce it, but before 1k rep that happened

While reviewing First Posts on Super User, I noticed that I couldn't edit this question (see below). Clicking the "edit" link simply does nothing. Editing is not possible for me right now because I have already five suggested edits pending. It used to be the case that the link would've been grayed out (and the reason shown as a popover). , and while I'm not sure it's an improvement, the current implementation needs some fixing at least.  This bug appears regardless of the actual reason that the edit isn't possible; for instance,  is another user experiencing the same bug who couldn't suggest an edit because of an already pending one. Apparently, I'm far from the only one who experiences this issue. As of last Sunday morning,  have been posted networkwide (and are still alive) and  is #16.


I have Windows 10 on my PC with Hardware RAID, and want to install Ubuntu as dual boot. I have 100 GB of unallocated space to install Ubuntu, but after asking for the WiFi connection, it shows this message: "You need at least 8.6 GB disk space to install Ubuntu. This computer has 8.1 GB” and gives the option to Quit.     I have searched for its answer on Google but did not find any solution.    I have tried to install both Ubuntu 16.04 then Ubuntu 18.04; both show the same message "You need at least 8.6 GB disk space to install Ubuntu. This computer has 8.1 GB" before installation, then the Quit option.

This question intends to demystify  the desktop installer for Ubuntu, on how the required disk space before installation is being determined.  From this dated post :     [When installing] Ubuntu 12.04 alongside with Windows 7 using the Ubuntu installer, [the user] wasn't able to give Ubuntu less than 32 GB [...] and as the guide states, "Ubuntu needs about 4.5 GB to install, so add a few extra GB to allow for your files".   The required disk space was previously about 5 GB (Ubuntu 12.04), 8 GB (Ubuntu 16.04), and has since increased to 25 GB (Ubuntu 18.04), as per . In practice, the absolute minimum for required disk space may differ by installation media and machine.  The design spec via  describes the installer mockup and nothing else about how the required disk space is determined (top half screenshot).    I have clarified that Ubuntu 16.04 will require at least 8 GB disk space only on a physical machine, but the minimum changes to 8.3 GB when installing to a virtual machine (bottom half screenshot).  So how does Ubiquity determine the required disk space?


Calculating if the modulus of a number is 0 to find if the number is whole works up until 15 decimal places is exceeded. What makes 0.9999999999999999 diferent from 0.99999999999999999 function isInteger(n) {     return n % 1 === 0; }  isInteger(0.9); //false isInteger(0.99999999999999999); //true?  Here's a  example Why is this?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am wondering where I can edit my profile-information for Stack Exchange (it is not possible with the tiny link, saying 'Update profile info', which just provides a dropdown to import settings from other Stack Exchange accounts).  Furthermore I tried to delete my older account on, I guess, Stack Overflow, which then took 24h. But then I tried to sign up with a new account and it seems that I still got the old data (at least the picture from my previous account) in my profile, although I used a completely different Google account for signup.  So I'd like to at least change those profile settings now for the new account and kind of want to inherit it for the accounts in other Stack Exchange communities. Is that somehow feasible?

I made an account on Stack Exchange but I can't edit my network profile.  How can I edit this?


The C-terminal domain (CTD) of human RNA polymerase II has 52 repeats of a similar heptapeptide sequence. Will the RNA modification proteins only bind to some repeats at specific locations on this (e.g. the 1st repeat/the 10th repeat/the last repeat, etc), or will they bind randomly to any of the repeats? If they bind to specific repeats, how can this specificity achieved? If they bind to any of the repeats, then it would seem to me that several molecules of an RNA modification protein could be bound to a single RNA polymerase II CTD. Does this happen?

The tail of RNA polymerase II is flexible, not folded into a fixed structure , but does each repeat have more "rigid" structure (i.e. fold into a structure that has less rotation freedom inside a repeat)? If not, then how can the proteins bind some repeat with high specificity? (you can't make lock and key with soft material)


I would like add one group into another (already existing one) in layerTreeRoot using PyQGIS.   How can i do it?   is not the answer to my question, because it allows only to create 2 groups at the same time. Group and sub group.

How can I create a new group in the layer manager using python code?


I want to open files inside the terminal, like with vim or whatever, but I have no idea how. For example, instead of opening a .js file with atom, now I open it inside the terminal with vim. Any ideas?  I think you could use the Appify script, but I don't know how to make it work with opening files. This would mean that you open the file by double clicking on it in finder, and opening it into terminal.

I have defined my own custom vim file type with highlighting etc.  I would like to open it using the terminal based vim when I double click on it.  I am using mac os x.  Any pointers on how to start on this?


I read this story a few years ago (estimate: 8-10 years), so I was around 13-15 at that time. The language of the book was German, but I'm not sure whether or not that is the original language of the book. If I remember correctly, the story consisted of three books in total.  The story starts in some town where a boy either gets thrown out of the house or leaves voluntary. He then wanders around, talks to some neighbor until he comes to some sort of intersection / street with some trees (may have been palms). There a strange phenomenon catches his eye: between two of the trees the world looks somewhat strange, like there is a window cut out of it. Curious, the boy goes through the window and finds himself in another world. There he is being attacked by (ghosts?) and flees into a tall tower, where he finds a knife with a blade so thin you can't see it with the naked eye. It has two sides, which are different from each other. With the knife he somehow escapes / defeats some of the "ghosts" and travels on.  Later in the story, he learns by cutting with his knife he creates those ghosts or kills someone somewhere by doing so. Knowing that, he tries to use it only as much as needed.  Some time later he then opens a window to the world of death where he has something to accomplish (probably rescuing someone).

I am looking for the title of a book, actually a series (probably a trilogy).  I just have a few memories - I read it 20+ years ago but the book is contemporary. The few things I remember:   the two main characters (boy and girl) come from different worlds which are copies one of each other - one of them being dystopian (if I recall correctly) one of the characters (the boy I think) can move from world to world by "cutting a hole" in thin air with a knife they travel at some point (by the end of the series) to Hell when they need to do something to save the worlds   The end is       sad. The two characters fall in love but for some reason they cannot cross the world borders anymore (this is a decision they make for the good of the worlds) and they "meet" on a bench which is in both worlds and imagine the other one being on his/her bench as well.


I am trying to make a photo brighter by doubling the photo's RGB values, to ensure the numbers are within the parameters of 0-255 I made a separate method, however when I call this method it is not updating the RGB values.  public static int safe(int colorNumber) {         if (colorNumber < 0) {             colorNumber = 0;         }         if (colorNumber > 255) {             colorNumber = 255;         }     return colorNumber;     }      public static Picture bright(Picture picture) {         Picture pictureCopy = new Picture(picture);         for (int row = 0; row < pictureCopy.height(); row++) {             for (int col=0; col < pictureCopy.width(); col++) {             Color c = pictureCopy.get(col, row);             int brightBlue = (c.getBlue() * 2);             int brightRed = (c.getRed() * 2);             int brightGreen = (c.getGreen() * 2);             safeColor(brightBlue);             safeColor(brightRed);             safeColor(brightGreen);             Color newColor = new Color ((brightBlue), brightRed, brightGreen);             pictureCopy.set(col, row, newColor);             }         }     return pictureCopy;

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


I was looking at  by  and noticed that their flair had a newline in it:    I have no idea if this is a bug or not, but it kinda looks wrong to me. For fun, I changed all badge counts to 9999 and the user-info user-hover <div> that wraps the whole thing needs a width of 210px instead of 200px.

When a user has "too much" reputation and "too many" badges, the design of the user card breaks:    The badge counters overflowing to another line. Can anything be done about this? For example, expanding the rep and badges to their own lines:  NameRepBadges


I would like to reproduce with tikz a picture like the following:    How would I do that?

I am trying to display a pH scale in LaTeX but Im having trouble figuring it out. All the googling I have been able to do just brings up the pH levels of Latex the material. Can someone offer some advice/resources?


I am investigating factors that influence how certain areas have intensified over time in a city. There are twenty five areas which represent all of these types of area in the city.  I am using Spearman correlations to determine if there is a relationship between scores for their degree of intensification between two date ranges, and a range of possible explanatory variables.  Do statistical significance levels (p-values) have any meaning in this instance? As my "sample" is actually the population, wouldn't the observed sample correlations equal the actual relationship?  I am hoping to use the strength of the relationships to determine which factors are the most important.

Imagine you have to do reporting on the numbers of candidates who yearly take a given test. It seems rather difficult to infer the observed % of success, for instance, on a wider population due to the specifity of the target population. So you may consider that these data represent the whole population.   Are results of tests indicating that the proportions of males and females are different really correct? Does a test comparing observed and theoretical proportions appear to be a correct one, since you consider a whole population (and not a sample)?


I’ve created a single batch file that runs various apps on different servers when it is launched (different apps are run based upon computer name, day of week, time of day, etc.).  It isn’t actually a batch file but a link to a batch file (CMD actually) stored in a central network location for admins only.  Q:  How can I determine the method used to launch a batch file?  In other words, I’ve placed a shortcut to the batch file in the STARTUP group (folder) on the servers (so that it is run automatically when logging in to the server).  Then the batch file can do its thing and check the computer name, date/time, etc. and go from there).  But I’d also like to be able to run the batch file manually (either by clicking on a shortcut, launching it from the command prompt, from another batch file, from a group policy, etc.).  I just can’t figure out how to determine the method for launch a batch file.  Thanks

Assuming Windows, is there a way I can detect from within a batch file if it was launched from an open command prompt or by double-clicking?  I'd like to add a pause to the end of the batch process if and only if it was double clicked, so that the window doesn't just disappear along with any useful output it may have produced.  Any clever ways to do this?  I'm looking for solutions I could rely on to work on a machine that was configured more or less with default settings.


Facing Table of Contents problem. On first page of Table of Contents no numbering but on the next It's start numbering with header n footer.  \documentclass[tikz,table,twoside,12pt,a4paper]{report} \usepackage{PTSansNarrow} \usepackage[T1]{fontenc} \usepackage{array,tabularx} \usepackage[most]{tcolorbox} \usepackage{xcolor} \usepackage{enumerate} \usepackage{graphicx} \usepackage[ruled, vlined, linesnumbered]{algorithm2e} \usepackage{censor} \censorruledepth=-.2ex \censorruleheight=.1ex \usepackage{setspace} \usepackage{subfigure} \usepackage{subfig} \usepackage[top=3.5cm, bottom=3.5cm, left=3.5cm, right=2.75cm]{geometry} \usepackage{fancyhdr} \usepackage{url} \usepackage{fancyvrb} \usepackage{color} \textwidth14cm \definecolor{darkblue}{rgb}{0.1,0.3,0.5}  \DefineVerbatimEnvironment% {MyVerbatim}{Verbatim} {gobble=0,label=\hspace{.85\textwidth},labelposition=all}  \usepackage[Lenny]{fncychap}%Sonny, Lenny, Glenn, Conny, Rejne, Bjornstrup and Bjarne \usepackage{cite} \usepackage{rotfloat} \usepackage{subfloat} \usepackage[titletoc]{appendix} % load package with ``framed'' and ``numbered'' option. \usepackage[numbered,autolinebreaks,useliterate]{mcode} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{} \fancyhead[R]{\nouppercase{\leftmark}} \fancyfoot[C]{\thepage}  \renewcommand{\headrulewidth}{2pt} \renewcommand{\footrulewidth}{1pt}   \begin{document}  \pagenumbering{gobble}% Remove page numbers (and reset to 1) \clearpage \title{\textbf{THESIS NAME}\\ \begin{figure}[ht] \centering \includegraphics[width=0.5\textwidth]{logo.eps} \end{figure} }  \date{} \author{\textbf{SUBMITTED BY:}\\\textbf{STUDENT NAME} \vspace{5mm} \\ \textbf{Supervised By}\\ \textbf{NAME}\quad \vspace{10mm} \\ \textbf{DEPARTMENT OF COMPUTER SCIENCE} \\\textbf{NAME OF UNIVERSITY}        \\\textbf{Session:2012-2013} } \maketitle  \null \vfill \null \vfill \onehalfspacing \newpage \pagenumbering{roman} \chapter* {PROJECT APPROVAL} SAKASLJFSAJFKSAJFJEIJ S\KJ\\\\ \newline COMMITTEE\\\\ \newline \begin{flushleft} External Examiner: \line(1,0){250} \end{flushleft} \begin{flushleft} Comments: \line(1,0){250} \end{flushleft} \begin{flushleft} Internal Examiner: \line(1,0){250} \end{flushleft} \begin{flushleft}  Comments: \line(1,0){250} \end{flushleft} \begin{flushleft}  Chairman: \line(1,0){250}  \end{flushleft}  \begin{flushleft}  Comments: \line(1,0){250}  \end{flushleft}  \chapter* {DEDICATION}  KSAHDSAFH ASK JFASKJF  \chapter* {ABSTRACT}  XCLSCSAJFSAFOSAFISADKFLASKFL;ASKSAKFLKSALKFS  \chapter* {ACKNOWLEDGEMENT} LSAFLDSFJ SDAFJIASFAS JFSJAF SFSFAUI DSAF \chapter* {AUTHOR'S DECLARATION} ABC \newline Signature of Authors\\ \newline ABC: \xblackout{forty       two}\\ \newline ABC: \xblackout{forty     two}\\ \newline Date: \xblackout{forty     two}\\    \newpage \pagenumbering{gobble}% Remove page numbers (and reset to 1) \clearpage \tableofcontents  \pagenumbering{arabic} \input{ch1} \input{ch2} \input{ch3} \input{ch4} \input{ch5} \input{ch6} \input{ch7} \input{ch8}   \addcontentsline{toc}{section}{\textbf{Bibliography}} \bibliographystyle{plain} \bibliography{bibk}   \end{document}

On first page of Table of Contents there is no header and footer, but on the second page there are a header and a footer.  My question: I don't need any numbering and header/footer on table of content. How can I have the entire table of contents (not only its first page) appear with no header or footer, and have them start at Chapter 1?  \documentclass[tikz,table,twoside,12pt,a4paper]{report} \usepackage{PTSansNarrow} \usepackage[T1]{fontenc} \usepackage{array,tabularx} \usepackage[most]{tcolorbox} \usepackage{xcolor} \usepackage{enumerate} \usepackage{graphicx} \usepackage[ruled, vlined, linesnumbered]{algorithm2e} \usepackage{censor} \censorruledepth=-.2ex \censorruleheight=.1ex \usepackage{setspace} \usepackage{subfigure} \usepackage{subfig} \usepackage[top=3.5cm, bottom=3.5cm, left=3.5cm, right=2.75cm]{geometry} \usepackage{fancyhdr} \usepackage{url} \usepackage{fancyvrb} \usepackage{color} \textwidth14cm \definecolor{darkblue}{rgb}{0.1,0.3,0.5}  \DefineVerbatimEnvironment% {MyVerbatim}{Verbatim} {gobble=0,label=\hspace{.85\textwidth},labelposition=all}  \usepackage[Lenny]{fncychap}%Sonny, Lenny, Glenn, Conny, Rejne, Bjornstrup and Bjarne \usepackage{cite} \usepackage{rotfloat} \usepackage{subfloat} \usepackage[titletoc]{appendix} % load package with ``framed'' and ``numbered'' option. \usepackage[numbered,autolinebreaks,useliterate]{mcode} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{} \fancyhead[R]{\nouppercase{\leftmark}} \fancyfoot[C]{\thepage}  \renewcommand{\headrulewidth}{2pt} \renewcommand{\footrulewidth}{1pt}   \begin{document}  \pagenumbering{gobble}% Remove page numbers (and reset to 1) \clearpage \title{\textbf{THESIS NAME}\\ \begin{figure}[ht] \centering \includegraphics[width=0.5\textwidth]{logo.eps} \end{figure} }  \date{} \author{\textbf{SUBMITTED BY:}\\\textbf{STUDENT NAME} \vspace{5mm} \\ \textbf{Supervised By}\\ \textbf{NAME}\quad \vspace{10mm} \\ \textbf{DEPARTMENT OF COMPUTER SCIENCE} \\\textbf{NAME OF UNIVERSITY}        \\\textbf{Session:2012-2013} } \maketitle  \null \vfill \null \vfill \onehalfspacing \newpage \pagenumbering{roman} \chapter* {PROJECT APPROVAL} SAKASLJFSAJFKSAJFJEIJ S\KJ\\\\ \newline COMMITTEE\\\\ \newline \begin{flushleft} External Examiner: \line(1,0){250} \end{flushleft} \begin{flushleft} Comments: \line(1,0){250} \end{flushleft} \begin{flushleft} Internal Examiner: \line(1,0){250} \end{flushleft} \begin{flushleft}  Comments: \line(1,0){250} \end{flushleft} \begin{flushleft}  Chairman: \line(1,0){250}  \end{flushleft}  \begin{flushleft}  Comments: \line(1,0){250}  \end{flushleft}  \chapter* {DEDICATION}  KSAHDSAFH ASK JFASKJF  \chapter* {ABSTRACT}  XCLSCSAJFSAFOSAFISADKFLASKFL;ASKSAKFLKSALKFS  \chapter* {ACKNOWLEDGEMENT} LSAFLDSFJ SDAFJIASFAS JFSJAF SFSFAUI DSAF \chapter* {AUTHOR'S DECLARATION} ABC \newline Signature of Authors\\ \newline ABC: \xblackout{forty       two}\\ \newline ABC: \xblackout{forty     two}\\ \newline Date: \xblackout{forty     two}\\    \newpage \pagenumbering{gobble}% Remove page numbers (and reset to 1) \clearpage \tableofcontents  \pagenumbering{arabic} \input{ch1} \input{ch2} \input{ch3} \input{ch4} \input{ch5} \input{ch6} \input{ch7} \input{ch8}   \addcontentsline{toc}{section}{\textbf{Bibliography}} \bibliographystyle{plain} \bibliography{bibk}   \end{document}


I am currently having a confusion with:  var post = {ip: host, status: info}; var sql = con.query('INSERT OR IGNORE INTO ipaddress SET ?', post,  function(err, result){});   I have already set the IP address to primary key.

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either:  ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced.  Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?


What is the ES205 / JS6 way, to make a custom element equivalent to  one made by DartLang

I have an HTML string representing an element: '
text
'. I'd like to append it to an element in the DOM (a ul in my case). How can I do this with Prototype or with DOM methods?  (I know i could do this easily in jQuery, but unfortunately we're not using jQuery.)


I'm studying convergent sequences at the moment.  And I came across this question in the section of Stolz Theorem.  I realised that $\{x_n\}$ is monotonously decreasing and has a lower bound of $0$, so $\{x_n\}$ must be convergent, and the limit is $0$ (let $L=\sin(L)$, then $L=0$).  So to prove the original statement, I just need to prove lim n(Xn)^2 → 3, and in order to prove that, I just need to prove $\lim \frac{1}{x_n^2} - \frac{1}{{x_{n-1}}^2} \to \frac{1}{3}$ by Stolz Theorem  but I have no clue what to do from there.  PS: $x_{n+1}$ is $x$ sub $n+1$, and $x_n$ is outside the square root.  Thanks guys

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


I'm new to blender, so sorry if my question sounds dumb. I was following tutorial, and built this model:  After building it, I was trying to render. Because I'm on mac laptop, so of course the render turn out very shitty.  But the most confusing thing is after this, my viewport became the same low quality as the render image.  My render mode is on Eevee. After receiving answers, I was able to find viewport shading in look dev mode. But in rendered mode, I could not access.

I know that I can use default HDRI maps in Rendered mode in Blender right now, but the problem is when I wan to render the image by F12 (or render movie), my settings are changed to use "scene world". Is there a hidden button somewhere in rendering tab or somewhere else? If I have HDRI correct in rendered mode, why I can't have the same result after F12 render?


I have installed Ubuntu 18.04 downloaded from the Ubuntu website and booted to a USB drive. Then I formatted E: drive for Ubuntu and installed successfully, but when I start my laptop it boots straight to Windows 10.  What could be the problem and how can I fix it?

I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition. When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen.  If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu.


If $a$, $b$ anc $c$ are three positives such that $abc = 1$ then prove that $$ \sum_{cyc}\dfrac{a}{a + b^4 + c^4} \le 1$$   Here's what I did.  $$ \sum_{cyc}\frac{a}{a + b^4 + c^4}$$  $$\le \sum_{cyc}\frac{a(b^2 + c^2 + bc)}{(b^2c + c^2b + abc)^2} = \frac{1}{(a + b + c)^2}\sum_{cyc}\frac{ab^2 + ac^2 + 1}{(bc)^2} \le \frac{1}{9}\sum_{cyc}\left(\frac{a}{b^2} + \frac{a}{c^2} + a^2\right)$$  And this is where I gave up.   Thanks for reading this. Even more thanks if you can solve the problem.  (Oh wait, I did try again.)  $$\sum_{cyc}\frac{a}{a + b^4 + c^4}$$  $$= 3 - \sum_{cyc}\frac{b^4 + c^4}{a + b^4 + c^4} \le 3 - 4\sum_{cyc}\frac{a^4}{b + c + c^4 + 2a^4 + b^4} = 2\sum_{cyc}\frac{b + c + b^4 + c^4}{b + c + c^4 + 2a^4 + b^4} - 3$$  ...and again...  $$ \sum_{cyc}\frac{a}{a + b^4 + c^4}$$  $$= 3 - \sum_{cyc}\frac{b^4 + c^4}{a + b^4 + c^4} \le 3 - \frac{1}{2}\sum_{cyc}\frac{(b^2 + c^2)^2}{a + b^4 + c^4} = \sum_{cyc}\frac{2(a - bc) + (b^4 + c^4)}{a + b^4 + c^4}$$  $$\le \sum_{cyc}\frac{1}{2(a - bc) + (b^4 + c^4)}\frac{[2(a - bc) + (b^4 + c^4)]^2}{a + 2b^2c^2}$$  $$= \frac{1}{2}\sum_{cyc}\dfrac{(a - bc + b^4)^2 + (a - bc + c^4)^2}{[2(a - bc) + (b^4 + c^4)](a + 2b^2c^2)}$$  And I need help. I would be grateful if you could help with this problem.

If $a,b,c \in \mathbb{R+}$ and $abc=1$ Prove That  $$S=\sum \frac{a}{a+b^4+c^4} \le 1$$  My approach:  we have $$S=\sum \frac{\frac{1}{bc}}{\frac{1}{bc}+b^4+c^4}=\sum \frac{1}{1+b^5c+bc^5}$$  Now by $AM \ge GM$ we have  $$\frac{1+b^5c+bc^5}{3} \ge b^2c^2$$ $\implies$  $$\frac{1}{1+b^5c+bc^5} \le \frac{1}{3b^2c^2}=\frac{a^2}{3}$$ Hence  $$S \le \frac{a^2+b^2+c^2}{3}$$  Can we proceed with this?


I want to set up my PhD thesis, given a template. The problem is that I have to put inside my papers, which are all from different authors and with different packages. I am willing to pay for that. Is there anyone willing to help?

I have now written my first e-book in LaTeX but, before I publish it, I wish to hire someone with superior LaTeX skills to fix the design and formatting of the book. At the moment I have tons of issues with the e-book and it doesn't look too great. Where could I find people for hourly hire with good book design skills and good LaTeX skills who could help me? It's easy to find people with good book design skills, but all of them work in Illustrator or CorelDRAW and not LaTeX.


Since I learned exponentiation in School, me and my classmates had this one question stuck in our brains. Why is $a^0=1$ and not $0$. Wouldn't it make more sense if it equaled to $0$, since $a$ is multiplied by itself $0$ times, it should equal $0$. Can somebody please explain to me how and why this works?

Why is any number (other than zero) to the power of zero equal to one? Please include in your answer an explanation of why $0^0$ should be undefined.


I have English Windows 8, English Office 2013 and a few keyboard languages.  When I set the English keyboard and start Word, shortcuts work. But when I change the English keyboard to other languages and start Word, shortcuts don't work. I don't have this issue in Excel 2013.  Why might this be?

I've just upgraded to Windows 8 (from XP) and re-installed my copy of Office 2007. Now the common shortcuts (Ctrl-Z, Ctrl-C, Ctrl-V etc) don't work in Word, however other shortcuts (Ctrl-P) are fine.  These shortcuts do work in other applications (such as Chrome) and they even work in other office applications (PowerPoint).   When I go into the customize shortcuts option in Word I see that EditPaste command has Shift-Insert shortcut and I can add Ctrl-V but I can't find Undo and Redo.  BTW I'm using a Hebrew version of Office (I don't know if this is relevant).    Note: The accepted answer  after I accepted it. I didn't check that the modified answer is correct so be aware that the original answer (and the one that solved my problem) was to do with the currently selected input language when Word was launched, not the default keyboard language.


I'm trying to solve $\int{\sin^3(x)\cos^2(x)}dx$.  I got $-\frac{1}{2}\cos(x)+C$, but the memo says $\frac{1}{5}\cos^5(x)-\frac{1}{3}\cos^3(x)+C$  This is my working:    Your help is appreciated!

Suppose $\displaystyle P(x,y)$ a polynomial in the variables $x,y$.   For example, $\displaystyle x^4$ or $\displaystyle x^3y^2 + 3xy + 1$.  Is there a general method which allows us to evaluate the indefinite integral     $$ \int P(\sin x, \cos x) \text{d} x$$   What about the case when $\displaystyle P(x,y)$ is a rational function (i.e. a ratio of two polynomials)?   Example of a rational function: $\displaystyle \frac{x^2y + y^3}{x+y}$.    This is being asked in an effort to cut down on duplicates, see here:   and here:


In , Cobb uses his dead wife Mal's totem. It is not clearly mentioned or shown what was Cobb's original totem? Or did I miss something? Help please.

In the movie Cobb (DiCaprio) tells Ariadne (Page) that the most important rule in choosing a totem is to make sure that no one else has ever touched it.   This is emphasized with flashbacks showing him changing his wife's dream by using her totem which is the spinning top. If the most important rule is to use your own totem and never let anyone else touch it then why is he using his wife's totem? Is there anywhere that mentions what his original totem was?


For some reason my ubuntu has become very slow because of apt-daily-upgrade.service taking 45.63s. Main reason being getting a whole list of errors and not being able to update. E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/docky-core/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://repo.vivaldi.com/stable/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9658E8044A3AA3D6 E: The repository 'http://repo.vivaldi.com/stable/deb stable Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.```

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I am trying to design four panel booth design W: 0.5 x 5.5 x 2.5 x 0.5m and H: 2.5m. What would be the best way to start and save the files. 5.5m is too big for InDesign.

(This question is meant to be a resource to direct others to given that this is a common question.)  Given the task of creating an image that will be printed at a certain size, what pixel dimensions and resolution should I be setting my file at?


I was going to use the definition of derivative for $f : \Bbb{R}^n \to \Bbb{R}$ but when I was calculating $\nabla f(0, 0)$, it didn't exist, so now I'm stumped on what to do. Should I not plug in the point $(0, 0)$ into $\nabla f$ and then try to prove $$\lim_{h\to 0} \frac{f(a + h) - f(a) - \nabla f \cdot h}{||h||} \neq 0$$  for general $a$?

I want to show that $f(x,y) = \sqrt{|xy|}$ is not differentiable at $0$.  So my idea is to show that $g(x,y) = |xy|$ is not differentiable, and then argue that if $f$ were differentiable, then so would $g$ which is the composition of differentiable functions $\cdot^2$ and $g$.  But I'm stuck as to how to do this.  In the one variable case, to show that $q(x) = |x|$ is not differentiable, I can calculate the limit $\frac{|x + h| - |x|}{h}$ as $h\to 0^+$ and $h\to 0^-$, show that the two one-sided limits are distinct, and conclude that the limit $$\lim_{h\to 0}\frac{|x + h| - |x|}{h}$$ does not exist.  The reason this is easier is that I do not have to have in mind the derivative of the function $q$ in order to calculate it.  But in the case of $g(x,y) = |xy|$, to show that $g$ is not differentiable at $0$, I would need to show that there does not exist a linear transformation $\lambda:\mathbb{R}^{2}\to\mathbb{R}$ such that  $$\lim_{(h,k)\to (0,0)}\frac{\left||hk| - \lambda(h,k)\right|}{|(h,k)|} = 0$$  I thought of assuming that I had such a $\lambda$, and letting $(h,k)\to (0,0)$ along both $(\sqrt{t},\sqrt{t})$ and $(-\sqrt{t},-\sqrt{t})$ as $t\to 0^{+}$, but this didn't seem to go anywhere constructive.


There is a calculator app . The task was to create test automation suite for the app. All calculator buttons have unique ids which were used to interact with them.   A button element looks like this
 8
   Where id="btnXXX" is always unique value for each element  Locator example  public By digit8Button = By.id("btn104");   When my code is reviewed I got a feedback that I should have used element text (digit) or CSS instead of element id. The argument was that ids can be easily changed but number text is more reliable. This doesn't correspond to many articles I've read while studying test automation about element unique id as the first option to create a good locator.

When automating UI tests with Selenium, it is often not absolutely clear what method and what locator to use to locate an element. Some locators are less reliable, less readable than others. And, usually, there are a lot of options to get to a desired element.  To be specific, here are some things we've enforced (with ESLint) in our UI test automation project (using Protractor for testing an AngularJS application):   no bootstrap classes used inside CSS selectors (the idea is to use as less UI/layout-specific things to locate elements as possible) no internal angular classes inside CSS selectors - things like ng-scope or ng-binding are pure-technical and should not be used inside locators do not use "xpath" unless absolutely necessary (encouraged by this )   The Question:  What other recommendations are there for locating elements in Selenium?


Is it possible to load GeoJSON directly into qgis from github?  The GeoJSON is accessible here   It displays fine if downloaded as a local file but I would like to be able to access it directly without having to download. I have googled around, but everything is about exporting to GeoJSON for github (i.e. keeping crs wgs84).

Im trying to import geojson, I add data, select protocol and use the uri  QGIS says "Invalid Data Source:  is not a valid or recognized data source"  I've followed the tutorial here  but I cant get the data to come in, any ideas? I'm using QGIS version 2.18.13


Is there an android distribution that presents a stripped-down ereader interface and nothing more?  The reason for this is just a matter of ultimate usability.

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


I have a basic client/server/common project that I am working on in Intellij (Java).  I have tried to google this problem, and although people seem to have this same problem, or something like it, I have not found a solution yet that works.  The server, client, and common are each their own module.  I have set up module dependencies on the Common module for both the client and the server.      In the RunServer class, which is not associated with any package and is right at the src root, I can use Coordinates, which is also not associated with any packages and in the src root.  But I cannot use Coordinates for player, as player is nested in a package.  Why is this the case? Shouldn't I be able to use anything in the Common module if it is specified as a dependency for another module?  Does anyone know a fix for this?   Thanks

I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package.   My question is: Is there a way to access this object in the default-package from a Java-class in a named package?


I work a lot with LibreOffice Writer.  I wanted to know if there was a way to edit the text through the terminal?

I use LibreOffice Writer a lot, but I really do hate getting around in a GUI, I much prefer the CLI, so is there any way to open a file using LibreOffice Writer through the Terminal?


Obviously red and purple are opposite on the visible light spectrum. So how do we get colors that are reddish purple? Where would they lie on the spectrum of visible light?

This isn’t a duplicate. I read those pages, but those didn’t answer my questions.  Please watch .  Does visible light consist of red, orange, yellow, green, cyan and blue? No purple? My definition of purple has an RGB of 128, 0, 128:    If there’s purple in visible light, visible light and a rainbow are different since there’s no purple in a rainbow. If there’s purple in visible light, what’s the explanation behind the difference between a rainbow and visible light?


$ p(n) = n < 3^n = q(n) $  when $n=1$, $p(n)=1< 3=q(n)$  Assume the result is true for $n=m$  $p(m)=m < 3^m$  when $n = m+1$ $p(m+1) = m+1 < 3^m +1<3*3^m = 3^{m+1}=q(m+1)$  is this correct?    I tried up to this extent to solve this. And also tried other methods. But no luck. Can some one show me the way to get this done.  Thank you.

Prove that $n<3^n$ where $n \in \mathbb N$,  when $ n=1 $, I have proved it's true. And assumed when $n = p$ , $p<3^p$ is true. Can any body help me in showing that it is true for $n =p+1$


To talk about something or someone, we usually give an apostrophe, like John's pen. If the word ends with s, we say Adams' pen . But what if we are talking of something that ends with an apostrophe s like Jack's (what we sometimes say in short for Jack's home, or Jack's kitchen etc.). How do I use an apostrophe for words like these? (For eg. If I want to say "Jack's house is closed" but I want to write Jack's instead of Jack's house  , How do I manage the apostrophe?)

If the cricket ground Lord's is a possessive, what if you want to describe something belonging to Lord's? Would you say:     I was very impressed by Lord's's customer services.   It doesn't look right, so what is the correct way of writing it?


Can I enter Schengen area through Athens, Greece and leave through Rome with the Schengen Visa?

I have to travel to Germany and Switzerland for business purpose. I have already been here 2 years ago. I have applied for business visa to the German consulate twice and both times the application got rejected. They have put a green stamp on the last page twice. The reason is the purpose and information submitted regarding intended stay is not reliable. I have submitted the documents to Swiss consulate and they have accepted and granted me a visa. Now I have to first travel to Germany and then to Switzerland.  So my question is, with a Schengen business visa granted by Switzerland, may I enter in Germany? Does the rejection stamp has any impact for entering at German airport ? Does it mean I cannot travel to Germany but to other Schengen countries ?


I am trying to change the status of toggle switch using jquery but not success. this is the code of jquery  $('#bandwidthcap').checked='false';   and I tried using this way   $('#bandwidthcap').attr('checked','false')   this is the code of html   <input type="checkbox"  name="bandwidthcap" id="bandwidthcap" class="switchery" data-color="primary"/>

I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?


I'm trying to create data structure for sorting data that will firstly receive any kind of object, i.e. int, string or MyCustomObject and then perform other tasks. // heap.h template <typename T> class Heap{ public:     Heap();     ~Heap();     }   //heap.cpp template <typename T> Heap<T>::Heap(){}  template <typename T> Heap<T>::~Heap(){}  ...   It turns out that from the very beginning when I try to run Heap<int> test it shows that classic message undefined reference to Heap<int>::Heap(). I found out that one workaround is to add template <typename int> at the end of the code. However, if I try to do it with std::vector I'm pretty sure I can run std::vector<MyCustomObject> test which uses templates even without adding that line template<typename MyCustomObject> beforehand. I want to know:  How would I perform this same behavior in my data structure of receiving "unknown" types? Why std::vector implementation works whereas mine don't? What's missing?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I have picked some quality trackers that stay in point for all of the shot. When I solved the camera motion it said the solve error was as low as 0.6. The reprojected markers are all over the place regardless. As far as I know the value 0.6 is supposed to mean that the solve is really good(less than a pixel of average error) To clarify: I do know how to lower the solve error but 0.6 means that it is already good, still the solve doesn't line up at all. Can someone please help me?

Whenever I do camera tracking in Blender the reconstruction is always zooming out or not on the axis. I have a great quality camera, but the end results of the camera tracking always has the model sliding. If you have a solution please tell me.


I have a long table in this format that starts in the middle of the first page. But when I populate the table, it moves to the second page instead of continuing from the first page. How can I do it?  \begin{tabular}{p{0.4\linewidth}p{0.6\linewidth}} %    \toprule     \multicolumn{1}{l}{\textbf{Requirements}} &             \multicolumn{1}{l}{\textbf{My Qualifications}} \\  %    \midrule Education & 4 years experience.\\  Modeling & Have modeled.\\  %    \bottomrule \end{tabular}

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


I'm having problem while displaying audio .mp3 files in a list view from res/raw folder. The error in the logcat is "null pointer exception". I've tried this code by using External storage and it works perfectly fine by giving the external storage path. All I need is to use audio files in the application so that it can display the files after running on phone. Below is the code. Please help me out!  MainActivity.java  package com.example.testproject;  import java.io.File;  import java.io.FilenameFilter; import java.io.IOException; import java.util.ArrayList; import java.util.List;  import android.app.Activity; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.TextView; import android.widget.Toast;   class mp3filter implements FilenameFilter{       public boolean accept(File dir, String filename) {          return filename.endsWith(".mp3");     }  } public class MainActivity extends ListActivity {      Cursor cursor;     ListView list;     private static final String FILE_NAME = "Make Folder";     Uri path = Uri.parse("android.resource://com.example.testproject/res/raw/anham_with_trans");     private ArrayList<String> voice = new ArrayList<String>();     private MediaPlayer mp = new MediaPlayer();       Button btn;     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         list = (ListView) this.findViewById(android.R.id.list);          updatePlayList();          btn = (Button) this.findViewById(R.id.btn);          btn.setOnClickListener(new View.OnClickListener() {              @Override             public void onClick(View v) {                  mp.stop();              }         });     }     protected void onListItemClick(ListView list, View view, int position, long id)     {         try{             mp.reset();             mp.setDataSource(path + voice.get(position));             mp.prepare();             mp.start();          }catch(IOException e)         {             Log.v(getString(R.string.app_name), e.getMessage());         }     }      private void updatePlayList() {          String uri_path;         uri_path = path.toString();          File home = new File(uri_path);         if(home.listFiles(new mp3filter()).length>0)         {             for(File file: home.listFiles(new mp3filter()))                 {                 voice.add(file.getName());                  }             }                 ArrayAdapter<String> voiceList = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, voice);                 setListAdapter(voiceList);        }            @Override     public boolean onCreateOptionsMenu(Menu menu) {         // Inflate the menu; this adds items to the action bar if it is present.         getMenuInflater().inflate(R.menu.main, menu);         return true;     }      @Override     public boolean onOptionsItemSelected(MenuItem item) {         // Handle action bar item clicks here. The action bar will         // automatically handle clicks on the Home/Up button, so long         // as you specify a parent activity in AndroidManifest.xml.         int id = item.getItemId();         if (id == R.id.action_settings) {             return true;         }         return super.onOptionsItemSelected(item);     } }

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?


My Minecraft forge isn't showing up as a new profile when I launch the game. I have searched and searched but I could not find a solution. Can anyone help?

So I downloaded forge and it's in my mods folder and everything, but when I go to make a new  folder for it it doesn't show up. I did have two other versions downloaded but they aren't in the mods folder. Those two are the ones that show up on the profile maker/editor. Is it not showing up because there's already two there? Please help.


I wish to prove that if $\exists x,y \in Z$ such that $x^2 + 5y^2 = p$ then there cannot exist $a, b \in Z$ such t hat $a^2 + 5b^2 = 2p$. Here p is a prime natural number. I kind of see why this might be true. Here are my ideas so far. Any help in showing why this claim is true will be appreciated.  Assume there exists x,y as stated above. We can assume that they are positive. We see that (x,y) are then the only positive integer solutions to $x^2 + 5y^2 = p$. Assume further that there exists a,b as stated above. Once again, we can assume that they both are positive. Then $a^2 + 5b^2 = 2p$ implies $(\frac{a}{\sqrt{2}})^2 + (\frac{b}{\sqrt{2}})^2 = p$. Now I stuck.

How can I count all integer solutions to the equation $$x^2+dy^2=n$$  given $n$ and $d$, where $n$ is composite (or prime)?  By counting I mean any algorithm faster than brute force enumeration.


I have a group of order $p^\alpha$, $p$ is prime. I argued that by the Lagrange's theorem, the subgroups of this group are of prime power order. Just want to clarify if this also implies the existence of these subgroups? Can I say this group has  subgroups of order $p$, $p^2$, ..., $p^{\alpha-1}$? Or do I need to refer to other results/theorems? Thank you.

Prove that if $|G| = p^n$ then $G$ has a subgroup of order $p^m$ for all $0\le m <n.$   Since $G$ is of prime-power order I know $|Z(G)| \ne e$ so there is an $a\in Z(G)$ with order $p$ such that $p \mid |Z(G)|$. Now, the subgroup generated by is normal since it's a subgroup of the center. How can I get this normal subgroup to be less than $n$?


Show that $|{\sqrt{a^2+b^2}-\sqrt{a^2+c^2}}|\le|b-c|$ where $a,b,c\in\mathbb{R}$  I'd like to get an hint on how to get started. What I thought to do so far is dividing to cases to get rid of the absolute value. $(++, +-, -+, --)$ but it looks messy. I'm wondering if there is any nicer way to solve it.  Would love to hear some ideas.  Thanks in advance!

Proof that for $a,b,c\in \mathbb{R}$, hold that $\left |\sqrt {a^2+b^2}-\sqrt {a^2+c^2}  \right |\leq \left |b-c  \right |$. Give me a clue, I don't have any idea to work with that inequality.


When the phone rang, the grey-haired man asked the girl, with quite some defference, if she would rather for any reason he didn't answer it.   I would like to ask why there is not used a verb in the phrase "if she would rather"? Is this standard usage? Can I rewrite it in this way: if it would be better/rather for her for any reason…?

Which of the following is the correct sentence:        I would rather do it myself.    I would rather did it myself.      When I meant to say that I don't know how to do this work otherwise I am well enough to do it myself.


Standard recipes for brownies have a teaspoon of salt in them. Questions like  and  explain that it's only for taste. Can you just put some salt on top after they are baked?  For example, the linked answer might imply that yes you can just sprinkle salt on the baked brownie afterwards. But is that true? I also don't understand the . None of the flour should be raw after the brownie is baked!

I'm trying to reduce my salt intake.  I've noticed in baking recipes where baking powder is used they add salt.  Can I omit the salt or would the recipe fail?


When I receive push notifications from the StackExchange app, my expectation that tapping them should take me to the post on which the notification happened is always violated. It seems wrong to me that tapping a push notification should just do the same thing as opening the app the normal way.  I would like to request that tapping a push notification from the Android app should bring the user to the post that generated the notification.  If the user has multiple inbox messages, at least open the inbox.

When I get a notification on android that someone had posted an answer or comment, if I click the notification, it opens the Stack Exchange app but shows the main view with the inbox opened, not the comment or answer that was in the notification.  If there is only one notification pending, when you tap it it should show you the actual contents rather than just the inbox.


I bought a new system with 4 GB of RAM. I don't know how do I check how much swap memory  I have allocated. I know that we can increase RAM physically. I want to increase swap memory on windows. How can I increase swap memory?  Is that possible?

I just upgraded my laptop RAM to 12GB (W510, 4 DIMM slots), and since I am using a SSD, I find hard drive space to be quite precious. However, since I have more than enough RAM for most stuff, I think I can get by with probably around 4GB of page file. however, on C drive, there is a pagefile.sys which I assume to be reserving space for page files in the OS, how would I decrease the size of this file?


How do you break down the theory of $1 + 1 = 2$?  How do you provide a proof, please be precise. This is for one of my discrete math courses and I don't know how this is relevant to the course. And remember, please be detailed and precise.

A theorem is defined to be a mathematical statement that is proven to be true. The statement $1+1=2$ has definitely been proven in the history of mankind (Russel and Whitehead had once proven it in the book Principia Mathematica).   So can it be considered as a theorem? What determines something to be a theorem (besides it being proven to be true)?


Can I replace  4GB 1Rx8  PC3L 12800S  with  8GB 2Rx8 PC3L 12800S RAM? I have Toshiba Portege R930-C086, core i5

I don't have any knowledge in hardware and would like to know which RAM should I buy for my laptop.  How do I discover what RAM I need & how much my machine can take?  I have a Razer Blade 15 (RZ09-02705F76) 2018 but don't know if there is a specific type or format of RAM that suits it and don't know where to find this information.


I'm learning integration by the method of substitution. While doing sums, I encountered a case in which I got this expression in the denominator: $$\sqrt {a^2 + x^2 } $$  Now, I wanted to substitute  $x$ as $a i \sin \theta$ where $i = \sqrt  {-1} $. My idea was to take $a$ outside the root, and obtain $\cos \theta $ from the root.  Although I've reached the answer, I couldn't find any complex function substitution example in my book, which makes me wonder whether my substitution is correct.  Can I substitute a variable with a complex function in integration?

This question has been irritating me for awhile so I thought I'd ask here.  Are complex substitutions in integration okay?  Can the following substitution used to evaluate the Fresnel integrals:  $$\int_{0}^{\infty} \sin x^2\, dx=\operatorname {Im}\left( \int_0^\infty\cos x^2\, dx + i\int_0^\infty\sin x^2\, dx\right)=\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)$$  Letting $ix^2=-z^2 \implies x=\pm\sqrt{iz^2}=\pm \sqrt{i}z \implies z=\pm \sqrt{-i} x \implies dx = \pm\sqrt{i}\, dz$  Thus the integral becomes  $$\operatorname {Im}\left(\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz\right)$$  This step requires some justification, and I am hoping someone can help me justify this step as well: $$\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz=\pm\sqrt{i}\int^\infty_0\exp(z^2)\, dz=\pm\sqrt{i}\left(\frac{\sqrt{\pi}}{2}\right)$$  Thus  $$\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)=\operatorname {Im}\left(\pm\frac{\sqrt{i\pi}}{2}\right)=\operatorname {Im}\left(\pm\frac{(1+i)\sqrt{\pi}}{2\sqrt{2}}\right)=\pm\frac{1}{2}\sqrt{\frac{\pi}{2}}$$  We find that the correct answer is the positive part (simply prove the integral is positive, perhaps by showing the integral can be written as an alternating sum of integrals).  Can someone help justify this substitution?  Is this legal?


Given: $$f(x)=\frac{x^2-4}{x-2}$$  First thoughts would be than $x\ne 2$   But since $f(x)$ can be simplified to: $$f(x)=x+2$$  It now seems than $x$ can be a solution to $f(x)$.  If I graph this function I get the line $f(x)=x+2$, but it that with the point $(2,4)$ not included?  My book gives an answer where $x\ne 2$

I'm trying to graph the function $y = \frac{x^2-4}{x-2}$.  I factored the numerator into $(x+2)(x-2)$, and then canceled the common factor (x-2), leaving the function as $y = x + 2$.    Is it acceptable to graph the original function as $y = x + 2$, a straight line with domain and range all real numbers?  Or do you have to restrict the domain as in the original function?  Thanks, Sean


On fresh Ubuntu 13.10 installation, on boot it shows black screen with error message.  How can I fix this?  Gave up waiting for root device. Common problems:  - Boot args (cat /proc/cmdline)    - Check rootdelay= (did the system wait long enough?)    - Check root= (did the system wait for the right device?)  - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/disk/by-uuid/f8d8eb7d-2423-4cc5-b0e6-72d47678121e does not exist. Dropping to a shell!

I've just installed Ubuntu 12.10 to dual boot with Windows 8, but every time I choose Ubuntu from grub menu, it always get stuck at this error and won't boot:  Gave up waiting for root device. Common problems:  - Boot args (cat /proc/cmdline)    - Check rootdelay= (did the system wait long enough?)    - Check root= (did the system wait for the right device?)  - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/disk/by-uuid/920903aa-762f-40d2-8126-87f4b0e6f975 does not exist. Dropping to a shell!  BusyBox v1.19.3 (Ubuntu 1:1.10.3-7ubuntu1.1) built-in shell (ash) Enter 'help' for a lost of built-in commands. (initramfs)   I tried with boot-repair, but it doesn't help, .


Prove that for any two sets $|X|$ and $|Y|$, either $|X|\leq|Y|$ or $|Y|\leq|X|$.   I know that there is a proof using Zorn's Lemma but I can't figure out how to do it.

For any pair of sets $A$ and $B$, we can define $A\le B$ iff there exists injection $f\colon A\rightarrow B$. I am trying prove that  $$(A\le B)\vee (B\le A).$$  I have tried assuming  $\neg (A\le B)$, then proving $B\le A$ by constructing the required injection, but I haven't been able to make any progress. Any hints, etc. would be appreciated.  EDIT  Assuming  $\neg (A\le B)$, can you prove there exists a surjection $f: A\rightarrow B$? Then it would be easy, by applying AC, to construct an injection $g: B\rightarrow A$


I need to parse concatenated numbers. These are strings so I tried to use parseInt(). But the result is not what I expected...  These are some of my tests:  parseInt("201504071926270001"); results in 201504071926270000 parseInt("201504071946350002"); results in 201504071946350000   In these two cases parseInt() ignores the last digit of those numbers.   parseInt("201504071726450005"); results in 201504071726450020 parseInt("201504071746130006"); results in 201504071746130020   In these two other cases parseInt() turns the last digit of those numbers into "20".   I tried to use parseFloat() but this results the same. Also I set the radix to 10 but nothing happened. I tested this with Firefox and Safari. Both browsers did the same.  Is there something wrong with my expectations or is there a bug in JavaScript or is there anything I overlooked?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


My HTC One M9, when connected as a MTP device to my PC shows the correct portion of free memory to used memory, but when I try to access the files, it says this folder is empty. Any ideas? I am running android 6.0

When my phone MOTOROLA G3(2015) is updated to Marshmallow, its not showing files when connected to PC. While connecting, it shows options as charing only, PTP, MTP, MIDI. When I select MTP, it shows the external card, but not showing the contents, where as internal memory is detected and all files are shown.


How would Narcissa Malfoy know if Harry was lying to her about her son Draco?

Narcissa  (mother of Draco) is asked to check whether Harry is alive after he has been "killed". At this point Narcissa asks whether her son is alive. How could she trust Harry and believe him? Notwithstanding that she considered Harry to be her 'enemy'. Harry could've have lied and said Draco was alive (if Draco was dead). In this case, Harry gets the benefit (as he escapes by being declared dead), while Narcissa is given the false hope that her son is alive. What matters isn't whether Draco is dead or alive, Harry could simply get away by saying yes. So why did Narcissa trust Harry and take his word that Draco was alive?


For a long time, the norm was to put a red asterisk "*" after the field label if the field was required. Now I am observing a shift into replacing the asterisk symbol with the word "(required)" after the label.  Bootstrap:    vs  Foundation:    Angular Material:    I really like the Angular Material required style. I :)  I am asking about the differences between using an asterisk vs required.  What drove the shift and is that a better user experience? What are the pros and cons against the two?  EDIT: It was pointed out that this question might have been already asked (), but that is not what my question is about.   I am not asking how to label a required input as required. I am not asking if the asterisk is the norm or not.  I am not asking if you should omit optional inputs or not.   If you are debating that, you are missing the point. :D

This seems subjective, and it is; a client of mine would like me to highlight the required fields on the web forms in their application with a red asterisk, and I'm looking for an alternative since red asterisks usually mean there's an error to me.  How do I let a user know which fields are required? (One per answer, please.)  UPDATE: This is to indicate which fields are required before validation/postback occurs.


How could I fix it? It happens both on my tablet and my phone. The app has given me this problem for a week. Before that it worked perfectly.   App Version: 1.0.95 Device Manufacturer: Samsung Device Model: SM-G955F   OS Version: 9 (G955FXXS5DSI6)

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.