How am I supposed to tell if a number is divisible by $13$ (I need a shortcut)?

I've been trying to figure out if a number is divisible by $13$.  As I'm saying this in first person, I think I'm supposed to take the rightmost digit of the number, for example, $39$, multiply it by 9, and finally subtract the digit from the rest of the digits put in order to the left of that rightmost digit.  The final result has to be divisible by $13$.  So, in $39$, $9*9=81-3=78$, and $78$ is divisible by $13$.  I think this is it.  Am I on the right digit track?  I just want some answers with words that will satisfy me.


Many-to-many relationship, what's the best choice for primary key?

In advance, I'd like to apologize if it's a duplicate question... I can't find a direct answer, probably because I'm not a native english speaker.  Straight to the subject:  I have 2 tables: company, which contains some companies (of course) and service, which contains general services that can be provided by the companies. Now I need to create another table in order to build the link between company and service, since it's a many-to-many relationship.   Which is the best choice for primary key in this case (considering conventions and performance)?  - like this, making use of an "independent" unique field id   CREATE TABLE IF NOT EXISTS `mydb`.`company_service` (   `id` INT NOT NULL,   `company_id` INT NOT NULL,   `service_id` INT NOT NULL,   PRIMARY KEY (`id`)) ENGINE = MyISAM   or  - like this, with the two fields that represents the foreign keys composing the primary key?   CREATE TABLE IF NOT EXISTS `mydb`.`company_service` (   `company_id` INT NOT NULL,   `service_id` INT NOT NULL,   PRIMARY KEY (`company_id`, `service_id`)) ENGINE = MyISAM   ... or none of these, maybe a third design?  My working environment is MySQL.


Speed/Security? Why should we choose to use 64 bit instead of 32 bit?


How can Ohm's law be correct if superconductors have 0 resistivity?

states that the relationship between current ( I ) voltage ( V ) and resistance ( R ) is  $$I = \frac{V}{R}$$  However  cause the resistance of a material to go to zero, and as I understand it, as $R \to 0$, $I \to \infty$. Does this present a problem for Ohm's law?


If a group $G$ has odd order, then the square function is injective.

Suppose $G$ has odd order, show the function $f:G\rightarrow G$ defined by $f(x)=x^2$ is injective. This proposition is easily provable if we assume $G$ is Abelian, but I don't know how to start this without the assumption of being Abelian.


If $f'$ is bounded, then $f$ is uniformly continuous

Let $f\colon(a,b) \to \mathbb R$ be differentiable and suppose that there exists an $M>0$ such that $|f'(x)| \leq M$ for all $x$ in $(a,b)$. Prove that $f$  is uniformly continuous.


How to switch to discrete graphics ubuntu 16.04

I have an Integrated Intel graphics and AMD Radeon R5 M230 graphics card. and I want to switch to AMD whenever I want to.    I ran the lspci command for you to see.  00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b) 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) 00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b) 00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04) 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4) 00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4) 00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4) 00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01) 03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230]


Issue with Setting Text on TextView outside the OnCreate Method

