Intel Graphics Driver for Intel GMA 3650 on 12.04

I just obtained a small computer from ASUS with Ubuntu pre-installed. The scrolling, video, and animations are sluggish and choppy, though. The Details from All Settings states that the driver in use is "Gallium 0.4 on llvmpipe (LLVM 0x300)". However, the Additional Drivers claims that the driver in use is "drm driver for the Intel GMA500". I think that the computer is using the wrong driver, which could account for the choppiness in the scrolling and video. How can I correct this?  Computer Specs: 2GB RAM, 4x1.86GHz Intel Atom Processor, Intel GMA 3650 GPU


Can I install ubuntu 12.04 desktop on a laptop?

I have a Toshiba satellite pro Intel Core 2 Duo. Which ubuntu should I install?


colouring output of ls according to file extension

I am working on some C++ files all of which are in a single folder.   When I do ls both the .cpp and the .h files show up in the same colour.   Is there a way to tell the bash shell that I want to display .cpp files in pink and .h files in golden-brown?


Copying and Syncing Files on the Same Computer

I have a slightly unusual situation. I've got some files in a folder (as you do), and I'd like to make a copy of them to another locations (easy so far). However, I'd like this secondary copy to automatically update and synchronise with the first. I already do this between two of my computers using syncthing, but I can't work out how to do it on the one computer!


Backup / Disaster Recovery, should I store RAR-compressed files?

I'm in the process of recovering files from an accidentally formated Ext4 partition using Photorec. It had about 300Gb of data, of which I've already got hold of about 30Gb.  So far, it seems to me that the recovery of RAR-compressed files has been much more successful than the recovery of individual uncompressed files and ZIP compressed files - in the sense that a lot of recovered files/zips were unreadable, and pretty much all of the RAR files were intact.  Is there such a relation? Are RAR-compressed files really less prone to corruption and thus easier to recover?


NTP synchronized clock alongside the system clock

Does NTP daemon(ntpd) provide some sort of virtual clock that it disciplines and serves, but not touch the system clock?  Goal:  On a realtime Linux OS, have a NTP synchronized clock alongside of the system clock, so that ntp time changes won't cause issues on the system, but I can use NTP time for debuging purposes, say for sysloging.  Problem:  We are adding NTP to an already existing system, previously no worries about the system time, but now we are adding NTP to enable better debugging  Setup:   Some of the applications on the system rely on REALTIME instead of MONOTONIC time I have local clock as one of the NTP servers By default no external NTP server set On boot, ntpd is set to instant sync the system clock to first available non local clock and exit, then start another instance of ntpd normally When no external NTP server set, system would just run with ntpd with local clock   Scenario:   Lets say on boot time no NTP server set, and one decides to not set any NTP server Applications are starts running against REALTIME, no problem Someone decides to set an NTP server, but not to reboot the system Assume the newly added NTP server is good time source better than local clock, but there is an offset(could be a minute, day or even a month) If ntpd on the boot is set to allow huge offset stepping, it would do so without problem, but applications on the system could panic(timeout, etc) If ntpd on the boot is set to allow only slew, but no stepping, because of the huge offset the system could take forever to sync to the actual NTP server time


Why are most elements assigned to a class instead of an ID?

Lately I'm working with a lot of Wordpress themes. When I have to edit a particular element, I usually use Firebug to see the element's name so I can change the CSS. I think I understand the difference between IDs and Classes, Classes are used for a group of elements that you want to share the same styling, and ID is usually used for a single element.  Here's the thing, I'm seeing so many elements in these Wordpress themes that are only used once, but they are assigned to a class. A good example is the website logo. Isn't the logo only used once? Shouldn't it be assigned to an ID? Why is it always assigned to a class?


Fourier transform is uniformly continuous

I am trying to prove the following statement:  If $f \in L^1$, then $\hat f$ is uniformly continuous.   The argument given is as follows :  $$|\hat f (\xi +h )-\hat f (\xi)| = \left| \int f(x) (e^{-2 \pi i x \cdot (\xi+h)}- e^{-2 \pi i x \cdot (\xi)})\mathrm dx \right| \leq 2 \|f\|_{L^1}$$  Now I suppose we have to use the Dominated Convergence Theorem, but I am unable to see to what sequence of functions we apply the theorem to.   Any help is greatly appreciated.


Is it possible to copy a PS4 Fallout 4 save file to a PC and use it with the PC version?


How do I connect a laptop to both a wireless LAN and a wi-fi hotspot?

I have two networks at my home -- a LAN where I'd like to share my files, and a phone that provides my only Internet via a wi-fi hotspot feature. Hoping to access both at once, I outfitted my Windows 8 laptop with a second network adapter.  Unfortunately, as soon as I try connecting to the LAN, every request for a webpage bounces off the LAN router, and fails. The order I connect to these two wi-fi networks doesn't seem to change this problem.  What do I do to remedy the situation? Is there some way to change which network is used for Internet connectivity? I can configure my router, but probably not my wi-fi hotspot.


Can one display a specific page on the WordPress dashboard using the WordPress dashboard API?

I'm using a WordPress page to display this week's notice. This page will need to be updated weekly. I would love to have a box on the WordPress dashboard (similar to QuickPress) that would allow the admin, to simply update the content easily.  I've added custom content on the dashboard before and I guess I could add a link to that page admin, but I'm not sure if I can add a box that would allow for this. Is this possible?


What is the policy on destroying users with very spammy profiles but have not posted spam yet?

A little bit of background first: Over on , we've been nuking users that look very spammy, before they've had a chance to post anything. It began with posts like , which advertised watching things online and stuff.  So then we (I'm not a mod there, I just pinged them with links) started nuking users with spammy profiles before they had a chance to post. Like . They have keywords that might show up in a Google search and a link to their site.  Then the line gets a bit blurrier with profiles like . The entire profile looks like an ad for the product, and they have no positive participation. The profile is still something I'd flag on the spot as spam.  ...but now, after a  (link will only work for mods), it turns out that apparently we (me, the Puzzling mods, and apparently ) are in the minority here. That most mods will not nuke a user based on that, and will wait for them to actually post spam, the concern being that a legit user will be thrown under the bus - with  being an example of someone who might suffer from being nuked unfairly. (My opinion is that if they look like a spammer, they should expect to be treated like a spammer, and that if they want to be a positive participant they should create a less suspicious account.)  So... to resolve this (the conversation took over two hours), is there any official policy or anything on this?    Note: I'm aware of the . This is different, specifically as 1.) This is about the rules for nuking an account, and 2.) This has caused a lot of debate in the past couple hours and I feel it's time for a new discussion on this.


How can I get column names from a table in Oracle?

I need to query the database to get the column names, not to be confused with data in the table.  For example, if I have a table named EVENT_LOG that contains eventID, eventType, eventDesc, and eventTime, then I would want to retrieve those field names from the query and nothing else.  I found how to do this in:        But I need to know: how can this be done in Oracle?


my server copy it if you want! :)  how do i find my ipv4 using python? can i you try to keep it real short?  import socket  def Main():     host = '127.0.0.1'     port = 5000      s = socket.socket()     s.bind((host,port))      s.listen(1)     c1, addr1 = s.accept()     sending = "Connection:" + str(addr1)     connection = (sending)      print(connection)     s.listen(1)     c2, addr2 = s.accept()     sending = "Connection:" + str(addr2)     connection = (sending)     print(connection)     while True:         data1 = c1.recv(1024).decode('utf-8')         data2 = c2.recv(1024).decode('utf-8')         if not data1:                                         break         if not data2:             break         if data2:             c1.send(data2.encode('utf-8'))         if data1:             c2.send(data1.encode('utf-8'))     s.close()   if __name__== '__main__':     Main()    thx for the help i appreciate it!


The Flash is a superhero whose power is super speed. In the TV shows (the current one and the one from the 90s portrayed by John Wesley Shipp), the super speed effect is often shown by slowing down/freezing events around The Flash. This probably means that The Flash also has super-reflexes in addition to his super speed, so that he does not crash into the first building in his way.  What about The Flash's thinking ability? Since the world seems to slow down around him, I guess he can analyze a situation faster than anyone else (at least while in motion) but has The Flash ever been seen using "super fast thinking" to solve problems (like a super complicated maths equation or science problem)?  Note: I know The Flash mostly from the TV shows, but any answer from the comics is interesting to me too.


List of last X visited Stack Overflow questions between web and mobile device like unix history

