I use SP 2013 on-premises and I am having a requirement to hide the Site Contents command/link.Is there any way I can achieve this with the help of PowerShell? I tried with the SPSecurityTrimmedControl using SP D 2013, but it has a drawback,that we won't be  able to see the context menu for a  item within the document library.So that option is ruled out.

in a host named site collection using the team template, I would like to hide the Site Contents link, but cannot find any way to do it. does anyone know how?  deleting it from quick launch editor does not work. any solution relying on _layouts/15/ChangeSiteMasterPage.aspx does not work - the page does not exist or is not reachable. being able to edit site master page settings would be very useful as I could then add alternate css.  removing the link entirely is an acceptable option, although a better one would be to hide it only for non-admin users.  sharepoint 2013 sp1 enterprise farm, sql server 2012, windows server 2012 r2


recently I upgraded from 19.10 to 20.04 LTS. Everything is working fine except some minor display issue. Display resolution if good but every time I turn on my computer or restart it, there is square green patches or vertical green lines over the wallpaper. Also, the moment I change the wallpaper it disappears. I don't what the exact issue is? I am using HP notebook. Below I have attached what it looks like.

I have recently upgraded Ubuntu 19.10 to latest LTS Ubuntu 20.04. After updating, I get serious artifacts on my screen. Every time I reboot (or log-in), my screen is fuzzy or scrambled (picture attached):     This is temporary. The fuzzy screen goes away when I change the background. But it reappears the moment I reboot or log back in.   I have Intel HD Graphics 520 (Skylake GT2).  The output of lspci -nn |grep -E 'VGA|Display' is:  00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)   Update:   On enabling Wayland in Ubuntu 20.04 and logging in to, these artifacts are however cured.   This is okay for now, but I am not sure about Wayland as I have not yet used it before.   Is there a way to correct the graphic issue with normal Ubuntu startup?


private ArrayList<Record> readFromFile(String fileName) {     int lineNumber = 0;     Scanner fileReader;     ArrayList<Record> recs = new ArrayList<>();     try {         fileReader = new Scanner(new File(fileName));         while(fileReader.hasNextLine()) {             lineNumber++;             String line = fileReader.nextLine();             String stateCode = line.substring(0,2).trim();             String distCode = line.substring(3,8).trim();             String distName = line.substring(9,81).trim();             int population = Integer.parseInt(line.substring(82,90).trim());             int childPopulation = Integer.parseInt(line.substring(91,99).trim());             int childPovertyPopulation = Integer.parseInt(line.substring(100,108).trim());             String miscStats = line.substring(109).trim();             String[] data = new String[6];             data[0] = stateCode;             data[1] = distCode;             data[2] = distName;             data[3] = String.valueOf(population);             data[4] = String.valueOf(childPopulation);             data[5] = String.valueOf(childPovertyPopulation);             data[6] = miscStats;             recs.add(new Record(stateCode, distCode, distName, population, childPopulation, childPovertyPopulation, miscStats));         }         fileReader.close();     } catch(FileNotFoundException fnfe) {         System.out.println("Cannot locate file: " + fileName);         System.exit(0);     }     return recs; }  the error occurs at the end of the method when I try to return "recs" with a NullPointerException thrown. Why is this happening?

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?


what is the exact procedure to get VirtualBox running? Or are there reliable alternatives?

Using VirtualBox.  There's two Virtual Machines, Ubuntu 10.04 and Windows 7.  On Ubuntu:  There's two ethernet interfaces.   Bridge interface (eth0) who can access the internet. ping www.google.com works ok. NAT interface (eth1) configured as Internal Network who have ip 10.0.0.101, netmask 255.255.255.0 and gateway 10.0.0.1 who can ping Windows 7 in 10.0.0.102.   On Windows   A interface who have ip 10.0.0.102 and can ping Linux in 10.0.0.101 ok, but can't ping www.google.com.   So, how can I configure Windows to have access to the internet using my Linux machine?


I would like to modify unity to not show the launcher (left side bar) at all. I'm not looking for any solution that would let the launcher be in some cases visible. I really want it to completly disappear. It's a gift for my fiance and I want to achieve the highest possible Woman Acceptance Factor for her linux laptop which is running a docky dock with fancy icons that make it look like being from that known and fruity company.  Any hints about which packages and which source files I should study?   I'm hoping it to be as easy as commenting out the line with "unity.launcher.show()" and recompiling :-)  Thank you!

How can we remove the launcher that come with Unity on this new Ubuntu version ?


I have had several occasions where I went astray with my Blender work and had to undo my work or start over.  When I undid my work today that took several hours, I went too far.  Oops!  Now I have to redo that work.  I come to Blender from CAD, specifically AutoCAD and Inventor.  Both of those packages have a redo function in them.  I would really like to see one of you smart programmers work on that.  Or, tell me that it is available and I just don't see it.

When I pressed the undo button in object mode it somehow brought me waaaay back in my steps and I wanted to know if there was a shortcut to undo the undo? Or a step forward shortcut?


