The main problem is I have no previous design samples like JPG or PSD files by which the site can be sliced again. So, I need the previous look and feel of the site before hacking. Otherwise, as I have no backup, if I know how to recover background image files for this hacked website, then it will be also fine.  I have killed whole my day to search for a solution whether there is a way to recover my theme files, specially the background image files which were used by the CSS files.   I've tried online cache solutions so far but with no luck.  For example, the following link is showing only my CSS file but I can not recover my image files.    I have also used:  but it is same.  If I use Google cache link:  then it shows me the hacked site for now (though this is not a problem as it will stay few more days until I fix and update my site!).  The solutions described into the following links are not working for me :(

My host provider told me last night their server crashed and they had restored the website from from an image they had from months ago, They told me this is the only backup they have. I also have no backup, as my backup server crashed few days ago.  Through google cache I can see all the website as it was few days ago. Is it possible to recover my website using google cache or is there any tool which help me to recover?   Thanks,


In many lists, like profile->activity, only month and day is shown directly, but not the year.  format is shown only when hovering over the date.  This is quite distracting.  Other lists that are offered in different orders (chronological/by rating) like questions or answers always contain the year for older dates in 'yy format.

Here's :        At the moment, the latest entry there is October 13, which would be mistaken to mean October last year (2012), but it actually is October 2010. This applies to all the filters in the activity tab.


We know that the value of PDF at a specific time (X = x) is 0 due to the nature of a distribution of a continuous variable. However, I noticed that when I plug in some test numbers in NORM.DIST() in Excel with CUM = FALSE, it still gives a significant, non-zero answer. =EXPON.DIST(15,1/20,FALSE) O/P: 0.023618328  I looked up Microsoft's documentation to see if their formula has any continuity correction factor added (like, for above example, X=15 +/- 0.05) but that doesn't seem to be the case. Can someone explain why this is the answer and not 0?

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