This might be one of those "it already exists" feature requests / support questions.   But is there a way to see the history of questions you've visited in Stack Overflow, maybe even like the last 100 or something similar to the unix history command?   There has been times when I've stumbled across something and need to go back to it and it is not findable via Google (and I didn't favorite) nor back button. Ideally a history by tag would be really cool.   So, I use SO on laptop / Chrome and iPad / Safari. Browser history is not sufficient.


I have a Samsung Galaxy S2 that has some problems with the GPS: If I use internet my navigation works but when I turn the 3G off, GPS does not work.  Do I need internet/3G to use GPS?


I have a website and it's been 4 days since I have provided sitemap file to Google. None of URLs are shown in Google. Google Webmaster Tools shows 4 URLs indexed. My website is session protected is this creating a problem?


Skipping the final leg in a multi-stop flight, will there be any immigration problems?

I have a flight with 3 stops, the last one in Atlanta, before I arrive at México.  I was planning to stay a couple days in Atlanta, so I won't use  the last connection.  Since the cost to change the ticket is expensive I would rather to buy a new ticket just from USA to Mexico.   My question is, should I notify to the airline about this? Immigration in USA could see this action like suspicious?


What items can you retrieve intact if a creeper explodes in certain biomes? I usually get sand and grass. Can you also get sandstone and stone as well?


The upgrade is successfully started, but then  got this error:   Failed to fetch http://archive.ubuntu.com/ubuntu/dists/dapper/main/source/Sources 404 Not Found [IP: 91.189.92.181 80] ...   The Internet connection is fine. When I simply open that URL in browsed I still get 404.  /etc/apt/sources.list:   deb http://ua.archive.ubuntu.com/ubuntu/ oneiric main restricted deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric main restricted  deb http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted  deb http://ua.archive.ubuntu.com/ubuntu/ oneiric universe deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric universe deb http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates universe deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates universe  deb http://ua.archive.ubuntu.com/ubuntu/ oneiric multiverse deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric multiverse deb http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse deb-src http://ua.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse  deb http://security.ubuntu.com/ubuntu oneiric-security main restricted deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted deb http://security.ubuntu.com/ubuntu oneiric-security universe deb-src http://security.ubuntu.com/ubuntu oneiric-security universe deb http://security.ubuntu.com/ubuntu oneiric-security multiverse deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse  deb http://extras.ubuntu.com/ubuntu oneiric main deb-src http://extras.ubuntu.com/ubuntu oneiric main deb-src http://archive.canonical.com/ lucid partner deb-src http://archive.ubuntu.com/ubuntu dapper main multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-updates main multiverse deb http://archive.canonical.com/ lucid partner deb-src http://archive.canonical.com/ lucid partner   How can I get through this?


Insert/update binary data to mysql with php

I am trying to insert binary data into BLOB data type field on a MySql database and i have the following code:  $dataset = array(); if (!empty($_FILES)) {     foreach ($_FILES as $k => $f) {           $dataset[$k] = "data:" . $_FILES[$k]["type"] . ";" . file_get_contents($_FILES[$k]["tmp_name"]);     } }  $sql = "UPDATE table_name SET "; foreach ($dataset as $key => $val) {     if (!is_null($val) && $val !== false)           $sql .= $key . "=" . (is_numeric($val) ? $val : "'" . $val . "'") . ",";     } } $sql = rtrim($sql, ","); $sql .= " WHERE id = 1";  $mysql = new mysqli("localhost" , "db_username", "db_password", "db_name"); $mysql->query($sql);   I already read about base64_encode, but i want to put the raw binary into database, so the mysql blob type will treat it like it should.  I also found about mysql_real_escape_string() function, but i saw another code working without escaping the binary data.  I know that is the attempt to send the raw binary to mysql that is making trouble, because mysql returns a 1064 error and when i remove the binary from the query, it simply works magically!  Can somebody help?  PS: Please, do not mark it as duplicate, because before asking here, i already did a good research on other threads, but all the answers i got did not work.


Calling an function without reference to object

Noob here in C#, so I'm having an issue trying to call a function in C# with system event args. I know the issue isn't with system event args, but what is the correct way I should call this type of function?     Error1: An object reference is required for the non-static field,   method, or property 'ConsoleApplication3.Program.Reject_call(object,   System.EventArgs)'      Error2: An object reference is required for the non-static field,   method, or property 'ConsoleApplication3.Program.Accept_call(object,   System.EventArgs)'   using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Lync.Model; using Microsoft.Lync.Model.Conversation; using Microsoft.Lync.Model.Conversation.AudioVideo;  namespace ConsoleApplication3 {     class Program     {     //holds the Lync client instance     private static LyncClient _client;     //holds the reference to the conversation associated with this window     private Conversation conversation;     //self participant's AvModality     private AVModality avModality;      private static void Main(string[] args)     {         //Obtains the lync client instance         _client = LyncClient.GetClient();         consoleInputReadRoutine();         _client.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded;         _client.ConversationManager.ConversationRemoved += ConversationManager_ConversationRemoved;          Console.ReadLine();     }      static void ConversationManager_ConversationAdded(object sender, ConversationManagerEventArgs e)     {         e.Conversation.Modalities[ModalityTypes.AudioVideo].ModalityStateChanged += Program_ModalityStateChanged;     }      static void Program_ModalityStateChanged(object sender, ModalityStateChangedEventArgs e)     {         Console.WriteLine("Modality state changed " + String.Format("{0} => {1}", e.OldState, e.NewState));     }      static void consoleInputReadRoutine()     {          bool done = false;         while(!done){              string input = Console.ReadLine(); // Get string from user             Console.WriteLine("user input {0}\n", input);              // Set exit condition.             if(String.Compare(input, "exit") == 0){                 done = true;             }             else if (String.Compare(input, "reject") == 0)             {                 //Do a reject call.                 Reject_call(null, new EventArgs());             }             else if(String.Compare(input, "answer") == 0)             {                 //Do a answer call.                 Accept_call(null, new EventArgs());             }         }     }      // Accepts an incoming call: AvModality.Accept()     private void Accept_call(object sender, EventArgs e)     {         //accepts an incoming invite (syncronous operation)         avModality.Accept();     }      // Rejects an incoming call: AvModality.Reject()     private void Reject_call(object sender, EventArgs e)     {         //rejects an incoming invite (which will disconnect the call)         //the ModalityDisconnectReason may be used to specify a reason to the caller side         //the reason may be shown on the Lync client conversation window         avModality.Reject(ModalityDisconnectReason.Decline);     }      static void ConversationManager_ConversationRemoved(object sender, ConversationManagerEventArgs e)     {         //Exit out of program if you wish after conversation is removed.     }     } }


We have this transformer:     – Schematic created using  The power transfered to R1 resistor is maximized when the frequency of the signal is very big.This means   it is not useful to use the same circuit for low frequency signals? If I want to send a low frequency signal and want as much power as possible to be transfered to R1 resistor how do I achieve it?


Reading feature from a GML3 content-string

How can I show the geometries from a GML3 file? Nothing is shown. This question is DIFFERENT from . The other project was to get a strange GML2 file visible on the map. In my Angular project, I first set the specific projection. proj4.defs("EPSG:28992", "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000  +ellps=bessel  +towgs84=565.040,49.910,465.840,-0.40939,0.35971,-1.86849,4.0772 +units=m +no_defs"); register(proj4) this.dutchProjection = GetProjection('EPSG:28992');  This is how I read the GML file (without errors): this.gmlFeatures = new GML3().readFeatures(this.fileText, {         featureProjection: 'EPSG:28992', dataProjection: 'EPSG:28992' });


Why there can not be a monochromatic pulse? My physics professor told us that we can't generate a monochromatic light pulse and I was wondering what are the physical limitations causing this.


Subject-verb agreement with prepositional phrase antecedent and pronoun

One of the engineers who design those programs is visiting with us today?   or      One of the engineers who designs those programs is visiting with us today?


I have a dataframe which contains   "HYD_SOA_UNBLOCK~SOA_BLOCK-UK|SOA_BLOCK-DE||SOA_BLOCK-FR||SOA_BLOCK-IT||SOA_BLOCK-ES|"  I want the result to be -  "HYD_SOA_UNBLOCK~SOA_BLOCK-UK|SOA_BLOCK-DE|SOA_BLOCK-FR|SOA_BLOCK-IT|SOA_BLOCK-ES|"  I tried:    leadtemp$collate = gsub("||","|",leadtemp$collate)    but it is not working.    Please help me replace "||" with "|"


I'm trying to change the value on an ArrayList<String> called this way  mails.forEach(mail -> {      mail = "my_new_value";      System.out.println(mail);//here the value is correct });   But outside the loop mails has the original value,I thought that on Java every thing is passed by a reference,what is the problem?


As caramel sauce makes everything better from cakes to brownies, cookies even enhances the flavor of popcorn. I am thinking to make caramel sauce and freeze it, so it can be used as and when required. So can caramel sauce be  frozen? How long does caramel sauce last in the fridge?


Preventing SQL injection and grabbing IDs

I thought my code was preventing SQL injections, but upon looking on the internet, I realized I was wrong. I was grabbing ID's by using:   $id = mysqli_real_escape_string($_GET['id']);   I learned on the internet that using the MySQL real escape string does not actually prevent me from SQL injection. However, even when I try to use it on my server, it gives me this error:  expects exactly 2 parameters, 1 given - Line: 4   I'm not sure why I was able to use it in a testing environment (wamp), but not on here. I was wondering, what is the correct way to grab IDs and prevent SQL injection?


A piecewise $C^1$ curve has Jordan measure zero.

$\newcommand{\Reals}{\mathbb{R}}\gamma:[0,1]\to \Reals^2$ is an injective parametrization of a curve $\Gamma$, which is piecewise $C^1$ and the length of the curve is $L(\Gamma_k)<\infty$.   1.1.: Show that for every $n\in N$ there is a decomposition $0=t_0<t_1< \dots <t_n=1$ of $[0,1]$ so that $L(\Gamma_k) = \frac{L}{n}$ for $k=1,\dots ,n$ and $\Gamma_k=\operatorname{Im}(\gamma_k)$, $\gamma_k=\gamma|_{[t_{k-1},t_k]}$.   1.2.: Show that you can cover $\Gamma$ with a system of spheres of radius $\frac{L}{n}$.   1.3.: Use 1.2. and 1.3. to show that $\Gamma$ has Jordan measure zero.   I wasn't there when they discussed when a function has Jordan measure zero  and how those things correlate with this exercise so if someone could give me some hints that would be great.


basic beamerposter example, keyval error

I found a beamerposter example at this url:   The content suggests that a number of packages may be required, therefore, I use the nominated packages:  \usepackage{fp} \usepackage{xkeyval} \usepackage{type1cm} \usepackage{paralist}   nnsuring that the each of these packages are up to date.  A number of beamer themes have been made available, one such example can be found here:   The example code is shown below.  poster.tex  \documentclass[final]{beamer} \mode<presentation> {% \usetheme{I6dv} }% \usepackage{times} \usepackage{fp} \usepackage{paralist} \usepackage{xkeyval} \usepackage{type1cm} \usepackage{amsmath,amssymb} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage[orientation=landscape,% size=custom,% width=200,% height=120,% scale=1]{beamerposter} \title[]{Poster Title} \author{Author} \institute[]{Institution} \date{\today} \begin{document} \begin{frame}{}  \vfill \begin{block}{\large Fontsizes} \centering {\tiny tiny}\par {\scriptsize scriptsize}\par {\footnotesize footnotesize}\par {\normalsize normalsize}\par {\large large}\par {\Large Large}\par {\LARGE LARGE}\par {\veryHuge veryHuge}\par {\VeryHuge VeryHuge}\par \end{block} \vfill \end{frame} \end{document}   When the theme is placed next to this .tex file and the .tex is compiled, I initially receive the following error:  ! Package keyval Error: fg undefined   As far as my due diligence in trying to solve the problem, I found , as well as, .  I didn't find too much useful info in either.  When I search the error message, I find , however, there wasn't really anything compelling in the thread.  I saw that the xkeyval is described as an extension to the keyval package, so I tried to include \usepackage{keyval} on the off change that (if in fact it existed) it was also required.  This idea didn't pan out.  Any comments/suggestions are greatly appreciated.  One option might be to locate a different poster example.