i have been creating an App that uses Fragments Mostly here is how it is supposed to work, on the Home Fragment i click a button that takes me to another Fragment for filling information  on this fragment when I click a button a Dialog Fragment opens and I select a City Name then Submit, it dismisses the Dialog and is supposed to SetText on a TextView.  I use an interface that calls a method on the City Selection fragment in order to set the Text. here is some Code   Declaration for the EditText         EditText editText_From;  Setting finding the View  OnCreate     @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState)     {          // Inflate the layout for this fragment         View view = inflater.inflate(R.layout.fragment_trip_date, container, false);          editText_From = view.findViewById(R.id.editText_From);          return view;     }          public void setSelectedCity(String city) {      Log.i("<<269>>", "Setting Text on Edit Text <<269>>:" + city);     editText_From.setText(city);  }   This Method below is supposed to set text for the my EditText or TextView      public void setSelectedCity(String city) {      Log.i("<<269>>", "Setting Text on Edit Text <<269>>:" + city);     selectedCityConfirmed = city;     editText_From.setText(city);  }   the App Crashes on EditText with the Following Error Message,  02-16 19:37:43.928 26582-26582/com.example.bob2609.busticketingapp E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.bob2609.busticketingapp, PID: 26582     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v4.app.FragmentActivity.findViewById(int)' on a null object reference         at com.example.bob2609.busticketingapp.TripDateFragment.setSelectedCity(TripDateFragment.java:188)         at com.example.bob2609.busticketingapp.MainActivity.selectedCity(MainActivity.java:176)         at com.example.bob2609.busticketingapp.LocationSelector$1.onItemClick(LocationSelector.java:69)         at android.widget.AdapterView.performItemClick(AdapterView.java:313)         at android.widget.AbsListView.performItemClick(AbsListView.java:1201)         at android.widget.AbsListView$PerformClick.run(AbsListView.java:3195)         at android.widget.AbsListView$3.run(AbsListView.java:4138)         at android.os.Handler.handleCallback(Handler.java:761)         at android.os.Handler.dispatchMessage(Handler.java:98)         at android.os.Looper.loop(Looper.java:156)         at android.app.ActivityThread.main(ActivityThread.java:6523)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)   The Interface Method on MainActivity    @Override public void selectedCity(String city) {       tripDateFragment.setSelectedCity(city);  }   Anyone knows a way around this?


Is this ground attached to the wrong water pipe?

I recently noticed that I have ground wires attached to metal water pipes in my home, as shown in the following image.    The area marked A is where the water service enters the home with that blue handled valve being the main shut off.  The area marked B shows two exposed wires (assumed grounds) that are secured to the pipe which is the water heater's outgoing pipe.   Am I incorrect in thinking that the grounds should be secured to the other pipe, the one that brings water service into the home?


I have a program that continually polls the database for change in value of some field. It runs in the background and currently uses a while(true) and a sleep() method to set the interval. I am wondering if this is a good practice? And, what could be a more efficient way to implement this? The program is meant to run at all times.  Consequently, the only way to stop the program is by issuing a kill on the process ID. The program could be in the middle of a JDBC call. How could I go about terminating it more gracefully? I understand that the best option would be to devise some kind of exit strategy by using a flag that will be periodically checked by the thread. But, I am unable to think of a way/condition of changing the value of this flag. Any ideas?


First order partial derivatives and ball centered at $a$

Suppose $r>0$, $a\in\mathbb{R}^n$, and $f\colon B_r(a)\to\mathbb{R}^m$. If all first order partial derivatives of $f$ exist on $B_r (a)$, and $f_{x_j}(x) = 0$ for all $x\in B_r (a)$ and all $j=1,2,\ldots ,n$. Prove $f$ has only one value on $B_r(a)$.  I guess I don't quite understand the problem so I can't solve it. If there is a ball of radius $r>0$ centered at $a\in\mathbb{R}^n$, its not clear to me how $f$ can only have one value on $B_r(a)$. Also, what does every partial derivative being equal to $0$ for all $x\in B_r(a)$ tell me?   Can anyone give me some hints and/or solve this problem?


Using complex numbers to represent waves

When talking about a plane wave of the form $$\vec E=\vec E_0\cos(\vec k \cdot \vec r-\omega t)$$ We can replace it by $$\vec E=\vec E_0\exp[i(\vec k \cdot \vec r-\omega t)]$$ so that it is easier for calculation and then only taking the real part as the physical quantity.  How can we be sure that the complex part of the wave equation will never become real and contribute to our calculations and let us arrive at an incorrect answer?


How do I tell man to show me a list of all the 'manuals' installed on my Ubuntu 10.10 system?  Also, is there a specific directory where the manual pages are installed?


I am recieving mails sent to here in spam folder .I  have shifted our email services to google mail.And this started happening since.  <?php $message = "Our New app";         $to='myname@adapty.com';         $subject="New Mail";         $from = 'noreply@adapty.com';         $body='Just wanted to ask one thing as we are planning for release date, how long do you think it will take to test the android app?';         $headers = "From: " . strip_tags($from) . "\r\n";         $headers .= "Reply-To: ". strip_tags($from) . "\r\n";         $headers .= "MIME-Version: 1.0\r\n";         $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";  mail($to,$subject,$body,$headers); ?>   I changed the from addres from noreply@adapty.com to myname@adapty.com still it was marked as spam.  Here is my  .Please help.Thanks


If simultaneity is relative; meaning that for each any events A and B and we can find a reference frame in which two events A and B occur in inverse order, how does our notion of 'causality' withholds?


I have a variable (var) which return value as VAR1 ($var has the value VAR1). There is an input file which has VAR1 defined (VAR1=ABCDEF)  How can I use echo to get the value ABCDEF using $var??  I tried echo $(echo $var) and many other options, but I always get output as VAR1 or echo VAR1 but never ABCDEF. I used source in file with VAR1 declared, tried in command prompt etc.


How to find the list of all available packages along with the lastest version number available in the repositories?

I want to list all the packages(installed or not installed) along with the latest version number available in the repositories.  For example:  The output of apt-cache policy chromium-browser shows like below  $ apt-cache policy chromium-browser chromium-browser:   Installed: (none)   Candidate: 34.0.1847.116-0ubuntu2   Version table:      34.0.1847.116-0ubuntu2 0         500 http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ trusty/universe amd64 Packages   So the latest version of chromium-browser package available in the repository is 34.0.1847.116-0ubuntu2. Like that, i want to list the version number along with the package names that are available in repositories. And all i want to do this through command-line.  I want the output to be like this,  chromium-browser 34.0.1847.116-0ubuntu2 xxxxxxxxxxxxxx   yyyyyyyyyyy ............     ............


I have a PNY 128 GB USB3 flash drive that has stopped working properly.  I had some media files on it and they would not play.  I then tried to delete the files thinking I could re-copy them to the drive.  Not all of the files deleted.  I got the following error: Error 0x8007045D: The request could not be performed because of an I/O device error."  I am not able to run chkdsk (with the /f flag) on it (returns an error that says the file system is RAW but windows shows it at FAT32).  I have also deleted the partition (in EaseUS Partition Master) and repartitioned and reformatted and the original files that could not be deleted are back.  I did a low level format of the USB drive with HDD Low Level Format Tool 4.40, repartitioned, reformatted and the bloody files are still there.  I cannot delete the file nor can I write any files to the drive.  The drive is NOT flagged as dirty.  Any ideas out there.  I seem to be tapped out on University of Google. :)


Low cost 30A 24Vto12V stepdown converter

I'm trying to design a 24V to 12V step down converter. Power efficiency is not that important to me, but I want to come up with the cheapest solution possible. I don't need isolation neither. So I though I would just come up with the simplest buck converter. Something like this    Sw2 would of course be an appropriate power MOSFET. Also the schottky diode is arbitrary, just used the first thing available in Circuit Lab.  Would such a simple buck converter be the cheapest solution for my application, and would it work, assuming that ripple is not a concern for my application?  EDIT: Second part of the question was if it works with such a simple feedback loop. There is a similar question which is already answered so I removed that part.  Thanks!


I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.  How do I retrieve a module's path in python?


An SEO friend of mine advised that if I just add a page to a Wordpress site - even if its not linked from anywhere - would be enough for Google to find that page. Can anyone advise if this is correct, and if so, what mechanism allows Google to find the page?  I can posit a couple of things, but with some skepticism.   Does Google rely on Google Analytics - which presumably would rely on having analytics set up on the account to do this?  A pingback mechanism ?  Something else?


Why reference variables is used to access class member inside main function when main is the part of that class

main function is part of the class therefore we should be able to access root as it is instead of tree.root after creating an object of the class, as instance variables are accessed using this variable inside instance method?  class Main {       Node root;      Main()      {          root = null;      }       public static void main(String[] args)      {          Main tree = new Main();         //  tree.root = new Node(1);          }  } ```


Obtaining Postcode Boundaries for India?

I was wondering if there are shapefiles for postcode regions in India.  I did find some shapefiles that give the outline of the administrative units in the country but not with postcodes. Right now I am using Google Map API that highlights the region under pin-code.    It looks like the information is not present in public domain. It looks like either you can crowdsource the information or buy it from a thirdparty called MapMyIndia.  I found a blog by Anand.S where he wrote about his crowdsourcing idea. Other than this I couldn't really find anything interesting:


How to mockup a logo in a realistic environment?

I have recently created a logo. I have seen an online trend of showing off a logo in a realistic environment, illustrating possible use cases of the logo.  An example of this can be seen here, with the original logo at the bottom and a 3D mockup at the top:    How can I create such a mockup?


I want to install composer for using laravel in Ubuntu 17.10, when I tried it gives me error.  I tried those methods;     (I know it's for old version   Errors;  $ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"   PHP Warning:  copy(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line code on line 1 PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1 PHP Warning:  copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1   And:  $ php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" Installer corrupt   What I need to do ?


What force acts on a small piece of a free, spinning ring?

Suppose i have a hollow ring and i take it in some place where there is no gravity and there is no air. Then i just start to rotate it and then because of it's inertia it will continue rotating and won't ever stop because there is no friction.   Question - Suppose i take a point on it of mass $dm$ and i see that it is also rotating around the COM of course. Which force is really providing it the centripetal acceleration? It can't be tension because the tension by the adjoining masses on will cancel out. Then what force is it?


Should I pay off my credit card online immediately or wait for the bill?

I'm a college student and I just got my first credit card (through Chase). The only reason I got the card is to try and build my credit score. I also have a checking account with Chase, and they let me pay off my credit card any time I want.  For example, right now I have a balance of $92 on my credit card, but my bill won't come until September 2, and the payment isn't actually due until September 27. But through their website I could go ahead and pay it off with money from my checking account.  My question is, is it better for my credit score if I pay off that $92 balance right now, or should I wait for the bill, or does it not matter either way?


Heisenberg's Uncertainty Principle : How is particle position determined more accurately with shorter wavelengths?

In this principle, how can shorter wavelengths on the particle leads to determine more accurate position of the particle? I think it is somewhere related to reflection of the light from the particle, but I can't understand it completely. Please reply.


What should I do if I was wrongly accused of cheating?

I used to think that online exams allow me to perform better in exams in a more relaxed setting, but today after an examination I changed my opinions, because the tutor proctor probably thought I was cheating and he reported the incident to the professor.   Just 20 minutes into the exam somebody was knocking my door (I did not dare to respond at first but the knocks kept getting stronger), so I opened the chatbox in Zoom and asked the tutor to let me leave my seat. Sadly, I may have forgot to close the chatbox, and because I used my mobile phone for Zoom (because my macbook encounters the errors "There is no connected camera" constantly), during the period of my leaving my camera was not opened. When I got back to the seat I hurriedly close the chatbox and continue with the examination. What I did not see is the mesage by the tutor "Why did you close the camera?". So during the period of my leaving my tutor did not see me. But this is not the end of my misfortune (or the consequences of my carelessness)  At the end of the exams, when students were supposed to upload the scripts, I realised I forgot to write down my student ID on the first page of the script, and I hurriedly write down the ID, all while the tutor saw me writing it down. He immediately messaged me in the chatbox telling me he would report it to the professor. What followed was my nervous pleading in the chatbox that I did not cheat and all I was writing down was my student ID.   I feel very dejected after this exam. I am an extremely honest kind of a person when it comes to academic affairs, and I take research and thinking very seriously. The examination was an exam on network models and the difficulty lies in the proof, so there is no way I can cheat in such a short period of time. The exam is even open-book so I am allowed to check the facts I forgot, and I need not memorise any algorithm so there is no need for a computer. But I think my nervous impression and the subtle anger of the tutor already sounded a death knell. I cannot write down in words how catastrophic this feels for me, because I suffered from extreme anxiety in the past and this significantly impacted my grades already. But after recovering from this I chose mathematics as my minor anyway despite its difficulty instead of choosing an easy path to improve my grades. I was improving my grades a lot last semester, but here comes this unexpected incident. I am now thrown into the mode of reminiscence and remorse, as I feel like despite my honesty to my own feelings and thinking, for example in pursuing my dream as a neuroscientist instead of taking the more respected career of medicine, or in choosing a harder minor as opposed to easier junior electives to inflate my grades, these are all just living in my own head, and they carry no value when an incident like this arises. I do not know if I can still stand this impermanence.   But I know very clearly I have to do something to minimise the damage done. What rational actions should I do?   =============Updates 2:54 pm 19 May 2020=============  After settling my mind down I feel much better, and I received the email reply from my professor saying that "There is nothing serious. So don't worry!". So it seems that he does believe in me or he is a professor very tolerant of students' dilemma. On my anxiety-induced Google search of similar incidents, I found due to Covid-19 and the shift to online exams and learning, many more students are facing such difficulties. For future readers who will have similar concerns as mine, please in addition to all the panicking and worrying realise somebody has been through similar problems and be them lucky or unlucky they definitely understand your psychological tension, a fact that should be solacing you too. Also, please think and write a logical defence for yourself, and if needed please collect similar cases and present a stronger case.


What is the difference between scores in Princomp vs. factanal?

In R the princomp()and the factanal() are somewhat similar. At least their output looks pretty similar. I learned that this is not surprising since the print function of princomp comes from factanal. I understand that SS loadings do not make much sense for princomp as it is bounded to 1 anyway. Moreover, as Joris stated on nabble, the proportion of variance is only printed because of the common print function, but does not contain valuable information when princomp is used.   What I do not understand is rather not an R question but more a multivariate stats question what is the conceptual difference between these PCA and Factor Analysis functions as they are used in R? This question relates particularly to the scores (let's assume "regression" scores for FA) respectively the difference between scores in both concepts?  What should I rather use when I want to use to resulting scores in a regression model (for example in order to circumvent multicollinearity)? I also understand that PCA has a fixed number of components while FA has fewer factors than variables.   richiemorrisroe's answer in the thread suggested by Rob Hyndman might go into that direction.


Understanding the definition of a multiple (double) root

According to the definition on , a multiple  is a root with  $n\geq 2$. For example, in the equation $(x-1)^2 = 0$, $1$ it the multiple (double) root.  Question: Why is $x = 1$ the multiple root of $(x-1)^2 = 0$?  What does multiplicity mean in this case? According to Wolfram multiplicity is the number of values for which a condition holds, or the number of times for which a polynomial equation has a root at a given point. In what way does the polynomial $x^2 - 2x + 1 = 0$ have multiple roots?


Here is a design for a RGB color mixer. Is it fine, or did I mess up somewhere? Is there room for improvement?

LED strip has resistors built in. LED strip runs on 0.5-2A. LED Strip needs 5v, has one pin for that, one for red, one for green, and one for blue. I will be using a total of 4.8 volts. Using ohms law, with the minimum current as the current in the equation, I'll need a resistance of 9.6 ohms (let me know if I did it wrong, or if If I should do it another way). The potentiometers will be 500 ohms each, with 3 resistors of 3.3 ohms wired in series, then connected to the wiper and a terminal for a resistance of 9.71 ohms. The batteries (rechargeable), once again, are in total 4.8 volts (4 1.2v) and AA . The button will be an LED latching button. Let me know if I'm missing any info.


how to stop auto login on Skype for Android

Please help me to stop auto login in Skype. There is an account that is always login again and again, although I chose to logout and sign in with another Skype name. I tried on Settings/applications/Skype to kill the account and to quit synchronise, but still whenever I open Skype again, I'm logging in automatically.


Short Question :   Is there a mobile app or some desktop software I  can use while my iPhone / iPad is connected to my Macbook Pro that will allow me to record a video of the screen ?  Long Question :   I dont quite a lot of mobile site development and testing. When presenting bugs etc to my team I  like to show them a video of what is happening.  For desktop issues I  just open the browser and the use screen capture in Quicktime. Where ever possible I  do the same for iOS issues using the mobile emulator in Chrome, but because its only an emulator it isnt 100% accurate so not all issues show up.   Some issues I  have to use the real device. At the moment I  capture video for this by using one iphone to film on and another to show the issue, but this is not particularly slick.  (I know I  can run a desktop iphone / ipad emulator through Xcode, but this only has Safari on there, not Google Chrome as some issues are browser specific)  Is there a mobile app or some desktop software I  can use while my iPhone / iPad is connected to my Macbook Pro that will allow me to record a video of the screen ?


According to style is it right to put a funcion like parameter when ending an aplication with sys.exit() in python?

I have seen a code written like this:  if __name__ == "__main__":     #...     result = someFunction(someParameter)     sys.exit(result)   and even like this, where you write the call of the function in the sys.exit() function:  if __name__ == "__main__":     #...     sys.exit(someFunction(someParameter))   Which is the most correct option according to style?


How can I define a topology on the empty set?

We know that, indiscrete topology is the smallest topology. It has $2$ elements (they are the empty set and whole set). Suppose the given set is the empty set, then how can I define a topology on that set? Is it possible?


Point, points, or points' distribution in space?

Let's say there are 10 points on a plane, and I'd like to describe their distribution as homogeneous. Which of the following is correct?        The point distribution is homogeneous.   The points distribution is homogeneous.   The points' distribution is homogeneous.      I have heard the 1st a lot. I tend to use the 3rd as it sounds more logical to me to maintain both the plurality of the points and to use a genitive, but I have the feeling the 2nd is correct when I rephrase it using 'people' instead of 'points'. In that case the choice would be between        The person distribution is homogeneous.    The people distribution is homogeneous.   The people's distribution is homogeneous.      What is the correct way to say it?  Thank you.  Edit: it's been pointed out that this question is in matter the same as . But I believe my doubt goes beyond the choice between single and plural attributive noun.


Deregister scripts on unnecessary pages using remove_action

To all would-be close-voters: This question is not a duplicate, because I need to remove all scripts added by plugin using remove_action. In  used wp_dequeue_script function to remove scripts one by one, but I need to remove them all (which was added by plugin using add_action) using remove_action!  wp_dequeue_script function can't remove custom code like this: add_action('wp_head', 'print_style');  function print_style() {     echo '<style>body { margin: 0; }</style>'; }  I have installed WP Polls plugin. I am using it in some of the pages and need to deregister its styles and scripts on other pages. I found some code in the plugin which registers scripts: Function: Enqueue Polls JavaScripts/CSS add_action('wp_enqueue_scripts', 'poll_scripts'); function poll_scripts() {     // code }  So for deregistering its scripts i am using next code in my functions.php: add_action( 'wp_enqueue_scripts', 'deregister_polls_scripts_and_styles' );  function deregister_polls_scripts_and_styles() {     if ( is_home() ) {         remove_action( 'wp_enqueue_scripts', 'poll_scripts');     } }  So it must deregister polls scripts on homepage, but id does not. What i am doing wrong? P.S. 1 Scripts are removing in this case: add_action( 'after_setup_theme', 'wc_deregister_polls_scripts_and_styles' );  function wc_deregister_polls_scripts_and_styles() {     remove_action('wp_enqueue_scripts', 'poll_scripts');     remove_action('wp_head', 'poll_head_scripts'); }  But i need to remove it on some pages like this: add_action( 'after_setup_theme', 'wc_deregister_polls_scripts_and_styles' );  function wc_deregister_polls_scripts_and_styles() {     if ( is_page('developers') ) {         remove_action('wp_enqueue_scripts', 'poll_scripts');         remove_action('wp_head', 'poll_head_scripts');     } }  So in this case it does not work. I have installed another plugin and all works fine in this case. Same actions, BUT all works: add_action( 'wp_enqueue_scripts', 'wc_deregister_scripts_and_styles' );  function wc_deregister_scripts_and_styles() {     if ( !is_home() && !is_tax('brand') ) {         remove_action( 'wp_enqueue_scripts', 'uag_frontend_styles', 999 );         remove_action( 'wp_footer', 'uag_footer_scripts');     } }  P. S. 2 This is another plugin. add_action('wp_enqueue_scripts', 'uag_frontend_styles', 999); function uag_frontend_styles() {      /* main stylesheet */     wp_register_style( 'uag_style', uag_url . 'css/uag.css');     wp_enqueue_style('uag_style');     }  This is Polls: add_action('wp_enqueue_scripts', 'poll_scripts'); function poll_scripts() {     global $text_direction;     if(@file_exists(get_stylesheet_directory().'/polls-css.css')) {         wp_enqueue_style('wp-polls', get_stylesheet_directory_uri().'/polls-css.css', false, '2.63', 'all');     } else {         wp_enqueue_style('wp-polls', plugins_url('wp-polls/polls-css.css'), false, '2.63', 'all');     }     if('rtl' == $text_direction) {         if(@file_exists(get_stylesheet_directory().'/polls-css-rtl.css')) {             wp_enqueue_style('wp-polls-rtl', get_stylesheet_directory_uri().'/polls-css-rtl.css', false, '2.63', 'all');         } else {             wp_enqueue_style('wp-polls-rtl', plugins_url('wp-polls/polls-css-rtl.css'), false, '2.63', 'all');         }     }     $poll_ajax_style = get_option('poll_ajax_style');     $pollbar = get_option('poll_bar');     wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.63', true); // Other same code }


Italics on Closing > Off-Topic dialog oddly suspended

If you go to a question that has a pending close vote for a custom off-topic reason whose text includes italics on a line that coincides with the pending close vote count for that reason, the italics get dragged down to the margin-bottom of the count.  This sounds pretty obscure, except that it happens on what will probably end up being a pretty popular custom closure reason, the "must demonstrate a minimal understanding" reason.  Here is what mine looks like:    Here is , at least for now.  This is being observed by @Lamak in Windows 7 + Chrome 27, and by me in Mac OS 10.9 and Chrome 27.  (As an aside, should the word must in those reasons be bolded as well?)


Let $P$ be a probability measure on a Borel $\sigma$-algebra (on some metric space, $\Omega$).  It is called tight if for every $\epsilon >0$, there exists a compact $K$ such that $P(X \in K) \geq 1 - \epsilon$.   It is called inner regular if $P(A) = \sup \{P(K) | K \subset A, K \text{ compact}\}$ for every $A$ in the Borel $\sigma$-algebra.   It is clear that inner regularity implies tightness if we choose $A=\Omega$. For an arbitrary set $A$, using tightness we can obtain a compact $K(\epsilon)$ such that $P(A\cap K(\epsilon)) \geq P(A) - \epsilon$. If $A$ is closed then $K \cap A$ is compact and hence we get inner regularity for closed sets $A$. How can I prove this for general $A$?  Thanks.


How to initiate a click outside a navigation bar to close it

I am trying to create a JavaScript function that will make my side navigation menu close when a user taps outside it. Here is the code that am trying to implement after fetching the navigation.  var sidenav = document.getElementById("Mynav"); window.onclick = function(event) {   if (event.target == sidenav) {     sidenav.style.display = "none";   } };   The other sidenav functionalities are okay. But I suspect this equity JavaScript module (==), am not sure if it should be (!=). Any help will be great appreciated.


I can't get ubuntu to recognize my wifi card

I just started with Ubuntu 18.04. Everything else seems to be fine, but it does not recognize my WiFi card.  I also tried getting a USB WiFi and it does not recognize that either.  What I have:  chris@chris-HP-Laptop-15-bs0xx:~$  lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5904] (rev 02) 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02) 00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 02) 00:08.0 System peripheral [0880]: Intel Corporation Skylake Gaussian Mixture Model [8086:1911] 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21) 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21) 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 [8086:9d14] (rev f1) 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1) 00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:9d4e] (rev 21) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21) 01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15) 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]   chris@chris-HP-Laptop-15-bs0xx:~$  lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 0408:5220 Quanta Computer, Inc.  Bus 001 Device 003: ID 0bda:b009 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 0846:9052 NetGear, Inc. A6100 AC600 DB Wireless Adapter [Realtek RTL8811AU] Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   I tried this:  and it did not work.