I can create a database with this query   $dbh->exec("CREATE DATABASE `$db` CHARACTER SET utf8 COLLATE utf8_bin;              CREATE USER '$user'@'%' IDENTIFIED BY '$pass';              GRANT USAGE ON *.* TO '$db'@'localhost' IDENTIFIED BY PASSWORD '*3D3B92F242033365AE5BC6A8E6FC3E1679F4140A';              GRANT ALL PRIVILEGES ON `$username\_$dbusername`.* TO '$user'@'localhost';")    But encrypted passwords are contained in the query:  '*3D3B92F242033365AE5BC6A8E6FC3E1679F4140A'   decryption version:  test1234   This automatically encrypted by MySQL and how can I encrypt the test1234 with PHP?  Full Version  $user='abc_dbuser'; $db="abc_dbname"; $pass='test1234'; $dbusername="dbname"; $username=get_current_user();      try {         $dbh = new PDO("mysql:host=$host", $root, $root_password);         $dbh->exec("CREATE DATABASE `$db` CHARACTER SET utf8 COLLATE utf8_bin;                     CREATE USER '$user'@'%' IDENTIFIED BY '$pass';                      GRANT USAGE ON *.* TO '$db'@'localhost' IDENTIFIED BY PASSWORD '*3D3B92F242033365AE5BC6A8E6FC3E1679F4140A';                     GRANT ALL PRIVILEGES ON `$username\_$dbusername`.* TO '$user'@'localhost';                     ")          or die(print_r($dbh->errorInfo(), true));

I know that php has md5(), sha1(), and the hash() functions, but I want to create a hash using the MySQL PASSWORD() function.  So far, the only way I can think of is to just query the server, but I want a function (preferably in php or Perl) that will do the same thing without querying MySQL at all.  For example:  MySQL hash -> 464bb2cb3cf18b66  MySQL5 hash -> *01D01F5CA7CA8BA771E03F4AC55EC73C11EFA229  Thanks!


I want to insert a number in function and get in return the name of the month according to the number I have tried CASE, IF, SET and so on. Still not working (syntax error near IF line 6)     ALTER FUNCTION fn_Return_monthname (@monthPart INT)     returns VarChar(50)      begin       declare valjund VarChar(50);       SET valjund = 'Unknow month'       IF @monthPart = 1;         SELECT valjund = 'January'       ELSE IF @monthPart = 2         SELECT valjund = 'February'       ELSE IF @monthPart = 3         SELECT valjund = 'March'       ELSE IF @monthPart = 4         SELECT valjund = 'April'       ELSE IF @monthPart = 5        SELECT valjund = 'May'       ELSE IF @monthPart = 6        SELECT valjund = 'June'       ELSE IF @monthPart = 7        SELECT valjund = 'July'       ELSE IF @monthPart = 8        SELECT valjund = 'August'       ELSE IF @monthPart = 9        SELECT valjund = 'September'       ELSE IF @monthPart = 10        SELECT valjund = 'October'       ELSE IF @monthPart = 11        SELECT valjund =  'November'       ELSE IF @monthPart = 12        SELECT valjund =  'December'       return valjund;     end;

I have months stored in SQL Server as 1,2,3,4,...12. I would like to display them as January,February etc. Is there a function in SQL Server like MonthName(1) = January? I am trying to avoid a CASE statement, if possible.


(Win 8.1 Pro 64b on Intel i7)  All right, I have this fully-automated backup script running daily. However, it turns out, that one of the saved directories (consuming about 25% of the space,  and consequently, about the same portion of the total backup time) is modified quite rarely.  I'd now opt to save the directory in question just once weekly. Only that I am not able to figure out how to obtain the day of week in a .bat file.   (Of course, I could do what was done on a HP41C back in olden times and do calculations involving day of month, month of year, and year, but well, I think of it as plan B.)  Is there a way to load the day of week into a .bat variable in a somehow more efficient manner?

I want to run a daily incremental backup and append the day of the week to the file name so I end up with:  backup_mon.bak backup_tue.bak  etc.  Not really bothered about what exactly is appended - 0 - 6 is fine.  How do I go about this?


[Blender 2.90.1 I have multiple images here but seems it will only let me post one at a time. But as you can see Blender will not show any of my materials (this is tutorial I've been working on for a while and it was absolutely fine the last time I opened it some weeks ago. Now it will not show materials or it'll show something that looks TV static It will display darkness in Render Mode or Material preview and will only show the object if I select it. It will only show the outline of it then, can't see it as you can below.  It does not matter if I open a fresh new blender window, the default cube does the same thing.  Is there some new setting I've missed turning on? My video card going bad?  It will display some materials in Cycled Render but same darkness if I switch to Modeling, layout or any other mode.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


When I try to compile the code for this  or its , I have an error. A year ago, I didn't have that mistake.     Package xkeyval Error: language' undefined in familiesglobal'.   \documentclass[12pt]{article} %\usepackage[utf8]{inputenc} %\usepackage[upright]{fourier} \usepackage{alterqcm}  \parindent0pt \begin{document} \begin{alterqcm}[lq=8cm,language=english]   \AQquestion{Question}{%   {Proposition 1},  {Proposition 2},  {Proposition 3}}   \end{alterqcm}  \end{document}   What's the problem now?

This question has a continuation here   The alterqcm package is no longer maintained by Alain Matthes. Two other developers maintain it. I wrote to them 15 days ago by email to report the error reported here:  I have not received a reply. I am trying to reduce the spacing between the lines of the QCM as indicated in  by @Werner and it does not work. In addition, by using the David Carlisle's code given in , I get an X instead of a square.  Full code of the screenshot: \documentclass[12pt]{article} %\usepackage[utf8]{inputenc} %\usepackage[upright]{fourier} \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox \usepackage[english]{alterqcm} \def\square{X} % <---------- David Carlisle comment \def\nogreekalph{??} % <---- David Carlisle comment \parindent0pt \begin{document} % Original display \begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {Proposition 1},  {Proposition 2},  {Proposition 3}} \end{alterqcm}  \bigskip  % Smashed display !!!!!! Dont work now  {\begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {\smash{Proposition 1}},  {\smash{Proposition 2}},  {\smash{Proposition 3}}} \end{alterqcm}}  \bigskip  % Global smashed display !!!! Dont work now  \makeatletter \patchcmd{\aq@prop}{\vbox{#1}}{\vbox{\smash{#1}}}{}{}% patch \aq@prop \makeatother \begin{alterqcm}[lq=8cm]  \AQquestion{Question}{%  {Proposition 1},  {Proposition 2},  {Proposition 3}} \end{alterqcm}  \end{document}  Is there a solution?


Let $y:\mathbb{R}\to \mathbb{R}$ be differentiable and satisfy the ODE $${dy\over dx}=f(y),\; x\in \mathbb{R},\; y(0)=y(1)=0$$      Where $f: \mathbb{R}\to \mathbb{R} $ is a Lipschitz continuous function. Then          $(a)$ $y(x)=0$ if and only if $x\in \{0,1\}$   $(b)$ $y$ is bounded   $(c)$ $y$ is strictly increasing    $(d)$ ${dy\over dx}$ is unbounded       Efforts:  If I take $y=0$ then option $2$ is correct and rest are discarded.   But I don't like solving questions by constructing examples and couterexamples. How can I prove option $b$ directly.   Thanks.

Let $y:\mathbb R\to \mathbb R$ be differentiable and satisfy the ODE: $$\frac{dy}{dx} =f(y),x\in\mathbb R$$ $$y(0)=y(1)=0$$  where $f:\mathbb R\to \mathbb R$ is a Lipschitz continuous function. Then   $y(x)=0$ if and only if $x\in\ ${$0,1$} $y$ is bounded $y$ is strictly increasing $\frac{dy}{dx}$ is unbounded.   I've got this question from an exam paper, and I cannot understand how to solve it. How should I use the condition of Lipschitz continuity of $f$ to solve it?   Please help.   Thanks in advance.


How can you check whether the given expression shows simple harmonic motion or not?And also how to calculate angular frequency of the given equation?

I am a Math Grad student with a little bit of interest in physics. Recently I looked into the Wikipedia page for .  Guess, I am too bad at physics to understand it. Considering me as a layman  how would one explain:   What a Simple Harmonic motion is? And why does this motion have such an equation $$x(t)= A \cos(\omega{t} + \varphi)$$   associated with it? Can anyone give examples of where S.H.M. is tangible in Nature?


I'm quite new to OpenLayers and much of the documentation is just strings of jargon, so please forgive me if this is a noobish question.  I've intialised an OpenLayers map with Google physical and satellite layers plus a vector layer for users to add polygons. The init code is as follows:  //define extent var miny=-2000000; var minx=6000000; var maxy=600000; var maxx=10003750;          // allow testing of specific renderers via "?renderer=Canvas", etc var renderer = OpenLayers.Util.getParameters(window.location.href).renderer; renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;    //define the layers needed     g_phys  =   new OpenLayers.Layer.Google("Google Physical",{type: google.maps.MapTypeId.TERRAIN, numZoomLevels:20}, {isBaseLayer:true});     g_sat   =   new OpenLayers.Layer.Google("Google Satellite",{type: google.maps.MapTypeId.SATELLITE, numZoomLevels:20},{isBaseLayer:true});     boxes  =    new OpenLayers.Layer.Vector("Boxes", {rederers:renderer});   //create new set of option for the map var options = {             projection: new OpenLayers.Projection("EPSG:3857"),             units: "m",             maxResolution: "auto",             maxExtent:  new OpenLayers.Bounds(miny, minx, maxy, maxx),             theme: null,             layers: [                 //define the base layers for the map                 g_phys,                 g_sat,                 boxes                      ]          };   //create new map object based on "map" div map=new OpenLayers.Map('map',options); map.zoomToMaxExtent();   However, the map allows a maximum zoom such that the window shows about the length of Canada and one of my clients would like to easily add polygons that span larger than this distance, so needs to zoom out further.  I've tried changing the maxextent values and this doesn't seem to help. Could anyone help explain to someone not overly familiar with Geography how to allow the user to zoom out further - ideally to view from the Arctic to Antarctica at maximum zoom.

See attached picture. This is how it is when the page loads. I'm currently using  map.zoomToMaxExtent();     Everything is working pretty well but I'd like to zoom out more/see the whole world using OSM/Google Map Layers: is this even possible?  Note that the zoom bar on the left is set to the lowest bar when the page loads (if you can't see the map well, just right click the image and paste into a new browser tab).   This  but even when I do MIN_ZOOM_LEVEL that doesn't do much.  Also note I am not setting any bounds, extents, or resolutions. Toying with those did not seem to do the trick either.   Any input is appreciated.   Edit: here's a codeshare if you want to take a look:   UPDATE:  This is not perfected yet (and it makes me think something may be wrong with my OL code itself) but currently I am using this   var extent = new OpenLayers.Bounds(-1.32,81.71,-1.18,-61.80).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:3857"));   I tried   var extent = new OpenLayers.Bounds(-20037508.34279,-10018754.17139,20037508.34279,10018754.17139);   (both with and without transform) but this did not do anything.   UPDATE 2:   wrapDateLine: false works fine for now: can zoom out farther, pan around, etc etc.  Now I would like to cut off everything to the left of the date line on the left side of the map (the 'first' portion), and cut off everything to the right of the date line on the right side of the map (the '3rd' portion) WHILE still keeping the map full screen. I've tried bounds, resolutions, but no go. Is this even feasible?  Something like this but it should take up the full screen: possible to do? See below:


I had the problem of GRUB_TIMEOUT="1" having no effect. Just like in these questions   . Setting GRUB_RECORDFAIL_TIMEOUT="1" accomplished what I needed. . But I am not certain if this is the (GRUB-designer-)intended solution to my problem. Should I instead be fixing whatever is causing the recordfail to trigger in the first place?  How do I figure out what is causing recordfail to be triggered?  Observations/attempts:   I tried running both grub-editenv create and sudo grub-editenv - unset recordfail. Followed by sudo update-grub. No visible results. In the file /etc/grub.d/00_header in the function make_timeout() there are the following lines:   if [ "\${recordfail}" = 1 ] ; then   set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30}   if [ "$recordfail_broken" = 1 ]; then   cat << EOF if [ \$grub_platform = efi ]; then   set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30}   if [ x\$feature_timeout_style = xy ] ; then     set timeout_style=menu   fi fi EOF fi   (I don't understand the syntax in the second excerpt and why there is an if-clause inside an if-clause.)  I changed the timeout in the second excerpt from 30 to 50 and, after sudo update-grub and a restart, observed that the GRUB timeout at boot was indeed 50 seconds.   I also verified that in the grub console at boot echo $grub_platform yields efi.   Extra info:  Current /etc/default/grub (the colors at the end don't work):  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT="0" #GRUB_TIMEOUT_STYLE="hidden" GRUB_TIMEOUT=2 GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/ubuntu--vg-swap_1 sysrq_always_enabled=1" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL="console"  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE="640x480"  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID="true"  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"  #GRUB_HIDDEN_TIMEOUT="2" GRUB_DISABLE_OS_PROBER="true" GRUB_RECORDFAIL_TIMEOUT="1"  export GRUB_COLOR_NORMAL="green/black" export GRUB_COLOR_HIGHLIGHT="light-green/black"   I think my system uses UEFI (laptop from 2017 maybe), but I'm planning to switch my boot to legacy (BIOS?) mode soonish (due to a kernel parameter needed for an SSD to boot).  I'm using LVM, but not encryption. /boot is on ext4 under LVM.  Kubuntu 18.04

First of all: Yes, I ran sudo update-grub after changing the value.  After a new install of Ubuntu 18.10 on an empty disk the wait time at the grub menu is of 30 seconds (half an eternity!).  The line GRUB_TIMEOUT in /etc/default/grub had a value of 0. Changing this to 10 did not change the wait time, it was still 30 seconds.  Any ideas?


I expect that, in Python with numpy and scipy,  scipy.stats.chisquare(numpy.bincount(numpy.random.randint(100, size=1000000)))   will return P-value which is very close to 1.   In reality, I constantly get different P-values which are not close to 1 at all. P-values of different runs are scattered from 0 to 1, no matter how many categories I have and how big sample is.  It seems I don't understand something very basic. But what? Is chi2 test applicable here?  If not, how can I test uniformity of pseudo-random values generated by machine? (I know that there are a lot of tests for random number generators. I'm looking for test for uniformity.)  What I didn't understand  Indeed, P-value is distributed uniformly if null-hypothesis is true. Looks obvious when I understood it.  My mistake was that I expected to have P-value to be close to 1. If distribution is really uniform, P-value should be uniformly scattered over [0, 1]. And I should check that P-value greater than some value close to 0. If distribution weren't uniform, I would get values close to 0, since there is very low (close to 0) probability that I would get more extreme results if distribution were uniform.

Recently, I have found in a  a statement that p-values should be uniformly distributed. I believe the authors, but cannot understand why it is so.   Klammer, A. A., Park, C. Y., and Stafford Noble, W. (2009) . Journal of Proteome Research. 8(4): 2106–2113.


I have a byte array containing encoded bytes as   Byte* encodedBytes;   This contains encoded bytes. Now this array is assigned to an char pointer by typecasting.   char *data = (char*)encodedBytes;    Now Is there any API that can give me the size of data ? I can't use strlen() because encoded bytes may contain null character in between as well .

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


Can someone explain me how to compute this expectation?  $E[(\int_0^tB_sds)^2]$  I know that the result is $t^3/3$

Let $W(u)$ $(u \geq 0)$ be a Brownian motion on a probability space $(\Omega, \mathscr{F}, \mathbb{P})$. Let $I(T) = \int_0^T W(u) du$.  One can use integration by parts to show that $I(T) = \int_{0}^T (T-u) dW(u)$.  Since the Ito integral of a deterministic integrand is normally distributed, one can use Ito's isometry to show that the variance of $I(T)$ is $\frac{1}{3}T^3$.  Page 112 of Monte Carlo Methods in Finance by Glasserman states that the variance of $I(T)$ is given by  $\mbox{Var}(I(T)) = 2\int_{0}^T \int_{0}^t \mbox{Cov}(W(u),W(t)) du dt = 2 \int_{0}^T \int_{0}^t  u du dt = \frac{1}{3}T^3$.  I do not understand the first part of the equality - is it a consequence of Fubini's theorem?


Let's assume my name is "A B C" for the argument's sake.  It's an Asian name, and it is written that way in the passport (more or less. Actually in the passport it is written with full phonetic marks and symbols - but is not unrecognisable from the non-phonetic one). The passport doesn't make it clear which part is the family, middle, and first name, it is understood that "A" is the family name, "B" is the middle name, and "B" is the first name.  I've booked an international flight, and the website requires to input names in order of first-middle-last. No problem here, I simply input them as they are. The problem is, when the ticket is issue, the name on the ticket will be "A/C B", unmatched with the one written in my passport. The name on the itinerary is "C B A", also not a match.  The reservation is already booked, and name change is impossible.  My gravest concern is with the given names. The whole given name as written in passport is "B C", while that on the ticket is "C B". Do you think it can be a problem?

I recently booked tickets to travel by plane from the UK to Greece. The website I booked through (airfasttickets.co.uk) lists my name correctly, as "Mr Georgios [My surname]", exactly the same as in my passport.  When I log in to the airline's (Aegean Air) website using the booking number the above website gave me, my name is somehow listed as "Georgiosmr [My surname]" (the title "Mr" seems to have been appended to my first name).  Since I'm going to be travelling from the United Kingdom and my name is obviously non-english, I'm afraid they may have doubts about the "mr" at the end being a mistake instead of part of it and deny me entry.  I've sent two e-mails to Aegean but it's been more than a week since the last one and 2-3 weeks since the first and they haven't replied. Calling them would be too expensive since they're based in a different country than my phone provider and I'd rather avoid it.  Is there anything else I can do? Is it likely that they'll think "mr" is part of the name of the ticket's owner?


I upgraded from Ubuntu 14.04 to 14.10. I did it by following the steps on the Ubuntu site. I set my update preferences to warn me about any new version of Ubuntu. As soon as I did this, it told me the 14.10 was available and asked me whether I wanted to upgrade it or not.  First, I have to say that I'm very new to Ubuntu and I'm not familiar with names and codes and using the Terminal.  Well, it upgraded and asked me to restart and so I did. But when it restarted a purple screen appeared and then the word Ubuntu appeared with the dots under it (as if it was loading) and then it went a screen full of messages and then to a black screen with a blinking cursor on the top left corner. I discovered by accident the shortcut ctrl+alt+f1 which led me to some sort of a login screen. I logged in and a message appeared saying it could not start unity.   What should I do?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


import java.util.Scanner; import java.lang.Math;  public class Assignment1{          //instance variables          double a;      double b;      double c;     // method     public double hypot(double x, double y){         x = x*x;         y = y*y;         double z = x+y;         z = Math.sqrt(z);         return z;      }     // constructor     public Assignment1(double a , double b, double c){             this.a = a;         this.b = b;         this.c = c;     }      public static void main(String [] args){ // execution starts from here             Assignment1 obj = new Assignment1(a,b,c);         Scanner in = new Scanner(System.in);         System.out.println("Enter the values to compute the pythagoras    theorem");          obj.a = in.nextDouble();         obj.b = in.nextDouble();         obj.c = hypot(a,b);         System.out.println("The hypot is"+ c);       }   }   What is the problem with this code... I m creating the objects... then it should worl fine !! Aint it???

The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:     You can either make the non static method static or make an instance of that class to use its properties.   Why? I am not asking for solutions. I would be grateful to know what is the reason behind it. The very core reason!  private java.util.List<String> someMethod(){     /* Some Code */     return someList;             }  public static void main(String[] strArgs){                // The following statement causes the error. You know why..     java.util.List<String> someList = someMethod();          }


I implement switch in action bar it gives me error Attempt to invoke virtual method 'void android.widget.Switch.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference  menu xml    <item     android:id="@+id/toggleservice"     android:actionViewClass="android.widget.Switch"     android:showAsAction="ifRoom"     android:title=""/>     Main activity  @Override public boolean onCreateOptionsMenu(Menu menu) {     getMenuInflater().inflate(R.menu.menu, menu);     final MenuItem toggleservice = menu.findItem(R.id.toggleservice);     final Switch actionView = (Switch) toggleservice.getActionView();     actionView.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {         @Override         public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {             if (isChecked){                 Toast.makeText(MainActivity.this, "Checked", Toast.LENGTH_SHORT).show();             }else{                 Toast.makeText(MainActivity.this, "UnChecked", Toast.LENGTH_SHORT).show();             }          }     });     return super.onCreateOptionsMenu(menu);  }   logcat error  03-28 12:09:43.556 10445-10445/? E/AndroidRuntime: FATAL EXCEPTION: main                                                Process: com.example.prem.weatherapp, PID: 10445                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Switch.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference                                                    at com.example.prem.weatherapp.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:92)                                                    at android.app.Activity.onCreatePanelMenu(Activity.java:2850)                                                    at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:362)                                                    at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:98)                                                    at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:335)                                                    at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:98)                                                    at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:454)                                                    at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61)                                                    at android.os.Handler.handleCallback(Handler.java:746)                                                    at android.os.Handler.dispatchMessage(Handler.java:95)                                                    at android.os.Looper.loop(Looper.java:148)                                                    at android.app.ActivityThread.main(ActivityThread.java:5443)                                                    at java.lang.reflect.Method.invoke(Native Method)                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)   Thanks in advance

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


There is a viral video spread showing a helix stick moving against water. For more detail there is a stick look like a spring. When water slowly pour on it. The spring like stick climbing on the falling water stream. It appears as the stick move agains lows of physics.  See the video on this link:       I assume this is a science toy which move against water flow using water energy. Can any one tell me the name of this tool or theory?

A corkscrew-shaped object is floating in a tub of water. When water is poured into the tub from some height, the object starts rising up vertically in the stream of water. The water stream is falling down in a spiral fashion. What is the Physics behind this? Is it the turning effect on the object caused by the spiral motion of the water falling on it? Or is it some other phenomenon?


I want to check in a blank folder to my Git repository. Effectively, I need to ignore all of the files and folders within the folder, but not the folder itself. How can I do this? What should I put in my .gitignore file? For those wondering why I would want to do this, I have an "upload" directory in my repository. I want to commit the blank directory, but without all the contents.

How can I add an empty directory (that contains no files) to a Git repository?


I'm getting problems when trying to set the location of a couple of groupboxes...  This is a picture of the application in default size,  the groupboxes are in the middle of the form, and that's what I want.   This is another picture, when the application is resized,  the groupboxes are moved to the left side, they are not still in the middle  The anchor property of the groupboxes are "Right" (I've tried all combinations)   And this is a picture of the application when is full maximized,  the groupboxes are mover to the right side.   I want to preserve the groupboxes in the middle of the tabpage when resizing.  Here's a video:

I'm trying to center a fixed size control within a form.  Out of interest, is there a non-idiotic way of doing this? What I really want is something analogous to the text-align css property.  At the moment, I'm setting the padding property of the surrounding form to a suitable size and setting the Dock property of the control to fill.


So has the title say I want to know if it's possible to overwrite the entire internal hard disk with Ubuntu? I've messed up with windows partition (uff) and that won't boot so I'm asking this to currently boot only ubuntu

I would like to see a full how-to guide on how to install Ubuntu.


When the comments are listed to either a question or answer, sometimes there are rather long comments, pushing the length limits. Other times there are loads upon loads of comments. I know there's settings to only show a few, and then click to load the rest. But I consider that a crutch when I think about my idea.  This is just like when you're browsing any list of posts which show the first little bit, only enough to fill 2 lines of text. When comments are listed, if it's more than 2-3 lines for example, cut it down. This way, you can do a bit less scrolling on those posts that have a lot of long comments. Because after expanding all the comments of some of these posts, it takes sometimes 20 mouse wheel turns to get past all the comments. (Well, not for me, more like "wireless mouse touch-sensitive scroll" or whatever they call it).  Obviously there would have to be some sort of indication on each comment if it has been shortened. To the right, there should be a "..." at the end of the text, as well as some sort of indicator such as an arrow pointing down. When clicking on that comment (or tapping your finger), it expands to the full text. If you click again after it's expanded, it will condense it again.  A very similar method is at play on . When you're browsing news headlines, if you click on one, it expands and shows more info and related stories. Click on it again, and it shrinks back to its small box. This is exactly how I imagine the comments to work on Stack Overflow, and why not all Stack Exchange sites?  PS - I originally thought that 2 lines of text would do the trick, but now I'm debating with myself whether it should be 1 or 2 lines. I figured I'd leave that decision up for higher authority.    UPDATE  Yeah, I'm thinking 2-3 line limits would be more adequate.

Comments are useful. Many, many posts need some small amount of meta discussion, and comments fulfill this need.   Comments are also noisy and distracting. Occasionally, someone will post an insightful and informative comment that complements the post its attached to... But more often, they're tangential, quickly irrelevant and in the way: stale comments show up first, making newer comments less visible.  The guidance here for a long time has been that comments are transient, . And yet, some do hang around for months or years because .   So let's fix that.   I propose that all comments older than 7 days be hidden by default unless the comment has been up-voted in the past 30 days. Hidden comments should be indicated by a note below the post ("add / show 3 more comments") and made visible to anyone who cares to click it.   This doesn't destroy anything, but it would get it out of the way of most readers - and hopefully encourage folks to edit it into the actual answers as a result.  Note: I previously suggested this . Other  have been . However, I'm not suggesting that comments be automatically deleted, and they should be hidden based purely on the age / activity of the comment itself, not of the post to which they're attached.


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


When I try to purge VLC using sudo apt-get purge --auto-remove vlc, I get this:  But when I open apps list, that package is just right there.  So far, I have tried following things:  I used terminal but it says not installed. I tried Ubuntu software it says it's not installed. I used synaptic package manager to remove it but it also says that it's not installed.  After all of that, I can still use VLC properly. What am I missing here? How can I remove VLC?

I used this command line  sudo snap install pwgen-tyhicks   to install pwgen but I can't findout how to use it. So I want to uninstall it. How to  uninstall it?


Family engagement is crucial to developing children’s emergent literacy skills because children who are raised in homes that promote literacy do better in school and they grow up to be better readers.

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


This is apparently a classical differential problem yet I struggle to find the demonstration of the next affirmation: The restrictions to $S^2(1)$ of the orthogonal lineal applications of $R^3$ are the isometries of the unit sphere.

Got this as homework and I don't know how to tackle this. Help please!  Prove that the isometries of $\mathbb{S}^{n} \subset \mathbb{R}^{n+1}$, with the induced metric, are restrictions to $\mathbb{S}^{n}$ of the linear orthogonal transformations.


Input: {'Thiem': (3, 0, 10, 104, 11, 106),   'Medvedev': (1, 2, 11, 106, 10, 104),   'Barty': (0, 2, 8, 74, 9, 76),   'Osaka': (0, 4, 9, 76, 8, 74)}  The expected output should be sorted based on Values of Dict, in the order of attributes in values tuple. Like, firstly on 1st field value(desc), if matching then on 2nd value(desc), till 4th field(desc) and Ascending on 5th & 6th field.  I tried using sorted() method in a couple of ways. output: Thiem 3 0 10 104 11 106 Medvedev 1 2 11 106 10 104 Osaka 0 4 9 76 8 74 Barty 0 2 8 74 9 76  Kindly assist or suggest an approach. Edit: Updated description for more clarity. Below is the code i tried: >>> results=[] >>> for (k,v) in d.items():     results.append(v) >>> results.sort(key= lambda x: (x[4],x[5])) >>> results.sort(key= lambda x: (x[0],x[1],x[2],x[3]), reverse=True)

I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary.  I can sort on the keys, but how can I sort based on the values?  Note: I have read Stack Overflow question here  and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.


I want to create my own light source using high power 1W LEDs. Can I solder high power 1W LEDS on aluminum with 60/40 solder?

What is the trick to soldering to aluminum bases (like are found on the older Luxeon LEDS?)


I am using C# in WinForms to use a trackbar as follows. At the beginning of the code I define the event handler: this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);   And here is the implementation when one scrolls the trackbar: private void trackBar1_Scroll(object sender, EventArgs e) {     //do something... }  So this works, but I need to call the above function from inside another event handler such as: public void numericUpDown1_TextChanged(object sender, EventArgs e) {     //what to do here to call trackBar1_Scroll ? }  What could be done to call trackBar1_Scroll from inside numericUpDown1_TextChanged?

I want to programmatically invoke an event handler for a control. For example:  DateTimePicker dtpLastConsummated;   I want to trigger the TextChanged event handler for the dtpLastConsummated, how can i do it?  In other languages I would call something akin to:  dtpLastConsummated.TextChanged(this, new EventArgs());   but in .NET you can have multiple event handlers:  dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_TextChanged); dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_AnotherHandler); dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_MoreHandlers); ... dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_Nminus1);   so you need a way to trigger all the attached event handlers.    Answer  The following code will fire the event:  Toolkit.FireEvent(dtpLastConsummated, "TextChanged", new EventArgs());   And here's the code of the static toolkit function:  /// <summary> /// Programatically fire an event handler of an object /// </summary> /// <param name="targetObject"></param> /// <param name="eventName"></param> /// <param name="e"></param> public static void FireEvent(Object targetObject, string eventName, EventArgs e) {    /*     * By convention event handlers are internally called by a protected     * method called OnEventName     * e.g.     *     public event TextChanged     * is triggered by     *     protected void OnTextChanged     *      * If the object didn't create an OnXxxx protected method,     * then you're screwed. But your alternative was over override     * the method and call it - so you'd be screwed the other way too.     */     //Event thrower method name //e.g. OnTextChanged    String methodName = "On" + eventName;     MethodInfo mi = targetObject.GetType().GetMethod(          methodName,           BindingFlags.Instance | BindingFlags.NonPublic);     if (mi == null)       throw new ArgumentException("Cannot find event thrower named "+methodName);     mi.Invoke(targetObject, new object[] { e }); }     Note: I'm not creating a subclass of every control in the .NET framework, and every 3rd party control, and convincing an enterprise worth of developers to retrofit every form to use my custom controls.