I've been playing league of legends all the time for some time now, and even though I have friends playing and family, I've never actually got what the meanings of the classes, I know of: Support, Tank, ADC, marksman, fighter, and such. But I don't know of: ap, ac, ad, and ss, but I just want to know what these abbreviated ones are like ac and such, so could someone, please, just tell me what they mean.


(√7) is (IR) irrational Number. How to prove it√7 .   Firstly I tried a/b =√7 and  a^2 /b^2 =7  7b^2=a^2  And then I couldn't continue . How I can Prove it ?


What's the biggest cube you could have before gravity rounded it?

I took this question from Quora because it seems interesting and this community would have some fun with it. I would assume that one would use the modulus formulas for force to counteract the gravity, but given that the question details allow for "a solid cube, although internal structure is fine (honeycomb, etc)," this might get more complicated.


I have a kubuntu 14.04 with the latest HWE kernel (3.16.0-31-generic), and a Xeon 1246v3 processor (which is basically an i7 4770 with ecc support). The processor has base frequency of 3.5 ghz, and max turbo frequency of 3.9 ghz.  I have the following questions:  1) I have intel p-states enabled by default, which is fine, but you know that with p-states you only get two governors: performance, and powersave. How can I manually set the maximum allowed cpu frequency?  2) As stated above, the cpu should be able to run at 3.9 only with one core loaded. With full load on all cores, it should not be able to go over 3.5 ghz. But if I issue the command watch -n 0 "cat /proc/cpuinfo | grep -i mhz" , I see that ALL four cores are constantly at 3.9 ghz, which should be impossible. How's that?  Thanks!


I used the sort by key for intersections to sort along a line, expecting the intersections to be numbered 1 through 5. Why were they numbered 4, 5, 3, 1, 2? Playing around with it, I could not seem to figure out how the order is determined. The code and image follow.  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections}  \begin{document} \begin{tikzpicture}     \draw[name path=grid] [xstep=3,ystep=2] (0,0) grid (9,8);     \draw[->, name path=line] (2,1) -- (7,7);     \draw[name intersections={of=grid and line, sort by=line, name=i, total=\t}]         \foreach \s in {1,...,\t}{(i-\s) node {\s}}; \end{tikzpicture} \end{document}


How can I make an object emit light in Cycles?

I'm using Blender for 4/5 weeks now, so, after learing the basics of modeling (i'm still not even decent), now i'm having some issues with Render Setup and Lights Setup, and i hope someone can help me out! :)  1. The Lightbulb  I've modeled a really simple dog-character for an upcoming work. Having a lightbulb for head, i need it to emit some glow/light. I need a result which looks like the FIG. 2 (lights are made with PS), while the one i'm having now in Cycles is kinda flat FIG. 1 What's the best way to achieve it?    2. Render Setup  Even if my scene is almost...empty (1 model, 2 lights) seems like my Pc is working really hard (and slowly) to manage it, both in 3d view and rendering session.  Windows 8 -  AMD Phenom II X4core 965 Processor   - NVIDIA GeForce GTX 560 Ti   -  8GB RAM  Not a beast, but still decent enough for a project like this, i suppose. (and i'm not forcing it, since render is still really noisy) Since i'm supposed to build a scenario and rig/animate character, having a 17/20 minute render time (for a frame) is really discouraging me :( I've attached the Blender file, to see how i've set the render.  What's wrong with it? Am I doing something wrong with modeling or scene general setup? How can i have to speed up the render? Any suggestion will be very appreciated! :>


How to check exactly what apt install [some package] is going to do?

I'm trying to compile a C++ project and got an error: xxx.so no such file or directory. In this case, normally I execute the command apt-cache search xxx and I can usually find a package name like xxx-dev, so then I simply execute apt install xxx-dev and it will be OK.  But in fact I don't know exactly what apt install xxx-dev will do. When we execute apt install xxx-dev, we can get some information about what would be installed, etc, but I want to know something more.  If I execute apt install xxx-dev, will it install more things than I need? For example, the error at the beginning told me that xxx.so was missing, however, when I execute apt install xxx-dev, I can usually see that many packages will be installed. Are all of these necessary? Is there a way to check exactly what apt install xxx-dev  will do or to check what a deb package contains?


Java code won't 'catch' if statements in a multiple if statement

My code is for a java 101 course and it works fine until the while loop. I put in the last input for the t, c, r, q options but it always goes to the else option where it shows "invalid input". The if statements just don't catch the 'answer' variable and always goes to the else statement.  import java.util.Scanner;  public class homework {       public static void main(String[] args) {        Scanner input = new Scanner (System.in);       System.out.printf ("Enter number of rows: ");       int rows = input.nextInt();       Scanner input2 = new Scanner (System.in);       System.out.printf ("Enter number of columns: ");       int column = input2.nextInt();       int[][] array = new int[rows][column];        for (int i =0; i < rows ; i++) {           for(int j = 0; j < column; j++) {               array[i][j] = (i*10)+j;               System.out.printf("%4d", array[i][j]);           }           System.out.println();       }        System.out.printf("T transpose - Rows become columns (and vice versa)%n");       System.out.printf("C columnSum - Calculate the sum of the values in each column%n");       System.out.printf("R reverseRows - Reverse all elements in every row of the matrix%n");       System.out.printf("Q quit - Exit the program%n");        boolean isValid = true;       while (isValid) {           Scanner input3 = new Scanner (System.in);           String answer = input3.next().toLowerCase();            if (answer == "t") {               for (int i =0; i < rows ; i++) {                   for(int j = 0; j < column; j++) {                       array[i][j] = (j*10)+i;                       System.out.printf("%4d", array[i][j]);                   }                   System.out.println();               }               isValid = false;             }            if (answer == "c") {            }            if (answer == "r") {             }            if (answer == "q") {               System.out.println("Goodbye");               isValid = false;            }            else {               System.out.println("Invalid input, please try again...");               isValid = true;           }        }      }   }


How can I pop-up a print dialog box using Javascript?

I have a page with a "Print" link that takes the user to a printer-friendly page.  The client wants a print dialog box to appear automatically when the user arrives at the print-friendly page.  How can I do this with javascript?


Why /proc/meminfo shows MemAvailable under Kernel Version 3.10?

I've been using CentOS 7 and its kernel version is 3.10. To check Kernel Version, I typed 'uname -r' and command showed 3.10.0-957.1.3.el7.x86_64  As far as I know, MemAvailable metric was introduced to Linux kernel version 3.14.  But, I ran /proc/meminfo and this command showed MemAvailable metric.   MemTotal:       3880620 kB MemFree:        3440980 kB MemAvailable:   3473820 kB   Why did my linux show MemAvailable metric? My Linux kernel is below 3.14


How i can deledete comment from listings code? I included source code file with \lstinputlisting{file.m} where file.m is matlab file. I want delete comment from file. % This is a comment function var = myfunction()   I tried to use comment commentstyle=\color{white} but the result isn't as I expected cause between code there are some withe line that i want totally remove.  Thanks in advance


There was a comic that told the story of a society based in Iceland. The one story line featured an oil tanker stranded in a desert that a military force was extracting oil from. The militay force was from a militaristic group that the Iceland based society was resisting. I recall there were 2 brothers, one belonged to the Icelandic society and the other was the head of the fascist society. At the end, it was revealed that their father had escaped to an orbiting space station.  Trying to recall the name of the comic or the story itself. I am thinkng mid 80's when I read this but could be an earlier time when it was written.


I'm using . For some reason, it has cached a page and won't update. For example, I added an alert('test'); statement to some JavaScript code which is loaded on the page, but Firefox doesn't see it. When I do a view source, I still see the old code.  So I'm guessing this is a cache issue. How can I fix it, or can I make Firefox never cache anything from http://localhost?


Possibilities to calculate process working time in Java

Is there any possibility to count the working time of a processes in java?  for example in a pseudo code  for(some Object:all Objects){ startProcess1(); .... startProcessn();} if(startProcess1 is finished){ getTimeOfProcessOne()}   Thanks


Please give an explanation. And you can give a link to the extended use of articles? I just do not understand why in this case the article "the" is put, if this noun is singular, then the article "a" should be used, as it is written in the rules.     Сan you get the meaning?   or     Сan you get a meaning?


How refractive index is related to speed of light in mediums?

Snell's law tells us that, Sine of angle of incident of light by sine of angle of refraction of light, when light travels from one medium to other, is a constant(for that mediums). It is also related as ratio of speed of light in two mediums. This ratio is also a constant. But, how they both are equal? How we came up with this?


I am trying to detach a process completely from a bash script, and then kill the bash script with Ctrl+C and have the detached process keep running. My code currently looks like this:  nohup ${SHELL} -c "env ID='0' \ env DIR=\"$(dirname -- "${input_file}")\" \ $DIR/encode-scripts/encode.pl > /dev/null; \ mv "$DIR/encode-scripts/output/$HASH" "${output_folder}"" & disown   The process detaches successfully, and the bash script continues to execute. However, as soon as I kill the bash script with Ctrl+C (during an arbitrary loop), I see from logs that the ffmpeg program inside of the sub-process shows: Exiting normally, received signal 2. The encode.pl script which spawns ffmpeg then continues, but how can I stop ffmpeg from dying prematurely? I thought this was what nohup was supposed to do.


How to upgrade to a point release from the same base release (12.04 to 12.04.03)

I have ubuntu 12.04 (original) installed on a server.  How do I upgrade this to 12.04.03?


If I use  two different router in the same network while both are running in the default router mode then we can access the setup page or setup interface from browser just by IP address of corresponding router. But when I use one of the router as repeater then I can only enter the setup page of the router which is running in router mode. Why router's setup page cannot be accessed when using the router as repeater? Now how can I change the settings of the router in repeater mode? The only way is to reset router with the hardware key then setup again.


Is it possible to make \usepackage depend on paper size?

I currently have a document (), where I define the paper size and one sided design as class options. I use the KOMA-Script class scrbook.   in A4 format for printing on usual printers at university and watching at the screen in A5 format for professional printing (well, it was not printed so far, but I would like to try this)   At the moment, I have a TODO list what to change when I switch from A4 toA5:  * In `GeoTopo.tex`...   * ... replace `a4paper` by `a5paper`,   * ... replace `oneside` by `twoside` and   * ... replace `\usepackage[...]{hyperref}` by `\usepackage{nohyperref}` * In `titlepage.tex`: replace `10cm` by `4cm`   Is there any (La)TeX solution so that I would only have one thing to get these different configurations?  I think it might look like this:  \newcommand{\CompileConfiguration}{A4} ... \if\CompileConfiguration==A4     \usepackage[...]{hyperref} \else     \usepackage{nohyperref} \fi   My thirst thought was to make it dependent on the paper size. But I have no idea how the condition would look like in this case.   An even better solution would define a variable even before \documentclass. But I have never seen anything before \documentclass except nag, so I doubt this is possible. Especially, even for the example above, I don't know the details. Is it == for comparison or =?   I have seen  \ifundefined \ifnum \ifodd \ifdim \iftrue \iffalse \ifx   so maybe there is no string comparison. But I don't know what other type \CompileConfiguration has (or how I could define it e.g. as a boolean)


What damage did Red Leader's torpedoes cause to the Death Star?

I've always wondered how, after Red Leader's two proton torpedoes impact on the surface of the Death Star, were Luke's torpedoes able to even come close to making correct navigation through the thermal exhaust port? Surely  and yet we see no obvious damage to the area around the target.     RED LEADER: Negative! It didn't go in. It just impacted on the surface.   Is there any evidence as to where Red Leader's torpedoes impacted? Did they fly out of the trench only to "impact on the surface"? Or did they impact the surface of the trench? In short, what damage did Red Leader's torpedoes cause to the Death Star?


Ubuntu 13.04 - dual boot problem - unable to mount windows 8 partition

i installed ubuntu 13.04 alongside windows 8 and almost everything works fine (dual boot for both windows 8 & ubuntu 13.04 is working great). but when i try to access my windows 8 partition via ubuntu i get the following error:  Unable to access “371 GB Volume”  Error mounting /dev/sda2 at /media/dan/544A4C7E4A4C5F3C: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/dan/544A4C7E4A4C5F3C"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   ideas anyone?   please note that i'm a linux newbie and ubuntu is the first non windows OS i've ever tried. thank you


How much space will iCloud Photo Library use on my devices?

I am considering to use iCloud Photo Library to store a growing number of family photo albums, shared to web or set of AppleIDs.  I dont need to keep original photos on iDevices for 99.9% of photos.  How much space will be used on the photo-originating set of devices (iOS, OS X, Windows)? I.e. what (roughly) is the function from the original size and number of photos, device storage space available, any other variables?


Close vote review audit is broken - displays "on hold" while reviewing

I just reviewed this:    But while reviewing, it already displays the "put on hold as not a real question" section, and it asked:     Should this question be closed as: ?   So as it stands, the audits are broken, since we already know that the question is "on hold" while reviewing, and it is incredibly hard to miss the huge grey box at the bottom.  Another with screenshot:


My V brake makes grinding sounds when pulled. I've checked, and it keeps collecting metal fragments, presumably from the rim. The pads are weeks old, the rim was replaced a year ago. What can cause this? Can I solve this with anything else than replacing the rim and the pads again?


How do I get the latest file in os.listdir('filepath')?

I am looking for a way in which I can get the latest modified file in a folder using Python.   I have tried looking online for some solution but have had no luck so far with the OS module in Python. Maybe there is another module I should be using? This is my code so far:  os.listdir('G:\\Data\\Hotels\\FTP\\Hotel Data\\IDEAS')   From this list I want the last modified file. I am new to Python, so not sure what modules are available to me in order to look at the time modified for each file.


why toLowerCase is not working in my code?

In my case i am trying to filter the result from firebase data based on the inputs given by the user. Since firebase is case sensitive iam trying to convert the String Course  into lowercase at both ends inorder to overcome the case sensitivity in the following code.      mUserDatabase.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(DataSnapshot dataSnapshot) {              for (DataSnapshot data:dataSnapshot.getChildren()){                   CollegeFilterDetails models=data.getValue(CollegeFilterDetails.class);                        if(   (ClgType.equals("") || ClgType.equals(models.getType()))                         &&(University.equals("")||University.equals(models.getUniversity()))                         &&(Course.equals("")||Course.equals(models.getCourse().toLowerCase()))                         &&(State.equals("")||State.equals(models.getState()))                         &&(District.equals("") || District.equals(models.getDistrict()))                          ){                       filteredList.add(new ObjectModel(models.getName(),models.getPlace(),models.getImage()));                     flag++;                  }             }             Toast.makeText(getBaseContext(), "found "+flag+" results", Toast.LENGTH_SHORT).show();             adapter.notifyDataSetChanged();          }          @Override         public void onCancelled(DatabaseError databaseError) {          }     });   This throws the error java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference when i add toLowerCase() to the Course.