We have to create a choose your own adventure game and I chose to do a biome survival game. Right off the bat, I had some difficulty calling the class in which the methods are stored. I prompt for the biomeAns but it reads it and it seems to immediately quit without reading and printing the contents of the method in the other class. What am I missing?   `package com.company; import java.util.*; public class Main {  public static void main(String[] args) {     Scanner scan = new Scanner(System.in);     System.out.println("What up, Bitch?");     //String congrats = "Congratulations";      Biomes biomeObj = new Biomes();  //Turned in a zip file w/README file containing a description of the  project, instructions for compilation, and (sample input w/expected output) //includes appropriate Javadoc comments //includes at least 2 classes //contains at least one constructor //Program contains 2 methods //Program includes a try...catch block //includes a loop //Program includes conditional statement  //intro System.out.println("Welcome to the Biome \nYou will be prompted to choose  between two biomes"); System.out.println("This will determine which biome you will attempt to  survive for the next 7 days"); System.out.println(" ");  //choose biome System.out.println("?Tundra or Desert?"); String biomeAns = scan.nextLine(); if(biomeAns == "tundra" || biomeAns == "Tundra"){ biomeObj.tundra(); }if(biomeAns == "desert" || biomeAns == "Desert"){ biomeObj.desert(); } } }//END MAIN`   and my class and methods that I'm trying to call but failing too, considering it isn't reading into the methods at all:  package com.company;  public class Biomes {  public void tundra(){//send user to tundra     System.out.println("Welcome to the Tundra");  }  public void desert(){//send user to desert     System.out.println("Welcome to the Desert");  }  }

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?


How do I install the latest version of gcc and g++?  I am using a variety of C++11 and C++1y features; which is why I need this.

I want to compile my program with the latest version of gcc.  Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: . I tried to install it  sudo apt-get install gcc-4.9   but it says  Reading package lists... Done Building dependency tree        Reading state information... Done Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9' gcc-4.9-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Looks like it is already installed, just not as the default one? How do I utilize it to build my program?


When I ask multiple questions at once should I break it up into multiple sentences and capitalize the first letter at the beginning of each question(?), or should I use one question mark at the very end?   For example: "Is it where my heart is? where my family is? or wherever I feel most at home?"   You'll notice that I want to retain the flow of the sentence to emphasize the sequence of the questions, especially as I introduce that last 'or'.   Thanks!!

May I use a question mark in the middle of a sentence? Examples:  Would you like the drapes to be white? or perhaps something off-white? Would you like the logo to be centered? at the bottom? left off entirely?


I was trying to install the printer driver for Brother HL-2280DW, but I had to stop it due to the printer not appearing to any of the PCs anymore. After I stopped it I noticed this error when I attempt to perform a apt-get upgrade.   Here's a snippet of what output I receive:  sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/2,834 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y dpkg: error processing package lsb-graphics (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration Errors were encountered while processing:  lsb-graphics E: Sub-process /usr/bin/dpkg returned an error code (1)   Is it safe to just remove lsb-graphics forcefully and reinstall it? I though I should ask first instead.  EDIT I went ahead and removed it using dpkg --remove --force-remove-reinstreq and then reinstalling it with apt-get install. Is there anything that I have to reconfigure, or is it fine as is?

I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?


$$U=mgh$$  $$h \to \infty$$  $$U \to ?$$    The potential of a 100 gram-spoon is approximately 1 j when it's 1 meter away from the Earth's surface. It's still a spoon if you carry it to the top of Mount Everest. Its potential energy will be more than 8000-fold, while it's still the initial spoon without any differences! Why there's not any difference?  Will the matter explode if you increase its height, $h$, (referring to the earth) to infinity?

I have a problematic question for which I have been unable to attain a satisfactory answer. What is  truly?   -  I have read about how potential energy can be seen as the "highering" of an object within a field, be it gravitational, electromagnetic, etc.   In a way, an object is lifted to a higher position, and when it eventually falls down again energy is released back.  The object does not even have to be "lifted" beforehand, as with the case of asteroids.   However, since energy cannot be destroyed, it must somehow be stored, yet how does energy truly store itself within a field? It seems hard for me to grasp that energy can physically be stored within the positioning of an object?  I can't really get my head around how a field conserves energy within it. Kinetic energy on the other hand, can be, for me, intuitively understood, as the object really is "moving" and energy manifests itself through motion.  Can anyone elaborate on this, perhaps give reasoning as to why a field can in fact "store" energy? Please point out any fallacious or naive views I seem to hold.


If I buy raw chicken breasts from nofrils on June 21 and expiration date says June 23 can I cook it on June 23 and eat the left overs the next day?  Would that make the chicken okay to eat still, or should I freeze it and cook it on June 23?

Assume I have the following ingredient all expiring tomorrow:   Mushrooms  Paneer (Cottage cheese)  Basmati rice   If I make a dish with these 3 ingredients (basically put rice, chopped mushroom,chopped paneer, water and some spices in a pressure cooker and wait for 2 whistles), is the expiry of these items somehow extended? Can I now keep this cooked dish in my fridge for another 1-2 days without going bad?


When I start Ubuntu 18.04, login options don't appear; it just logs in automatically.  I want to see a login screen and log in from there. How can I fix this?

I enabled Autologin during current installation of Ubuntu 18 Bionic Beaver.  I would like to Disable the AutoLogin but going to:  "Settings -> Details -> Users"  Doesn't give me the ability to turn the autologin off.  My last resort is to redo the installation without enabling it.


I have some vector images they I need to add a thick outline similar to the image below.     Is this possible to do quickly and easily in Illustrator?   Note : I have permission/licence to edit and publish the images.

Here's what I have...    The top and bottom half are two separate objects each with their own gradient.  I would like to remove the curved horizontal line going across the shape, then I would like to add a gradient to the rounded rectangle stroke. I thought I had found an answer to the first part (drag stroke below contents) which I applied  but in addition to being kind of a work around(the horizontal line still exists), I am still unable to add a gradient to the stroke. The rest of what I've googled regarding removing part of a stroke instructed use of the pen tool to add and then delete anchor points on the part of the stroke that I want removed but I am not clear on how to do this, whenever I tried, I ended up also removing the barrier between the two halves of the object which I do not want to do.  I have tried "Object > Path > Outline Stroke" multiple times in order to add a gradient to the stroke but am still left with the same two paths underneath the object's group. I expected the stroke to be turned into a new path. Any help as to how to   Remove the horizontal line stroke from existence while still maintaining separate gradients for the top and bottom halves of the object   and    Add a gradient to the stroke surrounding the rounded rectangle sans the horizontal line   would be greatly appreciated.


I am not well versed in the field but I believe I know the basics.  All encryption algorithms that I know of utilize direct data manipulation to encrypt a message (string of bits) such as shifting, cycling, etc. in specific patterns utilizing the encryption key.  Is there any algorithm that instead of touching the data-to-be-encrypted in any way instead generates a secure one time pad using a reasonably short key?  I suppose technically in this scenario you would call the key a seed for a pseudo-random number generator.  So my question is this, does such a generator exist in a secure form and with an algorithm that can turn a phrase into a key or just generate such a key.  If there is such a generator I suppose you will point out the weakness of a one time pad on changing/multiple data, but suppose it isn't a concern due to pad use markers or simply because there is no other data or changes.

I am very new to cryptography (so be kind), but I have a question that may seem silly.   If the one-time pad is the perfect cipher and impossible to crack, why would the following algorithm not be one of the strongest:  To encrypt:   generate a random bit array using a pseudo number generator with the key as the seed  The generated bit array is the size of the data use a simple XOR to encrypt using the generated bit array   To decrypt:   pseudo-random number generator will generate the same bit array with the same seed (the key) generate bit array the same size of the encrypted data run XOR on encrypted data using bit array that's generated   This is very simplified, but you can imagine how for larger encryption you could break down the data into blocks, and in order to ensure that the block bit arrays are random a new seed for each can be derived from the key. So, if $f(k)$ is the pseudo random number generator, and b is the block number, you can encrypt each block with $f(k+b)$. ($k$ is key)   Instead of using a pseudo-random number generator, you could use some hash algorithm to generate the pad.    (assuming you can use equivalently strong keys) would this not be a very strong cipher method? Perhaps it may be strong and heavy on memory since the pad needs to be the size of the data. So during encryption and decryption you need to generate a pad that's equivalent to the size of the data.   Is there a flaw in this algorithm, or would something like this not be practical and much slower than current standards?


For example "two" to 2, or "one hundred thirty four" to 134. I can define my own dictionary but it becomes impractical/tedious for very large numbers. Is there a look up table somewhere for this sort of conversions?

I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything?


$f: \mathbb C \to \mathbb C$ be a non-constant entire function then how to prove or disprove that every line which passes through origin would intersect image(f)?  Can anyone please  give me a hint?

Let $f$ be an entire function and $L$ a line in $\mathbb{C}$ such that $f(\mathbb{C})\cap L=\emptyset$. Show that $f$ is constant function.  If $f$ is not constant  then $f(\mathbb{C})$ is dense set in $\mathbb{C}$, but how can I use that line does not intersect the image set?


Question: Evaluate lim$_{n\rightarrow\infty}$$\left[\frac{\left(n+1\right)\left(n+2\right).....\left(n+n\right)}{n^{n}}\right]^{\frac{1}{n}}$  My Approach Let $a_{n}=\frac{\left(n+1\right)\left(n+2\right).....\left(n+n\right)}{n^{n}}$ $$a_{n+1}=\frac{\left(n+2\right)\left(n+3\right).....\left(2n+2\right)}{\left(n+1\right)^{\left(n+1\right)}}$$ $$\lim_{n\rightarrow\infty}\frac{a_{n+1}}{a_{n}}=\frac{4}{\exp (1)}$$ Using Cauchy's second theorem On Limits Lim$_{n\rightarrow\infty}\left[\frac{a_{2}}{a_{1}}\frac{a_{3}}{a_{2}}..........\frac{a_{n+1}}{a_{n}}\right]^{\frac{1}{n}}$=Lim$_{n\rightarrow\infty}$$\left[\frac{a_{n+1}}{a_{1}}\right]^{\frac{1}{n}}=\frac{4}{\exp(1)}$ Now I don't know how to move forward

I'd like a hint to show that:  $$\lim \frac{1}{n} \sqrt[n]{(n+1)(n+2) \cdots 2n} = \frac{4}{e} .$$  Thanks.


What benefits would I see upgrading from 14.04 to 15.04 and what are some caveats? My system is pretty solid running on a dual core i5, 8gb, 512ssd, hd3000. I'm a newer Linux user and I don't do a lot of CLI foo, only How To's that seem interesting. Any thoughts on this issue? Should this be asked in the chat?

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


Is a conjugation of a Lie subgroup a Lie subgroup?    Conjugation of a subgroup is a subgroup. Thus, a conjugation of a Lie subgroup is a subgroup.  Conjugation is a diffeomorphism. Thus, a conjugation of a Lie subgroup is the image of a manifold by a diffeomorphism, and so it is an embedded submanifold. Finally I need to prove the smoothness of the group multiplication and inverse operation. But I'm not sure that the restrictions of them on the submanifold are still smooth. How can I prove this?

This is exercise from Lee: Introduction to smooth manifolds.  Suppose $f \colon G \to H$ is homomorphism of Lie groups (real, finite-dimensional).  Q: Is image $Im(f) \subseteq H$ a Lie subgroup of H?  That is, is there topology and smooth structure on $Im(f)$ such that inclusion $Im(f) \hookrightarrow H$ is immersion, and such that induced operation $Im(f) \times Im(f) \hookrightarrow H \times H \to Im(f) \subseteq H$ is smooth.  The author of  says (last paragraph on the first page) that the answer is no, provides counterexample (dense line on torus), but the proof is ommited. Is it correct?  I need positive proof of that, to understand the following characterisation: Lie group admits faithfull finite-dimensional representation if and only if it is (isomorphic to) Lie subgroup of $GL(n,\mathbb R)$.  One more thing. It is easy to see that $Ker(f)$ is Lie subgroup of $G$ using nontrivial . Is there more direct proof?  Any help is very appreciated.


This is my code:    As you can see varchar is not recognized as a Data-Type and it gives an error when executed.  Does anyone know why?

I was creating a table in SQL Server CE and realized it doesn't support varchar.   Looking this up, I found that "non-Unicode text columns (varchar, char, text) and smallmoney are not supported; although nvarchar, nchar, ntext, and money are supported" as .  Is this true? Why is this, exactly? It would seem that a compact database would support data types that take less bytes to store...I'm assuming it takes more space to save the Unicode characters.   What is the reasoning behind this?


In the past, the programming sites of Stack Exchange (e.g. Stack Overflow) used to accept fairly straightforward questions about HTML, CSS, JS and alike, scripting in powershell or BASH or simple problems in C#.  However, these days such questions appear to be downvoted and closed.  What happened to those communities an why aren't they accepting simple questions anymore?

I experienced it several times, that beginner questions are closed or downvoted. Now I read the FAQ and found the following.  A question is closed if it is        exact duplicate   off topic   not constructive   not a real question   too localized      What about if everyone who votes for a close has to submit a comment why it should be closed? The same with downvoting. Most people vote down without saying explicitely why. It would help the questioner to improve the question.  Neverthless, instead of simply providing an answer to a apparantly simple questions you get downvoted and closed. Why they cannot provide a solution even the question is simple?  Last time I made a Google research and didn't found the information I was looking for. So I started a question here. I got immediately two votes for a close. After trying further I found the solution. But this information will never be seen and found by others, because I deleted the question because of down votes.   In this case you can say that I didn't made enough research, but the question also included a continuation question which also will be never answered.   Why there is no place for beginner questions?   Another time I also asked a questions and searched for hours for an solution. But the solution was so simple that it is embarrassing to post the solution. But I never got a clear answer.


Usually in c++, when traversing through an array you would count up and use the index. However, I am wondering why using the array as an index works as well. For example,  #include <iostream> using namespace std;  int main() {     int a[] = {5,7,3,2,0};     int i = 0;     for(i = 0; i <5; i++)     {         cout<<i[a]<<"\n";     }     return 0; }   The output would be the same as using a[i]. Why is this?

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


When looking at the recent achievements drop downs, the icon for badges appears with the graphic for whatever site you're currently on, rather than the graphic for the site you've earned the badge for.  For instance, in this screenshot, I'm on the Science Fi & Fantasy site, and the badge in the drop-down is from Code Review.    On Code Review, this would be a simply bronze circle, but on SF&F it's this emblem.  Is this a bug, or is this working as intended?

It's so cool that the notification reminds you of the colour of badge you've earned. But I am a little puzzled by the symbols:      Is it feasible to use the symbol from the earned site? At the moment it uses the symbol from the site I happen to be on (as you can see by looking to the left of the dropdown in each case.)


Here is what I have tried so far.   public voi[screenshot 3][3]d onDataChange(@NonNull DataSnapshot dataSnapshot)         {             if (dataSnapshot.child(receiverUserId).exists()) {                 receiverUserImage = dataSnapshot.child(receiverUserId).child("image").getValue().toString();                 receiverUserName = dataSnapshot.child(receiverUserId).child("name").getValue().toString();                  nameContact.setText(receiverUserName);                 Picasso.get().load(receiverUserImage).placeholder(R.drawable.profile_image).into(profileImage);              }             if (dataSnapshot.child(senderUserId).exists()) {                 senderUserImage = dataSnapshot.child(senderUserId).child("image").getValue().toString();                 senderUserName = dataSnapshot.child(senderUserId).child("name").getValue().toString();             }          }   Below is what I get from the debug log.   DEBUG LOG   at com.studio.asinsta.CallingActivity$3.onDataChange(CallingActivity.java:111)         at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.1:75)         at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.1:63)         at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.1:55)   Any help is appreciated.

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?


