I'm having some basic problems with bevels. Or rather with resetting the scale of my object.  To recreate my problem.    Create  abox scale it in x:10, and z 0.1 ctrl+A choose apply scale to deltas select long edge on the mesh and ctrl+b to bevel. Bevel is not even.   What am I doing wrong?

I'll preface this by saying I'm very new to Blender - I'm trying to put a bevel on an edge, looks something like this:    As you can see, the vertical side is much longer than the horizontal side.  When I apply to bevel to the edge there, the bevel stretches proportionally - so there's 'more' bevel on the longer side.  I want to bevel without any 'ratio' like that - just a 45-degree bevel, if that makes any sense.  Do I have to put in a loop cut to make the side lengths equal?  I tried using a sub-surf modifier, but it applies on a bunch of nearby edges, when I just want to round this one corner.


How can I force Apache if URI start with "admin-" pattern or contain "admin/user/login" redirect to https of the same uri.  For example:  If the URI is :   http://examplesite.com/admin-2dns24dw    Redirect to :  https://examplesite.com/admin-2dns24dw    And if the URI is :  http://examplesite.com/en/admin/user/login/msg   redirect to :  https://examplesite.com/en/admin/user/login/msg   And if any https URI that hasn't any of this patterns should be redirect to http of same URL.  For example:  If the URI is :   https://examplesite.com/fa/dashboard   Redirect to :  http://examplesite.com/fa/dashboard   **  UPDATE **  I tried:   RewriteCond %{HTTPS} !=on  RewriteCond %{THE_REQUEST} admin-|admin/users/login [NC]  RewriteRule ^(my) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]   but it didn't worked.  whats the problem?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I have some c files that I want to compile separately and link them together using a bat file. I will compile/link them using gcc.  The problem is that new c files might be added and I want the bat file to compile/link everything without knowing the exact number of files(without modifying the bat file).  Something like :  for X=1:number_of_c_files     gcc -c sourceX.c   and then link them together.   All the files  are named compile_to_cX.c , where X is a value from 1 to the number of c files from the directory.  Thanks in advance !

How do you iterate over each file in a directory with a .bat or .cmd file?  For simplicity please provide an answer that just echoes the filename or file path.


I feel sure that I read about this somewhere but can't remember the details. The problem I have is this:  I have two functions  def go_foo():     print("foo")  def go_bar():     print("bar")   and this variable:  name = "foo"   I want to use name to call one of my functions like this:  go_{name}()  #output in this case would be foo   How can this be achieved?

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