I want to test the suitability of a web-page control. Can I post a multiple-choice survey in an appropriate group? If so, how?  Thanks!

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


After hitting F12, the rendered image looks pixalated, even if I change the resolution setting to 200%. ]

I often use Cycles' built in Glass BSDF shader to achieve realistic refraction effects, but in many cases, it seems that Cycles' glass caustics creates an unfortunately large number of fireflies (pixels that are abnormally bright relative to their surroundings). In some models of mine, even when I render for 3000 or more samples/pixel, my final image is still covered in fireflies. While I can improve this in many cases by increasing the total amount of light available in the scene, this loses a lot of the potency of the refractive effects I'm looking for, especially in scenes with low light levels.  So my question is, how can I reduce the amount of fireflies while using Cycles' caustics without sacrificing the quality of the refractive effects?  Note: I am aware that Cycles' caustics will perform much better once Cycles has full support for bidirectional path-tracing, but it looks unlikely that that will become , unfortunately.


Let a sequence ${[a_n]}$ be defined such that $a_1=1$ and when $n\ge1$, $$a_{n+1}=a_n+\frac{1}{a_n}$$ Then, show that:$$12<a_{75}<15$$ (the bracket in ${[a_n]}$ does not denote GIF, it is a general sequence)  All I got to know was that using the recursive relation we get:$$a_{75} = a_1+(\frac{1}{a_1} + \frac{1}{a_2}+\frac{1}{a_3}+\frac{1}{a_4}+...+\frac{1}{a_{74}})$$ I do not know how to proceed further. When I tried to express everything in form of $a_1$, it is becoming too messy and complicated. Like: $$a_2 = a_1 + \frac{1}{a_1}$$ $$a_3 = a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}} $$ $$a_4 = a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}} + \frac{1}{a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}}}$$ $$a_5 = a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}} + \frac{1}{a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}}}+\frac{1}{a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}} + \frac{1}{a_1+\frac{1}{a_1} +\frac{1}{a_1 + \frac{1}{a_1}}}}$$ And so on... Any hints or help would be appreciated!  This question has to be done without using induction.