Is there any situation where creating a field (apart from readonly, ), are there situations where fields have any advantages over properties?

In C#, what makes a field different from a property, and when should a field be used instead of a property?


I'm decently new to using a Raspberry Pi and I'm trying to set up a simple GUI application to launch from my Pi. I'm using a Raspberry Pi3, with Python 3.4.3 installed.  When I type python:  ~$ python Python 3.4.3 |Continuum Analytics, Inc.| (default, Aug 21 2015, 00:53:08) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information.   When I try to import tkinter:  >>> import tkinter Traceback (most recent call last):     File "<stdin>", line 1, in <module>     File "/home/pi/miniconda3/lib/python3.4/tkinter/__init__.py", line 38, in <module>         import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter' >>>   So, I can see that the error is coming from miniconda3. The only reason I had it installed was to use PyQt5, but I was getting a similar error when I tried to use that, so I switched over to Tkinter because there were more examples of using it with a pi online.   I have run the following commands to try to install Tkinter:  sudo apt-get install tk-dev sudo apt-get install tk8.6-dev sudo apt-get install python-imaging-tk sudo apt-get install python-tk sudo apt-get install python3-tk   How can I fix this? I have read in some places to make python again, but no one says how to do that.   Thanks guys!

I am new to Ubuntu and Linux in general.  I created a dual boot OS on my laptop (Windows 10 and Ubuntu).    Typing: sudo apt-get install python3-tk (or even python-tk) didn't work. Trying to install the python3-dev or python-devel (no luck). Downloading Tcl and Tk to manually install.   In Windows 10 Bash Subsystem the Tk and Tcl are already included, so I thought Ubuntu already had it.  But, I want to use my Ubuntu desktop to develop Python GUI apps.   So, how can I install the Tcl/Tk to be use in Python 3.5 for GUI development?   I loaded Python 3.5.2 fine but need the GUI modules enabled.  The code to test that Tk is working is:      Type python3    Type:     import tkinter    tkinter._test()  Result: a GUI pop-up displaying This is a Tcl/Tk version..


I need test class for the below class i have for code coverage. Please help.  class and its code is  public CodeCoverageController(){         HttpRequest request = new HttpRequest();         HttpResponse response = new HttpResponse();         Http httpObj = new Http();         request.setEndpoint('https://ap5.salesforce.com/services/data/v39.0/tooling/query/?q=SELECT+ApexClassorTriggerId,ApexClassorTrigger.Name,ApexClassorTrigger.Type,LastModifiedBy.Name,LastModifiedDate,NumLinesCovered,NumLinesUncovered,Coverage+FROM+ApexCodeCoverageAggregate+ORDER+BY+NumLinesCovered+ASC');         request.setMethod('GET');         request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());         request.setHeader('Content-Type', 'application/json');         response = httpObj.send(request);         String responseReq = response.getBody();         deserializeResponse jsonResponse = (deserializeResponse)JSON.deserialize(responseReq, deserializeResponse.class);         copyJsonResponse = jsonResponse;          HttpRequest req = new HttpRequest();         HttpResponse res = new HttpResponse();         http h = new http();         req.setEndpoint('https://ap5.salesforce.com/services/data/v39.0/tooling/query/?q=SELECT+PercentCovered+FROM+ApexOrgWideCoverage');         req.setMethod('GET');         req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());         req.setHeader('Content-Type', 'application/json');         res = h.send(req);         String responseReqObj = res.getBody();         deserializeResponse responseObj = (deserializeResponse)JSON.deserialize(responseReqObj, deserializeResponse.class);         totalCodeCoverage = responseObj.records[0].PercentCovered;     }

This may sound repititve question. But the error incurs after following multiple links found like:  and .  The controller:  public with sharing class SFLoginCtrlr {     public static HTTPResponse getResp(String loginCred){         Map<String, Object> mapLoginCred = (Map<String, Object>)JSON.deserializeUnTyped(loginCred);         String username = ''+mapLoginCred.get('username');         String password = ''+mapLoginCred.get('password');         HttpRequest req = new HttpRequest();         req.setMethod('POST');            req.setTimeout(60000);         req.setEndpoint('https://www.salesforce.com/services/Soap/u/29.0');         req.setHeader('Content-Type', 'text/xml;charset=UTF-8');                 req.setHeader('SOAPAction', '""');         req.setBody('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header/><Body><login xmlns="urn:partner.soap.sforce.com"><username>' +username+ '</username><password>' + password + '</password></login></Body></Envelope>');                 HttpResponse res = new Http().send(req);         return res;     } }   The mock class:  @isTest global class ExampleCalloutMock implements HttpCalloutMock{   global HttpResponse respond(HTTPRequest req){     HttpResponse res = new HttpResponse();     res.setStatus('OK');     res.setStatusCode(200);     res.setBody('SUCCESS');     return res;   } }   The test class:  @isTest private class SFLoginCtrlrTest{     static testMethod void SFLoginCtrlrTestMethod(){         Test.startTest();          Test.setMock(HttpCalloutMock.class, new ExampleCalloutMock());          Map<String, String> logincred = new Map<String, String>();         logincred.put('username', 'dummy@user.com');         logincred.put('password', 'notapassword');          SFLoginCtrlr.getResp(JSON.serialize(logincred));          Test.stopTest();     } }   The error received while running test class:     Methods defined as TestMethod do not support Web service callouts   Not sure, where is the issue...


We just discovered another server with a database on it. The database is owned by a SQL account SA, with the public and sysadmin roles. The other login is BUILTIN\Users, with only public. I can only connect through this one. SA is disabled, and even if it wasn't, we might not know the password.  Question: Is there any way to enable SA, or create another sql login with sysadmin?

I lost the sa password on a machine, and when I log in to the machine directly using an account in the admin group, SQL Server Management Studio will not allow me to log in using Windows authentication.  My plan was to simply log into the server, connect via Windows Authentication, and reset sa to use a new password. Since I cant' connect via Windows Authentication, this won't work.  How else can I reset the sa password?


I just dont want any os in my my computer,  it is distracting me from my studies. Does anyone has an idea for removing ubuntu from a single boot.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I am not interested in Harry Potter or role playing games, but my feed seems to be full of those things. Is there a way to turn them off, or just pick the sites that I'm interested in?

I am a registered user in ,  and several other sites, only because I had to ask 1 or 2 questions. In general, I have no interests in these sites, so I don't want to see them on my Feed. Is it possible to hide them somehow?   For now, I want to see only 4 sites (could be meta or non-meta) on my Feed. Notifications are not an issue, because I normally don't get any notifications from those not-interested-in-sites; I rarely participate there.