I have an apex class which fetches and upserts data from external source to Salesforce. Below is the batch class: global class PolicyCalloutBatchClass implements Database.Batchable<Integer>,Database.AllowsCallouts, Database.Stateful {  global Iterable<Integer> start(Database.BatchableContext context) {        Integer[] values = new Integer[0]; while(values.size() < 2999) {     values.add(values.size()); } return Test.isRunningTest() ? new Integer[1] : values ; }     global void execute(Database.BatchableContext context, Integer[] values) {                  HttpRequest policyreq = new HttpRequest();         policyreq.setMethod('GET');         policyreq.setTimeout(120000);         policyreq.setEndpoint('<endpoint>');         policyreq.setHeader('Authorization', 'Bearer ' + <token>);         Http policyhttp = new Http();         HTTPResponse policyres = policyhttp.send(policyreq);         String policyresponse = policyres.getBody();         JsonParser objJsonParser = (JsonParser) JSON.deserialize(policyresponse, JsonParser.class);                    JsonParser.cls_value clsValue = objJsonParser.value;         Map<String, JsonParser.cls_data> clsDataMap = new Map<String, JsonParser.cls_data>();         for(JsonParser.cls_data objClsData: clsValue.data){             clsDataMap.put(objClsData.id, objClsData);         }         list<Policy__c> updatelist = new list<Policy__c>();         for (String eachIdFromMap : clsDataMap.keySet()){                          Policy__c policy = new Policy__c(                 unique_id__c = clsDataMap.get(eachIdFromMap).id,                 agent_id__c = clsDataMap.get(eachIdFromMap).agentId);             updatelist.add(policy);           }         try{             upsert updatelist unique_id__c;             }         catch(DmlException e){             system.debug('This class didnt compile');         }     }     global void finish(Database.BatchableContext context) {              } }  Below is my Mock test class: global class MockHttpResponseGenerator implements HttpCalloutMock {     // Implement this interface method     global HTTPResponse respond(HTTPRequest req) {         String jsonbody = '{ ' +               '"id": "11111"' +               '}' ;          HttpResponse objHttpResponse = new HttpResponse();         objHttpResponse.setBody(jsonbody);         objHttpResponse.setHeader('Content-Type', 'application/json');         objHttpResponse.setStatusCode(200);         return objHttpResponse;     } }  Below is my test class:   @isTest  private class PolicyUpdateController_Test {     static testMethod void testPostCallout() {         Test.setMock(HttpCalloutMock.class, new MockHttpResponseGenerator());                    Test.startTest();         PolicyCalloutBatchClass  obj = new PolicyCalloutBatchClass ();         Database.executeBatch(obj, 50);          Test.stopTest();              } }  Though I am not seeing any errors in my code, my batch apex class is covered only 8%. Complete execute method is left uncovered. Can anyone please suggest the changes to my above test class so that I can get this done. Thank you in advance!

I have an apex class which fetches and upserts data from external source to Salesforce. Below is the batch class: global class PolicyCalloutBatchClass implements Database.Batchable<Integer>,Database.AllowsCallouts, Database.Stateful {     global Iterable<Integer> start(Database.BatchableContext context) {         Integer[] values = new Integer[0];         while(values.size() < 2999 || Test.isRunningTest()) values.add(values.size());         return values;     }     global void execute(Database.BatchableContext context, Integer[] values) {                  HttpRequest policyreq = new HttpRequest();         policyreq.setMethod('GET');         policyreq.setTimeout(120000);         policyreq.setEndpoint('<endpoint>');         policyreq.setHeader('Authorization', 'Bearer ' + <token>);         Http policyhttp = new Http();         HTTPResponse policyres = policyhttp.send(policyreq);         String policyresponse = policyres.getBody();         JsonParser objJsonParser = (JsonParser) JSON.deserialize(policyresponse, JsonParser.class);                    JsonParser.cls_value clsValue = objJsonParser.value;         Map<String, JsonParser.cls_data> clsDataMap = new Map<String, JsonParser.cls_data>();         for(JsonParser.cls_data objClsData: clsValue.data){             clsDataMap.put(objClsData.id, objClsData);         }         list<Policy__c> updatelist = new list<Policy__c>();         for (String eachIdFromMap : clsDataMap.keySet()){                          Policy__c policy = new Policy__c(                 unique_id__c = clsDataMap.get(eachIdFromMap).id,                 agent_id__c = clsDataMap.get(eachIdFromMap).agentId);             updatelist.add(policy);           }         try{             upsert updatelist unique_id__c;             }         catch(DmlException e){             system.debug('This class didnt compile');         }     }     global void finish(Database.BatchableContext context) {              } }  Below is my Mock test class: @isTest global class MockHttpResponseGenerator implements HttpCalloutMock {     // Implement this interface method     global HTTPResponse respond(HTTPRequest req) {           HttpRequest policyreq = new HttpRequest();         policyreq.setMethod('GET');         policyreq.setTimeout(120000);         policyreq.setEndpoint('<endpoint>');         policyreq.setHeader('Authorization', 'Bearer ' + <token>);         Http policyhttp = new Http();         HTTPResponse policyres = policyhttp.send(policyreq);         String policyresponse = policyres.getBody();                         return policyres;     } }  Below is my test class: @isTest  private class PolicyUpdateController_Test {     static testMethod void testPostCallout() {         Test.setMock(HttpCalloutMock.class, new MockHttpResponseGenerator());                    Test.startTest();       Database.executeBatch(new PolicyCalloutBatchClass(), 50);          Test.stopTest();              } }  Now, when I run the above test class, either the test class runs forever without any output or I could see the error as  System.LimitException: Too many callouts: 101  Can anyone please let me know if there is any way to get this done? Thanks!


i'm using ASUS K501U with Ubuntu 14.04 LTS and Gnome-shell 3.10.4, The screen brightness works only from settings, i tried that, but it disabled all my fn keys:  In the terminal: sudo gedit /etc/default/grub Change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=" Then, save the file. sudo update-grub Restart computer.   help me, please?

The brightness shortcuts via fn key don't work.  I tried each solution from . After editing /etc/default/grub file I rebooted.  GRUB_CMDLINE_LINUX="acpi_osi=Linux" GRUB_CMDLINE_LINUX="acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi=linux acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi_Linux"   What other workarounds/solutions are there?  Relevant output:  $ sudo lshw -C display   *-display UNCLAIMED             description: 3D controller        product: GK107M [GeForce GT 750M]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:01:00.0        version: a1        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff   *-display        description: VGA compatible controller        product: 4th Gen Core Processor Integrated Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 06        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:50 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)


Is there a way to order a collection by two properties? For example:  I have a PriorityProcess class, and I want to order a collection of these instances by priority (descending) and then arrival time (ascending), but I want this last sort not to overwrite the previous one, more like a sub-sort.  Suppose I have this array of processes:   P0 -> Priority = 1, Arrival Time = 0 P1 -> Priority = 2, Arrival Time = 3 P2 -> Priority = 1, Arrival Time = 8 P3 -> Priority = 3, Arrival Time = 16   I would like to sort it, so I end up with this:   P3 -> Priority = 3, Arrival Time = 16 P1 -> Priority = 2, Arrival Time = 3 P0 -> Priority = 1, Arrival Time = 0 P2 -> Priority = 1, Arrival Time = 8   Is there a way to accomplish this in a single LINQ instruction?  Thanks for your time

I have two tables, movies and categories, and I get an ordered list by categoryID first and then by Name.  The movie table has three columns ID, Name and CategoryID. The category table has two columns ID and Name.  I tried something like the following, but it didn't work.  var movies = _db.Movies.OrderBy( m => { m.CategoryID, m.Name })


I am an Indian studying in Toronto, returning to India via USA in a connecting flight. Do I need a transit visa?

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


I'm working on a problem from p. 166 of Lars Ahlfors' Complex Analysis:     If $u$ is harmonic and bounded in $0 < |z| < \rho$, show that the origin is a removable singularity in the sense that $u$ becomes harmonic in $|z|<\rho$ when $u(0)$ is properly defined.   My Solution So Far: This problem is screaming out to use the big Picard theorem...I would like to define a harmonic conjugate function $v:\{0<|z|<\rho\} \to \mathbb{C}$, also bounded,  and such that $u,v$ satisfy the Cauchy-Riemann equations. Then we would have that $f(z):=u(x,y) + i v(x,y)$ is analytic and bounded in $\{0<|z|<\rho\}$, so $0$ is a removable singularity, and thus we can fill it in for $u$.  I need to show that there exists such a $v$ and that it is also bounded. If the domain were simply connected, we could define   $$v(x,y) = \int_{(x_0,y_0)}^{(x,y)} -u_2(s,t)ds + u_1(s,t)dt, $$  which would be well-defined because the integrand is closed, owing to the harmonicity of $u$, so the integral is path-independent. But obviously it is not simply connected...how can we overcome this problem?  As to $v$ bounded, even if we could define it as above, I'm not sure how we could bound it on the open punctured disk. (I think we could bound it on any compact subset...)

After looking at this question for quite some time, I've asked a couple of other students, and they also couldn't seem to come up with an answer.  This is from an old qualifying exam at our university.  Let $u$ be a harmonic function bounded on the set $\{z:0 < |z| < 1\}$.  Can it always be defined at the point $ z= 0$ to become harmonic on the whole unit disk?  The standard argument with the logarithm doesn't work here, as it must be bounded on the punctured disk, and the logarithm blows up at $0$.   Also, we can't use any kind of harmonic conjugate argument because our domain is not simply connected.  Thus, I think it's probably true, but I haven't been able to come up with a proof.   Thanks in advance for any help!


import java.util.*; public class s22 {      public static void main(String[] args) {         //Your Code Here         Scanner sb=new Scanner(System.in);         int n=sb.nextInt();                 int i,j;         String[] st=new String[1000];                 String[] s=new String[n];         for(i=0;i<n;i++)         {             st[i]=sb.next();         }                  for(j=0;j<n;j++)                  {                 String[] m=st[i].split(" ");                  s[i]=m[m.length-1];                  }                  for(i=0;i<n;i++){                 System.out.println(s[i]);}                        } }  I tried this code but shows null pointer exception after entering first value. For example if I give input as:  john is sleeping, lisa rapper, beautiful flower,  The output should be like:  sleeping, rapper, flower

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?


SED command not replacing in bash under Debian, but works in command line.  Works in command line:   sed -i 's|/dev/disk/by-label/SR6D4|/dev/disk/by-label/SR4D4|g' /etc/my/config.xml   Not working in bash script, does not replace the string:  from="SR6D4" to="SR4D4" path_from="/dev/disk/by-label/${from}" path_to="/dev/disk/by-label/${to}" echo "sed -i 's|${path_from}|${path_to}|g' $file" sed -i 's|${path_from}|${path_to}|g' $file   Why doesn't replace string in file when using sed in bash?

I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' > new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/'


I am performing  longitudinal mixed modelling. What does it mean when a regressor (predictor) alone is not significant for the model (P>0.05) but when I add another predictor, which turns out to be non-significant, the first one is suddenly significant?: e.g.  In the following model age is not significant  Test_performance ~ age + sex, random=(~1 | subjects)  But when I add another variable (e.g. brain size), age is suddenly significant, event though brain size is not.   How is this possible and what does it mean?

I have what is probably a simple question, but it is baffling me right now, so I am hoping you can help me out.  I have a least squares regression model, with one independent variable and one dependent variable. The relationship is not significant. Now I add a second independent variable. Now the relationship between the first independent variable and the dependent variable becomes significant.  How does this work? This is probably demonstrating some issue with my understanding, but to me, but I do not see how adding this second independent variable can make the first significant.


What is the simplest way to bend a plain rod (subdivided cylinder) and give it a U-shape (for instance) ?  Here is a solution: As suggested by cegaton best option is using Warp (not Bend) with cursor on symmetry axis (distance gives radius) and 90° offset. Straight plain rod is changed to round rod with no deformation.

I'd like to curve my object, but I'm considering two options.  The first one is to make the object up with lots of vertices, like a sphere can be. The second is to apply some kind of modifier curve to a straight mesh, as I've understood there is such a possibility.  Here's an awesome pen drawing of what I'd like to achieve:    and here's my current even more awesome result:    Rather non-awesomely, they don't quite match. So if someone would kindly point me to the correct method to achieving a nice-looking solution with relatively low polygons, I'd be much enlightened


^ Please explain how my question is a duplicate of the one you linked.  I am trying to pass a multidimensional array into a function. The array looks something like this:  const char CHECKERS_ANIMATION[][8] = {     {0xcc,0xcc,0x33,0x33,0xcc,0xcc,0x33,0x33},     {0x33,0x33,0xcc,0xcc,0x33,0x33,0xcc,0xcc} };   I have bunch of these arrays. They are all Nx8 where N is known at compile time.  In my class header file I have a public method defined as such:  template <typename T, size_t frames, size_t rows> void playAnimation(int device_number, const T (&animation)[frames][rows], int iterations = 1, int speed = 50000);   The implementation of this method:  template <typename T, size_t frames, size_t rows> void LEDMatrix::playAnimation(int device_number, const T (&animation)[frames][rows], int iterations, int speed) { cout << "r: " << rows << ", f: " << frames << endl; for (int i = 0; i < iterations; i++) {     for (int j = 0; j < frames; j++) {         for (int k = 0; k < rows; k++) {             putRow(device_number, k, animation[j][k]);         }          usleep(speed);         clearDisplay(device_number);     } } }   The method is called as such:  obj->playAnimation(0, CHECKERS_ANIMATION);   I picked this approach, because I need to know the NxM size of the array inside the method.  When I compile this I get the following error:  /tmp/ccMH2CBE.o: In function `main': test.cpp:(.text.startup+0x44): undefined reference to `void LEDMatrix::playAnimation<char, 13u, 8u>(int, char const (&) [13u][8u], int, int)' collect2: ld returned 1 exit status   How can I resolve this? I have already killed two days trying to solve what I think is a simple problem.  Thank you.

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


I have a strange behavior for remote sqlplus login to Oracle 11.2 that I cannot explain:  1) I have an Oracle 11.2 server running on a virtual host, say host1 2) I set up another VM, say host2 (CentOS 6.5 x86_64) with oracle-instantclient 11.2.0.4 64bit, built up from a minimal install ISO 3) I also downloaded a CentOS 6.5 x86_64 VM image from the net (a desktop install with everything already installed), say host3, on which I installed the same Oracle instantclient  I use the same environment and tnsnames.ora file on both host2 and host3, something like:  MONSTER= (DESCRIPTION=     (ADDRESS=(PROTOCOL=TCP)(HOST=host1)(PORT=1521))     (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=CRM)))   Issue: On host2, I cannot get rid of the ORA-01017 error:  host2> sqlplus sys/<passwd>@monster as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Fri Aug 1 12:09:51 2014  Copyright (c) 1982, 2013, Oracle.  All rights reserved.  ERROR: ORA-01017: invalid username/password; logon denied   BUT, on host3, everything is OK:  host3> sqlplus sys/<passwd>@monster as sysdba  SQL*Plus: Release 11.2.0.4.0 Production on Fri Aug 1 06:21:59 2014  Copyright (c) 1982, 2013, Oracle.  All rights reserved.  Connected to: Oracle Database 11g Enterprise Edition Release ... SQL>   Has someone an idea why connecting from one host is OK while connecting from the other one is KO?  NB: Needless to say this is not an issue of case sensitivity, or bad orapwd, or remote_login_passwordfile not set to EXCLUSIVE, since it works from host3.  Thanks


How can you show that:  $$\sum_{k=0}^n \binom{m-k}{n-k} = \binom{m+1}{n}$$  by using an index shift and the following relationship, which is assumed to be true:  $$\sum_{k=0}^n \binom{m+k}{k} = \binom{m+n+1}{n}$$

Prove that for every $n \ge m \ge 1 , \sum_{k=0}^m{n-k \choose m-k}={n+1 \choose m}$    I've tried saying that the RHS represents the number of binary series with m "1" 's and n+1-m "0"'s, but I couldn't find out what k represents at the LHS. Thanks


I am getting a new video card. I want to connect my PC to 2 monitors. I used the HDMI port.  Then I saw 2 other ports. I recoqnize that one of them is DVI. The other one is very new. I wonder what it is.  It looks like HDMI connector. I will put photograph here.  Okay this is how it looks like    It's between HDMI and DVI