n-dimensional vector space isomorphic to the n-th product of a field as abelian groups

Let $V$ be a finite dimensional vector space (of dimension n) over a field $F$. I need to show that $V$ is isomorphic to $F^n$ as abelian groups. However, I don't really understand what does "isomorphic as abelian groups" mean, my (poor) attempt to solve this was:  Let $f:V\to F^n$, $f((v_1,v_2,\ldots,v_n)):=v_1+\ldots+v_n$, clearly $f$ is a group homomorphism, but it is not biyective since, for example, in the case where $dim(V)=2$ and $F=\mathbb{R}$ we have $f((2,-2))=0=f((3,-3))$, I've also tried it by defining $f$ to be the product of a vector's entries but obviously it didn't work so I'm stuck!   I think this should be an easy problem but since I don't quite understand it, it's giving me problems. Thank you for your help.


curl wget - How to ignore the HTML Tag and headers

How to get only the content for web page what I see in browser... I don't want the headers and any HTML tag.. exp- .. I want only the content.. Please help


Keyboard typing random forward slashes by itself

I just bought a ACER ASPIRE V3-572G laptop that came with a preinstalled Windows 8.1, booted it up, set up the OS, installed virtually nothing and then started getting some Windows updates. Got a bunch of them, then some bigger one (~770MB - KB3000850) started failing because something was locking up the files.    I deleted the McAfee LiveSafe that came with it and it installed the update just fine. Restarted the thing and weird stuff started happening, couldnt enter my password because some characters were being automatically typed into the text box, finally got in, system was behaving kinda weird, sort of being interrupted and when typing into browser address bar I noticed that forward slashes are being typed by themselves, opened up a text editor and so it was. '////////' everywhere. Thats the story.    I am pretty sure the key is not stuck, I barely touched the keyboard and it was in my line of sight all the time so nothing was spilled or anything, plus the forward slashes come at random, sometimes not at all, sometimes its like ticks, sometimes as if the key was pressed down. Should I start rolling back windows updates, cause I did some typing during the setup phase and didnt have this type of problem. Any way to track down what is causing it? Don`t really want to factory reset and then have the same thing all over again. Any help will be greatly appreciated.


Proof - a vertex in a path has an even number of edges

Given a simple undirected graph,  let's say we have a path of i edges that can repeat nodes but not edges  i.e. nodes may come up more than once in the path but not the edges.  NOTE : I never said this path has to contain all edges in the graph. So I'm not assuming a Eulerian circuit. Just an arbitrary path formed by a subset of the edge set of the graph that may have repeating vertices but not edges.  For a node in the path that is not an endpoint of the path (one that is in the "middle"), I think we can say that it is adjacent to an even number of edges in the path. Not adjacent to any edge in the graph, but those that belong to the path containing this node.  It seems very intuitive but I couldn't figure out a way to formally prove this. Any suggestions?


'Contains()' workaround using Linq to Entities?

I'm trying to create a query which uses a list of ids in the where clause, using the Silverlight ADO.Net Data Services client api (and therefore Linq To Entities). Does anyone know of a workaround to Contains not being supported?  I want to do something like this:  List<long?> txnIds = new List<long?>(); // Fill list   var q = from t in svc.OpenTransaction         where txnIds.Contains(t.OpenTransactionId)         select t;     Tried this:  var q = from t in svc.OpenTransaction where txnIds.Any<long>(tt => tt == t.OpenTransactionId) select t;   But got "The method 'Any' is not supported".


pyPdf extracting info from IndirectObject

I am writing a script that will read the creation and modified dates of pdf files. I am using pyPdf package in Python  I have the following code  from pyPdf import PdfFileWriter, PdfFileReader  input1 = PdfFileReader(file('myfile','rb'))  input1.input1.getDocumentInfo()   this code returns  {'/Producer': IndirectObject(185, 0), '/CreationDate': IndirectObject(186, 0), '/ModDate': IndirectObject(186, 0)}   I am not sure how to extract the information from these IndirectObject, any help would be appreciated!


How do you control what angle plumbing joints go in at?

I'm an electrical engineer, working on repairing a somewhat complicated pneumatic system, but I figured this would probably be the best place to ask. This is probably a very basic question to anyone who works in plumbing, but I couldn't find anything about it online. When you have right-angle pipe fittings, the kind with NPT threads that you screw together, how do you control what angle they screw in to? If you just screw two things together, the relative angle between them will be essentially random as it depends on the exact angle of where the thread starts and how far the threads engage. But we need to put in pipe at specific angles to align fittings to other parts of the system, so how does one actually do that?


Cycles isn't appearing in render engine drop down list

I just upgraded to 2.75 and there isn't an option for cycles render in the engine drop down.  How do I access cycles render in the new environment?  It only list, blender render and blender game.


I have tried to create a LWC tab in tabs menu.but i could not able to select my component from the list.i have 3+ Components and even i've created my-domain too,still i'm facing the issue.....can anyone help me how to resolve this....thanks in advance:)


I got the following problem in a chapter of approximations:  If $\frac{m}{n}$ is an approximation to $\sqrt{2}$ then prove that $\frac{m}{2n}+\frac{n}{m}$ is a better approximation to $\sqrt{2}.$(where $\frac{m}{n}$ is a rational number)  I am stuck in this problem. Any help will be appreciated.


Idea of the Proof : Existence of a & b so that (Any integer greater than 8) = 3a + 5b

Claim: Prove that for every integer $n \geq 8$, there exist nonnegative integers $a$ and $b$ such that $n = 3a + 5b.$      Proclaimed solution : Let $n ∈ \mathbb{Z}$ with $n ≥ 8.$ $\text{ Then } n = 3q, \text{ where } q ≥ 3, \quad \text{ or } n = 3q+1, \text{ where } q ≥ 3, \quad \text{ or } n = 3q+2, \text{ where } q ≥ 2.$   We consider these three cases. (Rest of proof omitted)   I do not apprehend the above parts of the proof BEFORE (Rest of proof omitted). However, I understand and completed the rest of the proof that I omitted. I recognise that it uses the result that division of any integer by $n$ must yield a remainder of $0, 1, 2, ..., n - 2,  \text{ or } n - 1$.   $1.$ However, what is the idea or strategy of the proof?   $2.$ What motivates or propounds the claim?  $3.$ Is there a more natural or easier proof?  I referenced . Source: P102, Problem 4.9 on P101 (related to P90, Result 4.8) of Mathematical Proofs, 2nd ed by Chartrand et al.


Having trouble using bindParam with PDO/mysql in PHP.  Here is my simplified code, which does still produce the error:  $tableID = "bmb_job"; $columnName = "job_id"; $recordID = 1; $stmt = $dbh->prepare('SELECT * FROM ? WHERE ? = ? LIMIT 1');  $stmt->bindParam(1, $tableID); $stmt->bindParam(2, $columnName); $stmt->bindParam(3, $recordID, PDO::PARAM_INT); $stmt->execute();  $jobArray = $stmt->fetch();   And the error:     Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''bmb_job' WHERE 'job_id' = 1 LIMIT 1' at line 1' in /home/danny/public_html/bmbbooking/ajax/getuser.php:21 Stack trace: #0 /home/danny/public_html/bmbbooking/ajax/getuser.php(21): PDOStatement->execute() #1 {main} thrown in /home/danny/public_html/bmbbooking/ajax/getuser.php on line 21   Initially I thought it was related to it thinking $recordID was a string, but as far as I can tell MySQL doesn't like ' in its query, only backticks... I tested this out by running the query in phpMyAdmin, the query fails with 'bmb_job' WHERE 'job_id' = 1 LIMIT 1 but works with backticks  It did work before when I did $stmt = $dbh->prepare('SELECT * FROM $tableID WHERE $columnName = $recordID LIMIT 1');, but I want to use bindParam if I can.


Getting the substring of string with multiple instances of the same delimiter

I have a string of data that looks like   string line = "Number:Description:Price:Weight";   I want to separate the string into 4 different variables via the delimiter ":". I was trying this via the substring method  char delimiter = ':'; string number = line.substr(0, line.find(delimiter));   It works fine for the first variable. However, I am unable to figure out how to iterate to the next instance of the ":" for the other variables.


Ubuntu Read Only File System On Almost Every Boot Even After FSCK

I'm a newbie web developer using 14.04. I've been having a 'read only file system' problem after almost every boot. If I don't have the problem, I eventually get it after a few hours.   I followed the troubleshooting steps mentioned in the other posts, such as running fsck, e2fsck from a live usb. Terminal says it solved the issue, but when I boot, it goes back to read only file system. I've done the short disk self-test which says OK, though the full self-test fails.   I formatted my hard disk and installed Windows a few months ago and it ran fine.   I reinstalled 14.04 and I noticed the problem became very frequent after I installed Chrome. So I replaced it with Chromium which lessened its frequency, but recently it has been become very frequent again. I need Chrome / Chromium to troubleshoot websites.   Is there any solution to this ? I am thinking of formatting to 15.10 just to see if the problem will be solved.


Proof, is $\forall x : (P(x) \lor Q(x)) \Leftrightarrow \forall x : P(x) \lor \forall x : Q(x)$?

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


Add "Delete with reason" button/dialog to existing moderator tools for flagged answers

While this is an old problem, it's one that will only increase with time.  As Stack Exchange sites gain in popularity, more and more users are coming to the sites in search of answers to their specific problems.  Unfortunately, not all of them understand the basic operating principals behind Stack Exchange, and ask questions, or start discussions as separate answers.  Deleting these answers is fine, but more often (I would argue almost always) than not, a new user doesn't understand why.  Granted, comments are a way of doing this, but there are drawbacks to comments:   They require extra, replicated effort on the part of the moderator for something that they do repetitively The message will be inconsistent; messages like this would be consistent, cite the relevant resources that guide the user in the right direction The larger size would have a higher chance of grabbing the user's attention, as well as put more weight behind the action (as it's officially attached to the answer in a consistent manner). The banner will serve as an example of what not to do to other users who can see the deleted post.   Additionally, there are tools that can help with auto-commenting on posts, but these have their drawbacks as well:   Not all moderators use these tools The messages that are delivered by the tools are ultimately generated initially by the moderators, so the message will not be consistent These tools are not always available on other devices (e.g., mobile platforms)   It would be helpful to the user if they had a reason indicating why the answer was deleted.  Something along the lines of:    In order to accomplish this, I propose an additional (not a replacement) button in the moderation tools labeled "delete with reason".  Mods would still be able to delete answers outright, they just have the option now of stating why in an easy manner which will allows for more time to moderate harder.  Placement is not important (screen real estate is valuable, yes), but I envision it looking something like this in the moderator tools:    When clicking "delete with reason", a dialog, much like the "close" dialog will appear with options:    Initial options for the reasons could be:   Asking a new question Starting discussion   A mechanism like this has the potential for other benefits as well:   Users with an answer deleted with a reason might actually be directed to perform the right action now, and in the future (creating better site denizens) Users who wish to contest the deletion of an answer on meta can cite that specific reason, which mods can specifically address (which actually might reduce noise on meta about "why was my answer deleted?") Can reduce flags on answers asking "why was this deleted?" (admitted, I've not personally experienced this to be a pervading problem on Stack Overflow, but this might be the case for other mods on other Stack Exchange sites) Other Stack Exchange sites which don't have that many users will give a better experience to their users when their first action isn't ideal for a Stack Exchange site; this will enhance the chance that the site will retain the user and get good contributions from them (as per Farseeker's comments: , ).   Additionally, if this works well for the moderator tools, I imagine that it would not be such a leap to eventually have this graduated to users with the rep to cast delete votes, thus allowing non-mods to deliver a more clear message to new users about how to best participate on a Stack Exchange site.


My question is What is standard graded Algebra over a field $K$?  I know this question is already posted here  , But still I'm repeating because the concept is not clear to me.  What I know a graded ring $R$ with gradation ${\{R_n\}}$, where $R_n$ is additive subgroup satisfies   $1.$ $R=\oplus$$R_n$  $2.$ $R_mR_n \subseteq R_{m+n}, \forall m,n\ge0$  and similarly we can define graded $R$ module $M$ with gradation ${\{M_n\}}$ satisfying   $1.$ $M=\oplus M_n$  $2.$ $R_m M_n \subseteq M_{m+n}, \forall m,n \ge0$  But the definition of standard graded algebra $R$ over a field $K$ is according to the article   is $R=\oplus R_i$ such that $R_0 =K$, the vector space $R_1$ has finite dimension and $R_iR_j=R_{i+j}, \forall i,j \ge 0$  Can anyone please explain this definition in a simpler way?  Thanks in advance.


Acting as though the laptop Fn key is pressed

I have a Fujitsu laptop and all was working fine until I ended teamviewer. On the keyboard it has a numberpad on some of the letters which you press the Fn button to use. The system is acting like I have the Fn key pressed and I get numbers shown when it should be letters. If I press the Fn key the numbers go to letters. The Fn key is not stuck down. Is there a way to reset keyboard settings or a known fix. The operating system is Ubuntu 11.04 Natty.


How do i teleport a Specified Item to coords?

I made a Tri-Dimensional "duper" for dragon eggs, and they get sent through the end and back to the overworld. A repeating command block at spawn then teleports @e[type=item] to ~ ~1 ~ where a hopper awaits above the command block to send the eggs to a large chest storage system, the problem?  It teleports ANY item. Is there any way to specify which item to teleport? I want specifically only dragon eggs to teleport above the command block.  EDIT: Not a dupe of   Reason: They are asking for the equal of /testfor or /execute. I simply wished to teleport an item. Different Questions. Also, this dupe was marked nearly 5/6 months after the question was answered.  People please read the contents of a post before marking it as a duplicate, and also read the date.


Find the minimum of $(u-v)^2+ (\sqrt{2-u^2}-\frac{9}{v})^2$ for $00$.

Find the minimum of $\displaystyle (u-v)^2+ \left(\sqrt{2-u^2}-\frac{9}{v}\right)^2$ for   $0<u<\sqrt{2}$ and $v>0$.   I think I have to use the Arithmetic and Geometric Means Inequalities. Or $\displaystyle \frac{1}{2}(u-v)^2+ \left(\sqrt{2-u^2}-\frac{9}{v}\right)^2 \geq  \frac{1}{4}\left(u-v+\sqrt{2-u^2}-\frac{9}{v}\right)^2$ by Chebychev inequality. Is anyone is able to give me a hint how to finish it?  I think I have to use the Arithmetic and Geometric Means Inequalities.


echo $HOME $var /home/user abc   My variables.  echo $HOME$var | sed "s/$(echo $HOME$var | cut -c 3)/ello/g" /hellome/userabc   This works as expected.  echo $HOME$var | sed "s/$(echo $HOME$var | cut -c 3-)/ello/g" sed: -e expression #1, char 16: unknown option to `s'   Adding the range "3 to the end" produces failure. The subexpression has no problem when isolated.