How can you continue to work with an undecided client but has already payed?

I've been working with a logo for a client whom has already payed a deposit. I created 3 different proposals until he picked one and started making changes from that chosen design.  In the next to last meeting we had, there were several issues with the chosen logo, I must say that the client's decisions were based under several comments from three members of his team. They decided that they just needed a "renovation" from the actual logo since they are more than attached to their logo, so, it is crucial that the new one maintains the four elements that are already captured in the old one.  Having that in mind I created a fourth proposal in which all four elements were polished and updated, and in our last meeting (yesterday) I emphasized the negative points from the previous meeting which led to this new proposal. The second the client checked out the logo, the comment was: "I don't like it."  I had really high expectations since the proposal captured everything that the client wanted and not wanted... Is it time to ask for a new deposit? even though the total price was already negotiated but I didn't consider to make all this changes.


What are the easy ways to install Ubuntu remotely?

A GUI (graphical user interface) method is preferred. For example, can the new remote login feature be used for the purpose if the remote person has a Ubuntu live CD and know how to boot it?  The built-in remote login feature in question has been described in . Remmina maybe?


Why can't I left click on my Macbook Pro?

I have a Macbook Pro (Retina, Late 2012) running OS X El Capitan (10.11.13).  What works:   Secondary click with two fingers Feel/sound of trackpad click (no noticeable change in the feel of the trackpad) Three/four-finger swipes/gestures   What doesn’t work:   Primary (i.e. left) click One finger tapping to click   What I’ve tried:   Toggling System Preferences Trackpad settings   Rebooting   Toggling Bluetooth even though it’s normally off and I don’t own a bluetooth mouse () Using a USB mechanical mouse (right click worked, left click didn’t) Switching the Primary mouse button with the USB mechanical mouse connected (Secondary click on the left button worked, Primary click on the right button didn’t) Reset SMC and PRAM () Apple Hardware Test (No results found, could not click “Perform extended testing”) Booting in Safe Mode Checking Battery Health ("Condition: Normal” according to System Report; some people have had trouble with their battery bulging) Laying my Macbook Pro on its side and tapping underneath the trackpad area ()   I’m confused.    I’ve used the Accessibility Options Shortcut (Fn-⌘-⌥-F5) to turn on mouse keys, which I’ve been using for the past week. As fun as it is to toggle mouse keys on and off, I’d really like to get the clicking working. Please help. I will be happy if this has a stupid easy answer.


Completness and Set of Result of One Set ?!?

Dear Everyone on this Wonderful Sites:  I'm so glad to participate on this site and ask the first question that mentioned on the Contest some days ago. I ran into a question that wrote this set:   $\{(p_i \vee $~ $p_{i+1}$$) $$: i \in  \mathbb{N}  \}$   and ask this question, Which of the following is False:     -)  this is Satisfiable      --) this is Complete      ---) this is Decidable      ----) set of logical result of this set is effectively enumerable.   Solution of answer sheet is (2).   We try to solve it that without any detail is mentioned in the contest. one of our TA says, It is satisfiable because the TFTF... will satisfy it.  (We couldent get it) and it is decidable because propositional logic is decidable. We read some useful website for completeness (--) and for (----), but we get stuck in it until yet. any useful hint or idea for this question will be highly appreciated.


JavaScript "cannot read property "bar" of undefined

I've got a function that takes 3 parameters. The problem I have is one of the parameters is a property of a sometimes undefined value of an Object (i.e. it takes in thing.foo.bar, and sometimes thing.foo is undefined, so it can't access bar).   What's a way around this? Within the function's declaration, I have a conditional checking:  if (!parameterName), but the browser (Chrome) is still throwing an error that it can't read the bar property of undefined.


What to do with KEYEXPIRED 1555048520 on updating Google Chrome and Earth repositories?

When I run sudo apt-get update on my fully updated Ubuntu 16.04.6 LTS I get the following errors about Google repositories:  $ sudo apt update ... Err:20 http://dl.google.com/linux/earth/deb stable Release.gpg   The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 Get:21 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Err:13 http://dl.google.com/linux/chrome/deb stable Release.gpg    The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 ... W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520 W: Some index files failed to download. They have been ignored, or old ones used instead.   The apt-key list returns:  pub   1024D/7FAC5991 2007-03-08 uid                  Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com> sub   2048g/C07CB649 2007-03-08  pub   4096R/D38B4796 2016-04-12 uid                  Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com> sub   4096R/997C215E 2017-01-24 [expires: 2020-01-24]    Removing Google keys and packages with   sudo apt-key del D38B4796 sudo apt-key del 7FAC5991 sudo apt purge google-chrome-stable  sudo apt purge google-earth-pro-stable sudo apt purge google-earth-stable   and reinstalling packages with   cd ~/Downloads wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt-get install --reinstall ./google-chrome-stable_current_amd64.deb  wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb sudo apt-get install --reinstall ./google-earth-pro-stable_current_amd64.deb   does not help.  Executing command from  :  wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -   does not help.  How should I fix it?  What else I did: 1. sent feedback from Google Chrome with Help → Report an Issue. 2. sent feedback from Google Earth using Help → Send feedback. 3. created thread on