How would I go about identifying a port, card or connector on my system which I am unfamiliar with?  Where would I find information on what these parts are? What would be the steps I would take in identifying a unknown port or cable?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I am running three AsyncTask() each AsyncTask create an object of another class.  This is how i am creating instance of a class from doInBackground(),          DOM domObject = new DOM;   Now, there is a class level ArrayList in my DOM class,  public class DOM {     public static ArrayList<HashMap<String, Object>> tempNewsArray = new ArrayList<>();   My main class run three AysncTask object so three separate instance of DOM class should be created for each AsyncTask.  On each execution of AsyncTask, some data is added into the ArrayList.  Example, First AsynTask executed,    Some Data added in ArrayList. Second AsyncTask executed,    Some Data added in ArrayList (Previous Data should not be there in ArrayList)  But the problem is, the data from the previous instance of DOM class is still there in the ArrayList and not removed when new instance of DOM class is created by another AysnTask instace.  Why is this happening ?  Example, First instance of DOM class created by first Asynctask, Some data is added in ArrayList.  Second instance of DOM class is created by second Asynctask instance, Some new data is added in the ArrayList but the previous data from previous instances is still there.  Why so ?

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


I just started using 2.8 for video editing. I've rendered the video but it always saves as a blender file. And it makes it hard to put the videos on YouTube. Is there any way to save it as a MP4 file.

So I made an intro using animation and it saves it as a .blend and I want it so save as a video like .mp4 or something like that. I've tried changing the codec because I tried opening the intro with windows media instead of blend. I didn't try all the codec's but I tried some of them.


Say I have a fair coin. I want to know the expected number of trials to get 5 heads. What is the relationship to the following idea: $E[$number of heads in n trials$]= (1/2 \cdot 1+1/2 \cdot 0) \cdot n= 5$ $\rightarrow$ n= 10

You and I decide to play a game where we take turns flipping a coin. The first player to flip 10 heads in total wins the game. Naturally, there is an argument about who should go first.  Simulations of this game show that the player to flips first wins 6% more than the player who flips second (the first player wins approx 53% of the time).  I'm interested in modelling this analytically.  This isn't a binomial random variable, as there are no fixed number of trials (flip until someone gets 10 heads). How can I model this?  Is it the negative binomial distribution?    So as to be able to recreate my results, here is my python code:  import numpy as np from numba import jit   @jit def sim(N):      P1_wins = 0     P2_wins = 0      for i in range(N):          P1_heads = 0         P2_heads = 0         while True:              P1_heads += np.random.randint(0,2)              if P1_heads == 10:                 P1_wins+=1                 break              P2_heads+= np.random.randint(0,2)             if P2_heads==10:                 P2_wins+=1                 break     return P1_wins/N, P2_wins/N   a,b = sim(1000000)


Question: For which entire functions $h(z)$ does there exist an entire function $f(z)$ such that $h(z)=f(z+1)-f(z)$?  What I have tried:   Suppose that $f:\mathbb{C}\to\mathbb{C}$ is an entire function, and let $\displaystyle f(z)=\sum_{n=0}^\infty a_nz^n$ be its Taylor series expansion.  Then $$\displaystyle f(z+1)=\sum_{n=0}^\infty a_n\sum_{i=0}^n\binom{n}{i}z^i=\sum_{n=0}^\infty z^n\left[\sum_{j=n}^\infty a_j\binom{j}{n}\right].$$  Therefore $$f(z+1)-f(z)=\sum_{n=0}^\infty z^n\left[\sum_{j=n+1}^\infty a_j\binom{j}{n}\right].$$  For $\{a_n\}\in\mathbb{C}^\infty$, define $c_n=\displaystyle\sum_{j=n+1}^\infty a_j\binom{j}{n}$, if this sequence converges.  If $\{a_n\}$ is a sequence for which each $c_n$ converges, then define $\Pi(\{a_n\})=\{c_n\}$.  Lets let $\mathscr{H}$ denote the collection of all sequences of complex numbers $\{a_n\}$ such that $\Pi(\{a_n\})$ is well-defined.  Let $\mathscr{H}_e$ denote the collection of sequences such that $\displaystyle\sum_{n=0}^\infty a_nz^n$ has infinite radius of convergence.  It is not hard to see from the above work that $\mathscr{H}_e\subset\mathscr{H}$.  Let $\mathscr{H}_0\subset\mathscr{H}_e$ be the collection of finite sequences (ie those corresponding to polynomials).  I know that $\Pi:\mathscr{H}_0\to\mathscr{H}_0$ is surjective.  I want to know what $\Pi(\mathscr{H}_e)$ is (I now know that $\Pi:\mathscr{H}_e\to\mathscr{H}_e$ is not surjective as noted in my comment below).  Bonus question: If we mod out $\mathscr{H}$ by the relation $\{a_n\}\sim\{b_n\}$ if and only if $a_k=b_k$ for each $k>0$, then $\Pi:\mathscr{H}_0\to\mathscr{H}_0$ is injective.  Is $\Pi:\mathscr{H}\to\mathscr{H}$ injective when modded out similarly?

Is there a simple way to prove this fact :      For all holomorphic functions $f : \mathbb C \to \mathbb C$, there is an holomorphic function $\psi : \mathbb C \to \mathbb C$ such that $$\psi(z+1) = \psi(z) + f(z) $$   The solution I know use Galois covering spaces and summand of automorphy.  Thanks in advance.


I cannot figure out how to correctly initialize a button (button) I'm trying to create. The button stays null which in turn causes a NullPointerException on the line below it.  import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.Button; import android.widget.EditText;  public class SetCounter extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_set_counter);          //The code when the setButton is clicked.         //Todo 1: define the setButton and create its setOnClickListener. inside it past the following code:-           //On clicking the button the value of counterValueText should be sent to the MainActivity and it should be called.             final Button button = (Button) findViewById(R.id.countButton);             button.setOnClickListener(new View.OnClickListener() { //exception occurs on this line                 public void onClick(View v) {                     EditText counterValueText = (EditText) findViewById(R.id.counterValueText);                     int number = Integer.parseInt(counterValueText.getText().toString());                     Intent activityChangeIntent = new Intent(SetCounter.this, MainActivity.class);                      //Todo 2: use putExtra("Value",number); to pass values to the MainActivity.                     activityChangeIntent.putExtra("Value", number);                     startActivity(activityChangeIntent);                 }             });     }  }   the error occurs with the line   button.setOnClickListener(new View.OnClickListener() {   but I believe the error is actually in this line  final Button button = (Button) findViewById(R.id.countButton);   Finally, I have another class, MainActivity, in which I declare countButton which looks like this  final Button countButton = (Button) findViewById(R.id.countButton);   Added XML:  <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="***.*****.******.lab11skeletontwo.SetCounter">      <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:tools="http://schemas.android.com/tools"         android:id="@+id/activity_adddoc"         android:layout_width="match_parent"         android:layout_height="match_parent"         tools:context="mishra.sripath.wecareforuclient.Adddoc">           <Button             android:id="@+id/setButton"             android:layout_width="88dp"             android:layout_height="48dp"             android:layout_marginStart="140dp"             android:layout_marginLeft="140dp"             android:layout_marginTop="400dp"             android:text="Set" />          <EditText             android:id="@+id/counterValueText"             android:layout_width="215dp"             android:layout_height="46dp"             android:ems="10"             android:inputType="number"             android:hint="Enter Value of Counter"             android:layout_marginStart="70dp"             android:layout_marginLeft="70dp"             android:layout_marginTop="230dp" />     </RelativeLayout>  </android.support.design.widget.CoordinatorLayout>

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


I've noticed that I've lost some reputation when users are removed, since that's specifically called out in the inbox messages.  However, I am curious if lost reputation from downvotes the user gave are also restored in that situation.  All reputation lost due to deleted user accounts were evenly divisible by 5 so it doesn't appear to be the case.  (i.e. you gained +4 reputation because a user was deleted).  I only ask because in a particular question I answered it appeared as if someone went through and downvoted the question and each answer for no apparent reason.  Looks as if someone can damage your reputation and you can never get that back.  For me personally, I have enough reputation that the amount lost isn't that much but for someone just getting started it could be a problem.  The suggested duplicate did not cover the reputation change related to downvotes specifically so that was an open question.  Based on my observations the few times I had reputation changes due to users being deleted I never had a rep change value that would suggest downvotes were being restored.  Maybe they never downvoted me, or maybe the number of downvotes always ended up being a multiple of 10.  It was clear about the removal of upvotes though.

Message appearing when a user was removed.     It seems I lost 1765 reputation points on Stack Overflow yesterday. The reason given in my history is "removed", with the description of "User was removed ()". I don't understand what that means. What caused this?


I can't find an answer even tho I have solved this issue already once. For some reason when I double click .blend file it opens it in 2.79 instead of 2.83. All I remember that there are multiple ways to set this in windows 10 but I can only remember one and that doesn't work. Which is to right click the .blend and set it to open with the 2.83. There is one thread about this from 2015 but it is useless nowadays. I can't delete the 2.79 as I need it for some files that I don't want to convert to 2.8+.

Blender 2.79b is installed (from .exe) on my computer, currently. And I just downloaded the Blender 2.8 release candidate 2 (.zip).  When I create something in Blender 2.8, after I save it, I cannot open it again because the computer tries to open the blend file in version 2.79b. And manually selecting the 2.8 version from zip file does not work.  How can I open my blender 2.8 files? Do I have to delete Blender 2.79b?


I do a regression (Y is a dependent variable and X is an independent variable) OLS gets insignificant results, while the IV regression gets significant results. I based on literature to suggest X is an endogenous variable. I also did Underidentification test, Weak identification test, Sargan test and endogeneity test (used ivreg2, ivregress and estate endog). The results of these tests all supported my IV regression How can I interpret the results? Thanks for your help.

I'm fitting a multiple linear regression model between 4 categorical variables (with 4 levels each) and a numerical output. My dataset has 43 observations.  Regression gives me the following $p$-values from the $t$-test for every slope coefficient: $.15, .67, .27, .02$. Thus, the coefficient for the 4th predictor is significant at $\alpha = .05$ confidence level.  On the other hand, the regression gives me a $p$-value from an overall $F$-test of the null hypothesis that all my slope coefficients are equal to zero. For my dataset, this $p$-value is $.11$.  My question: how should I interpret these results? Which $p$-value should I use and why? Is the coefficient for the 4th variable significantly different from $0$ at the $\alpha = .05$ confidence level?  I've seen a related question, , but there was an opposite situation: high $t$-test $p$-values and low $F$-test $p$-value. Honestly, I don't quite understand why we would need an $F$-test in addition to a $t$-test to see if linear regression coefficients are significantly different from zero.


Experts,Professionals,intermediate,Beginner!  what is the best canvas size when creating a logo. does not matter if it is inches,cm,pixel just give me some awesome answer and it will be great!  thankyou for your kindness and time for answering my question!

When designing a logo is there a minimum size canvas that should be used to keep quality when it is enlarged or when reduced?  Obviously the dimensions of a canvas depend on the shape of the logo, but is there a sugested size?


I'm trying to highlight certain sections of code in a minted structure, but a certain line just doesn't want to compile with any type of formatting. When I try to use the escape characters and apply any type of formatting (tried colorbox, soul highlighting and bold/italics) to line 8 of the code sample, I get what is shown in the image. \begin{minted}[ frame=lines, framesep=2mm, baselinestretch=1.2, bgcolor=black, linenos, escapeinside=|| ]{cpp} infostream<<"Ban:"<<m_banfilepath; std::ostringstream ss(std::ios_base); for(std::map<std::string,std::string>     ::iterator         i = m_ips.begin();         i != m_ips.end(); i++) {     |\textbf{ss<<i->first<<"2"<<i->second<<"/n";}| } if(!fs::WriteTo(m_banfilepath, ss.str())) {     infostream<<"Ban failed:"<<m_banfilepath;     throw SerializationError("BanM::load()"); } m_modified = false; \end{minted}

I'm currently doing some work on error messages in programming languages. As such, I'm showing faulty pieces of code, alongside the compiler-errors accompanying them.  I'm using minted for the code snippets, but ideally, in addition to normal syntax highlighting, I'd like to highlight the sections of the code at which the error is located, by underlining them, putting a red box around them, shading their background, etc.  Is this possible using Minted?


Could you help me to prove the following: If $M$ is a transitive class such that $Def(M)\subseteq M$, then $On^M =On$ (only using this assumptions)?

I would like to prove the following claim: If M is a transitive class such that Def(M) $\subseteq$ M, then $On^M$= $On$.   My own proof would start like this:   Proof. Since "x is an ordinal " is absolute ($\Delta_0$), we have $On^M\subseteq On$. Suppose that   $On^M \neq On$. Let $\alpha$ be the least ordinal in $On - On^L$. Then we will proof the following:  Claim: $\alpha = On^M$  Could someone help me to finish the proof ?


My friend and I are planning a Euro trip this October. Our port of entry is Frankfurt and will be going to Reykjavik (Iceland), Berlin, Prague, Vienna, Munich and back to Frankfurt.  We live in Mumbai, India and will be applying to the German Consulate here in Mumbai.  We both are freelancers. I am a freelancing software engineer and he is a freelancing business development manager. We do not have any company or corporation under which we freelance.  I went through their site to find out the documents needed but wanted to ask people here if being a freelancer will cause any issues for our visa application? Anything else we would need to submit to make our case strong?

There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form :    This is a very important factor to make an application really strong.  Questions:   1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application?  2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments?


I'm new to Java programming. I use  java to write simple macros for my simulation tool. In the following part of the code I want to find a minimum and a maximum value in a csv file which is "whitespace" seperated.  Now, I have the problem that I get the java.lang.NullPointerException message on my output- window. Than it says that the macro playing is done.  I have some marker in the code and the output ends on this position.  Does anybody have the clue why this not work?  public void VelMinandMax (String Velocity_Data) {  velMagMax = 0.0 ;  velMagMin = 100.0 ;  FileReader fr1 = null ; BufferedReader br1 = null ; Scanner sc1 = null ;  try {     fr1 = new FileReader(Velocity_Data);     br1 = new BufferedReader(fr1);     sc1 = new Scanner(br1);       while (sc1.hasNextLine()) {         sc1.nextLine();           if (sc1.hasNextDouble()) {             double velMag = sc1.nextDouble();             double coordX = sc1.nextDouble();             double coordY = sc1.nextDouble();             double coordZ = sc1.nextDouble();               if (velMag>velMagMax)                 {                 velMagMax = velMag ;                  }             if (velMag<velMagMin)                  {                 velMagMin = velMag ;                   }         }     }    } catch (FileNotFoundException e) {     System.out.println ("Error : File Not Found") ; } finally {     sc1.close() ;     try {         br1.close() ;         fr1.close() ;          }     catch (IOException e2)  {         System.out.println ("IOException");          }     } }   Edit Output:  public execute MethodVol CalcVelRef VelMinandMax java.lang.NullPointerException


Here are the steps I used   open Xcode create a new project choose the command line prompt  On the the option for new project I put the product name  For language I choose C++   Then I can't proceed. At the bottom I see "cancel", "previous",  and "next" but next is greyed out. What do I have to do to proceed?

I'm running Xcode 6.1 on OS X Yosemite and I'm unable to create a new project, as you can see below it just says 'loading'.  I've removed the product and org name for the purpose of this image. I have tried uninstalling but that didn't work. I am new to Xcode and coding in general so I would appreciate it if any solution could be given in lay terms.


Given a simple binary tree, how can we prove that tree is a binary search tree? When we traverse a binary tree, how do we know if the node we are on is the left or right child of its parent? I came up with one solution where i would pass some flag in recursive function call which could keep track of whether the node is left or right child of its parent as well as we need one parent node pointer through which we can compare :-  if(flag == 'L' && node->value < node->parent->value)    then continue recursion; else{    print "not a binary search tree"    exit; }   In the same way one if condition is needed for R. Apart from this can you think any other efficient way?  Thanks in advance :)