I recently downloaded the Eclipse package and placed it in a folder in my Home directory, without blending the installation with anything else in the system. Eclipse opens normally, if I use the executable in the installation directory.    The first time I opened the program, the launcher icon appeared in the unity bar, and after I closed it, the launcher icon stayed there, as I have seen happening with other downloaded programs I have just downloaded and executed but not installed on Ubuntu. However, clicking on the launcher after that first time fails to open up Eclipse, with no explanation. The launcher just flashes for a bit, then stops and nothing happens. That is not the case with other such launchers, and as I said the original executable works fine. Any ideas on this?    I have Ubuntu 14.04 and Eclipse J2EE version 4.5.0  EDIT: Content of eclipse.desktop located in home/USERNAME/.local/share/applications/:  [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Java EE - Eclipse  Icon=eclipse.png Path=/home/username/eclipse Exec=/usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/username/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -os linux -ws gtk -arch x86_64 -showsplash /home/username/eclipse//plugins/org.eclipse.platform_4.4.2.v20150204-1700/splash.bmp -launcher /home/username/eclipse/eclipse -name Eclipse --launcher.library /home/username/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316/eclipse_1607.so -startup /home/username/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata 49001d -product org.eclipse.epp.package.jee.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/username/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar StartupNotify=false StartupWMClass=Eclipse OnlyShowIn=Unity; X-UnityGenerated=true   EDIT: The result from executing the commands after Exec is this: Error: Unable to access jarfile /home/username/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar, and that's logical, because there is no such file in that folder. The one that exists is org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar, and replacing that name in the launcher file made it work.

I downloaded the eclipse from its site. And extracted in home folder. For the first time when I opened it, it worked fine. Then I locked it to launcher. Now it's not starting when I click on launcher icon in eclipse but it starts when I start it from the folder where I extracted it. Please tell some way to keep it in launchcer and open it from t here only.  Thanks.  [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Java - SnapdealOMS/src/main/java/com/snapdeal/oms/admin/web/controller/ReloadCacheController.java - Eclipse  Icon=eclipse.png Path=/home/nakulkumar/Downloads/eclipse Exec=/usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -data /home/nakulkumar/Snapdeal_workspace -os linux -ws gtk -arch x86_64 -showsplash /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp -launcher /home/nakulkumar/Downloads/eclipse/eclipse -name Eclipse --launcher.library /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so -startup /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata 34000f -product org.eclipse.epp.package.java.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar StartupNotify=false StartupWMClass=Eclipse OnlyShowIn=Unity; X-UnityGenerated=true


How do I install  desktop apps on Ubuntu 17.10

My Linux is Edubuntu 12.04 LTS. After downloaded & installing successfully "desktop4shared-1.3_1-all" package, 4shared doesn't work on my platform.


To check whether I have a certain package (say, placeins) installed in texlive 2017 using command line on windows. What is the right command to do so?

I am running latexlive, I think everything is installed.  How can I check to see if the etoolbox and ifthen packages are installed?  I think these packages will solve my problems.  If they are not installed, what is the best way to install them on a Debian environment?


I have an excel .xls file that contains 10 sheets. I want to split all of those sheets as separate .xls files. Does excel have any option to export a sheet into a separate .xls file?

How do I save each sheet in an Excel workbook to separate CSV files with a macro?  I have an excel with multiple sheets and I was looking for a macro that will save each sheet to a separate CSV (comma separated file). Excel will not allow you to save all sheets to different CSV files.


I have many files of the following format (all of them contain headers and have the same number of columns):  col1,col2,tt2,mm3 123,292810,1501223371-7504710,yes 1234,286130,1501223549-101722650,yes 334,276300,1501223650-71196600,yes 445,290100,1501224239-87923810,yes   The number of rows in each file is different, but it's always small (around 20-40 rows). All files are located in the same directory.  I want to merge all these multiple files into a single file without repeating headers. How can I do it using bash script?

I have several directories ("amazon", "niger",...), in which I have several subdirectories ("gfdl", "hadgem",...), in which I also have several sub-directories ("rcp8p5", "rcp4p5",...). In this last subdirectories I always have two folders ("historical", "projected") that contain thousand of tables having the same frame. Therefore, I would like to concatenate those tables (present in the two folders of the last sub-directories) in order to have just one big table with only one header and not an header each time that a table has been concatenate. Does anyone knows how to do that?  I am currently using the following loop structure:  #!/bin/bash # usage:cat_dat dirname  data_dir=/scratch/01/stevens/climate_scenario/river  for river in tagus   do    for gcm in gfdl-esm2m hadgem2-es      do       for scenario in rcp8p5 rcp4p5 rcp6p0 rcp2p6         do           find "${data_dir}/${river}/${gcm}/${scenario}" name \*.dat -exec cat {} + >> "${data_dir}/${river}/${gcm}/${scenario}.dat"       done    done done   but I can´t get rid of the header with that! Any helps is greatly appreciated! Thanks!


There are a few different abilities that PCs can get where once they are hit with an attack they can decide to use to potentially turn the hit into a miss. Examples include the spell Shield or a Cavalier fighter's Warding Maneuver feature. The way our group currently plays all the DM's rolls are hidden from us and they convey whether attacks hits or misses to us. In the case of a hit the player informally has until the DM rolls damage to decide whether to use a feature that might change the outcome. While the players are aware of when an attack is a hit, are they aware if the attack is a critical hit? If so they would know that using such features would be a waste of resources. This would also apply to rare features that can force a reroll after an attack roll is already made such as with the Rune Knight's Runic Shield feature. If a player knows that an attack is a critical hit they would be more inclined to use such features.

I'm a new DM and over the last few weeks I've been slowly learning the game and how it runs. My party consists of 5 PCs.   One thing I have been wondering after our last two sessions is: What rolls should all the players see and which rolls shouldn't they see?  Is there a comprehensive list of what rolls are public and which go behind the DM screen, or is it more down to house rules or personal preference?


I am writing my thesis and using latex for first time. I would like to modify the the first page of my thesis, as it shows only name of thesis, my name etc. I would like to move all text little-bit to right-side, just on the first page, without effecting the other pages of thesis. Any idea how can I do it? I use ''right'' alignment instead of center, but it did not work.  \documentclass[a4paper,      12pt,      twoside,      openright,      cleardoublepage=empty,      numbers=noenddot,      appendixprefix,      BCOR1.5cm,      bibliography=totoc       ]{scrbook}     \thispagestyle{empty} \begin{titlepage} \begin{center}   %xyz   \end{center} \end{titlepage} \clearpage

I am writing my thesis and using latex for first time. I would like to modify the the first page of my thesis, as it shows only name of thesis, my name etc. I would like to move all  text little-bit to right-side, just on the first page, without effecting the other pages of thesis. Any idea how can I do it?  \documentclass[a4paper,      12pt,      twoside,      openright,      cleardoublepage=empty,      numbers=noenddot,      appendixprefix,      BCOR1.5cm,      bibliography=totoc      ]{scrbook}   \thispagestyle{empty} \begin{titlepage} \begin{center}  %xyz  \end{center} \end{titlepage} \clearpage


I know this is a recurring and sensitive issue.  I am not against the downvote the contrary, I sincerely believe that it is useful. But I think it should be constructive. We all have the right to error, among other things because English is not the native language of all and some times there are misunderstandings. This site is intended to find answers and also to progress. But sometimes, it's hard to understand the reason for the downvote.  This morning I had 2 downvotes for 2 answers was accepted one of which had this comment:     "That's exactly what i was looking for, thank you"   In this case, the response was good and was perfect for the user who had asked the question.  I suggest implementing a system for downvotes, like for using flags. For example, using a list of justifications such as:   Wrong answer  Off topic  Incomprehensible  ... Other (please specify)   Besides, if there was a downvote for my question, I would delete it.

Preamble: I know that 'give a reason when downvoting' is a very common request, and I assure you that I have read these posts and the discussions in them and my request is very different. This isn't about encouraging people to comment and is more about gathering metrics.  I'd like to see a feature whereby people who are downvoted get some better feedback on why they were downvoted, especially given that people rarely leave comments in practice.  So my suggestion is that when user clicks on the downvote, they are prompted to pick from a short list (No more than 5) of common reasons. It would be a popup that replaces the existing "Please consider adding a comment" box.  The user receiving the downvote would see how many people downvoted them for each reason, but not who did it. It would significantly address the issue of people being too lazy to comment or not wanting to comment (for fear of retaliation or any other reason) while helping to ensure the user gets useful feedback.  Perhaps the downvote could also be weighted based on whether or not a reason is picked.  For questions the list might look something like:   Not a question Not relevant to the subject area Trivial question with no research effort Poorly asked question Other   And for answers, this might be:   Nonconstructive or not an answer Incorrect or dangerous answer Poor explanation Doesn't answer the original question Other


Problem:     Let $a, b, c, d, e, f$ be nonnegative real numbers such that $a^2 + b^2 + c^2 + d^2 + e^2 + f^2 = 6$ and $ab + cd + ef = 3$. What is the maximum value of $a+b+c+d+e+f$?   How would I do this? Would we need to use Cauchy-Schwarz or any of those types of inequalities?  Edit: My question is different from the possible duplicate because the answers on that question are based on Lagrangian multipliers and mine is based on Cauchy-Schwarz

Let $a, b, c, d, e, f$ be nonnegative real numbers such that   $a^2 + b^2 + c^2 + d^2 + e^2 + f^2 = 6$. $ab + cd + ef = 3$. What is the maximum value of $a+b+c+d+e+f$ ?.   I was thinking about somehow manipulating the numbers to get $\left(a + b + c + d + e + f\right)^{2}$, but I don't really know what to do.


I have agreed to introduce a friend to D&D but I haven't played since AD&D 2nd Edition. I was more often a player than a DM but I am okay with performing that role. I will be starting our part off with the 5th edition Starter Set but is there anything I need to be aware/careful of making the transition?

I played 1st and 2nd edition AD&D a lot back in the day. But when 3rd edition came out, I dropped out of the hobby. Partly I just couldn't be bothered to re-learn the rules. The conversion systems, previews and material for 3rd edition I was seeing in Dragon and Dungeon magazines made it look like a very major change.  I recently picked up the new 5th edition starter set on a whim. Obviously the starter set rules are very stripped down in comparison to the full rules, but nevertheless, I was amazed by how comfortable and familiar the system felt. The only thing that felt like a truly radical change was the way things like thief skills and the like were now handled with a d20 instead of a percentage system.  There's plenty of information online (and here) comparing editions of the game in an incremental manner. But I'd be interested in a breakdown of how 2nd and 5th edition compare directly, specifically looking at whether there are broad areas of similarity.


I tried installing citrix as specified in link below    However, as per the last section of the link, KNOWN ISSUES, I am facing too the same issue, i.e., Citrix APPs windows displayed with empty graphics.  Since, I also login using other OS, I know the the Citrix apps windows which opens up in UBUNTU OS, is correct ( comparing the dimensions of the empty window), however, I am unable to view any graphics. In Plain english, the app window which opens up is empty, transparent and with out any control to display. However, actions like right click double click etc works , but all popup windows within this app is empty too.  I know I can always change to older version, however with older version, I have issues with cursor on the Citrix apps as it keeps on jumping and at times it needs too much patient to work with flickering and jumping mouse all over the screen.  Did someone tried to install Citrix Receiver 13.1 on Ubuntu 14.04 with some tweaks to overcome the empty window issue.

Has anyone managed to get the Citrix receiver client (icaclient) working in Ubuntu?


I am running Debian Jessie.  I am using Xterm, though I would prefer an answer which works in a virtual terminal as well.  Here, "backspace" is the key with the backwards arrow, two keys above the "enter" key on a typical US PC keyboard layout, if that is relevant.  I would like to have two separate shortcuts: "control+h" to move the cursor one character to the left (a modified vim keybinding of sorts) and "control-backspace" to delete the word before my cursor (traditionally the "control-w" functionality).  My problem is that I can only set one of those shortcuts in my .inputrc, because typing "control+backspace" is interpreted as if I had pressed control-h instead.  How can I separate these key's functionalities?  I have read a lot of information on it but have only become more confused.

For what I have tried, TAB and C-i in .inputrc seems to mean the same thing, whatever I bind to one is bound to the other. I know that originally, it was the same thing and that this behavior is kind of inherited from the old times but nowadays, apart from terminal emulators, all X applications makes the difference between a C-i and a TAB press.  So is there a way to run a terminal command ("complete" for example) when I press the TAB key and run another command when I press C-i?  (the same question applies for C-m and ENTER, C-z, C-d, and all these control sequences that I would like to send by other means than their original binding and apply my own commands to these precious keybindings)  And by the way, if you could explain a little bit the process from a keypress to a shell interpretation that would help me understand. For now I understood that keyboard events are translated by Xmodmap, then by .inputrc and that the result is interpreted by the shell or something like this.  I am currently using Guake, and sometimes gnome-terminal, as terminal emulators.  After following the link proposed in a comment, it appears that the terminal emulator is the element of the chain that transforms TAB keysym from X server into C-i, and sends it to the bash shell because it doesn't understand such things as TAB, ENTER and siblings. So configuring readline itself won't work as it comes after the terminal emulator and before the bash shell. The question could be then precised like this: How to configure my terminal emulator so it translates TAB and C-i, ENTER and C-m, etc, to different pairs of character sequences? Maybe make TAB and ENTER send a new custom escape sequence, that could be mapped in .inputrc later to the original commands, and finally be able to use C-i and C-m for other purposes. Or leave TAB and ENTER and make C-i and C-m send escape sequences instead.


I took the example of a red-black tree from the  and adjusted it for my own needs, but I get overlapping nodes in the bottom level of the tree:  \tikzset{     treenode/.style = {align=center, circle, draw=black, inner sep=0pt, text centered, font=\sffamily, thick, text width=2em},     w/.style = {treenode, black},     b/.style = {treenode, white, fill=black},     level/.style = {sibling distance=0.45\textwidth/#1} }  \begin{figure}     \begin{center}         \begin{subfigure}{0.45\textwidth}             \begin{tikzpicture}                 \node [w] {15-8}                     child {node [b] {4-9}                         child {node [w] {4-2}}                         child {node [w] {2-1}}                         child {node [w] {3-1}}                     }                     child {node [b] {4-6}                         child {node [w] {3-1}}                         child {node [w] {3-3}}                     };             \end{tikzpicture}             \caption{1}         \end{subfigure}         \begin{subfigure}{0.45\textwidth}             \caption{2}         \end{subfigure}         \vskip\baselineskip         \begin{subfigure}{0.45\textwidth}             \caption{3}         \end{subfigure}         \begin{subfigure}{0.45\textwidth}             \caption{4}         \end{subfigure}     \end{center} \end{figure}   resulting in    I've tried fiddling with the sibling distance parameter but can't get it to space out the nodes properly.  I've looked at some other answers but they use different packages to draw trees. Is there a good way to draw such trees in tikz without overlapping? Possibly using all the available 0.45\textwidth to space out the leaf nodes?

I'm trying to get a nice tree without the overlaps, can anyone help me to improve my code?  \documentclass{standalone} \usepackage{amssymb} \usepackage{amsmath} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{dsfont} \usepackage{tikz} \usetikzlibrary{shapes} \usetikzlibrary{graphs}  \begin{document}       \begin{tikzpicture}[baseline,level/.style={level distance=20mm, sibling distance =35mm/#1},scale=1]         \node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                 child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                     child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         }                     }                 }                    child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             }                         }                     }                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             }                         }                     }                 }             };     \end{tikzpicture} \end{document}


I have begun doing Android development a few months ago and it still blows my mind why an end-user that buys an Android machine cannot is is not allowed to have full access to it (aka root acccess), except through unsupported and dangerous hacks that grant root permission. For example, I want to send raw wifi packets for my current development idea, but the SDK doesn't allow this (for "security" resons?). An Android phone is a Linux machine after all, so what is going on?! My question is about the way Android is designed and distributed. I've read that people seem to say there is a malware risk, but isn't the risk just as high on a normal PC?

I know what root is for and how to use it etc. but I'm always wondering why don't we get the key for root access for our android phones? Why won't they add an extra sheet to the box with the key so that it doesn't have to be hacked or make it possible to request it for advanced users?  If I bought a phone why can't I use it freely?  Can somone explain the rationale behind this?   Is it a legal matter or just you are too dumb to use your phones and we want to protect you from yourselves?.  On Stack Overflow I was told it's an opinion based question but how can it be opinion based? There must be a reason why they won't reveal the root keys. I'd like to know why they made this decision rather than what you think about it which then really be opinion based.


If a westerner or other foreigners draws anime/manga art in their style the drawing,coloring,etc style will not resemble that of a japanese because it is not 100% authentic japanese style  However would it help if they went to japanese schools to tutored by japanese teachers(as it is happening in reality) for anime/manga in order draw and color anime/manga authentically to avoid inauthenticity ?

is created outside Japan but is called Anime officially, can a cartoonic show created outside Japan be called anime?   the official trailer by the official account of the studio on YouTube,  in the description it officially states that it is an Anime.


I'm a transcriptionist and also studying for my IELTS exam. I would like to know when is it correct to capitalize job titles such as receptionist, office assistant, general manager, veterinary assistant, etc. Thanks!

Would you capitalize the job title in the following sentence?      I am writing this letter in regard to Joe Brown who is applying for the director of teaching and learning position in the XYZ School District.


I am trying to read an XML file which is generated by Matlab (a XML representation of Simulink Model). For the sake of question I have shortened it.  Below is the XML.   <?xml version="1.0" encoding="utf-8"?> <ModelInformation Version="1.0">   <Model Name="MatlabToJenkinsIntegrationSample">
9.0

windows-1252
     <GraphicalInterface>
3
       <Inport Name="Input1">

off

-1

inherit
       </Inport>       <Inport Name="Input2 ">

off

-1

inherit
       </Inport>       <Inport Name="MultiplicationFactor">

off

-1

inherit
       </Inport>
1
       <Outport Name="Result">

off

inherit
       </Outport>

1.4

0

0
            </GraphicalInterface>   </Model> </ModelInformation>   I had a look at it and it gave a clear Class and it's properties(for me). So I generated the classes as shown below  public class Model {     public string Name { get; set; }      public string Version { get; set; }      public string SavedCharacterEncoding { get; set; }      public GraphicalInterface TheGraphicalInterface { get; set; } }  public class GraphicalInterface {     public List<InPort> InPorts { get; set; }      public List<OutPort> OutPorts { get; set; } }   And Similarly for InPort and OutPort.  Now the question is that how do I parse it into these classes. I can not wrap my head around it. Creating classes looks logical but after that I am not able to progress at all.   Please provide the input and a solution. There are no values as there in normal XML file. I have looked at certain examples but not able to find a solution.

How do I Deserialize this XML document:  <?xml version="1.0" encoding="utf-8"?> <Cars>   <Car>     <StockNumber>1020</StockNumber>     <Make>Nissan</Make>     <Model>Sentra</Model>   </Car>   <Car>     <StockNumber>1010</StockNumber>     <Make>Toyota</Make>     <Model>Corolla</Model>   </Car>   <Car>     <StockNumber>1111</StockNumber>     <Make>Honda</Make>     <Model>Accord</Model>   </Car> </Cars>   I have this:  [Serializable()] public class Car {     [System.Xml.Serialization.XmlElementAttribute("StockNumber")]     public string StockNumber{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Make")]     public string Make{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Model")]     public string Model{ get; set; } }   .  [System.Xml.Serialization.XmlRootAttribute("Cars", Namespace = "", IsNullable = false)] public class Cars {     [XmlArrayItem(typeof(Car))]     public Car[] Car { get; set; }  }   .  public class CarSerializer {     public Cars Deserialize()     {         Cars[] cars = null;         string path = HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_Data/") + "cars.xml";          XmlSerializer serializer = new XmlSerializer(typeof(Cars[]));          StreamReader reader = new StreamReader(path);         reader.ReadToEnd();         cars = (Cars[])serializer.Deserialize(reader);         reader.Close();          return cars;     } }   that don't seem to work :-(


Let $f$: $Z_m \rightarrow G$, $f(n)$ = $a^n$. Show that f is a function and an homomorphism.  Doing a review on the whole semester, and a little refresh on this topic would be great.   By definition I know $G$ has the same order of $Z_m$, but not sure how to attack this problem with ease.   I also know that cyclic groups of the same order are isomorphic.   (I cannot use the fact that cyclic groups of the same order are isomorphic, that's why I ask for another approach, because I can't use theorems or lemmas that have not been discussed in class.)

The proof goes on like this :   $Z$ denotes integers.  $a^m=e$ for some positive integer $m$. Let $n$ be the smallest positive integer such that $a^n=e$ if $s \epsilon Z$ and $s=nq+r$ for $0\le r < m$ then $$a^s=a^{nq+r}=a^r \ \ \ (*)$$.  Then after this statement, the book proves that all elements of the finite cyclic group is distinct and creates a homorphism between this group and  $<Z_{n},+_{n}>$  What I couldn't get in the proof is what does $(*)$ tell us? I couldn't understand it and why is it needed in the proof? Also why do we work with positive integers, why do we let $n$ be the smallest integer instead of minimizing $|n|?$


I was trying to solve a question asked in some PhD entrance exam but I got stuck in some options. The question is:  Let $R$ be the set of all functions from the set $\{1,2,...,10\}$ to $\mathbb{Z}_2$. Then $R$ is a commutative ring with pointwise addition and pointwise multiplication of functions. Then which of the following statements are true?  $R$ has a unique maximal ideal. Every prime ideal of $R$ is maximal. Number of Proper ideals of $R$ is $511$. Every element of $R$ is idempotent.   Now it is obvious that statement $4$ is correct. And I found that option $1$ is false because for each $a \in X$, the set of all functions which maps $a$ to $0$ forms a maximal ideal (consider the kernel of evaluation at $a$, i.e. the kernel of the map $T$ from $R$ to $\mathbb{Z}_2$ sending $f$ to $f(a)$. From here we get that $R/\ker T$ is isomorphic to $\mathbb{Z}_2$ and hence the ideal will be maximal). So, we get at least $10$ maximal ideals. But I could not get any hint in proving or disproving options $2$ and $3$. Any help would be appreciated.

Let $R =\{f:\{1,2,3,4,\cdots ,10\}\to \mathbb{Z}_2 \}$ be the set of  all $\mathbb{Z}_2$ -valued functions on the set $\{1,2,3......10\}$  of the first ten positive integer. Then $R$ is a commutative ring with point-wise addition and multiplication of functions. Which of the following is true?     1) $R$ has a unique maximal ideal.      2) Every prime ideal of $R$ is also maximal.      3 ) The number of proper ideals of $R$ is $511$.      4 ) Every element of $R$ is idempotent.   R is finite commutative ring so  every prime ideal  is maximlal ideal ,so I think option  2 is true   .But for the other options   I am  helpless  .