crontab(1), crontab(5) what's the difference?

I want to learn how to use crontab. I see there are two manual pages:   crontab(1)  crontab(5)   Why are there 2 manual pages? What are the differences between them? Do I need to study both in order to use crontab, or is one authoritative?


Not allowed to edit resolv.conf on Ubuntu

I'm trying to edit the resolv.conf file on my ubuntu 16.04 instance, but I'm unable.   Here are the first two lines of the file:   # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)  #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN   Please help me to find out how to fix it.  Edited: Here's the entire file  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 62.210.16.6 nameserver 62.210.16.7 search online.net   I'm trying to edit this file to connect my domain to this server. Any type of edits in this file is overwritten with the exact same lines.  It is a fresh new installation and yes I'm using "sudo".


(MtG) Damaging a blocker once blockers have finished being declared

So, suppose I declare a 3/1 attacker. Then the defender declares a 1/1 to block it. Once it is declared a blocker. May I then cast a spell or activate an ability to kill said blocker, before combat damage is calculated. Not only saving the creature, but also, now having no blockers, do the 3 damage with my attacking 3/1? Or is it just a save, but since a blocker was put there, I then decide to save my homie, and slay the beast, but deal no combat damage to player? Or door C, I can't intervene and do damage there and must watch all crumble to dust?


We are supposed to do this:  I made everything except red dots and this line from sin to x-axis    \begin{tikzpicture} \begin{axis}[     axis lines=middle,     height=10cm,     width=16cm,     xmax=50,     xmin=-50,     ymin=-2.5,     ymax=2.5,     xtick= {-50,-40,-30,-20,-10,0,10,20,30,40,50},     xlabel={$t$},     ylabel={$x(t)$}]     \addplot [domain=-360:360, samples=720,      thick, blue , mark=o, mark size=1pt,] {sin(15*x)+cos(22.5*x)}; \end{axis} \end{tikzpicture}   Here is my code for this graph so i have dots but i dont know how to paint them red and i dont know how to make this lines under/over the curve so how to do that?


It is a good mechanism to ask a question to FIND a question?

What happens?  Several times has happened to me that I try to find a question (or solution) in Google or Stack Overfow, and nothing. Then I ask the question and, very fast the question is marked as [Duplicated]. Is this a good mechanism? It is right to ask a question for finding another one? In my case, this last time happened to me asking:  Difference between Asp.net MVC 4 Controller's Actions and WebApi's Actions [duplicate] when already was asked before like this one: Difference between ApiController and Controller in ASP.NET MVC    EDIT    So, it is a good practice remove the duplicated question? (like I did)


I nominated  to be closed as a dup. I see that two other people upvoted my comment, so they might have voted to close it as well. Now, we didn't gather enough votes, and all close votes expired ... and I can't re-vote to close. What is the motivation behind expiring close votes ... especially for close-as-duplicate? Update: Please take into consideration:  Beta Stack Exchange sites have a smaller community, and fewer people with voting privileges Closing as a duplicate is "usually the right thing" IMHO - much less controversial than closing as off topic. After a vote is reset, the original users can't vote again. On a small site, this makes it even harder to get a consensus of five votes.


Can I enable Login when I can't connect to the instance?

I have a cloned a customer machine to a Virtual machine. I had access from my code (SqlConnection) to the database through a database-Login where I could use window autentication.   I disabled my Login(I though I could enable it again).  Is there any way to enable the Login?   The solutions I found where you Grant something, all require that you are connected to the instance, but it's also not possible to connect without first a login.  If I had the sa pwd I would be able to login, but I don't know that either.   Is there any other way, I can enable my Login?


Is it possible to have no pressure gradient in a tank?

If a sealed container that is 20 miles high is filled to a pressure of 50psi gauge pressure, will it have a pressure gradient the same as the Earth or does the fact that it is filled to more than atmospheric make a difference.  Is not 50psi 50psi?  Are the molecules not pushing in all directions inside the tank at 50psi? Does that then mean that the pressure of 50PSI at the top of the container is the same as the pressure at the bottom of the container also at 50PSI?  50psi being well in excess of atmospheric pressure.


I am new here and I am beginner in English. Can anyone explain me the difference between these 2 sentences and also which one is wrong.     "Did you see my DP?"   or     "Have you seen my DP?"   Please explain me the Answer and which one is right and why?


C functions with same name but different header filenames in C language

It is a C question as says the title.  I have a function named "net_send" defined in two different header files. Here is the example:  f1.h and f2.h both contain net_send(args) but with different arguments.  I get an error that the function is already defined in alternate file. I know function overloading is not allowed in C. Also, I cannot edit those files, as these are from external libraries. Also, there are functions in each of those files which are being used by my program itself.  So what should I do? Remember I cannot change the original files.


Is it normal to UPDATE STATISTICS this frequently?