I read on here of an exercise in interviews known as validating a binary search tree.  How exactly does this work? What would one be looking for in validating a binary search tree? I have written a basic search tree, but never heard of this concept.


First time using Structs in Arduino since school  I am assuming that the structs would behave like objects and when I call them directly it does I would expect this code to print   1 1 2 1 1 2 2 2 1 3 2 3 1 4 2 4   But I get   1 1 2 1 1 1 2 2 1 1 2 3 1 1 2 4   Sample of the code that I used  // Example program #include <iostream> #include <string>   struct Testtype{     Testtype(int A) : foo(A){}     int foo;     int bar = 0;    }; Testtype Test1 = Testtype(1); Testtype Test2 = Testtype(2); void fun(Testtype Test){    Test.bar++;    Test2.bar++;    std::cout << Test.foo;    std::cout << " " << Test.bar << "\n";    std::cout << Test2.foo;    std::cout << " " << Test2.bar << "\n"; } void loop(){    fun(Test1); } int main() {   int i =0;   while (i < 4){     loop();     i++;   } }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


Consider a SQL Server Login MyLogin that exists on PrimaryServer but not SecondaryServer in an Always-On Availability group. MyLogin has a number of roles already assigned.  If the login MyLogin is later created on SecondaryServer using the hashed password and SID from PrimaryServer, will it automatically have the same roles on the database mirrored on SecondaryServer?  Does it matter that the permissions were granted on the database on the PrimaryServer before the login was created on SecondaryServer?