In dnd warlock spell slots are max level so if you make a first-level warlock spell slot using Sorcery points does the spell slot become max level is this possible and if it is can you make infinite spell slot by making a 1st level spell slot and it becoming a 3rd level slot then making it into 3 Sorcery points using 2 to make a 1st level slot and it becoming a 3rd again gaining a spell point every time you do this thus making infinite spell slots? what I'm basically asking is that in and 5e does a 1st level warlock spell slot become a 3rd because it says that all your spell slots are max level.

Can a multiclass sorcerer make spell slots for their other class using sorcery points?  For example: can a multiclassed sorcerer 3 / warlock 1 use Flexible Casting to create a warlock spell slot?


Does it make sense to replace a factory Win8 64-bit OS with a 32-bit one on a netbook-like Intel Celeron 847 laptop with 2GB non-extensible (soldered) RAM?

I am planning to rent a VPS service with following basic specification:   512mb of RAM 1 CPU 20gb HDD (4gb of it is swap) Ubuntu 10.10 server   I am able to choose between a 32 bit or 64 bit install of Ubuntu server as the operating system.   My question is would it be better to chose a 32 bit operating system since I will have only 512mb of RAM, rather than using a 64 bit operating system and dealing with the additional overheads?  edit:  I have installed Ubuntu server 10.10 32 bit and 64 bit on VirtualBox. After a minimalistic installation with only ssh server, the 32 bit installation consumes 63mb of RAM when first boot up and 64 bit consumes 85mb of RAM.  After installing and running  daemon, 32 bit consumes 99mb of RAM when first boot up and 64 bit consumes 128mb.


I want to understand how to use the covariance matrix to get principal components? If I have a usual data matrix n x p  in which Y is the matrix and S is the sample variance-covariance matrix how can I use this covariance matrix (S) to get all principal components? And from that can I get the variance-covariance matrix of the principal components? If so what type of matrix would be and what does it mean? I need an intuitive approach using mathematics to help me to understand this.

Given a data matrix $\mathbf X$ of $12 \times 7$ size with samples in rows and variables in columns, I have calculated centered data $\mathbf X_c$ by subtracting column means, and then computed covariance matrix as $\frac{1}{N-1} \mathbf X_c^\top \mathbf X_c$.  The dimensions of this covariance matrix are $7 \times 7$. After that I have calculated the eigenvalue decomposition, obtaining eigenvector matrix $\mathbf V$ with eigenvectors in columns.  Now I want to know about projections (i.e. principal component scores in PCA): is it $\mathbf{V}^\top \mathbf{X}_c$ or $\mathbf{X}_c \mathbf{V}$?  mean_matrix = X - repmat(mean(X),size(X,1),1); covariance = (transpose(mean_matrix) * mean_matrix)/(12-1);  [V,D] = eig(covariance); [e,i] = sort(diag(D), 'descend'); V_sorted = V(:,i);


My self-defrosting freezer appears to have gotten stuck in defrost mode for the past three weeks.  The internal temperature is around 25F rather than the ideal 0F, but nothing seems to have thawed.  Is the food still good to eat?  (The refrigerator compartment is also too warm, at 45F rather than 35F, but nothing in there is particularly heat-sensitive.)

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