Shouldn't Suffrage and Vox Populi be part of the same badge family?

In looking over the , I noticed  (bronze level) and  (also bronze level) are very similar. Shouldn't they be grouped in to the same badge-family?  Suffrage: Used 30 votes in a day Vox Populi: Used the maximum 40 votes in a day  In a related note, if the max votes/day is 40, shouldn't Vox Populi be a gold level badge? This is of course, just from a logical data standpoint - if a badge levels (bronze/silver/gold) have additional requirements beyond just being various stages of a type of interaction, perhaps the entire above argument is irrelevant.


How to access linux disk from windows 7?

I have a computer with Linux installed. And I want to be able to read and write data to its disk from Windows 7. Is there any software or does Windows 7 have any functionality for it built-in? I've seen some website describing how to, but they are quite old:   So I wonder if there is any better way than they ones they have described there.


I tried to refer to first and last item of enumerate list without using \label{} command in text.  However, it shows the sublist number as well with the item number. Is there any way to fix this so that  it does not show the sublist number "c" in the top line?  "Following list of Question from 1c and 5c has four options"  Following is the MWE:  \documentclass{book} \usepackage{enumitem} \usepackage{xpatch} \xapptocmd{\@item}{\label{cd:\arabic{page}.\arabic{enumi}}}{}{}  \begin{document} \subsection*{Following list of Question from \ref{cd:\thepage.1} and \ref{cd:\thepage.5} has four options} \begin{enumerate}     \item The important issue for test     \begin{enumerate}         \item this sublist create problem         \item do not want ``c'' appearing with 1 or 5         \item if  last sublist removed, it do not show ``c''     \end{enumerate}     \item The next important issue for test by list     \begin{enumerate}         \item 15 mm         \item 20 mm         \item 25 mm         \item 32 mm     \end{enumerate} \item important issue; \item another important issue; \item oh, and yet another critical thing.     \begin{enumerate} \item important issue; \item another important issue; \item if  last sublist removed, it do not show ``c''     \end{enumerate} \end{enumerate} \end{document}


