I'm asking a solution for general case, but specific one may work either. I have installed oracle jdk, used update-java-alternative to make that default and uninstalled openjdk that came with my distribution. Now when I install a package that depends on jre/java, it installs openjdk-jre again. So one possible solution is to keep that openjdk installed. I am asking if there exists another, ie to pretend that openjdk-jre is installed, while in truth it's not. I seek for solution that would stand any update, which in the first solution is not possible (default jre world be set to openjdk one after update). Any standard way for debian is preferred to some hacky way to edit apt list files.
I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.  However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:  # apt install cli-common Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  opera : Depends: gstreamer0.10-plugins-good but it is not installable          Recommends: flashplugin-nonfree but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   apt --fix-broken install will just propose to remove opera:  # apt --fix-broken install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED:   opera 0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded. 1 not fully installed or removed. After this operation, 46.6 MB disk space will be freed. Do you want to continue? [Y/n]   Currently, my workaround is to install Opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.  Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.
Show that if $n&gt;2$, then $(n!)^2&gt;n^n$.     My work: I tried to apply induction. So, at the induction step, I need to prove, $n^n&gt;(n+1)^{n-1}$ Here, I tried to use induction again without any luck. I also took log of both sides, but I did not get anything. Please help! How can I retrieve data within my widget I have a Widget which I am creating but my quesiton is how do I access my custom table which I created via my plugin. I am attempting to fill the dropdown from the table called tfp which contains the column liters which I wish to popluate the values into the drop down   class my_plugin extends WP_Widget {  // constructor function my_plugin() {         parent::WP_Widget(false, $name = __('Thomsons Fuels Widget', 'wp_widget_plugin') );  }  // widget form creation function form($instance) {  //Check values if( $instance) {  $title = esc_attr($instance['title']);  $dropdown= esc_attr($instance['dropdown']);  $textarea = $instance['textarea'];  } else {  $title = '';  $textarea = ''; } ?&gt;   &lt;p&gt; &lt;label for="&lt;?php echo $this-&gt;get_field_id('dropdown'); ?&gt;"&gt; &lt;?php _e('Liters',   'wp_widget_plugin'); ?&gt;&lt;/label&gt; &lt;select&gt; &lt;option value="volvo"&gt;Volvo&lt;/option&gt; &lt;/select&gt;  &lt;/p&gt;   How I created the table in the plugin   global $wpdb; global $custom_table_example_db_version;  $table_name = $wpdb-&gt;prefix . 'tfp'; // do not forget about tables prefix  // sql to create your table // NOTICE that: // 1. each field MUST be in separate line // 2. There must be two spaces between PRIMARY KEY and its name //    Like this: PRIMARY KEY[space][space](id) // otherwise dbDelta will not work $sql = "CREATE TABLE " . $table_name . " (   id int(11) NOT NULL AUTO_INCREMENT,   liters VARCHAR(100) NOT NULL,   price VARCHAR(100) NOT NULL,      postcodearea varchar(20) NULL,         dft varchar(20) NULL,   PRIMARY KEY  (id) );";  // we do not execute sql directly // we are calling dbDelta which cant migrate database require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql);  // save current database version for later use (on upgrade) add_option('custom_table_example_db_version', $custom_table_example_db_version); If I have example.com, and blog.example.com, do search engines see those as one site or two? Will using subdomains hurt SEO? I have some technical reasons why I can't use example.com/blog. How much sleep do adults actually need? The common consensus is that most adults should get 8 hours of sleep a night.  However, sleep needs are highly variable, with some people needing more to function properly, and some gaining little benefit past just a few hours. I'm trying to learn more about the statistics here.  I'd imagine sleep needs would fit a normal distribution, with a median of around 8 hours and a standard deviation of around an hour. The  would then put 68% of adults in the 7-9 hour range, 95% in the 6-10 hour range, and 99.7% in the 5-11 hour range, but that's just a guess.  Has this distribution been studied, and where? Install MySQLdb (for python) as non-compressed egg The install instructions are:  $ python setup.py build $ sudo python setup.py install # or su first   This gives me an .egg file. How do I tell the install to dump the files as a normal, uncompressed library?  Thanks! Prove that the interval $(0, 1)$ and the Cartesian product $(0, 1) \times (0, 1)$ have the same cardinality Prove that the interval $(0, 1)$ and the Cartesian product $(0, 1) \times (0, 1)$ have the same cardinality  using the SB theorem? Also how does one find a bijection on $f:(0, \infty) \to (0,1)$ such that they have the same cardiniality? R linear regression categorical variable "hidden" value How do I install wine? Can someone please explain how I can install  in the following ways?   By using the package manager? By downloading and installing a pre-built package? I made up some integrals to do for fun, and I had a real problem with this one. I've since found out that there's no solution in terms of elementary functions, but when I attempt to integrate it, I end up with infinite values. Could somebody point out where I go wrong?  So, I'm trying to determine: $$ \int{\frac{e^x}{x}} \, dx $$  Integrate by parts, where $u = 1/x$, and $v \, ' = e^x$. Then $u \, ' = - 1/x^2$, and $v=e^x$. So,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \int{\frac{e^x}{x^2}} \, dx$$  Integrate by parts again, $u = 1/x^2$, $v \, ' = e^x$, so that $u \, ' = -2/x^3$ and $v=e^x$. So,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + 2\int{\frac{e^x}{x^3}} \, dx$$  Repeat this process ad infinitum to get,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + 2 \left( \frac{e^x}{x^3} + 3 \left( \frac{e^x}{x^4} + 4 \left( \frac{e^x}{x^5} + \, \cdots \right) \right) \right) $$  Expanding this gives,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} + \frac{e^x}{x^2} + \frac{2e^x}{x^3} + \frac{6 e^x}{x^4} + \frac{24 e^x}{x^5} + \cdots $$  And factoring that gives,  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} \left(  1 + \frac{1}{x} + \frac{2}{x^2} + \frac{6}{x^3} + \frac{24}{x^4} + \cdots \right) $$  Now, considering the series itself, the ratio between the $n^{th}$ term and the $(n-1)^{th}$ term = $\Large \frac{n}{x}$. Eventually, $n$ will be larger than $x$, so the ratio between successive terms will be positive, so (assuming $x$ is positive), the series diverges, meaning (and I'm sure everybody will cringe upon seeing notation used like this), that:  $$\int{\frac{e^x}{x}} \, dx = \frac{e^x}{x} \left( \infty \right) = \infty $$ What computer components are currently vulnerable to magnets? When I first started using computers, law of the land in computer class was never bring magnets near anything computer related, lest you lose all your data or screw up your monitor.  Now I am pretty sure magnets will still royally mess up a standard hard drive, and I know for a fact they screw up a CRT monitor.  Though I am also pretty sure they do not screw up a LCD monitor?  Now I have my phone which uses magnets to determine if it's docked, and it made me wonder.  Is it the power of the magnet preventing data loss or the sheer fact that whatever memory type in the phone is immune to it?  What about ear buds, as I know those have tiny magnets in them. Are those capable of damaging any electronic device currently in use?  I'm wondering if I'm being paranoid, but I really am not sure what magnets will damage and what they won't!  Is there a list, or rule of thumb for determining what will be hurt by magnets and what won't be? How to turn off notifications for individual apps? On my iphone, there is a "notifications" setting section, which basically just allows me to choose which apps has the power to notify me.  I was wondering if there's anything similar that is available on the Samsung Galaxy s2?  Basically, we have a new app called Scramble For Friends. And it keeps notifying us every time someone has finished their turn so that I can play. We play random people so this could be in the middle of the night or in a meeting etc.  It just vibrates but still - it's annoying and we want to turn it off. We also don't want to turn off other notifications like Email, Facebook etc. - we just want to turn off the notifications for Scramble For Friends.  I've been looking around in the Settings but there doesn't seem to be a universal page which deals just with notifications. Singularity in Newton's gravitational law This is about the upcoming  Zack Snyder movie , where Ben Affleck is playing Batman. I just read an  that Christian Bale wanted to be Batman again. So I wanted to ask why wasn't he cast as Batman in this movie. I checked the Wikipedia entry but nothing suggests why Christian Bale was not there. Nolan is associated with the movie as an adviser and DC Entertainment is producing this one too. So sort of familiar turf, right? But how come Ben Affleck is the new Batman?  EDIT: I would like to add another interesting piece of information. Bale is aged 40 (born 1974) and Affleck is 42 (born 1970). So they have actually cast an older actor. Screen brightness control not working on Lenovo T530 What benefit do plasterboard/drywall screws have? I have some plasterboard screws like this:     However, without a drill I have a job getting them into the wall. Am I safe to use normal screws on hangings that aren't going to be taking a great deal of weight? In this case it is a rack of coat hooks. Removing nodes from an XmlDocument Right so seeing as the new Deadpool movie shows the origins of Deadpool: specifically, he got cancer... blah blah had to get him the healing factor from Wolverine.  But that makes no sense — they used the same actor, so I'm assuming there must be some connection, right... right? Are the contents of a loot box determined at the time it is awarded or when it is opened?  For example, if you collect multiple loot boxes before a special event but opened them during the special event, would they have the potential of spawning rewards from that event? What do they do with all the plates and cups in Star Trek? Whenever someone in Star Trek creates food or drink in the replicator it is generated in the bowl, plate, or cup. It seems like after a few months they would have piles of used dishes from replicator food while making more for every meal. What do they do with all the dishes? Does $\lim_{n\to \infty} \int^{\infty}_{-\infty} f_n(x) dx\, = \int^{\infty}_{-\infty} f(x)\,dx\,$?