We have 2 servers in an AlwaysOn group.  While the user accounts within each synchronized database exist on both servers, the database instance level logins only exist on one of the servers. Ie DBINSTANCE->Security->Logins are missing on one server.  Therefore when there is a failover, I get login failures on the second server (which doesn't have the corresponding instance level logins).  How do I overcome this issue? Was I supposed to set up the user account in a special way?


Is there a developers account  to use MobileConnect app provided by SalesTarget for PoC . I  could  not  find any link to create a login account for salestarget ?

Has there been any progress made on granting a developer account for SF and HubExchange Devs? It feels conceptually wrong to me a SF product doesn't allow developers to perfect and develop a wider solution offering without paying +10K license fee per year. Even without CRM the HubExchange market could be a richer portal for consumers and developers if we were allowed a means to test our concept.  I think we'd all be perfectly happy with an account that was blackholed or limited in such a way where we could only send a finite qty of emails to an email address associated to the user.  If there's a forum or avenue where we can assist in raising the value proposition please let us know as I know there are many people looking.


I have had a physics problem on my mind for a few days and it seems relatively simple at first, but it has been puzzling me, and I was wondering if you could help.  Say a student rolls a tire on a flat level surface. There is no car involved or anything it’s just the tire. As the tire rolls, the tire slows down by friction and eventually comes to a stop. I have drawn an extended free body diagram below in paint.    I have the wheel rolling to the right and gradually slowing down with acceleration to the left. Since it is accelerating to the left, then that means static friction must be pointing to the left. So this is the problem: If static friction is pointing to the left, that means friction is also creating a torque on the wheel that points into the screen. If there is a torque pointing into the screen that torque should speed up the wheel’s rotation! But that doesn’t happen. So the question is: How can we use just Newtonian physics (not energy considerations) to account for the fact that the friction force is doing two seemingly contradictory things at once? It’s slowing the wheel down by pointing to the left, but also speeding the wheel up by applying a torque into the screen. I’ve been struggling with this for a few days. I was thinking maybe I’m missing a force, like air resistance. But that shouldn’t matter. We should be able to perform this same experiment in a vacuum. Somehow, there must be some torque applied out of the screen to cause the wheel to slow in its rotations. But I don’t know how.

Fundamentally, what does a friction force do for a rolling object? I am very confused by the way my textbook explains it. In my textbook , it says:  A wheel rolling on a horizontal flat surface at a constant velocity experiences no friction force. Why?   On the same surface, there is an acceleration of the wheel pointing to the right (probably caused by a force), so the ball is angularly accelerating in the clockwise direction. In this case, a friction force appears, and it is also pointing to the right. How come? What does the friction do for this wheel?  On an inclined plane, a ball freely rolls down the surface. The direction of friction is up the ramp, which confuses me because in the previous example the friction force was in the direction of the wheel's acceleration.   And there is a difference if a wheel is freely rolling and if there is a torque acting on the ball's center of mass. WHY???  What does friction do in these cases? How does it cause an object to roll?


I am assisting an retailer obtain and install an extended validation (EV) SSL certificate for their online shop. After a week of back and forth paperwork with the CA, I wonder whether it's worth the time and expense of getting one.   CAs, of course, claim it makes your site more trustworthy. There are numerous articles, however, arguing users can't tell the difference and don't care. Moreover, most modern browsers no longer make a visual distinction between EV and standard certificates.  Clearly, EV certificates lost the clout it once had, but I wonder if Google's ranking algorithm still gives it a higher weight. I suspect it's at least a small factor for smaller online retailers, but less, or none at all, for those that have been "prevalidated" by the virtue of buying Google Ads.

I was looking at the different types of SSL certificates and providers. I came across a website that states this:     We believe Extended and Business Verification SSL certificates gets more top rankings instead of Domain verification certs, but that is minor changes in Google algorithm   I searched Google but could not find any mention that the way a certificate is validated affects SEO (specifically with Google). I saw some websites suggest using a high key size for the certificate but I'm thinking that's for security?  Questions: Does Organization Validation (OV) and Extended Validation (EV) certificates get a better rank than Domain Validation (DV) certificates? What about the (RSA) key size?


Upgraded from S4 to S7 Galaxy. Signed out of Pokémon Go on the S4. Downloaded Pokémon Go on S7 and I do not get the option to log in with my Google account. Only option is Pokémon Trainer Club. How can I get to a Google login on the new S7?

Recently I downloaded Pokemon GO but when I try to sign up with google account,the option isn't there. Help please. I use a LG G2 mini


I am not the best at group theory, a lot of concepts are still a little fuzzy for me so I'd really appreciate explanations that are in detail.  Currently trying to prove this using the first isomorphism theorem, I know that the kernel has to be non-trivial because f cannot be one to one.

TRUE/FALSE TEST:  There is a non-trivial group homomorphism from $S_3$ to $\mathbb Z/3\mathbb Z.$   My Attempt:  True: Choose $a,b\in S_3$ such that $|a|=3,|b|=2.$ Then $S_3=\{1,a,a^2,b,ba,ba^2\}.$ Define $f:S_3\to\mathbb Z/3\mathbb Z:b^ia^j\mapsto j+3\mathbb Z$ Then $f$ is a nontrivial homomorphism.  Is the attempt correct?


update attempt to clarify more, using an example, does the following shell commands:  SHELLVARIABLE="1st line, 2nd line, 3rd line, "  printf '%s' "$SHELLVARIABLE"   generate this output:   1st line,<newline>2nd line,<newline>3rd line,<newline>   <newline> being the character 0x0a / \n?  Original question formulation  What is the correct (POSIX-confirm) way to store a newline character 0x0a (aka known by its commen c style escap \n) into a shell variable.  I want to make sure that doing the following:  SHELLVARIABLE=" "   is, not merely working by chance but instead is indeed the correct way.  Since POSIX's  is perfectly capable of producing a newline character (i.e. printf '\n', or printf '%b' '\0012') I first attempted a more explicit (? or correct?) form:  SHELLVARIABLE="$(printf '\n')"   though a tempting approach, does not work. As the according to , command substitution (i.e. via $() and ` `) shall remove     sequences of one or more newlines at the end of the substitution.   Note: Asking to store a single trailing newline into a shell variable is only to abstract the more general use case (i indeed seek answer to) that is how to store a string into POSIX shell variable which ends with the newline character.

I'm trying to set an RSA key as an environment variable which, as a text file, contains newline characters.  Whenever I attempt to read from the file and pass it into an environment variable, it will just stop at the newline character on the first line. How can I prevent this?


I want to create an automatic numbering with a black colored box around each number .I have searched a lot but not able to find a suitable package . please help me. Thank you

I am creating a manual for an application and I would like to provide step by step directions of the application. For the step numbers, I would like to use big, blue circles with white numbers in it. Thus I was thinking if I can modify the bullet style, I would be able to achieve such list. I read few similar questions and it looks like it will have to use the enumitem package and the likes. Probably, there would be a new command for a big circle. I just don't know how to pull everything together.  Example:


It seems that everyone who dealt with the One Ring called it "precious". Did the Ring force people to use that moniker? Or was it some artefact of Middle-Earth languages as designed by Tolkien? Or merely the fact that the whole books was a re-telling by Bilbo in The Red Book of Westmarch, and thus he was solely responsible for the word choice?  First, we see Gollum/Sméagol:  'The murder of Déagol haunted Gollum, and he had made up a defence, repeating it to his "precious" over and over again, as he gnawed bones in the dark, until he almost believed it. It was his birthday. Déagol ought to have given the ring to him. It had previously turned up just so as to be a present. It was his birthday present, and so on, and on. 'I saw him there,' answered Gandalf, 'but before that he had wandered far, following Bilbo's trail. It was difficult to learn anything from him for certain, for his talk was constantly interrupted by curses and threats. "What had it got in its pocketses?" he said. "It wouldn't say, no precious. Little cheat. Not a fair question. It cheated first, it did. It broke the rules. We ought to have squeezed it, yes precious. And we will, precious!"  ... and countless other instances in The Hobbit and LOTR.   OK, that may be just Gollum's pet name for The One Ring, or pecularity of wording... except we also have...  Bilbo:  'If I am it is your fault,' said Bilbo. 'It is mine, I tell you. My own. My precious. Yes, my precious.' 'Well, if you want my ring yourself, say so!' cried Bilbo. 'But you won't get it. I won't give my precious away, I tell you.' His hand strayed to the hilt of his small sword.    OK, fine, we can write Bilbo's usage of the word on the fact that he heard Gollum use it in the cave when he found the RIng and subconsciously imprinted the word. BUT then we have ...  Frodo:  'Why, why wasn't it destroyed?' cried Frodo. 'And how did the Enemy ever come to lose it, if he was so strong, and it was so precious to him?' He clutched the Ring in his hand, as if he saw already dark fingers stretching out to seize it. 'What do you mean?' said Frodo. 'Surely the Ring was his precious and the only thing he cared for? But if he hated it, why didn't he get rid of it, or go away and leave it?' Frodo drew the Ring out of his pocket again and looked at it. It now appeared plain and smooth, without mark or device that he could see. The gold looked very fair and pure, and Frodo thought how rich and beautiful was its colour, how perfect was its roundness. It was an admirable thing and altogether precious.  Now, we don't even have the "he heard it" excuse - he didn't discuss the Ring with Bilbo at any time previous! The third quote can be exlained by the fact that her - by then - heard Gandalf use the word when discussing Gollum... BUT the first two quotes definitely happened before he heard that word from Gandalf.   Not only that, but we have other characters use the word as well:  Tom Bombadil:  'Show me the precious Ring!' he said suddenly in the midst of the story: and Frodo, to his own astonishment, drew out the chain from his pocket, and unfastening the Ring handed it at once to Tom.   ... and Isildur, as related in his scroll (recited by Gandalf)  But for my part I will risk no hurt to this thing: of all the works of Sauron the only fair. It is precious to me, though I buy it with great pain.   ... and while at it, let's throw in an Istari (Saruman):  'He came and laid his long hand on my arm. "And why not, Gandalf?" he whispered. "Why not? The Ruling Ring? If we could command that, then the Power would pass to us. That is in truth why I brought you here. For I have many eyes in my service, and I believe that you know where this precious thing now lies.'

Many of the Ringbearers (particularly those who carried it longer) used the word "precious" to describe it. Isildur described it as:     "But for my part I will risk no hurt to this thing: of all the works of Sauron the only fair. It is precious to me, though I buy it with great pain."   Bilbo himself used it at least once, when arguing with Gandalf about leaving it behind when he was leaving Bag End (this exchange and the lines were different in the movie, but the word is still there):     "Well, if you want my ring yourself, say so!" cried Bilbo. "But you won’t get it. I won’t give my precious away, I tell you."   And Gollum used it incredibly frequently, almost as if it was the ring's name. It was even his last words:     "Precious, precious, precious!" Gollum cried. "My Precious! O my Precious!"   So my question: Why "Precious"? It wasn't part of the inscription. It wasn't part of the poem that included the inscription. Was it somehow part of Sauron's crafting spell? Did Tolkien ever indicate why the Ringbearers would use that word in particular, other than that it sounded good?


I am making a basic word scrambling and guessing game. To make sure the same word doesn't appear again (example words used) I need to delete the selected word. I have looked all over for solutions however none have worked. Any help is appreciated! //word bank   string[] wordBank = {   "iphone", "airpods", "laptop","computer","calculator","ram","graphics", "cable","internet","world wide web"   };    //select random word   Random wordRand = new Random();   int index = wordRand.Next(wordBank.Length);   string wordSelect = wordBank[index];                //delete word so can't be used again

I have an array of Foo objects. How do I remove the second element of the array?  I need something similar to RemoveAt() but for a regular array.


I have parcel data that has the site address field as ex. 123 First Avenue.  I only want to label the house numbers on the map, so 123 in the example.  How can I do this using the label expression in ArcMap 10.1?

In ArcMAP 10.2, I am trying to format the labels on my map.   If the label is   1402 Bowie Road  But  I want only to display numbers:  1402   What is the expression to create this?


I'm using BigDecimal data type, when I set   new BigDecimal(21.30);   then, I returned it as xml source, it shows as  21.30000000000710522735760100185871124467578125   Another number   new BigDecimal(23.11)   returned  23.1099999994315658113818187512921995859375   I want to show results with the same decimals as I set on create.

How do I format a number in Java? What are the "Best Practices"? Will I need to round a number before I format it?  32.302342342342343 => 32.30 .7323 => 0.73  etc.


I'm aware of the hydrostatic paradox that water will exert same pressure from same height irrespective of the shape of container (mass of liquid). But is it true water in different shapes of container with upto same height and same base will weigh the same on weighing scale?

Consider two different shaped containers having same area: one is cylinder, the other is like an inverted pyramid (roughly). Both have the same level of water, the weight of the inverted pyramidal container will therefore be greater than that of the cylinder. But I know from Pascal's law that the pressure should be same in both containers. If the base areas are the same then the force (weight as measured by a scale) should also be the same. Why are the weights different?


Can somebody explain to me the combinatorics calculation of the order of the conjugacy classes in the group of permutations $S_n$. I saw an example of $S_4$ and $S_5$ but I still don't understand the algorithm in generally or the way of choosing and then multiplying by the amount of options.   Can somebody write the general formule for the order of conjugacy class of a permutation in $S_n$ that written in general by different k-permutations of length $r_1, r_2, ... , r_k$. or for example what is the algorithm to calculate the order of the conjugacy classe of the following permutations in $S_10$,for example  $$(a,b,c)(d,e,f)(g,h,i)$$ $$(a,b)(e,f,g,h)(c,d)$$ $$(a,b)(e,f,g,h)(c,d)(i,j)$$ And so on, how do I calculate these?

I want to know if there is some systematic way (using some combinatorial argument) to find the number of elements of conjugacy classes of $S_n$ for some given $n$.  For example, let's consider $S_5$. If the representative for the conjugacy class is an $m$-cycle then Dummit and Foote gives a formula on how to compute the number of elements in the conjugacy class. This is not a problem. But what about when the representative is not an $m$-cycle. As an example we can consider the conjugacy class that gives rise by the partition $2+3$ of $5$. A representative for the conjugacy class would be $(1 2)(3 4 5)$. How can I find the number of such elements?.  Question?:      Does $ {5\choose 2}\cdot { 3 \choose 3}\cdot 2$ give me what I want?   Reasoning: For the first parenthesis I need to choose $2$ elements out of $5$ and for the second set of parenthesis I need to choose $3$ out of the remaining $3$ (noting that they can't be repeats). Finally we can permute these two parenthesis in two ways, thus giving me the above number.   Is this reasoning correct?. If not how does one find the number of elements of such conjugacy classes.  As always, any help is greatly appreciated.