Do i need to use hyperparameters from gridSearch on whole training set to get final model?

I just want to make sure i am on the right lines so please correct me if wrong. I am testing which hyperparmets are best for logisitic regession on my data X, y where X is featrues and y is target. X, y are made from my training set. I also hhave a test set.  from sklearn.linear_model import LogisticRegression  # split train into target and features      y = Train['target']     X = Train.drop(['target'], axis = 1)     X = pd.get_dummies(X) #split test data into target and features   y_test = Test['target'] X_test = Test.drop(['target'], axis = 1) X_test = pd.get_dummies(X_test)   logistic = LogisticRegression()  # initialize the model # Create regularization penalty space      param_grid = {'C': [0.001, 0.01, 0.1, 1, 10, 100, 1000] }  clf=GridSearchCV(logistic,param_grid=param_grid,cv=5)    best_model = clf.fit(X, y)# View best hyperparameters print('Best Penalty:', best_model.best_estimator_.get_params()['penalty']) print('Best C:', best_model.best_estimator_.get_params()['C']) #   I will now use these hyper parameters and 'train' it on my training data. Just so i'm sure when we say train do i then take best_model and train on the whole X data e.g.:   bestLog=best_model.best_estimator_ trained_model=bestLog.fit(X,y) predicted=trained_model.predict(X_test)   then use this output above as my final model to test?


how to shrink(and also reduce size on disk) a very big log file in SQL server 2016