Since Enter posts a comment, it would be nice to be able to hit Esc to abandon a comment or editing it.

When editing a post, pressing Esc does the same thing as clicking the "cancel" link: it cancels the edit. However, when editing a comment, pressing Esc does nothing.  Could pressing Esc when editing a comment cancel that edit as well?


I tried to use a command block to teleport me, but I used a repeating one by mistake, and I'm like three walls away from it facing away so I can't delete it. So I'm stuck and I can't even turn my head and its on my favorite world. What do I do? Minecraft PE on an iPad.

I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?


Start by ignoring all of the advice posted here:   Then you can do this:  #!/usr/bin/env bash while read channel do     for property in $(xfconf-query -l -c $channel)     do         xfconf-query -c $channel -r -p $property     done done < channels.txt   ...  $ cat channels.txt displays ristretto thunar xfce4-desktop xfce4-keyboard-shortcuts xfce4-notifyd xfce4-panel xfce4-power-manager xfce4-session xfce4-settings-editor xfce4-settings-manager xfwm4 xsettings   Why is this a question? I don't have Stack Exchange points needed to reply to the actual thread.   Somebody please do the needful.

How do I reset my Xfce panels to the default settings that Xubuntu uses?


By considering the geometric series $1+z+z^{2}+...+z^{n-1}$ where $z=\cos(\theta)+i\sin(\theta)$, show that $1+\cos(\theta)+\cos(2\theta)+\cos(3\theta)+...+\cos(n-1)\theta$ = ${1-\cos(\theta)+\cos(n-1)\theta-\cos(n\theta)}\over {2-2\cos(\theta)}$  I've tried expressing $\cos(n\theta)$ as ${e^{in\theta}+e^{-in\theta}} \over {2}$ but I don't think that will lead anywhere. Does it help that $1+z+z^{2}+z^{3}+...+z^{n-1}$=$e^{0i\theta}+e^{i\theta}+e^{2i\theta}+e^{3i\theta}+...+e^{(n-1)i\theta}$?  So the sum $\sum_{r=0}^{n-1} e^{ir\theta}$=${e^{ni\theta}-1} \over {e^{i\theta}-1}$  Thank you in advance :)