I have a stored procedure that processes data from a source table and is executed many times (about 20,000 executions) throughout the day.  I believe it's getting choked up sometimes, due to parameter sniffing and I've been updating statistics on the relevant tables (8 tables) in the procedure to fix this.  When it gets choked up, a backlog of unprocessed data builds up (which I'm able to monitor the count on.)   Once I update the statistics the backlog is instantly cleared.  I find myself updating statistics about 10 times a day (almost once an hour). Does this seem normal or is there a bigger issue I should be looking to fix?


What meta-information is contained in an image file?

I'm wondering what information is contained in an image file like JPEG or PNG.  I know that most of them contain a metadata file, but anything else other than that?  Anything relates to the license key or personal information in there?  Does software like Photoshop hide some user data in an image?


Out of curiosity, is it possible to have two familiars? As far as I know there are two possible ways to obtain familiars. One is with the find familiar spell; the other is to find a creature with the familiar variant option. In the first instance, the rules specify that you can't have more than one familiar, but the way is worded seems to be referring to the find familiar spell:  You gain the service of a familiar, a spirit that takes an animal form you choose. The familiar has the statistics of the chosen form, though it is a celestial, fey, or fiend (your choice) instead of a beast. You can’t have more than one familiar at a time. If you cast this spell while you already have a familiar, you instead cause it to adopt a new form.  But in the variant case you don't have a spirit per-se; you have the actual living thing and it does not change forms (as in the spell). Also, there is nothing in the variant rules that seems to rule out the option of having two familiars:  Variant: Quasit Familiar [...] The quasit can serve another creature as a familiar, forming a telepathic bond with its willing master. While the two are bonded, the master can sense what the quasit senses as long as they are within 1 mile of each other. While the quasit is within 10 feet of its master, the master shares the quasit's Magic Resistance trait. At any time and for any reason, the quasit can end its service as a familiar, ending the telepathic bond.  And, as far as I know, there is no limit on how many telepathic bonds you may have, if the telepathic communication and "possession" is considered a telepathic bond. Therefore, is it really possible to have two familiars, particularly using both rules, the find familiar and the variant option, or I missing something?


Why are high white balance temperatures redder when warmer objects are bluer?

I know it's dumb to ask this type of questions. But, I still don't get this. I've read the "Black body" story and know that when it's heated, it gives off colors; 'warm' colors (red→orange→yellow..) that have low color temperatures, at low temperatures, (I mean, when it is cooler than afterwards) right? And, the black body gives off 'cold' colors (white→blue..) that have high color temperatures at high temperatures (when it is hotter than before), right? Correct? So there're two, yes, very dumb, questions and the latter one is dumber..     Why are that 'warm' colors said to have low temperatures? And 'cold' colors vice versa? So the redder colors have lower c/t and bluer colors have higher c/t, then   why does the camera's color temperature - adjusting slider has the bluer colors on the left, and the redders on the right?       Please, forgive me for my ignorance...


Looking for title and author of book where gun powder explodes

Like the title says I'm looking for title and author of a book where gun powder explodes.  I read it sometime ago (15-20 years)  The story starts in a university where they are testing a machine. When they turn on the machine, nothing happens(that is what they think).  The next morning the hear/read that a guard's gun exploded in his car, and it happened at the same time as when they did the experiment.  They repeat the experiment, and they see that gun powder is exploding.   That is what I remember.


how to disable gnome touchscreen keyboard entirely

I'm using ubuntu 17.04 with gnome shell 3.24.2 and the on-screen keyboard popping up keeps bugging me as my laptop has a hardware keyboard anyway. Is there any way to get rid of it completely?  Edit in regard to the mark as duplicate:  The keyboard popping up on my computer looks very similar to what pops up on Tom's . But the behavior is a little different. For me it does not appear when changing windows/apps or scroll within a browser. It does not even appear when marking text in a text field within a browser, be it a browser with touch support or without.  Some ways to make it appear on my computer are:   Opening LibrOffice Writer Mark text in LibreOffice Writer on the touchscreen (in other text editors this is no problem) Jumping to the end of a line in LibreOffice Writer on the touchscreen (in other text editors this is no problem) Opening any text editor like Pluma, GEdit or Leafpad touching the status bar of any application     On the screenshot above, I marked some text in LibreOffice Writer with the finger on the screen to make it appear.   I am still on Ubuntu 17.04 with Gnome-Shell 3.24-2 installed parallel to Unity. After reading the discussion  I checked if 'onboard' is installed, which it is, but that looks a little different to the keyboard popping up. Caribou does not seem to be installed and the keyboard feature wihin 'universal access' is disabled.


Can we add Possible Duplicates even after a question is closed?

I think it would help to make sure that the possible duplicates link to all older duplicate questions, even if everyone who voted to close picked the same one or two questions. However, I'm not sure how it would look and act, rep requirements, and more, so I figure I'll throw the idea out there and let the rest of the SO community help come up with something cool.


I tried to use the metropolis beamer theme, but I got the following error  ! Package beamerfontthememetropolis Error: Patching section title failed. See the beamerfontthememetropolis package documentation for explanation. Type H <return> for immediate help.... \patchcmd


How do I resize the partition in which Ubuntu is installed?

I installed Ubuntu in a 50 GB partition. I felt so good with the system that I decided to use it as the main OS so I erased the other OS. I deleted everything in Windows partition. Now, how do I add those 110 GB to the Ubuntu's partition.  I am using Ubuntu 18.04.1, downloaded from the official website on a HP system.


I know what the typical answer is. "Energy is the ability to do work." But a person who doesn't "understand" what energy is, this doesn't make any sense, especially when they watch videos on electrons in which the person in the video say that the electrons can basically teleport between energy levels by absorbing or releasing energy and that this can happen when they are hit with light particles that change frequencies (and thus color) depending on the change in energy. Then to be later told that photons are pockets of energy and that matter itself is a type of energy doesn't help either because that creates a paradox between matter and doing work. If matter is energy then matter is the ability to do work (which doesn't make any sense) and in my physics class I was taught that work is kgm^2/s^2 (which makes less sense if matter is energy). (sorry if the order was a bit strange, i'm trying to get my thoughts out)  The point of my question is that I've been told that energy is the ability to do work and that matter and photons are energy, so what is energy? Is it physical or mathematical? Is it just an essence that is stored in matter? Are there different types of energy (excluding dark energy)? Also, am I missing something? I'm really confused and it's annoying not understanding this, so please help me.


What's the best way of sending an email with an image from the application to the Mail.app for someone to send to any contact they like?  For example, in my app (iMood), you can select a 'mood', I'd like the user to be able to email this to a friend for example, by using a button in the navigation bar.  I can easily create the button etc. but just need to know a way to enable the user to send the image (ie. image.png) from the project to Mail.app as maybe an attachment or a picture in the email.  Thanks in advance.


Is the 1-dimension projective line a circle?

Is the 1 dimensional projective line homeomorphic to the circle?  If so, the circle is homeomorphic to itself with antipodal points identified  (very unintuitive).  I am missing something?


Is this a justified use of a very low quality flag?

Background:  I recently flagged  as very low quality, where a user misread or misunderstood a question about JavaScript as being about PHP, and answered with a PHP function. The flag was rejected, with the rationale being:     flags should not be used to indicate technical inaccuracies, or an   altogether wrong answer   I'd like to discuss this and see if I can get a better understanding of what the VLQ flag is intended for.   When I decided to flag the answer, the first two candidates that popped into my head were "Not an Answer" and "Very Low Quality".   To my understanding, the "Not an Answer" flag should be used when there is no discernible attempt to answer the question. That was not the case, since the user did try to answer the question. The VLQ flag is for when no amount of editing can salvage a post. This was applicable, since I obviously can't salvage the answer without changing it entirely. It also seemed to pass , since it was a mildly embarrassing slip up.  Question:  Since this was not a correct use of VLQ, am I correct in assuming that VLQ flags should only be used when a post is barely understandable? That is, as long as it contains coherent sentences, it should not be flagged as VLQ?  As an additional question, if this is the case (readable content cannot be VLQ), are there any other avenues to getting content like this deleted? Should it be deleted? My answer to that last question would be a strong yes, but I'd like to get the community's take on it.


Howto have thunderbird/lightning open ics files

Some websites offer .ics files, calendar files. I would like Thunderbird to open these with Lightning so it can add the events in the ics-file to its calendar.  When I use /usr/bin/thunderbird to open the file with, it starts a new message with the ics file attached.   I could download the file, then import it from lightning, But I rather have lightning just open the file.  Is there a commandline-option for this? Some wrapper-script maybe? Should I change something in Firefox?


Is there a name for this kind of graphic?

I found this image on Dribbble, but I see it's very different from normal images I see everyday. I don't think this is created from Photoshop; it's hard me to explain it. What is the name of this kind of graphics, and which software is used to create it?


In a text, how to align text pieces together and equations together?

I am preparing a LaTeX document. I am stuck in a problem where I wanted to make my document somehow look like the attached image. The text all together aligned to the left of the page, and equations aligned together at the center. I have made too many trials but failed. Any help?


I have a sample of 250 units. The distribution is asymmetric.  I want to test a hypothesis that the median of the population is different from 3.5, so I think a one-sample test would be appropriate. I know that the Wilcoxon rank test is not appropriate because the distribution is not symmetric. Is a sign test appropriate to use? If it is not can anyone recommend any other test?


Evaluate the series $\sum_{n=1}^{\infty} \frac{2^{[\sqrt{n}]}+2^{-[\sqrt{n}]}}{2^n}$

How can I obtain the limit of the series     $$\sum_{n=1}^{\infty} \frac{2^{[\sqrt{n}]}+2^{-[\sqrt{n}]}}{2^n}$$   Where $[\ \ ]$ is .


No particle button available (EVEN WITH MESH)

created a brand new mesh object, still can't use particles. I've tried every mode and such and it WONT let me use particles. Please help.


My university does not do anything to prevent cheating in online exams, and grading is relative. What should I do?

I am from a reputed university in India and despite informing the department professors and higher authorities of the rampant cheating in the online exams, they haven't taken any steps to curb it (they use Google Meet/Zoom proctoring which is basically useless because students can still text and make excuses). They don't even reply to the emails that raise these concerns. They made no effort to change their examination mode for the online semester - by increasing the weightage of take-home/research assignment components in the syllabus. This has taken a toll on the mental health of students like me who did not use unfair means but are now suffering because the university follows relative grading and the skyrocketing averages of the exams have made it next to impossible for us to get grades proportional to our efforts. What should a student do in such a situation? Should he/she start cheating too? Edit: Switching the institute is not possible because this is India — students have to go through a gruesome procedure to get admitted into these reputed institutes in the first place. Secondly, the jobs and higher education somewhat depend on the grades of the student so this unfair disadvantage for 2 semesters straight without cheating would be hell for any honest person.


How can I set that the function using the variable does not alter its content in current function?

My function getUser() does a databse select of user info. In this function, I call a another function called calcPercentage() which takes the received values from the database stored in $result, then removes some values(indexes) and do a calculation. Once complete, the second function returns a value to the first function.  My issue is that the values removed in calcPercentage(), the second function, are effecting the original values received from the database.  See code  function getUser() {   $result = DB::select(); // say $result = name, surname, email, telephone    $percentage = $this->calcPercentage($result);  var_dump($result) // now $result = name, surname }  function calcPercentage($data) {  $u_data = $data;  unset($u_data->email);  unset($u_data->telephone);  // the above values are not needed for the calculations,  // thus they are being removed.   ... do calculation  return $percentage  //$percentage would be = 100 || >100; }    I would like to remove the values from the object with out affecting the original variable in function getUser(); Expected outcome.  function getUser() {   $result = DB::select(); // say $result = name, surname, email, telephone    $percentage = $this->calcPercentage($result);  var_dump($result) // now $result = name, surname, email, telephone }    Should I rather do a another query here to the database?


How to set up RAID 1 (software, hardware or fake) on Ubuntu 12.04 desktop?


If only the Sith deal in absolutes, why does Obi-Wan say it that way?

Obi-Wan tells Anakin that "Only the Sith deal in absolutes", and uses that as his identification that Anakin had actually turned to the Dark Side.  But it would seem the statement itself "Only the Sith deal in absolutes" would be an absolute statement itself, and that his rash actions based on this single statement is just as 'Sith-like' as Anakin's statement of "Either you're with me or against me" (paraphrased, I forget the exact statement.)  Is this not a very clear indicator that the Dark Side is present in all who use the force, and reinforces Palpatine's assertion that the Jedi are simply blind to the powers of the dark Side instead embracing their full potential?


Are these eBooks that copy from SE illegal?

So, this guy has made . Making books of SE stuff is okay, but two rules need to be followed:   Attribution License the work under CC-BY-SA as well   This  claims that the books do attribute properly. I find it unlikely that he has properly licensed the books under CC-BY-SA though, given that he's selling them as eBooks. It's possible, but it's dubious (why do people buy them if they can get them for free?)  Could someone investigate. CC-BY-SA is important, it what keeps things open.  Again, I'm fine with him selling books, but not violating creative commons.  (P.S. The other problem I have with it is the covers are really bad.)


Setting up QA Department from Scratch (Web Development)

So I'm going to be starting a Job here in a few weeks, I've been doing QA for about 6 years now. Pretty much your standard Test Plans/Testing with a little normal SysAdmin stuff that sometimes comes with the task. I've had some good ideas implemented in companies, as far as tracking requirements/test plans/issues differently, and they seem successful. However, this new position will be me laying down the foundation for QA. Right now things are done in what seems to be as needed as far as QA goes, requirements are gathered and sometimes kept in different locations, same with test plans (which are done by developers right now). So my job will be sort of centralizing this, or developing a Flexible way of QA'ing the Software (Web/Mobile development). So it seems the challenge will be centralizing everything, while creating test plans/ or ways of testing similar requirements that is flexible enough to span projects. I've had a few ideas, however, all my previous test work was windows based (So test plans in TFS or Microsoft Test Manager). I wanted to get some ideas from everyone here, or anyone that has started a QA department from scratch. I was also going to see if there were any books on the subject. My thoughts were mainly keeping projects separated for issue tracking (not sure of the software we will use yet). And keeping test plans for common I guess "actions/elements" that are repeated between different customers and executing those. Eventually maybe using selenium to save those "common" elements as test scripts. But I've never set something up like this before solo, so I've been doing quite a bit of reading. Any books/suggestions would be appreciated!


How many permutation matrices are their own transpose?

I want to know, for any $n$, how many  $n \times n$ permutation matrices are their own transpose/inverse. For example, for n=3, the matrix below is it's own inverse; when multiplied by itself, you get the identity. \begin{bmatrix} 0 & 1 & 0\\ 1 & 0 & 0\\ 0 & 0 & 1 \end{bmatrix} This could also be described as being symetrical over the diagonal. For $n=3$, 4 out of the 6 possible matrices have this property. For $n=4$, 10 out of the 24 have it, if I'm not mistaken. For $n=4$, the matrices that work can be put into three 'categories':  The identity matrix Matrices that switch two elements from the identity, like the below, in which the first and second rows are switched: \begin{bmatrix} 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{bmatrix} (There are  4 choose 2 of these, choosing the two to switch.) Matrices that switch two pairs of two elements from the identity, like the below, which switches rows 1+3 and 2+4: \begin{bmatrix} 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\\ 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0 \end{bmatrix} (There are $2 \choose 4$$/2$) ways of doing this; similar to the above, dividing by 2 for double counting.)  $1+6+3=10$ possible $4 \times 4$ matrices. Anyway, it'd be great to know if there's a good way to find this number for any given value of n. For any number after 4, there are a lot more possibilities to consider.


How can I use both context and threading?

Hi i'm thying threading with bpy this is my code:  import bpy import threading   class Cubes(threading.Thread):      def __init__(self):         threading.Thread.__init__(self)       def run(self):          scale = 0.2         space = 0.2         max_range = 6           for i in range(0, max_range):              bpy.ops.mesh.primitive_cube_add(radius = 1, location=(0, 0, 1))             bpy.ops.object.origin_set( type="ORIGIN_CURSOR" )              bpy.context.active_object.scale.x = scale             bpy.context.active_object.scale.y = scale             bpy.context.active_object.scale.z = 5              bpy.ops.object.transform_apply(location = False, rotation = False, scale = True)             bpy.context.active_object.location = (((i*scale*2)+(i*space))-(((max_range*scale*2)+(max_range*space)))/2,0,0)           return  t = Cubes() t.start()   but when i run this the console give me this error:  Exception in thread Thread-1: Traceback (most recent call last):   File "C:\Program Files\Blender Foundation\Blender\2.75\python\lib\threading.py", line 921, in _bootstrap_inner     self.run()   File "C:\Users\Davide\Desktop\Sound_Visualizer.blend\Sound_Visualizer_Circular.py", line 40, in run AttributeError: 'Context' object has no attribute 'active_object'   Can someone help me?


Just now,...  Here I found 'samba' daemon running around with my network. Probably some application had it as a dependency. I removed it, after I dropped the two ports in 'iptables'.  sudo apt-get remove samba   Then I took a quick examination of the system, and found port TCP/5298 to be open. Nmap calls the service 'presence' which is like... not the thing ... to tell paranoid sysops.  WHAT IS RUNNING ON THAT PORT!?; RATHER HOW DO I FIND OUT WHAT IS RUNNING ON THAT PORT?


Allowing line break at ',' in inline math mode?

In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g.  very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc   may be rendered as  very long text followed by a very long equation like a+b+c+d+e+f+g+h+i+ j+k+l etc   However, the break won't happen if they are separated by commas, e.g.  very long text followed by a very long equation like $a,b,c,d,e,f,g,h,i,j,k,l$ etc   will overflow the page like  very long text followed by a very long equation like a,b,c,d,e,f,g,h,i,j,k,l etc   How to make LaTeX able to insert line breaks after a comma too?


Consider the linear transformation $T:\mathbb{R}^2\rightarrow \mathbb{R}^3$ such that $T(x_1,x_2)=(x_1-x_2, x_2-x_1, -x_1)$. Find dimension of null space.  Now in this question, I find that the only member of the null space is the zero vector. So the dimension should be $1$. But the answer is $0$. Why is it so ?


From , page 8. It seems like \setchemfig is not defined:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage[italian]{babel} \usepackage{chemfig}  \begin{document}     \setchemfig{atom sep=50pt}     \chemfig{A-B} \end{document}   ! Undefined control sequence. l.9 \setchemfig {atom sep=50pt} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   Client: Texmaker 4.5 Compiler: XeLaTeX


Is there a way to determine whether the code is deposed on a physical box or a virtual box in Java

I have a requirement to generate a report which has a column where we need to display whether the product is running on a physical box or a VM. If its running on a VM I need to display its version: something like ESXi 5.1. I am searching for a way to do this from my java code, but haven't been able to find anything yet. Can someone help out please.


Is it possible to change phone OS from Windows Phone to Android?


Can a continuous function have an indefinite integral that is discontinuous at a point?

I was asked to evaluate the indefinite integral $\int \frac{dx}{2 + \sin x}$. I got the result as  $$ \int \frac{dx}{2 + \sin x } = \frac{2}{\sqrt{3}} \arctan \bigg( \frac{2\tan(\frac{x}{2}) + 1}{\sqrt{3}} \bigg) + C $$ $f(x) = 2 + \sin x$ is continuous for all $x \in \mathbb{R}$, though its anti-derivative is discontinuous at $x = (2k + 1) \pi$ and thus non differentiable at $x = (2k + 1)\pi$ for $k \in \mathbb{Z}$. Does this mean the indefinite integral is invalid at $x = \pi$ and its multiples?


Why do human have continuously-growing hair on their head?

Why do hair continuously grow on human heads, while the same doesn't happen on other parts of the human body? Where there are hair, they only usually grow to a fixed length; but they seem to have no limit (or at least a much higher limit) as long as the head is concerned (and the face, in men).  Why does this only happen on humans? When did it start happening? What kind of evolutionary advantage could there be in overly-long head hair, so that humans have them while other primates and mammals don't?    I know there are various questions around about why humans have much less body hair than other mammals; mine is related but different: why are we the only species with so much hair on our head, to the point that they might even become inconvenient if we don't cut them?


Find nearest neighbour for set of points

Using PostgreSQL and PostGIS. I have two sets of point data (geoms), one is a node graph indicating roads and the other represents street crossings. For my set of crossing data I want to find the single closest node to all the crossings. And use these geoms for further analysis. However, I am having trouble with nearest neighbour techniques as they mainly seem to only function for one point instead of for a set of points e.g. SELECT   streets.gid,   streets.name FROM   nyc_streets streets ORDER BY   streets.geom <->   (SELECT geom FROM nyc_subway_stations WHERE name = 'Broad St') LIMIT 10;


Logistic Regression - Feature Interpretation

I have fit a logistic regression to predict a given binary outcome, and the estimated coefficient associated with one of the features, feature $x$ let's say, has a value $\theta$. The interpretation of this coefficient is that an increase by one unit of feature $x$, will increase the odds of the outcome by a factor of $e^\theta$. Is it possible to quantify/approximate by how much the "probability of the outcome" (not the odds) will increase/decrease given an increase by one unit of feature $x$ ?


Need help merging two seperate strings together

It print the list how I want it but I want them next to each other on the same line instead of on different lines. The inputs that I am using are abcdefghi and jklmnopqr  str1 = (input("please enter a string: ")) str2 = (input("please enter a string: "))  for i in range(0, len(str1)):   e = str1[i] + str2[i]   print(e)   I want it to print something like: ajbkclemdnfogphqir  but it prints it like this:  aj  bk  cl  em  dn  fo  gp  hq  ir


I know is not possible to send a personal message to another user. What I would like to do would be to inform a user that I am rolling back an edit he made and explain him the reasons for doing so. But in this specific case, the user didn't write any comment or answer to the question, so I do not have a way to communicate with him. Is it possibly to send a message to a user who edited a question / answer?  Note: I know there exists .


If $A$ and $B$ are sets, and $A$ is element of $B$

If $A$ and $B$ are sets, and $A$ is an element of $B$ does this mean that every element of $A$ is in $B$, or some element of $A$ is in $B$, still makes $A$ element of $B$?


I am using windows 10. I have some tutorials which requires to run on internet explorer 6.0 + .   when i try to run those tutorials it runs on Microsoft Edge. after a spash screen it shows the message that it requires IE 6.0 +.  Is there any way to download and install IE 6.0 + on win10.  or Is there any to make Microsoft Edge behave like IE 6.0  Thanks. - Shahid


"It's all downhill from here"—meaning and etymology

The phrase "it was all downhill from there" seems to have two, contradictory meanings.  The first indicates that things have since gotten a lot worse. For example (from ):      After a promising first half against the Philadelphia Eagles in Week 1 in which they jumped out to a 17-0 lead, it has been all downhill from there. They lost that game 34-17 and lost their next three games by a combined score of 118-41.   While the second means the opposite thing--that the hard part is over and it's all smooth sailing now. For example (from ):     September 10. That's the official peak of hurricane season for the Atlantic Basin. It's all downhill from here to the end of the season, November 30.   I pretty much exclusively use the phrase for the latter meaning, since to me that's more intuitive. If everything is "downhill" now, you don't have to pedal any more or work as hard to get to the bottom.  Can anyone elaborate on the origin of the phrase, what "downhill" is specifically referring to, the accepted usage, or if there are subtle differences in the way one is supposed to phrase the two different meanings?


I am currently implementing Marketing Cloud in Agile methodology for one of my clients and I am facing a big challenge regarding the release management in Marketing Cloud.   My client has many deployment environments:   3 levels of testing environment 1 Staging environment 1 Production environment   Marketing Cloud will be integrated with Service Cloud and many systems like Apache Kafka and Tibco.   As for Service Cloud, we have many dev orgs and 1 full sandbox.   To simplify the deployement of Salesforce (Service and Marketing) my client wants to use only the staging environment for sprint development and then push to production at the end of each sprint.   We all know that Marketing Cloud doesn't provide a testing environment unless if I dedicate a Business unit for testing (with a manual commit to production business unit).   The Service Cloud Sandbox will be connected to the staging environment and used during the sprint for developing new user stories.   I wanted to know how you management in general the release management in Marketing Cloud especially with many deployment environment (at least staging and production). How you managed the switch between a Salesforce Sandbox and Prod ? One of the ideas would be to use a Test population in the production environment but I prefer not do this..


Is there a way to list through subclass value? I'd like 'by' variable to be the first one and sort entire list by .number subclass.  class Abcd:     def __init__(self, name, number):         self.name = name         self.number = number  ax = Abcd("a", 20) by = Abcd("b", 1)  lst = [ax, by]  print lst[0] list.sort(lst) print lst[0]


"No root filesystem is defined". How do I install Ubuntu?

I just managed to find a tool [forgot its name] that makes a live copy of linux on my PC. Now of course I am not just going to try it, delete it. I want to install this thing. The tutorials I have seen look like nothing I have. Let me show you what I mean.      It's not the normal screen, no "try" or "install options", just read release notes and asking me do I want third party software.   Explain in full detail.


Basic Linear Regression in R: Dependent and Independent Variables

This is probably a very basic question but I cannot find the answer after experimenting a lot with it. I am using the Davis dataset from  (Self-Reports of Height and Weight) from 200 individuals. The question that I am trying to answer is what weight is to be expected for a specific height. My first assumption here is that weight depends on height, so I am building my model using  model=lm(davis$weight~davis$height)   As far as I understand, the independent variable is on the right whereas the dependent is on the left, right? Now, the summary of the model is   Call: lm(formula = davis$weight ~ davis$height)  Residuals:     Min      1Q  Median      3Q     Max  -19.658  -5.381  -0.555   4.807  42.894   Coefficients:                Estimate Std. Error t value Pr(>|t|)     (Intercept)  -130.91040   11.52792  -11.36   <2e-16 *** davis$height    1.15009    0.06749   17.04   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 8.505 on 198 degrees of freedom Multiple R-squared:  0.5946,    Adjusted R-squared:  0.5925  F-statistic: 290.4 on 1 and 198 DF,  p-value: < 2.2e-16   and I am assuming that I can calculate weight = (height*1.15009) -130.91040 So, assuming this is correct, I was approached by a colleague who said that height does not predict weight but vice versa. However, changing the model to   model=lm(davis$weight~davis$height)   gives me different results when I use the values of  > summary(model)  Call: lm(formula = davis$height ~ davis$weight)  Residuals:      Min       1Q   Median       3Q      Max  -18.3492  -3.7151  -0.2466   3.5349  20.8802   Coefficients:               Estimate Std. Error t value Pr(>|t|)     (Intercept)  136.83054    2.02039   67.72   <2e-16 *** davis$weight   0.51696    0.03034   17.04   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 5.702 on 198 degrees of freedom Multiple R-squared:  0.5946,    Adjusted R-squared:  0.5925  F-statistic: 290.4 on 1 and 198 DF,  p-value: < 2.2e-16   and calculate height = (weight*0.517) + 136.831. For example, according to the first model, a person with 190 centimeters is expected to weigh 87.6067 kilograms where when I enter these kilos into the second model, that person is expected to be about 182 centimeters tall. Any advice or a good book where I can really understand this? Thank you in advance!


Trigonometric notation with Initial capital Letter and Italic

How can we make First letter Capital while using trigonometric functions. eg: \cos (60^\circ) gives simple cos (all in small). What is needed is 'Cos' (with initial capital). For italics in mactex i used \it but it didn't italicized 'cos' only the number '60'. So how to do that?


Prove $\sqrt{2}+\sqrt[3]{5}$ is irrational

Prove: $\sqrt{2}+\sqrt[3]{5}$ is irrational    I have tried to look at $1+\sqrt{2}+\sqrt[3]{5}$ but I can see how to continue


How much of the Borg collective did Lore control?

In the Star Trek TNG episode "Descent" (part 1 and 2), Lore exploits a weakened state of the Borg collective to become their leader (temporarily).   How much of the collective followed him? I infer that it was only a small portion but it's not necessarily clear in the episode.


Are there any partial proofs for the collatz conjecture?

For my math internal assessment, I'm looking at the Collatz Conjecture and different ways to try and solve it.   I wanted to see if there were any possible partial solutions for it by which I mean if we take a specific type of number the conjecture would be true for all of those numbers.   For example, the collatz conjecture is true for all m where m=2^n since the powers of two will keep being even until it reaches one. However, I wanted a more complex proof for another type of numbers(Say, for all powers of 3 or for all prime numbers if it were possible) so I wanted to know if there are any such partial proofs you could think of


Connection between Schrödinger equation and heat equation

If we do the wick rotation such that τ = it, then Schrödinger equation, say of a free particle, does have the same form of heat equation. However, it is clear that it admits the wave solution so it is sensible to call it a wave equation.   Whether we should treat it as a wave equation or a heat equation with imaginary time, or both? If it is a wave equation, how do we express it in the form of a wave equation? Is there any physical significance that Schrödinger equation has the same form of a heat equation with imaginary time? For example, what is diffusing?


Plane waves solutions for Dirac equation in terms of eigenstates of helicity

Suppose $\sigma_{1},\sigma_{2}$ and $\sigma_{3}$ are the Pauli matrices. Given a momentum ${\bf{p}}$, we define the helicity operator: $$ h = \frac{1}{2}\begin{pmatrix} {\bf{\sigma}}\cdot {\bf{\hat{p}}} & 0 \\ 0 & {\bf{\sigma}}\cdot {\bf{\hat{p}}} \end{pmatrix} $$ where $\sigma \cdot {\bf{\hat{p}}} = \sum_{\mu=0}^{3}\sigma^{\mu}\frac{p_{\mu}}{|{\bf{p}}|}$. Let $|\pm \rangle$ be the eigenvectors of $\sigma \cdot {\bf{\hat{p}}}$ with eigenvalues $\pm 1$. Consider the following plane waves: $$\psi_{+} = \frac{1}{\sqrt{2}}e^{i(-Et+{\bf{p}}\cdot {\bf{x}})}\binom{e^{-\frac{\theta}{2}}|+\rangle}{e^{\frac{\theta}{2}}|+\rangle} \quad \mbox{and} \quad \psi_{-} = \frac{1}{\sqrt{2}}e^{i(Et-{\bf{p}}\cdot{\bf{x}})}\binom{e^{\frac{\theta}{2}}|-\rangle}{e^{-\frac{\theta}{2}}|-\rangle}$$ Then $\psi_{+}$ is an eigenstate of $h$ with eigenvalue $1/2$ while $\psi_{-}$ is an eigenstate of $h$ with eigenvalue $-1/2$. Here, $\theta$ is a known parameter. Question: Shouldn't $\psi_{\pm}$ be solutions of the Dirac equation $(i\gamma^{\mu}\partial_{\mu}-m)\psi = 0$? They seem not to since, according to my calculations: $$i\gamma^{0}\partial_{0}\psi_{\pm} = \frac{1}{\sqrt{2}} E ^{i(-Et+{\bf{p}}\cdot{\bf{x}})}\binom{e^{\pm \frac{\theta}{2}}|\pm\rangle}{e^{\mp \frac{\theta}{2}}|\pm\rangle}$$ and, analogously: $$i \gamma^{\mu}\partial_{\mu}\psi_{\pm} = \frac{1}{\sqrt{2}}|{\bf{p}}|e^{i(-Et+{\bf{p}}\cdot{\bf{x}})}\binom{e^{\pm \frac{\theta}{2}}|\pm\rangle}{-e^{\mp \frac{\theta}{2}}|\pm\rangle}$$ while the last term of the equation reads: $$m \psi_{\pm} = m \binom{e^{\mp \frac{\theta}{2}}|\pm\rangle}{e^{\pm \frac{\theta}{2}}|\pm\rangle}$$ and the sum is clearly nonzero. To do such calculations I used the Weyl representation of the Dirac matrices: $$\gamma^{0} = \begin{pmatrix} 0 & I \\ I & 0 \end{pmatrix} \quad \mbox{and}\quad \gamma^{\mu} = \begin{pmatrix} 0 & \sigma^{\mu} \\ -\sigma^{\mu} & 0 \end{pmatrix}$$ Am I doing something wrong? Shouldn't the plane wave solutions above given in terms of eigenstates of $h$ be solutions to the Dirac equation? Moreover, should it depend on the particular representation of the gamma matrices?


Can someone explain what is wrong with java.util.logging framework and why should other logging framework like log4j/logback or slf4j should be prefered?


When a previously-fast SQL query starts running slow, where do I look to find the source of the issue?

Background  I have a query running against SQL Server 2008 R2 that joins and/or left-joins about 12 different "tables". The database is fairly large with many tables over 50 million rows and about 300 different tables. It's for a large-ish company that has 10 warehouses across the country. All the warehouses read and write to the database. So it's pretty large and pretty busy.  The query I'm having trouble with looks something like this:  select t1.something, t2.something, etc. from Table1 t1     inner join Table2 t2 on t1.id = t2.t1id     left outer join (select * from table 3) t3 on t3.t1id = t1.t1id     [etc]... where t1.something = 123   Notice that one of the joins is on a non-correlated sub-query.  The problem is that starting this morning, without any changes (that I or anybody on my team knows of) to the system, the query which usually takes about 2 mins to run, started taking an hour and a half to run -- when it ran at all. The rest of the database is humming along just fine. I've taken this query out of the sproc that it usually runs in and I've run it in SSMS w/ hard-coded parameter variables with the same slowness.  The strangeness is that when I take the non-correlated sub-query and throw it into a temp table, and then use that instead of the sub-query, the query runs fine. Also (and this is the strangest to me) if I add this piece of code to the end of the query, the query runs great:  and t.name like '%'   I've concluded (perhaps incorrectly) from these little experiments that the reason for the slow-down is due to how SQL's cached execution plan is set up -- when the query is a little different, it has to create a new execution plan.  My question is this: When a query that used to run fast suddenly starts running slowly in the middle of the night and nothing else is affected except for this one query, how do I troubleshoot it and how do I keep it from happening in the future? How do I know what SQL is doing internally to make it so slow (if the bad query ran, I could get its execution plan but it won't run -- maybe the expected execution plan would give me something?)? If this issue is with the execution plan, how do I keep SQL from thinking that really crappy execution plans are a good idea?   Also, this is not a problem with parameter sniffing. I've seen that before, and this is not it, since even when I hard-code the varaibles in SSMS, I still get slow performance.


Xbox One Controller not identified Windows 7

My issue was that when I was plugging in my XBox One controller in my Windows 7 PC, the error was popping up that the 'USB Device could not be identified.' Good job Microsoft.   The sad thing about this is that on Windows 7, the drivers for the Xbox One Controllers specifically are supposed to download automatically when the device is plugged in. Obviously, since the Device Manager cannot identify the device in the first place, it doesn't know what drivers it needs to automatically download.   Unfortunately for all of us, the solution to manually download the drivers on the support website () is, at the time of writing, obsolete.   The webpage instructs you to follow these instructions:    Navigate to the Xbox One Controller results page on the Microsoft Update Catalog Download the correct version of the driver for your operating system (64bit vs 32bit) Extract the contents of the .cab into a file directory. Right click on the xb1usb.inf file, click install, and click yes.   However, users will find that when doing 'Right Click/Install' on the 64bit version of the drivers that the method of installation is no longer supported in the file. It throws the following error:     The INF file you selected does not support this method of   installation