I have a datawarehouse with database log of 800 GB.now I want to shrink it or reduce the disk space occupied by Log.ldf file. I tried to shrink file in several ways - took full backup , performned transaction log back up, modified recovery mode from Full to Simple, executed dbcc command however none of them seems to help in reducing log size at disk.  I also detached database, deleted log file but due to memory-optimize file container I got error while I was trying to attach it again (I had read SQL server will automatically add a log file but seems it doesn't work when database has a memory_optimize file).  After all the above attempts database log file is still 800 GB and I am not really sure how to clean up space consumed by database log. Appreciate if I could get some expert opinion on this issue or guide me in case I am missing something.


Is it safe to do-release-upgrade from 12.04.4 to 14.04.1?

I have a server running 12.04.4 32 bits Ubuntu server, and I wonder if there could be any unsolvable problem updating to 14.04.1 as the terminal suggest me (using do-release-upgrade) to do.


How to solve this question on number theory?

If $ab + 1$ divides $a^2 + b^2$, show that $\frac {a^2 + b^2}{ab + 1} $ is the square of an integer provided that $a,b > 0$.


Reading notification on website should clear native Android notification

I think it would be nice if you read an inbox notification on the desktop version of the site, it should dismiss the native Android notification in the system tray. It seems kind of weird when I come back to my phone an hour later, and find a bunch of notifications I thought a dealt with... and come to find out I really did deal with them.


When downloading files/photos from some sites, you don't always get what you thought you were going to get. Sometimes, you can get things that are downright illegal. I have deleted them but the residue and some of the files are still in the trash bin. How do I shred everything in the trash bin? I want everything gone, the risks are too great. Also, are there other areas that should be checked?


Does "for / range" consume a lot of memory when the range is large?

My concern is with regards to something like:  for i in range(1000000000):     ...   From a naive point of view, I assume that an array of 1000000000 integers is allocated and initialized before the loop begins, and deallocated only after the loop ends.  So I am wondering whether or not I should replace it with:  i = 0 while i < 1000000000:     ...     i += 1   But according to , a for loop is executed faster than the equivalent while loop.  So do I have to settle for this kind of trade-off, or is my assumption above wrong, and there is no significant memory impact when iterating a large range?


Why does the "borrow" algorithm for subtraction work?

I would like to understand how the borrow algorithm for simple subtraction ( base 10, the one we learn when we are kids ) works, does anyone have any material on this? Thank you.


(Yet another) follow-up from :   As someone mentioned in the question above, some 'friendly' spells (Calm Emotion, IIRC) specify that one can choose to fail the saving throw. In this case, the allowance makes sense, given that the spell has both a 'defensive' component--removes fear, charm--and an 'offensive' one--reduce aggro/threat, if you will. However, Banishment, and most other spells that require saves, are (meant as) offensive spells, so, it wouldn't make sense to allow the target to choose to fail the save--at least not explicitly. Can someone choose to fail a saving throw even for these spells?  The specific case that comes to mind (as per the question linked above) is using Banishment to return yourself to your native plane: if you are somehow transported to a different plane, casting Banishment on yourself, failing the throw, and then maintaining concentration for one minute should return you permanently to your native plane.  Considering non-spell saves/'defenses,' it seems that one can choose to fail (insofar as verisimilitude is a factor): a warrior can drop his shield, stand still, and allow his/her enemy to strike them down (effectively setting their AC to 0, so to speak, or even adopting/mimicking the Incapacitated condition); a PC making a strength check/contest can choose to give in/stop exerting strength; and the infamous/contentious issue (at least, in 4E I believe it was so), any character can presumably choose to hurt themselves with their own weapons, even if the PHB doesn't have a rule for it.


How to install eclipse c++ In Ubuntu 18.04

This is a similar question asked on Aug 16 but the answer given did not fix the problem.  I am brand new to Ubuntu and have tried following several different sets of instructions for installing eclipse and still can't get the hello world application to compile and run.  With the set of instructions on Aug 16, I get "nothing to build for project..." error.   Since I'm new to linux and ubuntu the previous answers to this problem are unclear and assume a lot of knowledge about the way ubuntu installs and links programs.  Any suggestions?


How do I install drivers for a Canon LBP-2900 printer?

I seen many times how people describe how to's about LBP-2900, and 10-12 steps from start to end of how to download, unpack, build driver, fix driver, make it work... Could be there some .deb package with ready-to-go driver for Ubuntu? This printer is very popular...


Having difficulty with unwrapping a simple part of an object

I am having lots of troubles unwrapping an object. I tried to start simple by selecting only part of the object and unwrapping that, but even something simple is not turning out intended.  Here is the simple part of the object being unwrapped:    I have tried Applying the Scale, using Ctrl-A > Scale and I have marked seams as shown below:    And here are the UVs after choosing "Unwrap" from the "UV Mapping" menu:    I have no idea why it looks this way. Can anyone add any insight?  Thanks!


Many times I would "Close Vote" a question for being too localized, for example  "oops, I forgot to put a semi-colon at the end of a line"  These questions are unlikely to help anyone else, is another pathway available now to get rid of them?


Consider the following code snippet:  SuperClass superClass = new SubClass(); // Instantiating SuperClass reference SubClass subClass = new SubClass(); // Instantiating SubClass reference   If I list fields/methods of superClass object, I can see methods from SuperClass only. Then what's the difference between:  SuperClass superClass = new SubClass();   and  SuperClass superClass = new SuperClass();   I know it could be a case of polymorphism and I can use SubClass reference, as SubClass IS-A SuperClass, but why would I use SubClass reference if I want to instantiate SuperClass as I'm getting the same fields/methods by instantiating it with SuperClass?  I've seen this question but I'm still confused.    Edit: I am not talking about interfaces here. I know about interfaces that we can use them to assign objects of the classes that implements them. I'm talking about only superclass.  Any help on this would be appreciated.


How can I prove that the limit of $n^2/4^n$ as $n$ approaches infinity is 0? I want to solve it without using de l'Hospital's rule and I tried some inequalities, but I don't find a nice solution.


Show that $x_{n+1}=x_n(2-ax_n)$ converges and find the limit

Let $a>0$ and $x_0\in I=\left (\frac{1}{2a}, \frac{3}{2a}\right )$. Show that the sequence $(x_n)$, $n\geq 0$, $$x_{n+1}=x_n(2-ax_n), \quad n \geq 0$$ converges. Which is the limit? Hint: Consider $\phi (x)=x(2-ax)$ and show that $\phi (I)\subset \left [\frac{3}{4a}, \frac{1}{a}\right ]$.   So that I understand  that correctly, with the hint we want to show that $\phi(x)$ is bounded and monotonic, which means that the sequence converges? We have the following: \begin{align*}\frac{1}{2a}<x< \frac{3}{2a} &\Rightarrow a\cdot \frac{1}{2a}<ax<a\cdot  \frac{3}{2a}\Rightarrow \frac{1}{2}<ax< \frac{3}{2} \Rightarrow -\frac{3}{2}<-ax< -\frac{1}{2}\\ & \Rightarrow 2-\frac{3}{2}<2-ax< 2-\frac{1}{2}\Rightarrow \frac{1}{2}<2-ax< \frac{3}{2} \\ & \Rightarrow x\cdot \frac{1}{2}<x(2-ax)< x\cdot \frac{3}{2}\\ & \Rightarrow \frac{1}{2a}\cdot \frac{1}{2}<x\cdot \frac{1}{2}<x(2-ax)< x\cdot \frac{3}{2}< \frac{3}{2a}\cdot \frac{3}{2}\\ & \Rightarrow \frac{1}{4a}<x(2-ax)< \frac{9}{4a}\end{align*} That is not the interval that we want to get. Do wehave to do that maybe using derivatives?


Understanding python's behavior towards lists and list indices

I have the following code:  names = ['a', 'e', 'c', 'd', 'b']  stuff = [['a', 1], ['a', 2], ['b', 5], ['c', 4], ['c', 2], ['d', 10], ['e', 22], ['e', 13]]  x = [[0] * len(stuff)] * len(names)  counters = [0]*len(names)  for s in stuff:     i = names.index(s[0])     x[i][counters[i]] = s     counters[i] += 1  for i in range(len(names)):     if 0 in x[i]:         x[i] = x[i][:x[i].index(0)]  print x   What I would like to have is the following output:  [[['a', 1], ['a', 2]], [['e', 22], ['e', 13]], [['c', 4], ['c', 2]], [['d', 10]], [['b', 5]]]   Essentially, I want to create a new list that contains sublists of sublists where the 0th entry of the sublists at the lowest level is always the same (sorry, I don't know how to put it in a better way). I want to create this new list from the sublists in 'stuff' by using the elements of 'names'. What I get when running my code is:  [[['e', 22], ['e', 13]], [['e', 22], ['e', 13]], [['e', 22], ['e', 13]], [['e', 22], ['e', 13]], [['e', 22], ['e', 13]]]   My question is: why does my code produce this output instead of what i want? I am pretty sure that things go wrong in the line  x[i][counters[i]] = s   However, I have no idea why so any help would really be appreciated...


My minimum working example:  \documentclass{report}  \usepackage{amsmath}  \begin{document}  \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center}  \end{document}   The result:    Now how can I number this equation?


Is there an experiment that measures the electric charge of a moving particle, therefore proving "experimentally" that it is indeed the same as a static particle?


How to make an embedded question from "What time is it?"

If the original question is "What time is it?" and I want to communicate it to another person, are these Embedded Questions OK?        I don't know what time is it.       or        I didn't know what time was it. (if communicated later)


Can I skip the first part of a stop over?

I have flight booking  SIN - KUL(stopover) - CDG  Its on December 17. SIN - KUL is at 11am, Paris flight is 11pm so almost an 11 hour stopover.  Now I'm booking another flight. MLE-KUL(stopover)-SIN.   It lands in KUL December 17th 6am.   So now my question is can I skip the KUL-SIN part of my MLE-JUL-SIN journey thereby also skipping the SIN-KUL part of my SIN-KUL-CDG flight.   *Its Malaysian Airlines *Its booked this way because the alternative routes are very expensive even if i picked the same exact flights.


Japanese text not showing correctly on PHP

I'm am having some issues showing Japanese text on my English utf-8 website I have tried the following  <?= $japan[artist];?> but it prints out like this æ¤Žåæž—æªŽ   I have tried to encode it that does not even print it out and I have tried html_entity_decode( $text, ENT_QUOTES, "utf-8" );   If I knew how to encode the Japanese text into UTF-8 that would help I think, but I cant seem to find any information on this or the PHP function.  The database is MongoDB not MYSQL  It worths noting that the text gets saved in JapaneseA text and not utf-8


Why element with relative position's width keeps maximised, even if it has no childs?

I have a "message" element which should be resized if text doesn't fit its width with some limits(just like in messengers).   .message  {     position: relative;     color:white;     background:#182533;     border-radius:10px;     padding-top: 5px;     padding-bottom: 5px;     padding-left: 10px;     margin-left: 70px;     margin-bottom: 10px;     top: 40px;     left: -10px;     max-width: 320px;     min-width: 70px;     font-family: 'Open Sans', sans-serif;     font-size: 14px;     }       <div class="message">       </div>      Why it still gets max width even if it's empty? How it looks like:  How it should look like:


Price calculator doesnt works after a ajax call

my price calculator doesnt works after a ajax call. I hope someone can help me.  ajax call     Price calculator     HTML
Gesamtpreis: 0,00 EUR


Permission denied error while using sudo or su?

I'm trying to fix my screen brightness problem, and I have checked some answers given on this site. I found out that I may have to use some command like this:  ls -la /sys/class/backlight/intel_backlight/ > lslabacklight    The problem is, while running this either with sudo or entered as super user su, I get an error saying permission is denied.  sudo ls -la /sys/calss/backlight/intel_backlight/ > lslbacklight bash: lslbacklight: Permission denied   How do I make it work? I got the idea of doing this from .


Why does the loss/accuracy fluctuate during the training? (Keras, LSTM)

I use LSTM network in Keras. During the training, the loss fluctuates a lot, and I do not understand why that would happen.  Here is the NN I was using initially:   And here are the loss&accuracy during the training:   (Note that the accuracy actually does reach 100% eventually, but it takes around 800 epochs.)  I thought that these fluctuations occur because of Dropout layers / changes in the learning rate (I used rmsprop/adam), so I made a simpler model:   I also used SGD without momentum and decay. I have tried different values for lr but still got the same result.  sgd = optimizers.SGD(lr=0.001, momentum=0.0, decay=0.0, nesterov=False)   But I still got the same problem: loss was fluctuating instead of just decreasing. I have always thought that the loss is just suppose to gradually go down but here it does not seem to behave like that.  So:   Is it normal for the loss to fluctuate like that during the training? And why it would happen? If not, why would this happen for the simple LSTM model with the lr parameter set to some really small value?   Thanks. (Please, note that I have checked similar questions here but it did not help me to resolve my issue.)  Upd.: loss for 1000+ epochs (no BatchNormalization layer, Keras' unmodifier RmsProp):   Upd. 2: For the final graph:  model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy']) history = model.fit(train_x, train_y, epochs = 1500)   Data: sequences of values of the current (from the sensors of a robot).   Target variables: the surface on which robot is operating (as a one-hot vector, 6 different categories).  Preprocessing:   changed the sampling frequency so the sequences are not too long (LSTM does not seem to learn otherwise); cut the sequences in the smaller sequences (the same length for all of the smaller sequences: 100 timesteps each); check that each of 6 classes has approximately the same number of examples in the training set.   No padding.  Shape of the training set (#sequences, #timesteps in a sequence, #features):  (98, 100, 1)    Shape of the corresponding labels (as a one-hot vector for 6 categories):  (98, 6)   Layers:    The rest of the parameters (learning rate, batch size) are the same as the defaults in Keras:  keras.optimizers.RMSprop(lr=0.001, rho=0.9, epsilon=None, decay=0.0)      batch_size: Integer or None. Number of samples per gradient update. If unspecified, it will default to 32.   Upd. 3: The loss for batch_size=4:    For batch_size=2 the LSTM did not seem to learn properly (loss fluctuates around the same value and does not decrease).  Upd. 4: To see if the problem is not just a bug in the code: I have made an artificial example (2 classes that are not difficult to classify: cos vs arccos). Loss and accuracy during the training for these examples:


Limits using epsilon delta definition $f(x,y)=xy$ for functions of two variables

Prove: using $\epsilon$-$\delta$ definition, the limit of both $f$ and $g$ as $(x,y)\to (0,0)$ is $0$.   $f(x,y)=xy$ $g(x,y)=\frac{xy}{x^2 +y^2+1}$   Also, for Q2 can I convert $g(x,y)$ to $m(x,y)/n(x,y)=g(x,y)$ using arithmetic of limits, then prove using $\epsilon$-$\delta$ definition the limit of function $m$ and $n$ separately; then combine the two?   Thanks :)    I wonder if this is correct: $|xy-0|<\epsilon$ given $|x-0|< \delta $ and $|y-0|< \delta $  $|xy-0|< |x-0||y-0|<\delta^2=\epsilon$  therefore: $\delta<\epsilon^{1/2}$


Suggest duplicates when posting a question from iOS app

From the desktop, any new question has a list of suggested duplicates between the title and the body. From personal experience, this has stopped me from posting several duplicate questions.  Can we get this feature in the iOS app?  Perhaps replace the body input area with the list while the title is focused. You can still see the text in the rendered area to the right, so that's not a problem.


If $|f|$ is constant, so is $f$ for $f$ analytic on a domain $D$.

I'm reading through a development of the maximum modulous principle, but I am stuck verifying a remark:  $$\text{"it is enough to show that $|f|$ is constant, from which we may conclude that $f$ is.''}$$  So I am trying to prove it as a lemma:  Let $f$ be analytic on a domain $D$.  If $|f|$ is constant then so is $f$.  I tried using the fact that $|f|$ constant implies $|f|$ is analytic.  From here this means that $Re(|f(x,y)|)$ is harmonic.  I wrote out the consequence to this using Laplace's Equation, hoping to force the partial derivatives of $f$ to vanish, but it didn't seem to go anywhere.  Any suggestions?


Fine line between "figuring it out on my own" and "asking for help" in research labs?