Possible Duplicate:          Prove $$\cos(\alpha) + \cos(\alpha + \beta) + \cos(\alpha + 2\beta) + \dots + \cos[\alpha + (n-1)\beta] = \frac{\cos(\alpha + \frac{n-1}{2}\beta) \cdot \sin\frac{n\beta}{2}}{\sin\frac{\beta}{2}} $$


I'm searching for a word representing "Negatively surprising", or "Negatively amused" in an appropriate form. Example: Someone who proclaims he aims to do things in the right way has done something in the completely opposite way.    How could you have done such a thing? That action is very ___.   Said with the purpose of showing the contrast between the expected and the actual, and asking for change to adhere with his set goals, instead of just pointing out disappointment.  It is different from  because it asks there about surprise of being affected by the disappointment. The meaning of surprise here is different.

I know the question a bit vague but that's the only plausible inquiry I could come up with. I wanted to what word can be used if someone is disappointed and they are surprised as to the fact that to start with they never thought the subject matter or the person which disappointed them would have such an effect on them.


I think Kaluza/Klein was partly worked on to find additional dimensions to account for electric and magnetic fields.  I am confused why the gravity field gets the privileged spot of distorting space-time, whereas electric and magnetic fields have to use some other mechanism.  Is this somehow related to electric and magnetic fields having attractive and repelling force modes?

It is written everywhere that gravity is curvature of spacetime caused by the mass of the objects or something to the same effect. This raises a question with me: why isn't spacetime curved due to other forces or aspects of bodies?  Why isn't it that there are curvatures related to the charge of a body or the spin of particles or any other characteristics?


I know similar things have been asked before, but they either apply to grub 1 or I am just too ignorant in the subject matter to follow the answers. I can't get ubuntu, bootloader, or windows recovery to boot from a usb (which is how I ran and installed ubuntu in the first place.) I just need a working computer ASAP for an upcoming project and am lost can someone explain it like I'm 5?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


My code is as follows  for(User user: userList){             if(user.getName()==null){                 userList.remove(user);             }         }   here i am checking for null value of name property but it trows null pointer exception on checking the condition  StackTrace  java.util.ConcurrentModificationException     at java.util.ArrayList$Itr.checkForComodification(Unknown Source)     at java.util.ArrayList$Itr.next(Unknown Source)     at in.net.usit.dbu.web.transformation.TransformationViewModel.initializeData(TransformationViewModel.java:106)     at in.net.usit.dbu.web.transformation.TransformationViewModel.init(TransformationViewModel.java:91)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:111)     at org.zkoss.bind.impl.AbstractAnnotatedMethodInvoker.invokeMethod(AbstractAnnotatedMethodInvoker.java:87)     at org.zkoss.bind.BindComposer.doAfterCompose(BindComposer.java:170)     at org.zkoss.zk.ui.impl.UiEngineImpl.doAfterCompose(UiEngineImpl.java:534)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:836)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:782)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:691)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:753)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:713)     at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:655)     at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1036)     at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:246)     at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:238)     at org.zkoss.zul.Include.afterCompose(Include.java:450)     at org.zkoss.zul.Include.onAfterCompose(Include.java:434)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2725)     at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2655)     at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)     at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1721)     at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1506)     at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1216)     at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:601)     at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:483)     at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:492)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)   this is the stacktrace i don't how to find the solution please help me with that

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?


Could you tell me if there is any difference in meaning between the following sentences?  Until now I didn't realize that you can sing so well. Until now I hadn't realized that you can sing so well.  Are both sentences perfectly grammatically correct and natural? If no, could you explain why? If both perfecly natural and grammatical, then which one is more common?

Did you hear that the engine produced some sounds? No, I had not noticed.  And also other verbs:  I did not know. I did not see. I had not heard.  With some verbs it is common to use the perfect aspect (had not), with some not. For instance, had not known  at all. What's the reason?


I know that it’s possible to cast spells with a higher level spell slot than what it’s original spell level requires and several spells even give extra benefits for doing so. What I was wondering is if you cast a spell with a higher level spell slot, does the spell become the same level as the spell slot.  For example is someone casts Scorching Ray (a second level spell) with a seventh level spell slot, would the resulting spell be a seventh level spell or a second level spell? I’m curious about this because I want to know how things like counter spell and dispel magic interact with this mechanic.  Thanks!

As the title says: Is a 1st-level spell cast using a 4th-level slot a 1st-level spell, or a 4th-level spell?


We have to calculate $$\lim _{n\to\infty} \int_0^\pi \frac{\sin x}{1+\cos^2(nx)}dx$$ Now I thought that perhaps the integral needs to be calculated in terms of $n$ and then we plug in the limit but I could find no way to do it.   Perhaps it is non-integrable as an indefinite integral but I couldn't find any way to do this even as a definite integral. I observed the fact that the integrand is an even function but even that just serves to reset the limits of the integral.  So now I'm completely stuck. I think Sandwich theorem may be used by establishing two estimates for the integral which are close to the integrand but I'm not sure how to do this. Any help would be appreciated.

Evaluate the limit  $$\displaystyle\lim_{n \to \infty} \int_{0}^{\pi} \frac{\sin x}{1+\cos ^2(nx)} dx$$  Using property of definite integral $\int_{0}^{2a} f(x).dx=2\int_{0}^{a} f(x)dx$,when $f(2a-x)=f(x)$ I got  $$\displaystyle\lim_{n \to \infty} \int_{o}^{\pi} \frac{\sin x}{1+\cos ^2(nx)} dx=2\displaystyle\lim_{n \to \infty} \int_{o}^{\pi/2} \frac{\sin x}{1+\cos ^2(nx)} dx$$ but I cannot proceed after that. Could someone provide me with some hint? Till now I have only done integration in terms of elementary functions. Any hint would be appreciated.