I have genuine windows 10 in my lappy. I tried to dual boot with Ubuntu but accidentally I replaced my windows with ubuntu. So now I have only ubuntu in my pc and I lost my genuine windows. How to get back my windows OS.I dont even have my back up image of my windows

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 was playing with some graphs and I noticed that $\frac{1}{x}-\frac{1}{x+\pi}+\frac{1}{x+2\pi}$ looked similar to $\csc x$.   I then plugged in (to desmos.com) $\sum_{n=-500}^{500}\frac{(-1)^n}{x+nπ}$ and found that it was pretty much $\csc{x}$ on the interval near $(-500π,500π)$.   So, my question is, why is it that $\sum_{-\infty}^\infty \frac{(-1)^n}{x+nπ} = \csc x$

Prove $$\csc(x)=\sum_{k=-\infty}^{\infty}\frac{(-1)^k}{x+k\pi}$$   Hardy uses this fact without proof in a monograph on different ways to evaluate $\int_0^{\infty}\frac{\sin(x)}{x} dx$.


I want to compare "real" Bayesian Model Averaging (BMA) performed with the EM algorithm and information-criterion based BMA.  Which one, BIC or AIC, is a "closer" approximation to the "real" BMA?  BIC as the name is indicating? I would like to compare apples with apples.  My models are not nested with 1 parameter at minimum and 3 parameter at maximum.

The AIC and BIC are both methods of assessing model fit penalized for the number of estimated parameters.  As I understand it, BIC penalizes models more for free parameters than does AIC.  Beyond a preference based on the stringency of the criteria, are there any other reasons to prefer AIC over BIC or vice versa?


If $x,y,z\in \mathbb{R}-\left\{0\right\}$. Then prove that  $\displaystyle 1\leq \frac{|x+y|}{|x|+|y|}+\frac{| y+z|}{| y |+| z |}+\frac{| z+x|}{| z |+| x |}\leq 3$   My Try:: Using Triangle Inequality  $\displaystyle | x+y | \leq | x |+| y |\Rightarrow \frac{| x+y|}{| x |+| y |}\le 1$  Similarly $\displaystyle | y+z | \leq | y |+| z |\Rightarrow \frac{| y+z|}{| y |+| z |}\le 1$  Similarly $\displaystyle | z+x | \leq | z |+| x | \Rightarrow \frac{| z+x|}{| z |+| x |}\le 1$  Now Add all three equations::  $\displaystyle \frac{| x+y|}{| x |+| y |}+\frac{| y+z|}{| y |+| z |}+\frac{| z+x|}{| z |+| x |}\leq 3$  But I did not Understand How can I calculate Lower value of the Given expression.

If $x,y,z\in \mathbb{R}\;,$ Then Range of $$\frac{|x+y|}{|x|+|y|}+\frac{|y+z|}{|y|+|z|}+\frac{|z+x|}{|z|+|x|}\,$$    $\bf{My\; Try::}$ Here $x,y,z$ Not all Zero Simultaneously.   Now Using $\bf{\triangle\;  Inequality}\;,$ We get $|x+y|\leq |x|+|y|$  Similarly $|y+z|\leq |y|+|z|$ and $|z+x|\leq |z|+|x|$  So we get $$\frac{|x+y|}{|x|+|y|}+\frac{|y+z|}{|y|+|z|}+\frac{|z+x|}{|z|+|x|}\leq 3$$  Now I did not understand How can I calculate $\min$ of that expression, Help Required  Thanks


I've recently been rather fed up with Windows, and have started removing useless system apps like Edge & IE, and I constantly see Windows Defender using 30+% of my CPU.  I have another antivirus. A better antivirus, so that's no issue. The only thing I'm worried about is whether or not Windows will stably work if I remove Windows Defender. I have heard news of Windows seemingly "breaking" when removing core packages.   Is it safe to remove defender? Will Windows functionality be hindered by the removal?  EDIT: This question is not about how to remove Windows Defender.     Why do so many users assume the question is "how to remove?", while it's "is it safe?"

On Windows 10 Professional, with the November update (Build 10586, Version 1511) , is there any possibility to completely remove Windows Defender ?  I don't want to just disable Windows Defender.  I want to completely uninstall from my system.


I'm new to Ubuntu and I want to install wine. It's not in my Ubuntu software centre, but I have downloaded the files from the internet. How do I get it to install from the files I have downloaded?

How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers:


I am new to PHP and I want to display a table from my database with each row with a different color from other rows and I tried answers and solutions similar to my question but I failed to make it done on the rows of <?= $field ?>	   This my script :  <?php mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); $mysqli = mysqli_connect('localhost','root','','class'); $mysqli->query("set names 'UTF8'");  $data = []; $res = $mysqli->query("SELECT math, physics, english FROM student order by math desc"); while ($row = $res->fetch_assoc()) {     foreach(array_keys($row) as $key) {         $data[$key][] = $row[$key];     } }  ?>
student

   <?php foreach($data as $key => $val): ?>
       <?= $key ?>	       <?php foreach($val as $field): ?>         <?= $field ?>	       <?php endforeach ?>
   <?php endforeach ?>

Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?  <? foreach($posts as $post){?>     <div class="<?=($c++%2==1)?‘odd’:NULL?>">         <?=$post?>     </div> <? }?>  <style>     .odd{background-color:red;} </style>   Examples in other languages would be fun to see as well.