For some background: I'm very new to graduate school, in fact I just started unofficially doing research a few months ago, my official PhD program starts in the Fall (I moved out there early). Currently, I'm at a big R01 institution, coming from a pretty low ranking obscure undergraduate school, and there is an intimidation factor when I'm surrounded by accomplished postdocs (they pushed out more papers than my professors with tenure in my undergraduate). It's slightly amplified when I consider that, so far, I effectively only have a Bachelor's degree.   Anyway, I was given some code to modify for a specific device. I'm not really pestered or swarmed for deadlines, and I'm trying to figure it out. I honestly think there is an error in the syntax that prevents me from being able to carry out a colleague's request. I have prior coding experience. I'm a traditional "I want the challenge of figuring it out so I can develop and learn" kind of guy, but where do you draw the line between the latter mentality and requesting help? I don't want to come off as stupid or needy, and I want my lab to be able to depend on me. So far I have been pretty reliable (and that's saying a lot considering I'm a big critic of myself), and I don't want to kill the momentum.


How to make the kernel section 9 manpages which document functions, data structures, and headers?

The kernel  contain functions and data structures which are documented, for instance in :  /**  *  panic - halt the system  *  @fmt: The text string to print  *  *  Display a message, then perform cleanups.  *  *  This function never returns.  */ void panic(const char *fmt, ...)   Instead of going through the sources every time, it would be useful to view those APIs as manpages and leverage this existing documentation framework.    How do you install/make the kernel section 9 manpages(/usr/share/man/man9) which document the aforementioned functions and data structures?


BufferedReader Initialization(?) causing NullPointerException

I'm working on a program for a game that reads in formatted data from a text file and then analyzes the probability of a certain stat being rolled on a given item. The particular method at the source of the problem, takes in two pieces of user input and filters through the text file accordingly.  public ArrayList<String> analyze(String type, int ilvl){     strImplicits = new ArrayList<>();     // make a new item based on the user input     userItem = new Item(type, ilvl);      try {         // File reading shit         BufferedReader reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream("/src/ImplicitList.txt")));          //File implicitList = new File("ImplicitList.txt");         //Scanner fileReader = new Scanner(implicitList);          String line = "";         String name = "";         String effect = "";         int implicitilvl = 0;          while ((line = reader.readLine()) != null){              if (line.equals("$")) {                 line = reader.readLine();                  // splitting the line and grabbing data                 String[] info = line.split("\t");                 name = info[0];                 implicitilvl = Integer.parseInt(info[1]);                 effect = info[2];              } else if (!line.equals(null) && !line.equals("$")){                  String[] tag = line.split(" ");                 int weight = Integer.parseInt(tag[1]);                  if (userItem.getTags().contains(tag[0]) && weight != 0 && ilvl >= implicitilvl) {                     userItem.addRoll(name, effect, weight);                 }             } // end else-if             if (line == null)                 break;         } // end of while         /**          * Iterate through each line of the text file, looking for the $ delimiter.          * After we find the & character we need to check the mod's tags to see if it applies          *          * if yes, add the weighting to the int variable that represents the pool of mods          *      probably would need an arrayList to store and print out the possible variables          */     } catch (FileNotFoundException e) {         e.getMessage();     } catch (IOException e) {         e.printStackTrace();     }     // string representation of all the possible implicits to be used in combo box     for (Implicit imp: userItem.getPotRolls())         strImplicits.add(imp.toString());     return strImplicits; }   The error message I receive is:  Exception in thread "JavaFX Application Thread" java.lang.NullPointerException     at java.io.Reader.<init>(Reader.java:78)     at java.io.InputStreamReader.<init>(InputStreamReader.java:72)     at Driver.alternative(Driver.java:34)     at VaalUI.handle(VaalUI.java:158)     at VaalUI.handle(VaalUI.java:17)   where Driver.java:34 is the line where I initialize the BufferedReader object. When debugging the program won't execute past this line so I can't see it being a problem caused by the rest of the code in the while loop (though that code may cause other issues, I just haven't gotten far enough to tell). I've tried looking at other solutions to similar error messages but none of them have worked for my case. Any help welcome, thanks.


Prove that $|G:A|=|G:B||B:A|$ for $A\subseteq B\subseteq G$

Given $G$ a group and $A,B$ subgroups of $G$ such that $A\subseteq B\subseteq G$, I want to prove $|G:A|=|G:B||B:A|$ where these are the indexes of the respective groups.  I have been presented with a proof as follows but get stuck near to the end;  Let $Bx_i$ and $Ab_j$ be the set of distinct right cosets in $G$, $B$ respectively for some $i\in I, j\in J$.  Then $|G:B|=|I|$ and $|B:A|=|J|$.  With this set up, the proof claims that $Ab_jx_i$ are all the distinct right cosets of $A$ in $G$.  I understand how the proof has shown that these are the distinct right cosets of $A$, but do not understand the deduction that these are distinct.  This is the given argument;  Suppose $Ab_jx_i=Ab_kx_l$. As $Ab_j,Ab_k \subseteq B$, this implies $Bx_i =Bx_l$ and hence $i=l$. A similar argument is used to show $Ab_j=Ab_k$ implies $j=k$.  Surely we can have two cosets being equal to each other with distinct elements representing each coset and so why would $i=l$ here?  eg. if $G=(\mathbb Q^*, \times)$ and $H=\{-1,1\}$ then the right cosets $H(1)=H(-1)=H$.


Is possible change the commit date on git?

When I commited my work, the pc date was 02/13/2014, but the correct date was 01/13/2014. Is possible the change commit date to the correct date?


Proof of "the continuous image of a connected set is connected"

None of the existing questions is exactly answering my question so I'm posting a new question, but feel free to refer me to some already answered question!   In Rudin Theorem 4.22, we know that      If $f$ is a continuous mapping of a metric space $X$ into a metric space $Y$, and $E$ is a connected subset of $X$, then $f(E)$ is connected.    In the proof, we started with consider $f(E) = A \cup B$, where $A$ and $B$ are nonempty separated subsets. Then put $G = E \cap f^{-1}(A)$ and $H = E \cap f^{-1}(B)$. Then Rudin is claiming that $E = G \cup H$. I'm a little suspicious about this. What if $f$ is non-surjective, then $f^{-1}(A) \cup f^{-1}(B)$  is only a proper subset of $E$? Is there a property of $f$ being continuous that forces $f$ to be 1-1?


If I consume 2 painkillers, my bar is almost full and I get a decent regen.  So if I consume 10 painkillers will my regen increase 5x? or it remains the same once the bar is full?


How to upgrade to ubuntu 18.04 version from 16.04 using terminal

I want to upgrade to ubuntu version 18.04 from 16.04.I have taken the backup. My question is whether update manager will give options to select which version 18.04 or 20.04 as both are available and i don't want to upgrade to 20.04. Upon some searching in askubuntu i found below steps to be followed to upgrade. Step1: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt install update-manager-core Step2: sudo vi /etc/update-manager/release-upgrades Step3: sudo do-release-upgrade Can anyone please let me know if i am following correct steps.Is there any other steps i need to  follow to do upgrade to 18.04


Task:     In box are three cards. First card is red on both sides. Second card is black on both sides. Third card is red on one side and black on other side. I random choose one card and I see that color on one side is red. What is the probability that second side is red?   My solution is $P=\frac{1}{2}$ because on other side should be black or red color. Is this correct?


Generalized Euler sum $\sum_{n=1}^\infty \frac{H_n}{n^q}$

I found the following formula   $$\sum_{n=1}^\infty \frac{H_n}{n^q}= \left(1+\frac{q}{2} \right)\zeta(q+1)-\frac{1}{2}\sum_{k=1}^{q-2}\zeta(k+1)\zeta(q-k)$$  and it is cited that Euler proved the formula above , but how ?  Do there exist other proofs ?  Can we have a general formula for the alternating form   $$\sum_{n=1}^\infty (-1)^{n+1}\frac{H_n}{n^q}$$


What does it mean to define something as a curve?  Does writing $y=x$ means I'm explicitly talking about a curve and writing $f(x)=x$ means I'm defining it as a function?


Convergence of random variable Poisson distribution

Let $X_1,...,X_n \sim \mathrm{Poisson}(\lambda_n)$ where $\lambda_n=1/n$ and let $n \in \mathbb{N}$. I have to show that $Y_n=nX_n$ converges to $0$ in probability. My approach: (using Markov's inequality)  Note that $Y_n$ is a non-negative random variable since $n\geq 1$ and $X_n$ is also non-negative (Poisson). Therefore by Markov's inequality it holds that:   $$P(Y_n >t) \leq \frac{E(Y_n)}{t} = \frac{E(nX_n)}{t}=\frac{nE(X_n)}{t} = \frac{n\lambda_n}{t} = \frac{1}{t},$$  for all $t\in \mathbb{R}_{>0}$. However for $n \rightarrow \infty$ we do not see that $P(Y_n > t)\rightarrow 0$ so what is wrong with this approach?


HDD unpluged for a long period of time goes bad?

I have two HDD's unplugged for two years. It's from my old pc. I have some important files in there but I'm wondering about this problem.  Will the HDD's turn on and I'll be able to access all my files or there a possibility of these HDD's goes bad because I let them off for a long time?  People, the old question is from 2009... Now, the HDD's are different. I need a new question, a new debate from the experience from users since 2009.


Are humans officially immune to Pokemon attacks?

claims that humans are immune to Pokemon attacks.     I believe within Pokémon canon Pokémon powers are simply ineffective against humans, so trainers need no special resistance.   Yet I'm pretty sure that in the TV show, the games, and (especially) Detective Pokemon, humans have born the brunt of Pokemon attacks.  According to canon, are humans officially immune to Pokemon attacks? There may well be exceptions (say, a super-powerful Pokemon, or some other way), but has canon ever explicitly addressed this issue?   What I'm not looking for: Examples of humans being attacked by Pokemon and either taking damage or surviving. There are examples either way, but generally humans are not attacked or damaged by Pokemon, and an exception does not explain the general rule.  What I am looking for: a quote from the games, tv show, or any other canon explicitly addressing if or whether humans are immune to Pokemon attacks, or some other quote addressing why Pokemon do or do not attack humans.


Determining the missing digits of $15! \equiv 1\square0767436\square000$ without actually calculating the factorial

$$15! \equiv 1\cdot 2\cdot 3\cdot\,\cdots\,\cdot 15 \equiv 1\square0767436\square000$$ Using a calculator, I know that the answer is $3$ and $8$, but I know that the answer can be calculated by hand.  How to calculate the missing digits? I know that large factorials can be estimated using : $$15! \approx \sqrt{2\pi\cdot 15} \cdot \left(\frac{15}{e}\right)^{15}$$ which is not feasible to calculate by hand. The resulting number must be divisible by 9 which means that the digit sum must add up to 9 and is also divisible by 11 which means that the alternating digit sum must be divisible by 11: $1+ d_0 + 0 + 7 +6 +7 +4 +3+6+d_1+0+0+0 \mod \phantom{1}9 \equiv \,34 + d_0 + d_1 \mod \phantom{1}9 \equiv 0 $ $-1+ d_0 - 0 + 7 -6 +7 -4 +3-6+d_1-0+0-0 \mod 11 \equiv d_0 + d_1 \mod 11 \equiv 0 $ The digits $3$ and $8$, or $7$ and $4$, fulfill both of the requirements.


Let $X$ be a matrix $2000x2000$ and $Y=adj(X)$. What are the possibilities the rank of $Y$ to be? I can't seem to understand how that size of the matrix is helping in solving the problem. Any hints?  Edit: I forget to tell that $X$ is singluar matrix.


div heght to fill parent if div sibling's height are in "em"

I know how to set two divs stacked one before the other to make the second fill all the page's height if they are defined with percentages, but how if the first div's height is defined in "em"?  body{   height:100%;   background-color:yellow; } #Header{   height:3em;   border:solid 2px black;   background-color:red; }  #Content{   border:solid 2px black;   background-color:green;   height:To fill body.. ???? }   . (Updated)


Let $V$ be finite-dimensional vector space such that $dim(V)=n$ and consider $T \in L(V)$ and $\lambda_1,...,\lambda_k$ all the different eigenvalues. a) If $W_j$ is the subspace associated to $\lambda_j$ for $j\in{1,...,k}$ prove that $W_1,...,W_k$ are independent  What I know here is that we have to prove that $w_1+...+w_k=0, w_i \in W_i$  If T is diagonalizable, prove that $V=W_1 \oplus...\oplus W_k$  If T is diagonalizable $\exists\beta=${$v_1,...,v_n$} such that $v_i$ is a characteristic vector $\forall i \in${$1,...,n$} how do I prove $V=W_1 \oplus...\oplus W_k$?