I have a contact form on my site with the following php script but when people compile the form e send a message from my site, I receive their message always in spam..   So if i'm not careful to check always my spam folder, i lost messages received from my site..  I don't know how to solve this problem.. thanks in advance!  <?php include('SMTPClass.php');  $use_smtp = '0'; $emailto = 'antonycee@gmail.com';  // retrieve from parameters $emailfrom = isset($_POST["email"]) ? $_POST["email"] : ""; $nocomment = isset($_POST["nocomment"]) ? $_POST["nocomment"] : ""; $subject = 'Email da festeprivateroma.com'; $message = ''; $response = ''; $response_fail = 'There was an error verifying your details.';      // Honeypot captcha     if($nocomment == '') {          $params = $_POST;         foreach ( $params as $key=>$value ){              if(!($key == 'ip' || $key == 'emailsubject' || $key == 'url' || $key == 'emailto' || $key == 'nocomment' || $key == 'v_error' || $key == 'v_email')){                  $key = ucwords(str_replace("-", " ", $key));                  if ( gettype( $value ) == "array" ){                     $message .= "$key: \n";                     foreach ( $value as $two_dim_value )                     $message .= "...$two_dim_value<br>";                 }else {                     $message .= $value != '' ? "$key: $value\n" : '';                 }             }         }      $response = sendEmail($subject, $message, $emailto, $emailfrom);      } else {          $response = $response_fail;      }  echo $response;  // Run server-side validation function sendEmail($subject, $content, $emailto, $emailfrom) {  $from = $emailfrom; $response_sent = 'Grazie. Il tuo messaggio è stato ricevuto.'; $response_error = 'Error. Please try again.'; $subject =  filter($subject); $url = "Origin Page: ".$_SERVER['HTTP_REFERER']; $ip = "IP Address: ".$_SERVER["REMOTE_ADDR"]; $message = $content."\n$ip\r\n$url";  // Validate return email & inform admin $emailto = filter($emailto);  // Setup final message $body = wordwrap($message);  if($GLOBALS['use_smtp'] == '1'){      $SmtpServer = 'SMTP SERVER';     $SmtpPort = 'SMTP PORT';     $SmtpUser = 'SMTP USER';     $SmtpPass = 'SMTP PASSWORD';      $to = $emailto;     $SMTPMail = new SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body);     $SMTPChat = $SMTPMail->SendMail();     $response = $SMTPChat ? $response_sent : $response_error;  } else {      // Create header     $headers = "From: $from\r\n";     $headers .= "MIME-Version: 1.0\r\n";     $headers .= "Content-type: text/plain; charset=utf-8\r\n";     $headers .= "Content-Transfer-Encoding: quoted-printable\r\n";      // Send email     $mail_sent = @mail($emailto, $subject, $body, $headers);     $response = $mail_sent ? $response_sent : $response_error;  } return $response; }  // Remove any un-safe values to prevent email injection function filter($value) { $pattern = array("/\n/", "/\r/", "/content-type:/i", "/to:/i", "/from:/i", "/cc:/i"); $value = preg_replace($pattern, "", $value); return $value; }  exit;  ?>

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.


Can someone please solve this and explain the steps taken to reach this solution ?

I'm trying to prove that $a^n+1$ can only be prime if $n$ is a power of $2$. Is there a general factorization of $a^n+1$?