I want to fill the height remaining of the parent with black color.  I put a div with class fill-black in this page :    In the center column, I put the div just below the text Détails du produit  I tried to use some flex properties, I want this div to fill the height of the parent. Is is possible using only CSS ?  I tried :  .fill-black {     display: flex;     flex-flow: column nowrap;     align-items: stretch;     background: #000; }   Here is a visual of what I want :   I put height to 200px, but I want this height to be responsive.

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


Assume that $a \lt b$ and that the continuous function ${\rm f} : \left[a, b\right] \to {\mathbb R}$ has the following two properties: $\quad\left(\rm a\right)~{\rm f}\left(x\right) \geq 0\,, \forall\ x \in \left[a, b\right]\quad$ and $\quad\left(\rm b\right)~\displaystyle{\int_{a}^{b}{\rm f}\left(x\right)\,{\rm d}x = 0}$.  How do I show that ${\rm f}\left(x\right) = 0\,, \forall\ x \in \left[a, b\right]\ {\large\rm }$?

Prove that $\int_a^b f(x)\,dx  \gt 0$ if $f \geq 0$ for all $x \in [a,b]$ and $f$ is continuous at $x_0 \in [a,b]$ and $f(x_0) \gt 0$  EDIT. Please ignore below. It is very confusing actually -.-    Note: After typing this all out, I think I realized that my proof is complete, but I'll just post it to make sure :)  Attempt:   Find a partition $P = \{t_0,\ldots,t_n\}$ of $[a,b]$ s.t. $f(x)\gt f(x_0)/2$ for any $x \in [t_{i-1},t_i]$  Thus, the lower sum, $L(f,P)\geq x_0 (t_{i}-t_{i-1})/2 > 0$  [Basic Idea: since f is continuous at $x_0$, in the worst case scenario (i.e. $f=0$ at all points except in a nbhd of $x_0$) there must be some "bump" at $x_0$, which prevents the integral from actually equaling $0$. If we can find just one lower sum of a partition to be $> 0$, we will be done (I think...)]


I summoned the  and it was killed instantly before I declared I was making it Hexproof. Could I have prevented it's death if I had said it was Hexproof before the other player cast his spell?  The additional reason for asking this is due to the energy production of the card and the energy requirement for playing the ability.  When bristling hydra resolves it provides 3 energy and the ability requires 3 energy therefore this question has some additional implications about how the spell could potentially resolve i.e. does the energy resolve in time for the player to use the ability or do you need an additional source of energy

If my opponent plays  on my , can I activate its ability to turn it black?


If $a+1/a+a^2+1/a^2+1=0$, and $m$ a poitive integer, then find the value of:  $a^m+1/a^m+a^{2m}+1/a^{2m}$  Only hints please..

Let $a$ be a complex number such that $a^2+a+{1\over a}+{1\over a^2}+1=0$  Let $m$ be a positive integer, find the value of $a^{2m}+a^m+{1\over a^m}+{1\over a^{2m}}$  My approach: I factorized equation 1 which yielded $(a+{1\over a})={-1^+_-(5^{1\over2})\over2}$  I don't know if it is of any help.


I have a large csv file looking a little like this:  SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,2,SomeData   SomeData,SomeData,3,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,2,SomeData   SomeData,SomeData,3,SomeData   SomeData,SomeData,4,SomeData   SomeData,SomeData,5,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData   SomeData,SomeData,1,SomeData     I want to create a new csv file which only contains rows where the 3rd value is part of a set i.e. if the value in 3rd field of the line below is one higher, then I want both those lines to be included.  So, in the example above I only want rows 2-4 and 8-12 to be saved in a new file.  I'm struggling to work out how to tell grep to look for that pattern.  Any ideas?  Thanks

Consider the below file:   foo,boo,900 foo,boo,900 foo,boo,850   I need to compare the a field ($3) with the next record, if the difference is equal or more than 50, then print the record.   i.e from the sample above, $3 from second record - $3 from the third record = 50, then the output would be:   foo,boo,850


My Pokemon Go seems to be glitched. I can't get any Pokemon or Pokeballs from PokeStops.  What can I do?

Pokemon GO isn't working at all for me right now. I'm in one of the following circumstances and can't do anything:   My game is displaying a "Try Again" message I'm stuck on the Loading Screen When I sign in I get a message that the servers are experiencing problems. I see the map but nothing is loaded, and my team color is wrong The "loading" Pokeball just ends up spinning and I can't catch or interact with things When I try to catch a Pokemon, the Pokeball just sits on my screen doing nothing Gym opponents will drop to 1 HP and won't take any more damage or attack When I open a pokestop, the pokestop image and the name of the pokestop does not load.   What's causing this? Is there a way to fix it?


I was learning about Collections, in this case the interfaces IEnumerable and IEnumerator, I studied that with this simple example:   string s = "Hello world";             IEnumerator rator = s.GetEnumerator();              while (rator.MoveNext ())             {                 char c = (char)rator.Current;                 Console.WriteLine(c+".");             }   But then I thought... I can do this with foreach loop, so I tried:    foreach (char c in s)             {                 Console.WriteLine(c+".");             }   If I can do the same with the foreach loop, Why Do I have to use the interfaces IEnumerable and IEnumerator? What is better in performance? Imagine, I am doing a program which spell each letter of a big text, What Would I have to use? Interfaces or foreach loop?  I have been researching about foreach loops and I found that foreach works with interfaces.

Can anyone explain IEnumerable and IEnumerator to me? For example, when to use it over foreach? what's the difference between IEnumerable and IEnumerator? Why do we need to use it?


I am looking a program to put a green colour tinted filter over my screen? can anyone help?

I use to work at night and it is eye-hurting to watch at lightbulb-bright screens (I've got two - laptop's built-in panel and an external 18-inch CRT) in a dark environment. So I adjust my screens to be darker.  Can I do this a software way instead of pressing monitors' buttons that many times every time?


I have 2 videos of the same duration and framerate. I would like to overlay video A which is of size (100,210) on video B which is of size (1920,1440) and I would like the top left corner of video A to be at the position (50,50) in video B. How can I do this ? I can't find the solution and ffmpeg is too complicated for me to learn just to do something simple.

I want to overlay one video on to another.I have two videos with same time duration.  Aim is to make upper video little transparent so that one can see whats happening in background video.  I've tried below command :  String command="ffmpeg -y -i /sdcard/videokit/two.mp4 -i /sdcard/videokit/inone.mp4 -filter_complex [0:v][1:v]overlay=100:100:eof_action=pass[v] -map [v] /sdcard/videokit/output.mp4";   In this command upper video isn't matching(In context of height and width) with video at back.  Confusion :  There may be a possibility that background video wont have same height width as upper video cause it comes dynamically in that case how should I manage..!!!  Any help or suggestions would be appreciated.


I'm coding a simple calculator, and it needs to be displaying 2 digits after the decimal, but I can't figure it out. The rest of the program works perfectly, and so does the quotient button, but it's just displaying too many digits after the decimal.  Here's what I have:  private double _leftop = 0; private double _rightop = 0; private double _quotient = 0;      private void BtnQuotient_Click(object sender, EventArgs e)     {         if (Double.TryParse(TxtLeftOperand.Text, out _leftop) == true &&     Double.TryParse(TxtRightOperand.Text, out _rightop) == true)         {             _quotient = _leftop / _rightop;             TxtResult.Text = Convert.ToString(_quotient);         }         else         {             TxtResult.Text = "Error";         }     }

When displaying the value of a decimal currently with .ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places.   Do I use a variation of .ToString() for this?


I have a British passport and live in the UK. I was visiting Canada a few weeks ago and crossed the border (by car) to the US and got a 90 day visa.  I am now back in the UK but the visa is still in my passport (it wasn't removed at the border).  On the  it says one is not eligible to apply for an ESTA if they are currently in possession of a visitor's visa.   Will I be okay if fly there with my current visa?  EDIT: I should mention, I have a visitor's visa, but this new trip will be for work purposes

I am a UK citizen, and therefore qualify for the USA's  (VWP). If I enter by  I need to apply for (and pay for) ESTA beforehand. If I enter by , I don't need ESTA. But I do get a 90 day visa waiver which allows me to go to Canada and return to the USA, on the same VWP.   My question is: If I first enter the USA on foot, from Canada (at Niagara Falls), return to Canada on foot, and then 3 days later fly from Canada into the USA, do I need ESTA? Or as my existing visa waiver is still in place, is that good enough?


There are three ways (three differenent axis about which) I can flip my cell phone - over the front (like a frontflip), about the center (like a disc of pizza dough being spun by a baker), and over sideways (like a dog rolling over, or like a pizza roller rotating as it rolls over the dough). Of all these ways to rotate, I've found that the first way, the frontflip-like rotation, is almost always unstable. It doesn't only rotate about that axis, even when I try really hard to make it do so. About the other two axes, however, it flips/rotates about only one axis, just as I intend it to.    Why does this happen?

I've noticed something curious about the rotation of a rectangular prism. If I take a box with height $\neq$ width $\neq$ depth and flip it into the air around different axes of rotation, some motions seem more stable than others. The 3 axes which best illustrate what I mean are:  (1) Through the centre of mass, parallel to the longest box edge.  (2) Through the centre of mass, parallel to the shortest box edge.  (3) Through the centre of mass, parallel to the remaining box edge.  It's "easy" to get the box to rotate cleanly around (1) and (2), but flipping the box around (3) usually results in extra twisting besides the rotation around (3) that I'm trying to achieve (obviously a "perfect" flip on my part would avoid this twisting, which is why I call it an instability). If you're not quite sure what I'm talking about, grab a box or book with 3 different side lengths and try it out (but careful not to break anything!).  What's special about axis (3)?   Image taken from .


I notice that GNS3 v0.8.7-2 was installed on Ubuntu via sudo apt install gns3 instead of the new version which is  as this question is asked.  May I know why Ubuntu still using the old version of GNS3 in it's repository?  user@linux:~$ sudo apt show gns3 Package: gns3 Version: 0.8.7-2 Priority: optional Section: multiverse/net Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Daniel Lintott <daniel@serverb.co.uk> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 22.7 MB Depends: ucf, python:any (>= 2.7.5-5~), dynamips (>= 0.2.8), python-qt4 (>= 4.5), xdotool, xterm Recommends: wireshark Homepage: http://www.gns3.net/ Download-Size: 3,219 kB APT-Sources: http://my.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages Description: Graphical Network Simulator  GNS3 is a graphical network simulator that allows simulation of  complex networks and to launch simulations on them. It is an excellent  complementary tool to real labs for administrators of Cisco networks  or people wanting to pass their CCNA, CCNP, CCIP or CCIE certifications.  It can also be used to experiment with features of Cisco IOS or to check  configurations that need to be deployed later on real routers.  .  You may configure devices ranging from Cisco routers, Cisco PIX firewalls,  Cisco ASA Firewalls, Cisco IDS to JunOS routers using Qemu or Pemu. GNS3  uses dynamips as an emulation back end, an IOS emulator which allows users  to run IOS binary images from Cisco Systems.  .  Cisco IOS, PIX, ASA or JunOS software images are not included.  user@linux:~$    I know I can get the latest version by updating the repo and install it as follows.  sudo add-apt-repository ppa:gns3/ppa sudo apt-get update sudo apt-get install gns3-gui   I just want to know why Ubuntu didn't use the latest version of GNS3 by default?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


I'm a beginner with configuration of server computers.  my company wants to upgrade one of the servers with SSD storage. the server is HP DL380 G8.  the hardware seller company which my company works with, suggested SAMSUNG EVO 840 which seems it is basically a SSD for laptop PCs.  now the question is whether this kind of SSDs work with this kind of servers as the seller says?  does it have reliable and good performance?  will it endure long enough comparing to HP SSDs which are very costlier?

I was wondering if anyone had any specific experience using Intel DC3700 SSDs (or similar) in the HP (DL380p) Gen8 servers?   I'm upgrading a set of database servers that use direct-attached storage. Typically, we use HP-branded everything in our server configs, and beyond a few SSD'd desktops (all of which have worked flawlessly), I have not otherwise used SSDs - certainly not in a server.   The servers we're upgrading run SQL Server (2005) on Windows. We're moving to SQL 2012. Current boxes host a single 200GB database on DL370 G6 provisioned with 72GB 15K SFF drives in RAID 1+0 as follows: OS (2 spindles), tempdb (4 spindles), t-logs (8 spindles), data (20 spindles). Performance is not an issue (CPU load is typically 20% / peak 30%, disk queues are typ = 1). The data volume disks are running in MSA50s off a P800 - so there's probably 5K IOPS there tops. The hardware is approaching 4 years old, and so it's time for a refresh.  Data usage, as reported by the individual hard disks, shows write volume of < 100TB since deployment on the data volume; < 10TB write on the transaction log volume; and ~ 1TB on tempdb.   That's the use case. Now consider a new, identical disk subsystem. It's going to run ~ $15K per server (34x 15K HDD @ $250 + 2x D2700 shelf + Smart array P421 for the external storage).   Consider a similar SSD deployment, say 6x 200GB SSD for the data volume, and 2 each (100GB) for OS, tempdb, and logging. Perhaps overkill, but using Intel DC S3700 for all with a second array card brings me in around $5K per server. Plus, it fits in one 2U box (use the expansion cage on the DL380p) and saves several hundred dollars in electricity every year. With the increased SSD performance, this might even cover some sloppy queries ;-).   An equivalent "no-worries" HP SSD solution is going to run ~ $10.5K. Twice the price with less warranty, lower endurance, but guaranteed performance and manageability.    Certainly, there are loads of in-between solutions that could work. I'm also quite aware of the vendor supported solution vs. 3rd party trade-offs. What I don't have is experience integrating these specific products to help quantify those trade-offs. I'm hoping someone out there does, and is willing to share his experience.   Questions that come to my mind are:  Does the S3700 play well in the Proliant environment with the Array P42x/P822 cards? If using the S3700, would there be an advantage to using a 3rd party card, say the LSI 9270-8i? How (well, easily) are firmware upgrades or management alerts accomplished with the third party solution as I've outlined?  If there are particular issues with the assembly, how have you worked around them - assuming you have?  With the changes that SSDs has introduced into the storage arena, storage solutions are way less straightforward than even a few years ago. I'm sure they will be very different in another few years, and we had expected to wait another cycle before seriously considering using SSDs in any server application.   Before I head too far down this road, is there anyone who would share their relevant experience with any of this? Please tell us why we're smart, crazy, or something in between.


All the icons in the Unity Launcher is blank.    Need Help!

A few days ago I turn on my computer and when Linux started, the icons on the desktop look black, I tried reinstalling the desktop, the gnome-shell, updating but nothing happens. I attached a picture with the problem.


I filed my own taxes in 2019 as a single. In 2018, I was claimed as a dependent by my parents, but they haven’t filed their 2019 taxes. Will I still receive a stimulus check?

So my mom claimed me for 2018 Taxes when she shouldn’t have. For 2019 taxes I filed my taxes on April 3rd this year. I am a college student currently part time but my parents do not provide for me financially so they shouldn’t be able to claim me which they didn’t. I support myself with two jobs making over 40k a year My parents didn’t claim me this year. Would I still be eligible for the check?


I read a book a long time ago that I'd like to revisit.  Main plot involves a protagonist that learns every time he dreams he's actually living a dual life in a monastery. Every dual person who sleeps in one world wakes up in another and has dual magic. Life/death or knowledge/ignorance or fire/water. Protagonist chooses life/death and one his hands is dead as a result. He realizes the language he studied in what he thought were his dreams is real and can speak them to other magicians that live in the two worlds.  I remember that if someone died in one world, they would lose their magic and have to live out the rest of the other life in the other world.  If I had to guess I read it about 20 years ago, though I do not know the original publication date. I have a vague memory of the cover being of one or more people underground.  If memory serves the fire/water magic worked where if the caster summoned a lot of fire then water would also appear to 'balance the scales'. There was a scene where the fire caster summoned fire in an underground tunnel and a nearby reservoir tried to flood the tunnel to compensate.

I read a book in my high school library back in the late 90s and pretty sure it was written in the mid 90s. I can't remember the author or title.  The setting is current to the 90s mid-west. But it also takes place in an alternate medieval style fantasy world that only certain individuals can go to via falling asleep.  The main character is a gas station attendant in his early 30s, whose father left or died and he inherited a storage container full of odd stuff. For as long as he can remember he has had these real dreams where he is a monk at a monastery scribing books. He has no knowledge the dreams are actually a real world, that he's part of a family who can travel between the worlds.   Those that can travel between the worlds also possess binary magic, it uses opposites: life/death, fire/water, strength/weakness etc. The main character discovers that he can use life/death. Two strangers save him from the monastery, a woman using strength/weakness and her son who uses fire/water.   The two strangers who rescue him from the monastery are trying to take him to their family holdings to explain why he is important and what the other world is.  In the modern world he is falsely kidnapped and rescued to introduce him to the families, because they want a magical relic that each family has and that his father has taken and hidden.   Because he is new to binary magic and not taught the same rules as everybody else growing up he learns new things that were never considered, such as holding the bond open so he can see other people using magic etc.


I've been referencing  to help me calculate the sum of cells based on their background color in Google Sheets. From the comments and some other research it appears that changing the color doesn't trigger a change in the cell. This causes my function to never update.  Does anyone know a way to force my sum function to update when just the background color of a cell in my range changes? I've tried changing the update settings under "spreadsheet settings" already, that doesn't work.

I have a Google Spreadsheet that contains a script to count a number of cells by color. The script works perfectly but seems like when ever I change the color of the cell, the count is not updated. How to update/refresh the cell count?  The script I'm using is from :  function getBackgroundColor(rangeSpecification) {   var sheet = SpreadsheetApp.getActiveSpreadsheet();   return sheet.getRange(rangeSpecification).getBackgroundColor();      }  function sumWhereBackgroundColorIs(color, rangeSpecification) {        var sheet = SpreadsheetApp.getActiveSpreadsheet();   var range = sheet.getRange(rangeSpecification);        var x = 0;        for (var i = 1; i <= range.getNumRows(); i++) {     for (var j = 1; j <= range.getNumColumns(); j++) {                var cell = range.getCell(i, j);                if(cell.getBackgroundColor() == color) {         x += parseFloat(cell.getValue());       }     }   }        return x; }  function countCellsWithBackgroundColor(color, rangeSpecification) {        var sheet = SpreadsheetApp.getActiveSpreadsheet();   var range = sheet.getRange(rangeSpecification);   var x = 0;   for (var i = 1; i <= range.getNumRows(); i++) {     for (var j = 1; j <= range.getNumColumns(); j++) {       var cell = range.getCell(i, j);       if(cell.getBackgroundColor() == color) {         x++;       }               }   }        return x; }


Why do we have an image coming along with the android tag. Similarly it happens with google-maps and many more. Why don't we have an image for our beloved old friend "C" and etc ?

What does an icon on the tag mean, for example the "rg" before the sql-server tag as pictured below?


I have ran some strange thing in magento stackexchange. I tried to add a link by somelink\...\anotherlink without code quotes and strangely first forward slash went missing like : somelink...\anotherlink. So this means does stack exchange allow escape characters or is this a bug?  PS: I tried other escape characters like \n and \t but they don't behave this way.

If I type it in between these parentheses -> () the backward slash inside the parentheses is removed.  As you see it is not there.  However if I surround it with spaces ( \ ), then it is rendered correctly.


I have just created a new Ubuntu terminal only virtual environment.  As you can see below then I maximise the terminal window the terminal does not increase in size (giving me more space to see what I'm working on) there is just alot of grey space betwen the window frame and the terminal.    When I look at Veiw>VirtualScreen1, the resizing options are not available to me.    Could someone let me know how to get the terminal to maximise to the edge of the window frame please?

(Not talking about  as most other questions do.)  I've installed  in VirtualBox 4.3.10 (not .20, which apparently isn't compatible) but the screen won't grow beyond 80x50 or something like that:    I've gone through the , which ultimately fail with an X.Org error. Well, duh. I need a server box, without a window manager.  How do I make the terminal match the resolution of the VirtualBox window?  UPDATE  I've since installed virtualbox-guest-utils and rebooted numerous times. The "Autoresize Guest Display" option is still disabled.  Has nobody else encountered this problem? Or do you just ssh into the box?


I try to use the fieldcalculator in QGIS 2.18 to count the number of points of a multipoint-feature. Is it possible?

In QGIS, is there a way to count the number of vertices of polygons and lines in a given layer, and create a separate field containing these values?   I suspect it's a function somewhere in the field calculator but I can't find it.


Does anyone have any hints on how to describe the following partition?     Describe a partition of $\mathbb{N}$ that divides $\mathbb{N}$ into $\aleph_0$ countably infinite subsets.

I am looking for an explicit partition of $\mathbb N$ with the following condition: $$\mathbb N=\bigsqcup_{i\in\mathbb N}A_i$$ where all the $A_i$'s are infinite. What I mean by explicit is a formula for each $A_i$ (I will have to do computation with the elements of $A_i$). So, I can not use the choice axiom.  If someone has an idea to build such a partition...


How do you color specific strings in standard output and standard error?  For example:  gpg --verify   Outputs either a good signature or a bad signature string.  How can I color the good one, green; and the bad one, red, using GNU software only?  In: , the developer talks about a wrapper script.  I want to do this without adding code to the source code of gpg to colorize those strings.

I am running some unit test code. The unit test code outputs regular text. There is a lot of the text so I want to highlight for the user important keywords.  In this case the keywords are "PASS" and "FAIL".  How do you colorize "PASS" to be green and "FAIL" to be red?


I use Ubuntu 14.04 LTS, and when I take the screen shot, the default file name is given like Screenshot from 2016-02-29 11:08:10.png. I do not want the file name to have a space () and a colon (:). How can I change the file naming scheme?

Gnome-screenshot 3.1.2 uses filenames like this one      Screenshot at 2011-07-31 12:13:04.png   making it rather easy to see when it was taken.  The problem is that it uses the colon ( : ) character - making it impossible to access such an image from Windows.  Considering I take most of my screenshots so I can send them to Windows users this has caused some problems.  Is there any way to change the default name that is used by the screenshot tool to replace the ":" with "." or "," ?


I want to prove that with $z_0$ a root of $1+z^n$, I have  $$ z^n - z^n_0 = (z-z_0)\sum_0^{n-1} z^kz_0^{n-1-k}$$

This question is from [Number Theory George E. Andrews 1-1 #3].     Prove that $$x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+\ldots+xy^{n-2}+y^{n-1}).$$   This problem is driving me crazy. $$x^n-y^n = (x-y)(x^{n-1}+x^{n-2}y+\dots +xy^{n-2}+y^{n-1)}$$  $(x^n-y^n)/(x-y) =$ the sum for the first $n$ numbers and then I added $(xy^{(n+1)-2}+y^{(n+1)-1})$ which should equal $(x^{n+1}-y^{n+1})/(x-y)$ but I can't figure it out    This is a similar problem in the book and I tried this method but it wasn't working out      $\quad$Thereom $\bf1$-$\bf2$: $\,\,\,\,$ If $\,x$ is any real number other than $1$, then $$\sum_{j=0}^{n-1}x^j=1+x+x^2+\ldots+x^{n-1}=\dfrac{x^n-1}{x-1}.$$    $\quad$Remark: $\displaystyle\sum_{j=0}^{n-1}A_j$ is shorthand for $A_0+A_1+A_2+\ldots+A_{n-1}.$     $\quad$Proof: Again we proceed by mathematical induction. If $n=1$ then $\displaystyle\sum_{j=0}^{1-1}x^j=x^0=1$ and $(x-1)/(x-1)=1$. Thus the theorem is true for $n=1$.  $\quad$ Assuming that $\displaystyle\sum_{j=0}^{k-1}x^j=(x^k-1)/(x-1)$, we find that $$ \eqalign{ \sum^{(k+1)-1}_ {j=0}x^j & = \sum^{k-1}_ {j=0}x^j+x^k=\dfrac{x^k-1}{x-1}+x^k \\ &= \dfrac{x^k-1+x^{k+1}-x^k}{x-1}\\ &= \dfrac{x^{k+1}-1}{x-1}. }$$   Hence condition $(\rm ii)$ is fulfilled, and we have established the theorem.    $\quad$Corollary $\bf1$-$\bf1$: $\,\,$ If $\,m$ and $n$ are positive integers and if $m>1$, then $n<m^n.$