How to make Outlook 2010 minimize when I try to close it?

When clicking the X button or ALT+F4, how can I get Outlook to minimze to the tray instead of close?  Several programs have this behavior, and it's annoying that Outlook behaves different...


YA novel about sister is alien with two hearts and assassins come

Plot of novel: sister is actually some alien planet's royalty but due to a coup d'etat she is surgically changed into a human and sent to live on earth in disguise. Unfortunately they get the wrong planet and gave her two hearts. An accident causes this to be revealed and now assassins are after her.  Aliens were beings of lights and they used water sprinklers as a weapon in one of the fights.


What is the correct pronunciation of the word “processes”?

What is the correct pronunciation of the word processes? I am confused because my mother tongue is not English, and in my company some say it as "process-eez" and some say it "process-ess".


Why is there a discrepancy in the E192 series?

For all series from E48 through E192, this holds true:  $$ value = 10^{\frac i n} $$  where i is the zero-based index in the series and n is the length of the series. The one exception is E192[185]:  $$ listed = 9.20 $$  $$ expected = \text{round}\left( 10^{\frac {185} {192}} ,2\right)  = \text{round}\left( 9.19479... ,2\right)  \approx 9.19 $$  It seems that industrially, 9.20 is indeed much more common, but to muddy the waters even further, Vishay offers both of these parts:   RN55E9191BRE6 RN55E9201BRE6   What is going on here?  There is a  on EDAboard that talks about the same issue.  This is related to, but not the same as,  - it's well-known that E24 and below differ from the exact logarithmic formula for historical reasons, but no such historical reasons are listed in (for instance) the  for the higher series.


Should answer-owners be highlighted like question-owners?

On question pages on SE, the owner of a question is easy to identify: his "post-signature" has additional css-markup: owner.  If the owner comments on the page, his/her username is highlighted, blue on SO.  I'm wondering whether it would be an enhancement if comments of the answerer are highlighted in the comments section of that answer (in another color). This could be useful since:   An answerer is a stakeholder in the process as well and thus has a "more important" status than "just a random user" (no insult intended). He/she is after all, the owner of the answer. There is a better distinction between people who might understand the answer and the person who produced the answer and thus fully understands it; People can identify a third party more easily: it is obvious the answerer will of course defend his/her answer whereas a third party's positive comment gives an answer more "authority".   This is of course a very unimportant enhancement proposal. But as some HCI researchers argue: "Every second counts, and with millions of users, even a tiny increase in user's performance results in saving years for the total user community."  If the request is not accepted, why?


Why can't the tumbleweed badge be awarded multiple times?

It’s just a consolation badge, and I’ve had the unfortunate pleasure of asking my second question that would earn the badge. It would be nice (for some strange reason) to get another tumbleweed badge.  I’m not sure if the reason is that given in “”. That is, my first question was eventually answered, so it negated my first tumbleweed badge, but it wasn’t taken away; I just didn’t receive a second one. But this seems to conflict with the definition of the tumbleweed badge:     Asked a question with no answers, no comments, and low views for a week.   which is still true of both questions.


Is a monotone differentiable function continuously differentiable?

If $f:\mathbb{R}^+\to\mathbb{R}$ is monotonic and differentiable, does it follow that $f$ is continuously differentiable?  (This question arose from discussion here: )


How can I draw a big {} as below shape:  I tried by \big{ but it does not solve.


I am using EM algorithm to estimate measured data ($y$) as a sum of two weighted gaussian distributions:  $$model = \sum \limits_{i=1}^{L=2} w_i \phi(\theta_i)$$  Where $\theta$ = ($\mu$, $\sigma$). The problem is that the algorithm does not converge properly if the initialization is quite dissimilar to the real values (I generate the observed data as a sum of two gaussians + noise). So my question is about a good approach to estimate the initial values before running EM.  For the initialization, I tried to use a model (empty at the beginning) and then in a loop I compute this:   Initialization:  $$r = y - model$$ (r=residual)  $$\hat\theta_i = argmax_\theta |r^T\phi(\theta_i)|^2$$ (with newton optimization)  $$\hat w_i = \frac{\phi(\hat\theta_i) r}{\phi(\hat\theta_i)^T\phi(\hat\theta_i)}$$  $$model = model + \hat w_i \phi(\hat\theta_i)$$  But I am not getting good initial values, they are quite dissimilar to the real ones, so my EM algorithm doesn't converge.  Edit 1: If I try to find my initial values as I mentioned before, by computing the residual and the correlation with the gaussian functions to find the estimated values of $\mu$ and $\sigma$ and then the weights, in the first iteration I find a correct value of $\mu$ but the value of $\sigma$ is really small, so the factor $\frac{1}{\sigma \sqrt{2\pi}}$ is huge and so the correlation. That leads to wrong values for the weights and the rest of parameters for the next iterations. This is the point where I am stuck.


I'm playing Hearthstone, and looking my card collection I saw that I have repeated more than two cards.   I know that I can only put two of each card in any deck, so my question is:  What do I do with the extra cards?


Brake pads constantly touching the rotor because piston is not moving back

I recently replaced the brake pads on my hydraulic disc brake. The brakes are a Tektro Draco 2. Now the new pads are constantly touching the rotor.     This is how it looks like with caliper unmounted. Notice the left piston is constantly sticking out:    I tried spreading the pistons with a spacer. I left it in there for 3 hours    But still, the left piston comes out again. I'm thinking about buying a service kit to bleed the system. Will that help?


Zoom actor in while background out? How is this effect called and made?

I don't have a youtube link (I think "The shining" has such a scene), but you all probably know this effect, the actor is zoomed in by the camera while the background zoomed out, probably by zoom in camera while the camera increases distance. How is this effect called and exactly made. Also, how is it interpreted by the audience (the actor is shocked, engrossed,...)?


Using Transactions with PostgresQL dependency issue

I am trying to use transactions when inserting into a PostgresQL DB, however due to dependencies, I ran into some issues:  During the transaction I am inserting into multiple tables. The first table into which data is inserted is a table that saves company profile information (name, etc.). One of the other tables has a foreign key column that references to the key of the company which I am inserting in the same step. The company key is a BigInt auto-increment key, which leads to the following problem.  If I use a transaction to insert into all the tables at once, I cannot query for the company key (the insert-command has not come into effect yet), which is needed to insert into the other tables. On the other hand using multiple transactions might lead to an inconsistent state if something fails...  Is there a way to query for what the next assigned BigInt key in the company table would be, so that I can put everything into one transaction? How would you suggest resolving this issue?  Any help is highly appreciated! Thank you in advance!  Sam


Should a homepage carousel rotate automatically or not?

For a media site with a lot of content (news/headlines) to display upfront, should the homepage carousel (each slide has an image associated with) rotate automatically or not? Are there any studies that support either answer? Thanks!


How to delete recently opened files using terminal

In the Dash Home I used to see recently opened files and downloads, I want to delete those recent files so I do not see them again in the Dash Home.  Any help is appreciated, thanks.


Forgot my mail id & password of my google account , how recover id & password?

IForgot my mail id & password of my google account , how recover id & password ? my phone was rebooted and it cant start without google account & not accept any other google account pls help me


bst file for "National Library of Medicine" citation and reference formatting?

I have searched this for hours but still no luck, obviously doing something wrong.  The journal (Risk Analysis) wants "Reference style is based on the National Library of Medicine (NLM) style guide. In-text citations are numbered, superscripted and in parentheses, and the reference list is numbered in order of appearance within the manuscript. Footnotes are superscripted without parentheses".  Could someone please suggest an appropriate .bst file to use that will produce this? Thanks, J


Suppose $G$ is a finite group, whose cardinal is $2n$. $H$ is a subgroup of $G$, whose cardinal is $n$. Show that $H$ is a normal group of $G$.  I think I should start with Lagrange, but that's all I can think of.


Attempting to DIY solder repair a broken USB Flash Drive

I plan to solder the wiring from a cable with the USB end onto my USB flash drive.   I'm just not sure where to solder the wires…  This PCB is different from the DIY I've seen online.


I have UK postcodes stored in a database like this:  EC1-3  S40-45  NE99  So it's the first part of a postcode, followed by a range of numbers (or just one number if there's not a range). So for example, I need a regex that will match EC1-3 with an input of EC1V, but not with EC4R.  Is this possible?


I have the same objects in all 20 layers. If I delete one of them, the objects in all twenty layers are deleted, not the single one.  I would like the have my object in the first layer only. Any solutions?