I am currently trying to figure out why the click() does not work on the buttons that have been dynamically created with js. Below is the code I have:         jQuery(document).ready(function()             {                  jQuery.ajax({                 url:ajaxobject.ajaxurl,                 method: 'GET',                 data: {                     action: '2017_application'                 },                 success: function(data)                 {                     var applications = JSON.parse(data);                      for (var i = 0; i < applications.length; i++)                     {                         var content = '
' +                                              '
' + applications[i]['teamname'] + '
'+                                             '
' + applications[i]['firstname'] + '
'+                                             '
' + applications[i]['lastname'] + '
'+                                             '
' + applications[i]['status'] + '
'+                                              '
' +                                                 '<button onclick="window.location.href=\'/info/?teamname='+ applications[i]['teamname'] + '\'">View</button>
' +                                                 '<button class = "app2-accept" tname='+applications[i]['teamname']+'>Accept</button>
' +                                                 '<button class = "app2-remove">Remove</button>
' +                                             '
'+                                         '
';                          jQuery("#app2-table").append(content);                     }                 }             });   When I use click() on the ".app2-accept" nothing happens.      jQuery(".app2-accept").click(function()                  alert("Testing");           });   Can anyone advise how to resolve this?

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


Suppose that $a$ and $b$ belong to a field of order $8$ and $a^2 + ab + b^2 =0$. Then $a=0$ and $b=0$. Do the same when the field has order $2^n$ with $n$ odd?   If one of the term is zero, i.e. let $b=0$ then $a^2 =0 \implies a =0$. We also note that since field is of order $8$, $a^7 = 1 = b^7$.  But how to bring a contradiction if I consider any one to be not equal to $0$? I want to use only basics.

Suppose $a$ and $b$ are elements of a finite field of order $2^n$ with $n$ odd and $a^2+ab+b^2=0$. Is it necessary that both $a$ and $b$ must be zero ?  I understand that the field has characteristic $2$ but don't know how to use the fact that $n$ is odd, please help.


First of all, sry because I am not a DBA and I'm not familiar with all the permissions.  My question is, if I give a user db_owner permissions on one database. Do I need to give also db_datareader and db_datawriter permissions to have full control? I think db_owner is sufficient to execute all kind of queries on the database? (create, delete, alter, select and all other stuff).   So, in short: If I choose db_owner, then db_datareader, db_datawriter are automatically included. Am I right?

I have been trying to troubleshoot a login that is not able to view certain tables in a SQL Server 2012 database. In doing so I find I don't quite understand what membership in the db_owner role allows. I can understand the other roles such as db_datareader and db_datawriter but I remain confused as to what db_owner allows.


Really I have no idea how this happened or how to describe it correctly.  I think it started after a sudo apt upgrade, and every time I close the lid on my laptop and re-open the lid, this happens.

NB: Nvidia has released an official fix; please see ,  and/or .  Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and similar:      This is currently known to affect the following NVIDIA cards running the proprietary drivers:  NVIDIA GeForce 610M, driver version 375.39, 340.102 NVIDIA GT 630M, driver version 375.39 NVIDIA GTX 650, driver version 375.39 NVIDIA GT 740M, driver version 378.13 NVIDIA GTX 745, unknown driver version NVIDIA GTX 850M, driver version 375.39, 378.13 NVIDIA GT 940M, driver version 375.39 NVIDIA GTX 950M, unknown driver version NVIDIA GTX 960M, driver version 378.13 NVIDIA GTX 970, driver version 375.39 NVIDIA GTX 970M, driver version 375.39 NVIDIA GTX 980 TI, unknown driver version NVIDIA GTX 1060, driver version 375.26, 375.39, 378.09 NVIDIA GTX 1070, driver version 378.09  The above above list has been sourced from reports from other users here on AU,  thread, and  thread. NB: This is be no means an exclusive list. It probably effects nearly all Nvidia cards.  Furthermore, this issue has been replicated on a clean install where the only change was a software update and the installation of the latest NVIDIA drivers.  What is going on, and how can it be resolved?


Why don’t the twins notice anything? I mean, come on:     First year: "Hey, Voldy's balancing on Quirrel's head."   Second year: "Hey, our sister is going somewhere that doesn’t exist."   Third year: "Hey, some dead guy and a mass murderer are under the whomping willow, along with our teacher Snape, Harry, Hermione and our brother."   Fourth year: "Looks like Voldy's in a maze, with the champions."   Fifth year: "Hey, Harry’s on the train, it looks like he’s stunned."     There are way more. This is the tiniest list. And the same thing with how Lupin could see his friends.

Fred and George stumbled upon the Marauder's map in their first year. They passed it on to Harry while in their fifth year. Also note that, while talking to Harry on the train, Ron described Scabbers as being "Percy's old rat".   Hence, we can safely assume that the twins had the Marauder's Map for about five years. How could they not see Peter Pettigrew on the map, with Percy for first two years and with Ron for the next three years?  How come Harry didn't see Peter? How was Lupin the only one able to see Peter on the map?


I wanted to challenge the Pumpkin Moon. I keep getting to Wave 8 and the night ends. The problem might be that I'm not killing them fast enough. I tried an arena but it either fails, kills me, or is very slow. I have a lot of really good Items. I currently wear Dragon Armour, Spectral Armour and Titan Armour. If that makes a difference. I got the Horsemans Blade. I was able to get Red's Wings before they updated it. How do I get to wave 15 of the pumpkin moon? What strategy do I use?

If you think I should be, how should I do it? I have full , , , , , ,  and .


when i rotate a face it rotates the entire thing so like when i want to rote the face it rotates the rest of the mesh, i just want to rotate that singular mesh i am following a tutorial by tech guru () and about the 2:35 mark he rotates a face but when i do it it rotates the entire mesh   but i want it to look like this  entire screen (entire screen)

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks.


If a is one of the root of the equation 4x^2+2x-1=0. Then find the other root    MY WORK:   I tried using the sum and product of rules formula to find b in terms of a but I didnt get the answer according to the options given.

If $\alpha$ is a root of the equation $4x^2+2x-1=0$, then prove that $4\alpha^3-3\alpha$ is the other root. How do I proceed? The sum of the roots, the product of the roots lead me nowhere. Should I find the roots of the equation and substitute in the given two expressions of $\alpha$ and check whether manipulating the first root gives me the second root (which seems much complicated), or is there any other way?


I'm trying to print a list of objects 1 by one and at the same time print count next to them. Add something to the code so for i in items:     print(i)  returns:  wool  honey etc.

How do I access the index in a for loop like the following?  ints = [8, 23, 45, 12, 78] for i in ints:     print('item #{} = {}'.format(???, i))   I want to get this output:  item #1 = 8 item #2 = 23 item #3 = 45 item #4 = 12 item #5 = 78   When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?


I'm setting up a CI/CD and currently I'm facing some challenges regarding  org wide verified emails and scratch orgs. Do you know if there is some workaround on this? I can start to work on a script to change "on the fly" all the email alerts on flows to use the "current user" solution, but I'm a little bit short of time to do this from scratch. Any advice would be appreciate.

We are a team with three orgs. Development, UAT and Production.  We are trying to move away from changesets and manual copying and use various deploy mechanisms or scratch orgs but we cannot deploy org wide email addresses since it is not supported in the metadata api.   The problem is that since addresses cannot be deployed, workflows referencing them cannot either. And if we dont deploy all workflows some tests will fail and the environment will be wrong.  I would appreciate any help with this issue, thanks


Do time series analysis and panel data analysis use the same analytic method?  If I know how to conduct time series analysis, what else I should know before I start to conduct panel data analysis? for example, different analytic methods or some important issues I should pay attention to, while conducting panel data analysis?

When talking about longitudinal data, we may refer to data collected over time from the same subject / study unit repeatedly, thus there are correlations for the observations within the same subject, i.e., within-subject similarity.  When talking about time-series data, we also refer to the data collected over a series of time and it seems very similar to the longitudinal setting mentioned above.  I'm wondering if someone can provide a clear clarification between these two terms, what is the relationship and what are the differences?


After some answers are deleted (and show up as gray shaded in users with enough reputations), the total numbers of answers shown on the question page still includes those that are deleted. For example,  at the moment has two remaining answers and two deleted answers, and the total still says four. This is strange. I think it should reflect and subtract the deleted answers.

At the left (site), it says 3 Answers (1 Accepted Answer + 2 self-deleted-answer). At the right (app), it says only 1 Answer; self-deleted answers are not visible.


Is there a way to carry audio over ssh?   Say after connecting to remote machine through ssh -X I opened a browser and want to watch a youtube video. Currently I could only able to watch the video without any audio. But I want to hear the audio too. How to do that?

I'd like to listen to music on my home server from work. Both are Ubuntu boxes running pulseaudio. It seems from researching that applications communicate to the PA server via TCP on port 4317, so I figured it should be as easy as:  me@work: ssh -YR 4317:localhost:4317 me@home   At this point I can run rhythmbox from the ssh session with X11 forwarding, and I assumed rhythmbox would be transparently talking to pulseaudio over the reverse tunnel, resulting in the music playing on my work machine. However instead it appears that the music still plays on my home computer. I've tried messing around with PULSE_SERVER as well to no avail.  Has anyone accomplished something similar? It seems like this should be relatively simple due to pulseaudio's design. I've played around with mounting my music library via sshfs instead but I'd really like to have one set of metadata/app settings/playlists and such. Thanks for any tips!


I'm working on a project that includes Encrypting and Decrypting between different parties.  The keys are generated using 'phpseclib' () on a remote server using RSA class.  The keys are in the following format:  Public:  -----BEGIN RSA PUBLIC KEY----- MIGIAoGAUEAW3K4+77Q1XrbdE/Sat7l9LXcD8qUdDGzSMubWXARMj8xtaPnVj7Ec 81HU5lKbFO31tV9nPSNeApNkkZtQhxx0Gz2gQgiChiuhcmlmNdnzEXFFpwa+uo2i fR5BLkNNy+qldhLqHg6yK7y0CrMKJUjfH2PKU+a5VectKkxPmDsCAwEAAQ== -----END RSA PUBLIC KEY-----   Private:  -----BEGIN RSA PRIVATE KEY----- MIIDHQIBAQKBgFBAFtyuPu+0NV623RP0mre5fS13A/KlHQxs0jLm1lwETI/MbWj5 1Y+xHPNR1OZSmxTt9bVfZz0jXgKTZJGbUIccdBs9oEIIgoYroXJpZjXZ8xFxRacG vrqNon0eQS5DTcvqpXYS6h4Osiu8tAqzCiVI3x9jylPmuVXnLSpMT5g7AgMBAAEC gYAb/L38aKh6XjDbXb2jFVQ3sxx3EQACbVVKo1e3LQY+YrMjSGsKS2TAbiMaNebF 7RPRFQfJ2gWSshDj0oCPg0U7WkEsFla5gIl3zJrVbeNnC9jyzZ/LgCnZIKiDcMXv r0plq6HxcHJWcHecpKhfzvfmd26/U6DhL0kP54FWOf8AAQIJAIEyQC7c5gxXAgkA 5JFBPI+4/msCCD80lE3Y5/rVAgkApkPHeb9uqZsCCATuDv0RSFtXMIIB1jAfAgkA uKLVRgl4zqkCCAae4CLoyAoxAggHXPQwQgmTOTAhAgkA6CnMpA9djC0CCQCBPmPS IUuusQIJANRRQ8thKK4UMB8CCQC1KlBjMihEawIIGOMeNfJO+88CCHdqK2B+eQLs MB8CCQC4HwiUnQVuLQIIaOjV3MfzdikCCHI4iaUvtcqGMB8CCQCUKg9il+fkPQII VDo01M+WO+ECCEq17+pHX2OtMB8CCQCIZvXiOx/PbwIISPda/URHhf0CCFsVg61b 83D6MCACCQCwPqvRmoiStwIJAKF1mKSaJLn7Agh2FqM8iF6xmjAfAgkAlGuCK9lO /IMCCCKkiWi0u1QDAggnJIDr4YyD3jAfAgkAhL2jhjw0DKsCCETMxeTdb1zhAghQ V9S+12JvPzAfAgkA+6wy7oV1aocCCC3YBkcQpHzNAghOrrC+Nc3tgTAgAgkAxDf5 kZMTkUcCCQCqYJg5yWWyPQIIF1zKmIUwDGQwIAIJALbjlmSjpLg9AgkAqRV0P4sD iMkCCAH9Ncvav/KFMCACCQDpSAEmE4WkowIIMH6/fmLgjXECCQCYz0JvH95z5DAh AglCvzjdoEVfNPcCCT/8Id5LatUm5wIJCrp28jLZ/NOw -----END RSA PRIVATE KEY-----   I was trying to use the 'RSACryptoServiceProvider' for the  Encrypting and Decrypting but I was unable to find a way to convert the PEM format to the XML format the RSA Crypto Service Provider requires.  Any suggestion how can that be done ?  Thanks !

I've got an RSA private key in PEM format, is there a straight forward way to read that from .NET and instantiate an RSACryptoServiceProvider to decrypt data encrypted with the corresponding public key?


For example when you stop doing one thing before it's finished, and start something else because you, or someone else, considers it more important than the thing you were doing. The thing you was doing is now less important than this new thing that needs doing.  I am trying to think of a heading for list of things like this, things have been dropped half way through to start something else "more important", but still need finishing at some point.  De-prioritised is not the correct word for this in my opinion, as you can de-prioritise jobs that haven't yet been started, or may never be started. I am after a word that clearly gets across that I was in the middle of a job that is now sitting half done because I started something "more important".

If someone is asked to do something important, they might say "I'll prioritize that". But if someone is asked to put something aside to work on something else more important, what could they say?  In the past I've used "de-prioritize", but I'm not sure if that's actually a word. Is it a word? Is there some other way to get this point across?


I'm not sure what caused this, but my Chrome detected the certificate from *.stackexchange.com invalid for discuss.area51.stackexchange.com    This is what I've done:   Open  from the IPS chatroom Awkward Silence. Open the  from that profile page.     Tried to open the parent user link from Microsoft Edge and it also return error.

UPDATE: Since Area 51 is not supporting SSL yet. But the Area 51 link in the footer of Meta Stack Exchange site and in the Your Communities dropdown list contains https://, clicked from there it caused the insecure connection issue.   Actual post When I click the  link in the bottom of the , I received the insecure connection issue.  In Google Chrome:  In plain text:  Your connection is not private Attackers might be trying to steal your information from discuss.area51.stackexchange.com (for example, passwords, messages or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID  In Mozilla Firefox:  In plain text:  Your connection is not secure The owner of discuss.area51.stackexchange.com has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.


As I have an canon camera in which I even got standard kit lens. Now at present the lens of camera is been not working properly because of not handling it safety, due to which I am not able to get proper or clear image or pictures. So can any help me out that how to change the lens without damaging my camera.

I recently bought myself a shiny new DSLR camera. Before I can use it, I had to do something kind of terrifying: mount the lens.  Now of course, half the advantage of SLR cameras is that the lenses are interchangeable. But sitting there holding an extremely expensive brand new camera and staring into its bare innards, I'm just terrified that if I make one wrong move, a hair or a piece of dust could fall in there, and then the camera will be irreparably damaged and I'll never be able to use it again.  This might sound like a stupid question, but… is it actually “safe” to change the lens on the camera? Is this likely to destroy it?  (Obviously it goes without saying that you should limit the time spent with no lens attached to the minimum number of seconds possible. But even if you have lightning fingers, the camera will still be lenseless for some number of seconds. And it's not like I'm standing in a class 100 cleanroom here! Besides, you don't want to be too rough with the delicate lens mounting either…)


I am very new to the world of relativity, so the answer may be trivial, but to me measuring the age of the universe seems an impossibility due to there being no fixed frame of reference from which to measure it. I feel as though I understand the basic concept of how time dilates with velocity, and also with gravity, although I have no concept of how, or if the two are linked. Any help would be much appreciated, as I haven't found a well-explained answer anywhere.

I was reading some earlier posts on this question in stack exchange. These posts give me the impression that the age of the universe is defined in a certain way following prescriptions such as that:   you should be co moving with the galaxy avoid strong gravitational fields choose the longest proper time recorded in all the frames   Defined this way we get the feeling that the age of the universe is not quite objective. Because we will get a different age if we change the definition. To highlight this arbitrariness, let us consider two space-time travellers A and B equipped with rockets and enough fuel who start at the same space point after setting their respective clocks to zero. Let us say that they started long time ago and took very different space-time paths and meet now and compare their clock readings T(A) and T(B). Each one can in principle claim that his clock showed the age of the universe. One may go a bit further and send a large number of travellers and collect all their clock readings at the end and declare the longest reading as the age of the universe. In this case we can say that the traveller who did not fire his rocket is the winner.  The implication in accepting this definition is that the time shown in this clock is the objective or absolute time of the universe while the times recorded in the other clocks are subjective. This way this definition will bring in a preferred reference frame and make the age of the universe an absolute time and not relative. In relativity theories we have not so far invoked preferred reference frames or absolute time concepts. Should the age of the universe be an exception?     I see that my post has some overlap with some earlier posts.However the important difference is that, as agreed by all who responded to my post,the earlier posts did not indicate that the age of the universe could be as arbitrary as the choice of a reference frame and no reference frame has any privileged status compared to the others.If any one wants to use a particular frame for some reason or another we can not question him.But one can not and should not object to the use of a different frame which computes a much younger universe, say an universe only 2000 years old !!! Lo and Behold! 2000 years can not be true as we know that we existed from much earlier days onwards. Hence the interesting question is: what may be a more realistic lower bound for the age of the universe?


Suppose $f$ is an entire function with $Re(f(z))^2 = Im(f(z)) \forall z \in C$. Show that $f$ is constant. So far, I have that since $f$ is entire, we can use cauchy riemann equations and hence $u_x = v_y , u_y = -v_x$. Let $f = u+iv$ where $U,V$ real valued functions so Now we have that $Re(f(z))^2 = u^2 =v = Im(f(z)$. We get : $v_x = 2u\cdot u_x= -u_y$ and $v_y = 2u\cdot u_y = u_x$ by the C-R equations. Now I am unsure as to where to go next. My idea is equating $2u = u_x/u_y = -u_y/u_x$ and proving that this implies $u$ is a constant. Is this correct? Is there a better approach to this? How can I go about proving the final equality easily?

How to solve this question? Also it would be great if someone could tell me from which book this question is from?


On my system, the time zone is set to Kolkatta, India, but it is not showing the correct time on the clock, it's 5:30 hour behind actual time. In System Settings if default system country is US, even after Kolkatta, India has been selected, the time remains behind by 5:30 hour.   Can anyone suggest what I should do?

Dual boot system Windows XP Pro and Ubuntu 12.04.  I have the bios set for the correct time and Ubuntu set for US Eastern time.  Ubuntu will boot up and the time will be off by -4 hours.  If I correct the time in Ubuntu then when I boot up in Windows XP the time will be off by + 4 hours.  This is a fresh install of 12.04. I did not have this problem before reinstalling Ubuntu.


Just installed Blender 20 minutes ago (so please be nice!).  After importing an STL, how can I apply a texture?  I'm stuck even trying to select a face.  The help file says which icon to click but not how to get to a screen with that icon on it! Could it be I need to do something with the imported STL before I can add textures? My STL is here:

I am creating a model of a glass and I would like to put a drawing on it (a png picture).  I know how to do it using Blender Render, but not with Cycles Render. Help :)


I am trying to run this perl web proxy code  but I have an error saying that I have HTTP.pm is missing !  the message:  Can't locate POE/Component/Client/HTTP.pm in @INC (you may need to install the POE::Component::Client::HTTP module) (@INC contains: /home/res/workspace/.metadata/.plugins/org.epic.debug /home/res/workspace/perlone/CIDS-dev /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /home/res/workspace/perlone/CIDS-dev/webproxy.pl line 7. BEGIN failed--compilation aborted at /home/res/workspace/perlone/CIDS-dev/webproxy.pl line 7.   So, what should I install to run this code. Thanks,

I get this error:  Can't locate Foo.pm in @INC  Is there an easier way to install it than downloading, untarring, making, etc?


When I click 'add new row' to my invoice table, it dynamically adds the row.  However when I have to delete the row dynamically with the 'remove row' button it does not delete.   Any ideas how this can be fixed?  Below is my code:

         <input type="hidden" class="form-control" name="count[]" value="1">1</span	         <input type="text" class="form-control" name="item[]" placeholder="item"/>	         <input type="text" class="form-control" name="description[]" placeholder="description"/>	         <input type="text" class="form-control quantity" name="quantity[]" placeholder="quantity"/>	         <input type="text" class="form-control price" name="price[]" placeholder="price"/>	         <input type="text" class="form-control item_discount" name="item_discount[]" value="0" placeholder="item discount"/>	         <input type="text" class="form-control total" name="total[]" placeholder="total" readonly=""/>

     <button type="button" class="btn btn-success" id="add-row"> Add new row</button>     <button type="button" class="btn btn-danger" id="remove-row"> Remove row</button>
   $('#remove-row').click(function() {     $(this).parents().first().remove(); });   Thank you.

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


I have a homework problem that I'm not sure how to start. I tried Google for similar examples it didn't turn up anything. Could someone tell me the name of the concept to look into? The problem is as follows:  Show by example that $\lim_{x\to c}f(x) + g(x)$ can exist even if both $\lim_{x\to c}f(x)$ and $\lim_{x\to c}g(x)$ do not exist.

This is a true/false question.     If the limits $$\lim_ {x\to a}\ f(x)\quad \text{ and }\quad  \lim_ {x\to a}\ g(x)$$ don't exist, limits $$\lim_ {x\to a}\ (f(x)+g(x))\quad \text{ and }\quad \lim_ {x\to a}\ (f(x)g(x))$$ don't exist also.   My idea is, that, because $$\lim_ {x\to a}\ (f(x)+g(x))=\lim_ {x\to a}\ f(x)+\lim_ {x\to a} g(x)$$ then the limits doesn't exist, correct?


I am reading , specifically Example 2.3 on page 9, and am having a few problems understanding a part of it     We construct an elliptic curve $E$ on $\mathbb{F}_{11}$ defined by $y^2=x^3+4x$ with a point at infinity $\mathcal{O}$      We then find a divisor of $E$ $$D=\left[(0,0)\right]+\left[(2,4)\right]+\left[(4,5)\right]+\left[(6,3)\right]-4\left[\mathcal{O}\right]$$      We can then say that:   $$\begin{align}\text{div}(y-2x)&=\left[(0,0)\right]+2\left[(2,4)\right]-3\left[\mathcal{O}\right]\\ \text{div}(x-2)&=\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right]\end{align}$$      We can then replace various elements in the definition of $D$ with these divisors:      $$\begin{align}D&=\left[(0,0)\right]+\left[(2,4)\right]+\left[(4,5)\right]+\left[(6,3)\right]-4\left[\mathcal{O}\right]\\ &=\left[(2,4)\right]+\text{div}\left(\frac{y-2x}{x-2}\right)+\left[(4,5)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]\\ &=\left[(2,-4)\right]+\text{div}\left(\frac{y-2x}{x-2}\right)+\left[(2,4)\right]+\text{div}\left(\frac{y+x+2}{x-2}\right)-2\left[\mathcal{O}\right]\\ &=\text{div}\left(x-2\right)+\text{div}\left(\frac{y-2x}{x-2}\right)+\text{div}\left(\frac{y+x+2}{x-2}\right)\end{align}$$   However, what I don't understand are the following steps:     $$\begin{align}  D&=\text{div}\left(x-2\right)+\text{div}\left(\frac{y-2x}{x-2}\right)+\text{div}\left(\frac{y+x+2}{x-2}\right)\\  &=\text{div}\left(\frac{(y-2x)(y+x+2)}{x-2}\right)\\  &=\text{div}\left(x^{2}-y\right)\end{align}$$   Can anyone help explain to me how they have come to this conclusion please    This question comes in 3 parts:   Step 1 -  Step 2 -  Step 3 - This one

I have an elliptic curve $E$ over $\mathbb{F}_{11}$ defined by $y^2=x^3+4x$ with the point at infinity $\mathcal{O}$  I have a divisor of $E$, defined by $$D=\left[(0,0)\right]+\left[(2,4)\right]+\left[(4,5)\right]+\left[(6,3)\right]-4\left[\mathcal{O}\right]$$  I know that $\text{deg}(D)=1+1+1+1-4=0$ and it is clear that $\text{sum}(D)=\infty$  Therefore $D$ is the divisor of a function - we want to find this function  I am given \begin{align}\text{div}(y-2x)&=\left[(0,0)\right]+2\left[(2,4)\right]-3\left[\mathcal{O}\right]\\ \text{div}(x-2)&=\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right] \end{align}  I am then told that we can express $D$ as follows:  $$D = \left[(2,4)\right]+\text{div}\left(\frac{y-2x}{x-2}\right)+\left[(4,5)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]$$  However, when I expand this back out, I get the following:  \begin{align}D &= \left[(2,4)\right]+\text{div}\left(\frac{y-2x}{x-2}\right)+\left[(4,5)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]\\ &= \left[(2,4)\right]+\text{div}(y-2x)-\text{div}(x-2)+\left[\left(4,5\right)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]\\ &= \left[(2,4)\right]+\left(\left[(0,0)\right]+2\left[(2,4)\right]-3\left[\mathcal{O}\right]\right)-\left(\left[(2,4)\right]+\left[(2,-4)\right]-2\left[\mathcal{O}\right]\right)+\left[\left(4,5\right)\right]+\left[(6,3)\right]-3\left[\mathcal{O}\right]\\ &= \left[(0,0)\right]+2\left[(2,4)\right]+\left[(4,5)\right]+\left[(6,3)\right]+2\left[\mathcal{O}\right]-\left[(2,-4)\right] \end{align}  which clearly isn't equivalent to the original $D$ unless $$\left[(2,4)\right]+2\left[\mathcal{O}\right]-\left[(2,-4)\right]=-4\left[\mathcal{O}\right]$$  Can anyone either explain what I've done wrong or show me how I can obtain the above equation please    This question comes in three parts:   Step 1 - This one Step 2 -  Step 3 -


I read in the DND 5e player's handbook about AC and I'm confused if my build is ok or not.  I'm trying to create lvl 4 character with a lot of AC with a light armor.  So here it is: A Tabaxi, Fighter Eldritch Knight with Defense archetype.  My Dex add +3 AC  /  I use a shield +2 AC  /  Wear a studded leather +12 AC  /  Defense Archetype +1 AC / Get the feat Defensive duelist + 2 AC (in reaction) / And maybe use the spell Shield.  So is there anything that I cannot mix together or use at same time?

I try to create a lvl 4 character with a lot of AC. I'm not sure if it's ''legal''  So here it is:   Studded leather armor : 12 AC Dex mod : +3 Shield + 2 AC Fighter Defensive style : +1 Ac Feat Defensive Duelist : +2 AC (In reaction with Finesse weapon) Also use Shield spell sometimes if possible? : +5 AC   Is there anything that prevents all of these to work at the same time?


I looked-up many references and websites and researched on how to determine if a method is between parametric or non-parametric. I came up with below definitions,     A parametric algorithm has a fixed number of parameters. In contrast, a non-parametric algorithm uses a flexible number of parameters, and the number of parameters often grows as it learns from more data.   From .  Moreover, I found,     A parametric model, we have a finite number of parameters, and in nonparametric models, the number of parameters is (potentially) infinite.    From .  And many other methods of determination, though the problem is none of them can helo ones to determine if a certain hypothetical method is parametric or not. (For instance, why k-means' number of parameters are constant but KNN is variable or basically what do we call a parameter and what we do not?)

I am confused with the definition of non-parametric model after reading this link  and .   Originally I thought "parametric vs non-parametric" means if we have distribution assumptions on the model (similar to parametric or non-parametric hypothesis testing). But both of the resources claim "parametric vs non-parametric" can be determined by if number of parameters in the model is depending on number of rows in the data matrix.  For kernel density estimation (non-parametric) such a definition can be applied. But under this definition how can a neural network be a non-parametric model, as the number of parameters in the model is depending on the neural network structure and not on the number of rows in the data matrix?  What exactly is the difference between parametric and a non-parametric model?


Is there any way to decrypt RSA ciphertext $c = m^e \bmod n$ when $\gcd(p-1,e) > 1$?

Here is some information we got : We know the value of $n$, with size $1043$. We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors. $e = 65537.$ $\varphi(n)$ = $(q-1)(p-1)$ When I calculated $\gcd$ and $\text{modinv}$, I got : $\gcd(e,\varphi(n)) = 65537$ $modinv(e,\varphi(n)) = 1 $ So we can tell that they are not relatively prime. So, how to compute the d, and get the value of m? I'm not that good with math, so I cant understanding well the theory. so can anyone please make an example implementation or write a clear formula?


Can a Indian Citizen living in US with H1b visa stamped, travel to COLOMBIA without getting tourist visa for Colombia stamped? It is a trip on a very short notice

I am planning to travel to Colombia for about a week to attend an academic conference. I am an Indian passport holder currently living in USA with a F-1 visa. Do I need to obtain a visa beforehand from the Colombian consulate?  I have found   that claim that Indian citizens holding a valid USA visa are not required to apply for Colombian visa.     However, I am not sure if these sources are "official" and trustworthy.Is there a more official source? Also, does this rule apply to "tourists" only? Does anyone have any personal experience with this rule?


I am very new to java web applications. I am working on project from where I have to receive a specific set of images from mysql and display in jsp.   Below are my servlet code (Where I am setting my attribute, toppings contains a path of all images which are stored in my computer) and when I tried to retrive them on .jsp page it gives me an error as below:    HTTP Status 500 - An exception occurred processing JSP page /CustomerBrowseScreen.jsp at line 115      type Exception report      message An exception occurred processing JSP page /CustomerBrowseScreen.jsp at line 115      description The server encountered an internal error that prevented it from fulfilling this request.      exception      org.apache.jasper.JasperException: An exception occurred processing JSP page /CustomerBrowseScreen.jsp at line 115      112:             <%     113:                 String[] display = (String[])request.getAttribute("images");     114:                      115:                for(int i=0; i<display.length; i++)     116:                {     117:                    out.println(display);     118:                }       Stacktrace:         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:575)         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)         javax.servlet.http.HttpServlet.service(HttpServlet.java:731)         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     root cause      java.lang.NullPointerException         org.apache.jsp.CustomerBrowseScreen_jsp._jspService(CustomerBrowseScreen_jsp.java:193)         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)         javax.servlet.http.HttpServlet.service(HttpServlet.java:731)         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)         javax.servlet.http.HttpServlet.service(HttpServlet.java:731)         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     note The full stack trace of the root cause is available in the Apache Tomcat/7.0.69 logs.        - .jsp Code <%                 String[] display = (String[])request.getAttribute("images");                 for(int i=0; i<display.length; i++)                {                    out.println(display);                } %>   - Servlet                      String[] toppings = new String[size];                      while(rs.next())                     {                           toppings[i] = rs.getString(5);                          i++;                     }                      request.getSession().setAttribute("images", toppings);                      request.getRequestDispatcher("CustomerBrowseScreen.jsp").forward(request, response);   Please help here as it is very important .. please ..

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 have an array lamp set facing up a, moved down a bit so it will give a glow on the top edges. But no matter how big I make the number it won't make it brighter. I can't move it any higher up or else the camera will see a dark spot under the light. How can I fix this, and is there a better way to light it? Im using cycles.

I'm trying to make some LED lamp but the EMISSIVE feature doesn't react as I expect. I read on the Blender manual that the emission power is defined in Watts per Square Meter. It doesn't really seem to work the right way. From 0 to 1 it works well, but then, raising it to 10, it's not decuplicating the light, and even shooting it to 100000 won't really change much. You can see in the images how the change from 1000 to 10 millions doesn't change anything in the final image. For a test, I added an area light on top of the emissive model, and a 1 W light assigned to it makes faaaar more light than the emissive material. You can see the difference in the final image. What may be happening here? Now, I may trick and just use the area lamp, but I want to know what is happening so to know how to work in the future.        Real world sizes. Emissive surfaces are exposed, nothing in between. Actually, Eevee is not really lighting anything with the model, it just adds glow, a lot of it XD Tried in a brand new scene, same problem: emissive power doesn't do anything past a certain threshold. It looks like the power is logarithmic. You can download it here:  Also added the original file:


I've discovered that there's no way to differentiate between a bronze, silver, and gold tag badge. For example, take this query (run on SO):  SELECT * FROM Badges WHERE Name = 'javascript'   It returns:  Id      UserId  Name       Date           ------- ------- ---------- -------------  273683  16417   javascript 2009-04-01 18:40:06 378136  5445    javascript 2009-07-10 15:03:24 571563  18936   javascript 2009-12-04 01:47:14 664312  34397   javascript 2010-02-10 20:15:53 666137  187606  javascript 2010-02-11 02:05:05 759018  182668  javascript 2010-04-03 23:50:08 845349  96100   javascript 2010-06-02 15:01:59 847409  145190  javascript 2010-01-31 06:10:51 1032904 45433   javascript 2010-08-16 10:23:44 1037159 25330   javascript 2010-01-29 19:32:19 ...   How am I supposed to tell if it's a bronze, silver, or gold tag badge?  Therefore, I request that a.) a Rank column be added or b.) tag badge names be changed to javascript-bronze, javascript-silver, and javascript-gold.

According to  the following metadata is exposed for badges:  Id UserId Name Date   Why isn't class exposed in some way? It's obviously in the schema, since we can sort / filter in the UI. Come to think of it the description might be something useful to filter on in a query as well, e.g.:     Give me the name and count for all gold badges that contain the word 'vote' in the description.   I am not sure if class is exposed in a different way for tag-related badges (I suspect the schema is more complex, since their existence relies on them having been awarded in that class at least once).  (Also, the Id in the Badges table is not the badge id, it seems to be an IDENTITY / auto-increment column.)


I installed linux ubuntu last month and everything got messed up . When I first tried it , everything works fine. It's fast and convenient so I decided to install it permanently but after permanently installing it , my computer hangs frequently and then one day, when I turned on my pc, the computer isn't logging in . Then there is this . . . GRUB Rescue > No Partition . Can I install windows again ? if yes then how ?

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 must use the $\epsilon-N$ definition to prove $$\lim_{n\to\infty}\dfrac{a_1+a_2 \hspace{3px}+\hspace{3px}...\hspace{3px}+\hspace{3px}a_n}{n} = L$$ when $\displaystyle \lim_{n\to \infty} a_n = L$. Does anybody have any pointers as to how to start this problem? I'm stumped.

I have this problem I'm working on. Hints are much appreciated (I don't want complete proof):  In a normed vector space, if $ x_n \longrightarrow x $ then  $ z_n = \frac{x_1 + \dots +x_n}{n} \longrightarrow x $   I've been trying adding and subtracting inside the norm... but I don't seem to get anywhere.  Thanks!


I'm looking for a better way to randomly select an item from a list in Python. I've done some research. My goal is to select a random element from the randomName() function.  import random  def randomName():     names = ["Morpheus","Neo","_from_redpills","Agent Smith","Trinity"]     num = random.randint(0, len(names)-1)     return names[num]`  for z in range(5):     print randomName()

Assume I have the following list:  foo = ['a', 'b', 'c', 'd', 'e']   What is the simplest way to retrieve an item at random from this list?


I have waited for the automatic upgrade message from the Software Updater,  but no upgrade message.  Some  information from the terminal program follows:    william@william-Inspiron-3537:~$ date Fri Jul 22 11:10:12 EDT 2016 william@william-Inspiron-3537:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 14.04.4 LTS Release:    14.04 Codename:   trusty william@william-Inspiron-3537:~$ do-release-upgrade Checking for a new Ubuntu release No new release found william@william-Inspiron-3537:~$ date Fri Jul 22 11:11:04 EDT 2016 william@william-Inspiron-3537:~$ ^C william@william-Inspiron-3537:~$    What is the problem?

So, today is July 21st and . gives me an option to download 16.04.1 LTS. However, attempting to upgrade gets me this message -  $ sudo do-release-upgrade Checking for a new Ubuntu release No new release found   What is wrong? Does it matter that I am running apt-get update behind apt-cacher-ng?  Note: Commenting out the files in apt.conf.d that used apt-cacher-ng did not make a difference.  Edit: Explanation for possible duplicates:  deals with upgrade from 12.04LTS to 14.04LTS. My question is specific to 14.04 LTS to 16.04.1 LTS upgrade. Old answers, while good for archival purposes are less relevant in a fast changing package like ubuntu. Moreover none of the answers answer what is wrong. The link  pointed out is mentioned in one of the comments. This Q & A is more helpful for people upgrading today than the work around mentioned in "".


$ bash --norc $ export | grep '_=' declare -x _="/bin/bash" $ export | grep '_=' $    What happens to _? Is it dropped out of the environment immediately when?   This is related to my other question, "".

In bash, why can't _ be exported to the environment of the shell?  $ export _ $ export | grep _= $   output nothing. Or do I miss something?   How can I export _ into the environment?  See also . Thanks.


I received an assigment to hack a given website using sql injection  $sel1 = mysql_query ("SELECT ID, name, locale, lastlogin, gender, FROM USERS_TABLE WHERE (name = ’$user’ OR email = ’$user’) AND pass = ’$pass’");  $chk = mysql_fetch_array($sel1);  if (found one record) then {allow the user to login}   The question is which values of $user and $password should I enter to hack the website?  I've tried putting a true value in user (eg: admin) and for the $password I tried using (" or ""=")-no brackets which didn't work. I also tried (' or ''=')-no brackets  This looks quite simple, am I missing something?

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


I have a situation where a task is assigned to a person thru workflow. That person is now gone. I know site admin can delegate the task to someone else.  But I would like manager (say from a group "managers" or manager's field) to delegate a task when necessary in the event the task owner is out on ill, vacation, or left the company.  How is it done?

I have created a 3-tier Approval workflow by sharepoint designer 2010 action "Start Approval Process" for a Service Request List. The three approvers can be assumed as team lead, project manager, department manager. Since there is a risk that the first approver may be Out-Of-Office and the Request will be blocked by him/ her for a long time, I have to grant high level apporver (department manager) proper permission that he/she can approve tasks assigned to low level approver. My problem is, when the high level approver tries to approve the low level task, an error displays in page saying he/she is not the "Assinged to" person and cannot approve the task. I have tried to grant the high level approver with even "Full Control" permission of the Task List, but does not work. Does anyone know which permission shall I grant for high level approver?


Find all positive integers n such that $\phi(n)=10$.  I have found 2 positive integers: $11$ and $22$.  Is there any more?  Thanks!

I am asked to find all positive integers $n$ such that $\phi(n)=6$, and to prove that I have found all solutions.  The way I am tackling this is by constructing all combinations of prime powers such that when passed to Euler's function will yield $6$.  For example, I know that $\phi(7)=6$, $\phi(3^2)=6$, and $\phi(2)=1$. Therefore, the numbers should be $7$, $7\cdot2=14$, $3^2=9$, and $3^2\cdot2=18$.  I believe that there cannot possibly be any others because of the way the $\phi$ function is defined. What do you guys think?


I'm having some trouble with giving the formula through 2 (or more) points in projective geometry.  For example I have P=(1:0:0), and Q=(1:1:1).  How do I find a formula of a line through these points?  I thought I had to use $ax_0+bx_1+cx_2=0$, but then you get a line  L=   {$(x_0,x_1,x_2)|x_1=x_2=x_3=0$} ?  Or for two points with for example $P=(1:0:0)$ and $Q=(m_1,m_2,m_3)$? Would that be $(1,x,x)$?

I am trying to find the line through the points $(0 : 1 : 0)$ and $(1 : 1 : 1)$ in $\mathbb P^2$ and $(0 :1 : 0: 1)$ and $(1: 1: 1: 0)$ in $\mathbb P^3.$  Would the first line be the set of points $\{(b, a+b, b)\}$ for all $a,b \in \mathbb P^1$  and the second, $\{(d, c+d, d,c)\}$ for all $c, d \in \mathbb P^1$?  Thanks


If $l^{\infty}$ is the set of bounded sequences of real numbers with norm $||x||_{\infty}$.  To do this I have tried to use the fact that a metric space is compact iff it is sequentially compact. So now I am trying to find a sequence with no convergent subsequence, perhaps by choosing it so that $||x_m-x_n|| > 1/2$ (so that it is not cauchy), however I am struggling to see what is actually going on and how to pick a sequence with this property.  Thanks

So on my homework it says that to prove the unit ball in $\ell^2(\mathbb{N})$ is non-compact, it suffices to find countably many elements $x_n$ of $\ell^2(\mathbb{N})$ with $\lVert x_n\rVert \leq \frac{1}{2}$ such that $\lVert x_n - x_m\rVert \geq \delta$ for some $\delta \in (0, \frac{1}{2})$ and $n \neq m$.  Why is that?  Thanks


I just installed Ubuntu 20.04.1 and I must have screwed up. I have just one user account and with this account I'm unable to use sudo and su. This obviously prevents me from running apt-get and doing other things. I've seen some posts on this - people being unable to use sudo and a workaround with su, but I can't seem to use either command. Here is what I see after issuing each command and entering the password for skip33 $ sudo -i skip33 is not in the sudoers group. This incident will be reported $ su - su: Authentication failure $ usermod -aG sudo skip33 usermod: Permission denied. $ sudo su skip33 is not in sudoers group.  Ok, is there any way to fix this without reinstalling the OS? I hope to hear back from you guys. Thanks.

I clean-installed Ubuntu 11.10 today, and then installed VirtualBox.  This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a group, I ran the following command:  sudo usermod -G vboxusers stephane   This is a problem.  I now see what I should have run instead is:  sudo usermod -aG vboxusers stephane   The end result is I'm no longer in the groups I should be in.  Including whatever group is required to run "sudo".  When I run any command as sudo now, I get the following:  $ sudo ls [sudo] password for stephane:  stephane is not in the sudoers file.  This incident will be reported.   Is there a way to fix this, or do I need to re-install from scratch again?