When I write a document, I get always Underfull and Overflow warnings. I know what do these warnings mean.   I want to know what LaTeX (TEX I guess) does to format a paragraph. I mean, how it decides where to break a line, for example. I have got an Underfull warning on paragraph I wrote (sorry I don't have it now); as a result, I got a part of the word development (lopment) written in the margin.   Why does LaTeX not wrote deve- in the first line and lopment in the next line?

Here is a short file which produces an overfull hbox:  \documentclass[12pt]{report} \usepackage[left=1.5in,right=1in,paperwidth=8.5in,paperheight=11in]{geometry} \begin{document} \trivlist \item[\hskip\labelsep{\bf2.3.12 Corollary [Isomorphisms are indexed bijections]:}] Consider the functions $f$ and $g$ \endtrivlist \end{document}   If I replace functions with func-\linebreak tions, the word is split across two lines, resulting in neither an overfull nor an underfull hbox. However, neither func\-tions nor func-tions produces this behavior. Why not? Is there a better way to convince TeX that it's okay to hyphenate this word to prevent an overfull box?


Recently I installed Pages which I purchased with version of iWork '09. Unfortunately this operation downloaded and installed version Pages 5.5.3 which is not exactly an upgrade of Pages '09. Hopefully, the old version is still there (/Applications/iWork '09/Pages.app), but I suspect that the 2 of them are using the same sets of application dependant files for templates, styles...  Pages '09 and Pages 5.5.3 are different products, and the last one would have been more appropriately named Pages Light or Little Pages. Every time I open a Pages file (with Pages 5.3.3) I get warnings about incompatibilities and unsupported functions and I am threaten to save my work with these missing pieces (ex.: bookmarks) without any chance to check the real difference on a large document. For me this is a file corruption.  Hence I would like to uninstall cleanly Pages 5.5.3 to avoid any internal misbehaviour and file corruption.  (Pages 5.5.3 is an example which is an annoying one, disturbing my work. But I have the same problem with applications I installed to check their real functions. Then I discovered these to not correctly answer my needs. I would like to be able to cleanly and safely uninstall these useless applications.)  After scanning all menu entries (with the ⌥ key pressed too) and the internal help, I discovered that I can't find an easy way to uninstall an application installed within App Store.  Clearly this function isn't within App Store.  What is the correct and safe method to uninstall an App Store application, with a resonable control this won't damage any related application?

I want to uninstall some recently installed software which I installed using the Mac App Store. Is is possible to uninstall those programs from inside the App Store?


I am attempting to spin up 1000x Docker containers via:  nohup docker run --rm --name n-$1-$2 n-v2 bash -c "/root/sw/run.sh $1 $2" 2> ~/logs/log-$1-$2.log &   But after about 500x containers I start getting the following error:  fork: retry: No child processes   The server I am running this on has 48x cores and 192 GB of ram ... I should be able to spin up several thousand of these containers with no problem ... is there a way to increase this limit?  After doing some googling I found that I can check the number of max forks via ulimit -u ... is there a way to change this?  Soren A's answer seems legit, however it doesnt seem like this solved the issue.  I can get to ~12287 threads (checed via cat /sys/fs/cgroup/pids/user.slice/user-1000.slice/pids.current) before I start hitting the same issue ...  both my hard and soft limits in /etc/security/limits.conf are set to 99999999 yet I am still being capped at around 12287

I am trying to run a shell script which will create process using a shell script. I get Resource temporarily unavailable error. how to identify which limit (memory/process/filecount) is creating this problem. Below is my ulimit -a results.  core file size          (blocks, -c) 0 data seg size           (kbytes, -d) unlimited scheduling priority             (-e) 0 file size               (blocks, -f) unlimited pending signals                 (-i) 563959 max locked memory       (kbytes, -l) unlimited max memory size         (kbytes, -m) unlimited open files                      (-n) 65535 pipe size            (512 bytes, -p) 8 POSIX message queues     (bytes, -q) 819200 real-time priority              (-r) 0 stack size              (kbytes, -s) unlimited cpu time               (seconds, -t) unlimited max user processes              (-u) 10000000 virtual memory          (kbytes, -v) unlimited file locks                      (-x) unlimited


Combination Ctrl+Alt+Del in Windows calls Task manager. You can see running processes and kill any task. Is there anything like this in Ubuntu? Thanks in advance

On Windows anytime the system hangs Ctrl-Alt-Del brings up the Start Up Manager, from which you can end the program or process causing the hang.  Is there any command like this on Ubuntu?


I am having an issue where I have Parent folder that has full permissions.. I can create a new folder and that folder also has full permissions. However when I copy a folder over to this parent Directory and try to create a new directory to this copied directory. it loses all permissions.. is there a way to retain permissions to the copied folders..

So I was going to back up my home folder by copying it to an external drive as follows:  sudo cp -r /home/my_home /media/backup/my_home   With the result that all folders on the external drives are now owned by root:root. How can I have cp keep the ownership and permissions from the original?


When I set the document to my local langage, French, and with appropriate quote style in LyX, this preamble doesn't work (neither hang nor multiple, which other options do work),  \usepackage[hang,multiple]{footmisc}   I could visualize the 'hang' behaviour correctly when switching back to English.  Same with 'multiple'.  I am glad to see that hang can even be cumulated with para -- it actually fixes the para layout!  Unfortunately none of them (and maybe other footmisc options aswell) do work in my configuration when setting up the language.  LyX 2.0.5.1 MiKTeX 2.9 up-to-date

I have a book containing essays variously in English and French and wish hyphenization and other aesthetic issues to match whatever language is in use at the moment, but I want footnotes to follow a single style throughout. I've defined that style (hanging) using footmisc and have loaded babel with options [english,french].  My problem is that when babel is fed the option french, footnotes appear in French style, indented rather than hanging; if I omit the option french, the footnotes come out hanging, but there are periodic hyphenization errors. Below I show my code without option french (I've included geometry and \familydefault options in order to reproduce a particular error):  \documentclass[12pt]{book} \usepackage[tmargin=1.25in, bmargin=1.25in, lmargin=1.25in, rmargin=1.25in]{geometry} \geometry{letterpaper}  \usepackage[english]{babel} \usepackage[hang]{footmisc}  \renewcommand{\familydefault}{qtm}  \begin{document}  Il est possible de tirer quelques conclusions de ces r\'esultats. Il para\^itrait que l'\'eglise du milieu du XIIe si\`ecle comportait vraisemblablement un chevet plat, construit sur l'emplacement du mur Gallo-Romain qui a \'et\'e arrach\'e sur une longueur correspondant \`a la largeur de l'\'eglise actuelle.\footnote{Apr\`es tamisage, les ossements et les deux planches ont \'et\'e remis en place sous l'escalier. Ces deux cercueils en ch\^ene \`a clous forg\'es semblaient assez r\'ecents.}  \end{document}   Output (observe the herniated right margin of the text and the footnote's hanging style):      Here is the code with french included in babel's input:  \documentclass[12pt]{book} \usepackage[tmargin=1.25in, bmargin=1.25in, lmargin=1.25in, rmargin=1.25in]{geometry} \geometry{letterpaper}  \usepackage[english,french]{babel} \usepackage[hang]{footmisc}  \renewcommand{\familydefault}{qtm}  \begin{document}  Il est possible de tirer quelques conclusions de ces r\'esultats. Il para\^itrait que l'\'eglise du milieu du XIIe si\`ecle comportait vraisemblablement un chevet plat, construit sur l'emplacement du mur Gallo-Romain qui a \'et\'e arrach\'e sur une longueur correspondant \`a la largeur de l'\'eglise actuelle.\footnote{Apr\`es tamisage, les ossements et les deux planches ont \'et\'e remis en place sous l'escalier. Ces deux cercueils en ch\^ene \`a clous forg\'es semblaient assez r\'ecents.}  \end{document}   Output (observe the correctly justified right margin of the text and the footnote's indented style):      In addition, with babel set for English alone, I've tried setting the hyphenrules environment to french around the French essays, hoping to see only hyphenization follow French style and the footnotes be left alone, but no joy.


Let $f\colon \mathbb{R} \mapsto   \mathbb{R}$ be a function with the property that the image of every connected set is connected. Is $f$ necessarily continuous?  I've recently learned the definition of connected set and i'm still not totally confortable with it. I thought about the function $f(x)=\sin(1/x)$ for all real non zero $x$ and $f(0)=0$ (obviously discontinuous) for a counterexample but i'm not certain that the image of every connected set is connected...  Thank you in advance for your help!

Continuity $\Rightarrow$ Intermediate Value Property. Why is the opposite not true?    It seems to me like they are equal definitions in a way.    Can you give me a counter-example?    Thanks


I am attempting to learn an exercise in the chapter on Rouche's Theorem in Ahlfors Complex Analysis. It comes from page 154, number 3:   Find the number of zeros of  $$f(z) = z^4 + 8z^3 + 3z^2 + 8z + 3 = 0$$ in the right half plane.   My first thought was to try to use Rouche's Theorem, but this has been to no avail.  Does anyone have any thoughts as to how to approach this problem. I am almost sure that I am going to need to use a semi circle (in the right half plane) centered at zero. The question is how.

This is a question in Ahlfors in the section on the argument principle: How many roots of the equation $f(z)=z^4+8z^3+3z^2+8z+3=0$ lie in the right half plane?  He gives a hint that we should "sketch the image of the imaginary axis and apply the argument principle to a large half disk."  Since $f$ is an entire function, I think I understand that the argument principle tells us that for any closed curve $\gamma$ in $\mathbb{C}$, the winding number of $f(\gamma)$ around 0 is equal to the number of zeros of $f$ contained inside $\gamma$.  How would you go about actually applying the hint though? I am having trouble figuring out what the image of a large half disk under $f$ would look like.


I'm running out of space on my root partition. Currently, I'm using   uname -a Linux thinkpad-nc 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux   Here is an output of df:  df -h Filesystem      Size  Used Avail Use% Mounted on udev             16G     0   16G   0% /dev tmpfs           3.2G   18M  3.2G   1% /run /dev/nvme0n1p2   28G   26G  226M 100% / tmpfs            16G  234M   16G   2% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs            16G     0   16G   0% /sys/fs/cgroup /dev/nvme0n1p4  410G   86G  303G  23% /home /dev/nvme0n1p1  511M  132K  511M   1% /boot/efi tmpfs           3.2G  4.0K  3.2G   1% /run/user/112 tmpfs           3.2G   20K  3.2G   1% /run/user/1000   I have already done an autoclean and removed not needed linux headers. What else can I do or how can I inspect what is going on.

I'm looking for a linux alternative to . I would like to know what is taking up space on my hard drives.  A program that works on console and doesn't require a UI is preferred .


can anyone tell me how this is illegal shadowing in JS?   let a = 10;  {   var a = 20; }    What I know is var 'a' will be created at global space and let 'a' is created at script space. Both are different memory location so why above shadowing is not possible

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


In lecture notes I am reading which are based on Tibshirani book on Statistical Learning in R, I am seeing that from the residuals $r_i = Y_i - x_{i}^{T}\hat{\beta}$ the usual estimate for $\sigma^2$ is: $$\sigma^2 = \frac{1}{n - p}\sum_{i = 1}^{n}r_i^2$$ Where $i$ is $i$-th sample, $n$ is number of samples and $p$ is number of predictor variables of $x_i$.  If I understand correctly $n - p$ is number of degrees of freedom, but what I do not understand is how did we come to this conclusion. Is there any way to understand how did we come up to scaling by factor $\frac{1}{n - p}$. Note that I am only entering the statistics field, and that my previous experience is only on probability theory.

The problem comes from linear regression. Assume the regression function is linear, i.e.  $$ f(X) = \beta_0+\sum_{j=1}^pX_j\beta_j $$ .Given a set of training data $(x_1, y_1),\ldots,(x_N,y_N)$,we try to estimate the parameters $\beta$ by minimizing the residual sum of squares:  $$\text{RSS}(\beta) = (\sum_{i=1}^N(y_i-\beta_0-\sum_{j=1}^px_{ij}\beta_j)^2$$ Here each $x_i=(x_{i1},\ldots,x_{ip})^T$ is vector in $\mathbb{R}^p$,$y_i\in\mathbb{R}$,and $\beta=(\beta_0,\ldots,\beta_{p+1})$. Let $\mathbf{X}$ denote matrix $(x_1,\ldots,x_N)^T$, $\mathbf{y}=(y_1,\ldots,y_N)$ and assume it has full column rank, it's easy to get $$\hat{\beta}=(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{X}^T\mathbf{y}$$ Suppose $\mathbf{\hat{y}}=\mathbf{X}\hat{\beta}$, and $\mathbf{y}=\mathbf{X}\beta$ for some $\beta$, to pin down the sampling properties of $\hat{\beta}$, now assume that the observations $y_i$ are uncorrelated and have constant variance $\sigma^2$, and that the $x_i$ are fixed(non random). It's easy to see that $$\text{Var}(\hat\beta) = (\mathbf{X}^T\mathbf{X})^{-1}\sigma^2$$ ,so we turn to estimating the $\sigma^2$, and now comes the question: Let $\hat\sigma$ defined as below: $$\hat\sigma^2=\frac{1}{K}\sum_{i=1}^N(y_i-\hat{y_i})^2$$ It is said that only when $K=N-p-1$ did $\hat\sigma$ be an unbiased estimator of $\sigma$. But how do $p$(the dimension of $x$) be introduced in?


In my Microsoft Word 2007 document there is a text format board. I want to convert this document to an image but can't take a screenshot of the entire file due to its length. How do I accomplish this?

Is there any way to convert a Word document to an image? I suppose you can print screen, but that is pretty painful.


Currently I am able to connect to a SQL server, fetch data through the tables and export the results in a .xlsx file, but I am able to export only one set of results instead of the two set of results that SQL displays in Microsoft SQL Server.   This is the set of results that I receive from SQL.    This is my Python code that I use to connect to the database, extract results and save them in an Excel file.  from openpyxl import Workbook from datetime import timedelta, date import pypyodbc  def extract_from_databases():      # declare cursors for the rows of the .xlsx file     # in openpyxl, you start counting from row 1 and row 1 contains the headers     row_main_file = 2      #set the start date of yesterday     start_date = date.today() - timedelta(days=1)      # declare the SPs     retrieve_values = "[MSA].[CSchema].[DEV_N2G_GetData_ResultsExport] @start_date='{start_date:%Y-%m-%d}'".format(     start_date=start_date)      #connect to the database     database_connection = pypyodbc.connect(driver="{SQL Server}",     server="10.xxx.xxx.xxx", uid="xxxx", pwd="xxxxx", Trusted_Connection="No")       #declare main cursor in SQL     main_cursor = main_connection.cursor()      print("The execution of SPs is in process")     main_cursor.execute(retrieve_values)     main_cursor_results = main_cursor.fetchall()      c_wb = Workbook()     c_s =  c_wb.active     c_s.title = "Data Sheet 1"     c_s['A1'] = "Date"     c_s['B1'] = 'hour'     c_s['C1'] = 'CName'     c_s['D1'] = 'SName'     c_s['E1'] = 'SCname'     c_s['F1'] = 'CS_I'     c_s['G1'] = 'CS_D'     c_s['H1'] = 'PS_I'     c_s['I1'] = 'PS_D'      for index, value in enumerate(main_cursor_results):         try:             # extract from the tuple 'results' the value of each item and store it in every column for all rows             c_s.cell(row=row_main_file, column=1).value = value[0]             c_s.cell(row=row_main_file, column=2).value = value[1]             c_s.cell(row=row_main_file, column=3).value = value[2]             c_s.cell(row=row_main_file, column=4).value = value[3]             c_s.cell(row=row_main_file, column=5).value = value[4]             c_s.cell(row=row_main_file, column=6).value = value[5]             c_s.cell(row=row_main_file, column=7).value = value[6]             c_s.cell(row=row_main_file, column=8).value = value[7]         except:             print("Error in line %s\n data=%s" % (index, value))         row_main_file = row_main_file + 1     c_wb.save("C:\\Users\\xxx\\outputs\\Workbooks\\export_results.xlsx")     print("The writing process for the values.")     colombia_cursor.close()   How can I export the two sets of results from SQL in two worksheets?

I'm using python\pyodbc and would like to access the second result set of a stored procedure. As near as I can tell, pyodbc does not support multiple result sets. Additionally, I can't modify the stored procedure. Are there any options to access the second result set using SQL or some other work-around? Perhaps create a second stored procedure that only returns the second result set of the first?