I've not really used tikz much (to say the least); and I'm used to working on my diagrams in LibreOffice Draw and Inkscape, saving them as .osd or .svg files.  Is there a way I could convert those formats into (human-readable) tikz instructions which I could inline in my LaTeX code and maybe continue tweaking there?

I was wondering if anyone had managed exporting .svg files to TikZ code. I do not mean include an .svg file into a latex document, but rather to obtain the code of an image so you can then edit it with TikZ.   I know that this has been done here:  using inkscape and the svg converter svg2tikz () but I cannot reproduce it after installing inkscape.   When I run inkscape, I get the following message on the console (I run it from the console):     (inkscape:8700): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed   I can still import an image and export to TikZ path but I get the following error message in a pop-up window:     Inkscape encountered an internal error and will close now.   Automatic backups of unsaved documents were done to the following locations:   /home/squeeze/New document 1.2012_06_19_18_10_24.0.svg   and the exported .tex file shows the following code which does not reproduce the image and compiles to a blank page:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt]   \begin{scope}[cm={{2.4087301,0.0,0.0,3.1036527,(-508.27381,-1163.9469)}}]     \begin{scope}[cm={{1.25,0.0,0.0,-1.25,(213.2835,636.20725)}}]       \begin{scope}[scale=0.100]         \begin{scope}[cm={{2304.0,0.0,0.0,1195.2,(141.732,141.732)}}]         \end{scope}       \end{scope}     \end{scope}   \end{scope}  \end{tikzpicture} \end{document}   Has anyone done it?  I run Debian Squeeze; Inkscape is 0.47 and the forum on the inkscape-svg converter is not really active so I thought someone may have done it here.  I do not wish to specifically use .svg; I use GIMP usually, so if there is such a way to do it in GIMP, I am happy to do it (even better).  Here is an example of an .svg image that fails the above procedure:


I am teaching myself regression using Regression Modeling Strategies by Harell and the author goes at quite the length to showcase the importance of modeling interactions and transformations of the initial variables. I can't help but wonder how to approach this in a more structured/automated way when dealing with a lot of potential variables.   Can we use recursive partitioning, for example, to somehow to do the work for us and then use the output as variables, shrink the estimates with LASSO to deal with colinearity and do a final step where we use some sort of filtering for feature importance.   In my mind this will leave us with a well specified model which can be manually inspected and improved if need be, but is this reasonable? Are there other ways to approach this? Are there some resources that deal with problems like this?


I've been having trouble identifying the value of this resistor (see picture below) as the color codes in position does not make sense. It looks like a 5 band coded resistor. The 3rd band seems to be my cause of confusion as I can't make out the color. It looked like silver, or is it a gray?   But still, regardless of the reading direction (which I thought I got it wrong originally) and whether the 3rd band is silver or gray, the value produced is not in any of the standard/preferred resistor values.   Or maybe there's a band visibly missing (blackened or discolored or whatever)?   Or somehow I got it wrong, and it might not be a resistor but an inductor or others?   If possible could you let me know:   What is the value of this resistor?  What is this if its not a resistor?  Is the 3rd band is a silver or gray?    I can't depend on my multimeter readings as its just a cheap one but is the only one I have at the moment.

I am currently in the process of trying to repair a power supply that has had one of its DC rails fail. A resistor in the PSU has exploded and I am trying to find what value it is.    Band 1: White Band 2: Brown Band 3: Silver (Possibly Grey?) Band 4: Gold Band 5: Green    The weird thing is that the middle band appears to be silver, which should be invalid as far as I can tell. If you assume the silver is grey (although this is unlikely, as there still needs to be a grey colour as well and the band is metallic), it produces a value of resistor which is incredibly uncommon to the point it does not exist (91.8 Ohms 0.5%).  Apologies for the noobie question, I'm just stumped after hours of trying to understand why this is and coming up short :).


What are the roots of $y^3 - ky^2 - k=0$ for an arbitrary constant $k$?   I haven't been able to find a root, so synthetic division couldn't be used. I have tried factorization as well.

$\begin{equation} \tag{A} ax^3+bx^2+cx=d \end{equation}$  We can define Delta for quadratic equation to check whether  the equation has answer or not....for $f(x)$ which contains powers higher of $2$ for Is there any method to see how many acceptable roots the polynomial contains? Consider equation $(A)$. Can we say whether the equation has real root? How many roots of the function above  are acceptable?


Is it possible for any set to be an element of itself? I want brief explanation for whether it's possible or not.

I am trying to understand   How can a set contain itself? Can you show example of set which is not a set of all sets and it contains itself.


I have one php file when I get data from MySQL where I set encoding to utf8. When Im tring to get data and display it in my php file I see there is sth wrong with some characters, e.g Magia ĹwiÄt w JaseĹkach 2013-12-23.  I create all php files using utf8 encoding, but when I want to open this file from server Notepad++ showes me that there is ANSI as utf8 encoding and newline format is Macintosh.  Connecting to db  <?php $db = new mysqli('############'); $db->query("SET NAMES utf8"); $db->query("SET CHARACTER SET utf8");   if($db->connect_error) {       $msg = "Cant connect";   } else {     $msg = "Works!";   } ?>    <?php require '../bootstrap/bootstrap.php'; $query = $db->real_escape_string("Select id, data_dodania,tytul, zajawka From artykuly ORDER BY data_dodania DESC"); $result = $db->query($query); $result=$result->fetch_all();     foreach($result as $row ) {         echo '
';         echo '';           echo '';             echo $row[2];             echo " $row[1] ";           echo '';           echo '
';           echo $row[3];          echo '	';                echo '
';      }     echo '
';

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


If $X$ is a Banach space and $T:X\to X$ is a linear continuous transformation such that $\|I-T\|<1$ then T is invertible.

Let $X $ be a Banach space $(X,\|.\|)$ with $\dim(X)=\infty $ and $T\in B(X) $.   Suppose that $\left\| I-T\right\| < 1$. Show that $T^{-1}\in B\left( X\right)$ and $\left\| I-T^{-1}\right\| \leq \dfrac {\left\| I-T\right\| } {1-\left\| I-T\right\| }$.


I have been trying to make something out of this system of equations for quite sometimes now  $x+y+z=4\\x^2+y^2+z^2=38\\x^3+y^3+z^3=106$  I have tried direct substitution but the equation keeps expanding, and keeps getting complicated. I have also tried multipling by $x,$ $y,$ $z$ in several ways. But it was all a futile effort.  Any insight to this??

So there's this set of polynomial expressions with degree n=3:  $$ \left\{ \begin{array}{c} x_1 + x_2 + x_3 = a \\ x_1^2 + x_2^2 + x_3^2 = b \\ x_1^3 + x_2^3 + x_3^3 = c \end{array} \right. $$  How to find atleast one set of x1,x2,x3 values, knowing that all variables and constants (a,b,c) are positive integers?  Thank you.    Update:  Alright, with the help in the comments I was able to transform this set into a single polynomial expression that can be solved in various ways.  Using Newton's identities: $$ \begin{array}{} x_1^2 + x_2^2 + x_3^2 = (x_1 + x_2 + x_3)^2 - 2(x_1x_2 + x_2x_3 + x_1x_3) \\ x_1^3 + x_2^3 + x_3^3 = (x_1 + x_2 + x_3)^3 - 3(x_1x_2 + x_2x_3 + x_1x_3)(x_1 + x_2 + x_3) + 3x_1x_2x_3 \end{array} $$  We can substitute expressions in the set:  $$ \left\{ \begin{array}{} x_1 + x_2 + x_3 = a \\ (x_1 + x_2 + x_3)^2 - 2(x_1x_2 + x_2x_3 + x_1x_3) = b \\ (x_1 + x_2 + x_3)^3 - 3(x_1x_2 + x_2x_3 + x_1x_3)(x_1 + x_2 + x_3) + 3x_1x_2x_3 = c \end{array} \right. $$  $$ \left\{ \begin{array}{} x_1 + x_2 + x_3 = a \\ x_1x_2 + x_2x_3 + x_1x_3 = \frac{a^2 - b}{2} \\ (x_1 + x_2 + x_3)^3 - 3(x_1x_2 + x_2x_3 + x_1x_3)(x_1 + x_2 + x_3) + 3x_1x_2x_3 = c \end{array} \right. $$  $$ \left\{ \begin{array}{} x_1 + x_2 + x_3 = a \\ x_1x_2 + x_2x_3 + x_1x_3 = \frac{a^2 - b}{2} \\ x_1x_2x_3 = \frac{c + 3a\frac{a^2-b}{2} - a^3}{3} \end{array} \right. $$  To simplify, let's assume (since the right halves of the last set are all constants):  $$ \begin{array}{} p_1 = a \\ p_2 = \frac{a^2 - b}{2} \\ p_3 = \frac{c + 3a\frac{a^2-b}{2} - a^3}{3} \end{array} $$  So we get:  $$ \left\{ \begin{array}{} x_1 + x_2 + x_3 = p_1 \\ x_1x_2 + x_2x_3 + x_1x_3 = p_2 \\ x_1x_2x_3 = p_3 \end{array} \right. $$  Now, using Viete's theorem for general polynomial of degree 3:  $$ P(x) = a_3t^3 + a_2t^2 + a_1t + a_0 $$  With the following properties:  $$ \begin{array}{} t_1 + t_2 + t_3 = -\frac{a_2}{a_3} \\ t_1t_2 + t_2t_3 + t_1t_3 = \frac{a_1}{a_3} \\ t_1t_2t_3 = -\frac{a_0}{a_3} \end{array} $$  Applying to our set:  $$ \left\{ \begin{array}{} p_1 = -\frac{a_2}{a_3} \\ p_2 = \frac{a_1}{a_3} \\ p_3 = -\frac{a_0}{a_3} \end{array} \right. $$  And assuming that $a_3 = 1$, the final polynomial will be the following:  $$ t^3 - p_1t^2 + p_2t - p_3 = 0, $$  where the three roots of $t$  are variables $x_1, x_2$ and $x_3$.  (Using Buchberger's algorithm might be a good way to solve it a well, but I was struggling with it and decided to do it this way for now.)


I was given a ".las" data set from a Trimble/AutoCAD shop. I use Esri.  I could not import the .las file they supplied to an ESRI LASDataset as it was created with Trimble software.   I downloaded and used LAStools to convert the Trimble las file to a .txt file parsing "x y z i c r n" columns into the file so i could see what the data set looked like. The coordinates (x y z) are all good, and the intensities (i) look normal, but all of the other data (c r n) is 1's. Everything is a 1.  Can I run classification commands on this data to get ground (bare earth) if all the returns data is 1?  example line from dataset:  1628137.7722 1774278.1248 6821.9085 11308 1 1 1  I cannot perform the LAStools "lasground" function yet because I do not have the license to do so and I do not yet have the approval to obtain such a license form my IT guy.  I can go that route eventually.  I just have little experience classifying las data and I want to know, given the above format, will LAStools be able to classify my data into "ground", "noise", etc...?  Here is result of lasinfo command:

I have data in LAS format with RGB values created from aerial photogrammetry using a UAV. I am  trying to find a solution to extract the bare earth DEM from the point cloud.   I have tried SAGA, Fusion, MCC-LIDAR, but it is seems they need the LAS file to be already classified (which it naturally isn't). Can anyone point me in the right direction with a brief explanation of the process?   Generally, I would need to process about 100 mill points at a time (can tile them if needed).


Our org uses Person Accounts. Each Person Account will be a parent record for at least on Bank_Detail__c record. We have an externally hosted website which will collect information about our pending customers including their bank details. While originally I wanted to use the REST API to upload each Account and Bank_Detail__c into Salesforce as  a composite, because we have concerns about API limits, we rethought this and now believe it might be better to use the bulk API. If we wrap the Accounts within the relevant Bank_Detail__c records, would it be possible to create both concurrently?  Or would we need to create all the Accounts first, then match up all the Ids, and then eventually make another API call to create the Bank_Detail__c records?

I'd like to create an account and then a contact in the same call using bulk api. I've used composite api calls to create an account and contact in the same API request.  I would now like to do the same using the bulk api (as i'm trying to import millions of entries). I know i can create all the accounts first, retrieve the account ids, and then create the contacts with the account ids mapped to the correct contact (which would be two calls).  Is there a way to composite the account and contact creation in the single call with bulk api?  Cheers, Ankur


Why is the speed of light $299,792,458$ metres per second, and not faster or slower.  Why not $500$ trillion kilometers per second or $120$ miles per hour?  This has been 'bothering' me for a while. Googling it usually found answers about why isn't '$c$' infinite et cetera, and the answers were usually saying (from my interpretation) that if $c$ were infinite, then matter couldn't exist.  I recently found , but despite its blatantly obvious attempt to explain to laymen, I still don't understand why $c$ is (roughly) $300$ million meters per second.  A 'dummy's' guide to my understanding why '$c$' is the number/speed that it is, would be greatly appreciated by me and all others who will read your answer in the future.

Meaning, why is it the exact number that it is? Why not 2x10^8 m/s instead of 3? Does it have something to do with the mass, size or behavior of a photon? To be clear, I'm not asking "how we determined the speed of light". I know there isn't a clear answer, I'm really looking for the prevailing theories.


This question is two fold.  Part 1:  Is it a bad idea to virtualize a storage solution and run VMDKs off of that as opposed to the original VMFS datastore.  Essentially lets assume I have 2 TB worth of RAID'd DAS.  Currently I have a few VMDKs on the DAS VMSFS.  What I want to do is remove the VMDKs off the VMFS, allocate a good 1.8-1.9TB for a FreeNAS installation (a big FreeNAS VMDK), and run the other VMDKs off of that via NFS.  I don't have the hardware for a NAS but have a bunch of different shares.  This would simplify my management.  I understand there is some overhead with another layer of storage abstraction (A virtual ZFS file system over NFS backed by RAID'd DAS formatted as VMFS) but I don't see how it could be too bad.  The NAS also has more features than a simple VMFS datastore on DAS.  Part 2:  VMWare frowns on long running snapshots, but what about ZFS snapshots?  Is it safe\recomended to run my guest VMDKs (Windows clients, random servers) on ZFS snapshots?  This will give me the ability to quickly rollback VMs to earlier states without the implications of long running snapshots directly on the VMFS.

I'm still new to ZFS. I've been using Nexenta but I'm thinking of switching to OpenIndiana or Solaris 11 Express. Right now, I'm at a point of considering virtualizing the ZFS server as a guest within either ESXi, Hyper-V or XenServer (I haven't decided which one yet - I'm leaning towards ESXi for VMDirectPath and FreeBSD support).   The primary reason being that it seems like I have enough resources to go around that I could easily have 1-3 other VMs running concurrently. Mostly Windows Server. Maybe a Linux/BSD VM as well. I'd like the virtualized ZFS server to host all the data for the other VMs so their data could be kept on a physically separate disks from the ZFS disks (mount as iscsi or nfs).  The server currently has an AMD Phenom II with 6 total cores (2 unlocked), 16GB RAM (maxed out) and an LSI SAS 1068E HBA with (7) 1TB SATA II disks attached (planning on RAIDZ2 with hot spare). I also have (4) 32GB SATA II SSDs attached to the motherboard. I'm hoping to mirror two of the SSDs to a boot mirror (for the virtual host), and leave the other two SSDs for ZIL and L2ARC (for the ZFS VM guest). I'm willing to add two more disks to store the VM guests and allocate all seven of the current disks as ZFS storage. Note: The motherboard does not have IOMMU support as the 880G doesn't support it, but I do have an 890FX board which does have IOMMU if it makes a huge difference.  My questions are:  1) Is it wise to do this? I don't see any obviously downside (which makes me wonder why no one else has mentioned it). I feel like I could be making a huge oversight and I'd hate to commit to this, move over all my data only to go fubar from some minute detail I missed.  2) ZFS virtual guest performance? I'm willing to take a small performance hit but I'd think if the VM guest has full disk access to the disks that at the very least, disk I/O performance will be negligible (in comparison to running ZFS non-virtualized). Can anyone speak to this from experience hosting a ZFS server as a VM guest?


I am currently doing preparation for my GCSE computing controlled assessment on Linux. I type ls > list and ls >> list into the command line, but it does not do anything. I have googled it but I can't find what it exactly does.  What does:  ls > list   and  ls >> list   do?

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


I'm building a new Ubuntu/Mythbuntu system.  It's not dual-boot with Windows or any other OS.  New motherboard supports UEFI (of course).  Should I install it as UEFI or stick with Legacy?  I ask because I've been having some trouble trying to install as UEFI (depending on Ubuntu/Mythbuntu flavor used, it either fails during install or on first boot).  That will be another thread if it turns out UEFI is the "preferred" way to go.

Are there any drawbacks to installing Ubuntu 13.10 (and soon 14.04) in Legacy BIOS instead of UEFI?  I have installed 13.10 64bit in Legacy by mistake and was just wondering if it would hurt anything to simply leave it there as is?  EDIT  Everything seems to be running just fine in Legacy and all my drivers work.


I am writing a parser where I need to parse numbers.  Numbers are in the JSON format, i.e. simplified, something like:  [+|-] integral [. fractional] [e|E exponent]   So these are the 3 parts of the number I have. Each part is an integer.  For example:  0.4 Integral = 0 Fractional = 4 Exponent = 0  2.84e+6 Integral = 2 Fractional = 84 Exponent = 6   I know how to compute the number in Java in a very crude manner. Something like this:  long integral; long fractional; int exp;  double decimal = fractional; while (decimal >= 1.0) {   decimal *= 0.1; }  var n = (integral + decimal) * Math.pow(10, exp);   But this has terrible properties like losing precision completely, overflowing etc. specially for very large numbers (e.g. 10e99, 2.7e-23).  Is there a way to create a number in Java from its constituent parts such that the number keeps the properties as close as possible to the floating point literal?  My current idea is to try to create the exact bits in memory that would represent the floating point number using the IEEE 754 representation Java (and many languages) uses.   helped me understand the floating point representation, but I am still kind of stuck.  My current try to do that uses a ByteBuffer which can do:  ByteBuffer buffer = ByteBuffer.allocate(8); buffer.put(<bits representing the number exactly in floating point>);  buffer.flip(); double n = buffer.getDouble();   The "only" problem being, figuring out the right bits, which is not trivial (if someone knows a method to do that , please do share).  EDIT: Performance is important, so I am trying to avoid creating a String then throwing it at Double.parseDouble(str)... as that feels pretty expensive compared to writing the bits into memory... but I might be wrong and this is indeed the most "efficient" option? Really don't know at this point, hopefully I can benchmark when I have a few options.

Of course most languages have library functions for this, but suppose I want to do it myself.  Suppose that the float is given like in a C or Java program (except for the 'f' or 'd' suffix), for example "4.2e1", ".42e2" or simply "42". In general, we have the "integer part" before the decimal point, the "fractional part" after the decimal point, and the "exponent". All three are integers.  It is easy to find and process the individual digits, but how do you compose them into a value of type float or double without losing precision?  I'm thinking of multiplying the integer part with 10^n, where n is the number of digits in the fractional part, and then adding the fractional part to the integer part and subtracting n from the exponent. This effectively turns 4.2e1 into 42e0, for example. Then I could use the pow function to compute 10^exponent and multiply the result with the new integer part. The question is, does this method guarantee maximum precision throughout?  Any thoughts on this?


I have tried adjusting clipping value but it doesn't seem to make a difference. I have to constantly go into x-ray mode in order to edit the mesh to see the lines. If I zoom out the lines are there and visible but it's too hard to make changes when that zoomed out to minor details. Any clue?

When I am zoomed in on the object the mesh seems to go inside of the object.      In a more zoomed out view you can start to see the mesh again. I have changed the 'start' clipping distance to 0.001, however this doesn't seem to affect it very much. What am I doing wrong?    Here is the file:


I switched over to Ubuntu and wanted to play some of my older Steam games such as Star Wars Battlefront 2 (2005) using Wine. I know Wine can cause security issues if not installed and used properly which will bother me since I take security really seriously. Does anyone know how I could do all of this properly? Thanks!

Possible Duplicate:          According to many articles like , it says that windows is more vulnerable to virus. I recently installed wine on my Ubuntu to run some windows programs by sudo apt-get install wine It when I looked into the directory structure I got to know that the windows program regedit.exe has been installed along with other simple windows programs. As per my knowledge some of the windows viruses give network access to registry making windows vulnerable for attacks. I am worried that installing wine would make the system vulnerable. Is it so? Are there any solutions to this problem?


So when i use FN+volume_up my volume goes from 0 to 2. Im want to change it so it always goes up by 1. I know about this has already been asked  but  this uses 3rd party software. Is it possible without that?  im using the Dell optiplex E7270  Thanks for the help :)

Same as this question but for Windows:   I'm on a Windows 7 laptop. It has "volume up" and "volume down" keys on the keyboard. Pressing them changes the volume by a tiny amount. Is there a setting or registry key or something to change that amount, or will I have to install third-party software to do it?


I have recently encountered  and according to Wikipedia:      Rudolf Haag postulated [1] that the interaction picture does not exist in an interacting, relativistic quantum field theory (QFT), something now commonly known as Haag's Theorem. Haag's original proof was subsequently generalized by a number of authors, notably Hall and Wightman,[2] who reached the conclusion that a single, universal Hilbert space representation does not suffice for describing both free and interacting fields. In 1975, Reed and Simon proved [3] that a Haag-like theorem also applies to free neutral scalar fields of different masses, which implies that the interaction picture cannot exist even under the absence of interactions.   Studying some particle physics, this kinda bothers me. Also the article says:     While some physicists and philosophers of physics have repeatedly emphasized how seriously Haag's theorem is shaking the foundations of QFT, the majority of QFT practitioners simply dismiss the issue.   And not to worry about this is exactly what my particle professor recommended. I understand that evidently physicists are doing pretty well in calculating their scattering amplitudes with the interaction picture, but this as an explanation is just saying that the end justifies the means. It doesn't really comfort me when there is still a mathematical proof saying that the interaction picture just cannot exist. Now, is it okay to worry? (Why not? - Besides the notion that it just works, which sounds a bit like magic to me)

There exists this famous  which basically states that the interaction picture in QFT cannot exist. Yet, everyone uses it to calculate almost everything in QFT and it works beautifully.    Why? More specifically to particle physics: In which limit does the LSZ formula work? Can someone give me an example of a QFT calculation (of something measurable in current experiments, something really practical!) in which the interaction picture fails miserably due to Haag's theorem?


I'm extremely new to the coding scene and, even more so to coding with C++.  I'm currently building a side program for my class as it was strongly recommended, but I can't seem to get it to compile.  I keep getting a C4430 error (missing type specifier - int assumed).  I'm not seeing anything like this in my reading material either, so I figured I'd reach out here for help as a second set of eyes is always a good idea.  If it matters, I am coding this with Microsoft Visual Studio 2019 Community Edition.  I'm still learning, but I'm also used to coding in Java at this point so I'm at a loss.    The program itself is a program I have written in Java, that I have adapted for use in C++.  It's a very basic salary calculation program that spits out weekly, monthly, and annual wages while also accounting for Taxes.  Initially, it had included the scanner utility in Java, but I haven't seen anything like that in C++ yet.  Ideally, it would spit this information out without a problem.   I have tried adding return 0; to the end of my code, but I am still getting the C4430.  I have also reclassed my main as double instead of int, to no avail.  I have included my code, below:  #include <iostream> double salaryCalculator; main () { double hourlyWage = 15.00; int hoursWorkedWeek = 40; double weeklyWage = 0.0; double monthlyWage = 0.0; double annualWage = 0.0; double overtimeHours = 3.0; double overtimeMulti = 1.5; double overtimeHourlyWage = 0.0; double overtimeTotalWage = 0.0;  overtimeHourlyWage = hourlyWage * overtimeMulti; overtimeTotalWage = overtimeHourlyWage * overtimeHours; std::cout << "You have /n" << overtimeHours << "hours of overtime at a rate of " << overtimeHourlyWage << "an hour, for a total of " << overtimeTotalWage;  weeklyWage = overtimeTotalWage + (hoursWorkedWeek * hourlyWage); std::cout << "Your weekly wage is: /n" << weeklyWage;  monthlyWage = weeklyWage * 4; std::cout << "Your monthly wage is: /n" << monthlyWage;  annualWage = weeklyWage * 52; std::cout << "Your annual wage before taxes is: /n" << annualWage;  enum class TaxDeductions; { };         double incomeTax = 0.11;         double stateTax = 0.04;         double socialSecurityTax = 0.062;         double medicareTax = 0.0145;          double firstWTax = weeklyWage * incomeTax;         double secondWTax = weeklyWage * stateTax;         double thirdWTax = weeklyWage * socialSecurityTax;         double fourthWTax = weeklyWage * medicareTax;         double weeklyTax = firstWTax + secondWTax + thirdWTax + fourthWTax;          double firstMTax = monthlyWage * incomeTax;         double secondMTax = monthlyWage * stateTax;         double thirdMTax = monthlyWage * socialSecurityTax;         double fourthMTax = monthlyWage * medicareTax;         double monthlyTax = firstMTax + secondMTax + thirdMTax + fourthMTax;          double firstATax = annualWage * incomeTax;         double secondATax = annualWage * stateTax;         double thirdATax = annualWage * socialSecurityTax;         double fourthATax = annualWage * medicareTax;         double annualTax = firstATax + secondATax + thirdATax + fourthATax;            double weeklyTakeHome = weeklyWage - weeklyTax;         double monthlyTakehome = monthlyWage - monthlyTax;         double annualTakeHome = annualWage - annualTax;          std::cout << "Your weekly total take home is /n" << weeklyTakeHome;         std::cout << "Your monthly total take home is: /n" << monthlyTakehome;         std::cout << "Your annual total take home is /n" << annualTakeHome;          return 0;     }   Thank you for your time.

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


First i am installing windows 7 then installing ubuntu. Windows 7 is my main operating system then i install ubuntu, so ubuntu install in windows Drive (c:).   Please give me a solution for how to remove only ubuntu operating system ?

I downloaded wubi a couple of months ago and realised it made my laptop bootup significantly slower. It has also made it slower in general.   Recently I have been trying to uninstall wubi from my laptop but I cant. This is because I cannot find any of the wubi or ubuntu files. This is hard because I cant unistall it and I don't know where to search for the files.


I have an equation like this:  \begin{equation} \begin{split} |a+bi|=\sqrt{a^2+b^2}\\  |a+bi|^2=a^2+b^2\\ |a+bi|^2=(a+bi)(a+bi)\\         =(a+bi)(a-bi)\\         =a^2+b^2i^2\\         =a^2+b^2 \end{split} \end{equation}   the resualt looks like this:    How can I align this equation, that all of = symbols to be under each other

I am new to Latex ;) I split my equation like this:  \begin{equation} \begin{split}     \tilde{m}=P\tilde{M} \\     \quad = K(R^1R^2R^3t) \begin{pmatrix} X \\ Y \\ 0 \\ 1 \end{pmatrix} \\     \quad= K(R^1R^2t)\begin{pmatrix} X \\ Y \\ 1 \end{pmatrix} \\     \quad= H \begin{pmatrix} X \\ Y \\ 1 \end{pmatrix}  \end{split} \end{equation}   which gives me this:   but, actually, I want it to be aligned like this:   How do I align them so it looks like the right side is always aligned?  Thanks


I have this script and I would like to make it work with dinamically added elements from database:   $( ".select-song li" ).each( function( intIndex ){     $( this ).bind (         "click",         function(){           if($(this).hasClass('checked')){            $(this).removeClass('checked');           }           else{             $(this).addClass('checked');           }         }         ); } );   Elements are added in like this:  $('.select-song').append('
sth here
');   I know that I should to use on function but I have no idea how to implement it here.

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


I found the following proof online and am confused as to where the error occurs.  $1=\sqrt{1}=\sqrt{(-1)(-1)}=\sqrt{-1}\sqrt{-1}=(\sqrt{-1})^2=-1$  My guess is that the error occurs here: $\sqrt{(-1)(-1)}=\sqrt{-1}\sqrt{-1}$, but I'm not sure how to show that.  Is my guess correct? How might I prove this?  Thank you!

We know $$i^2=-1 $$then why does this happen? $$ i^2 = \sqrt{-1}\times\sqrt{-1} $$ $$ =\sqrt{-1\times-1} $$ $$ =\sqrt{1} $$ $$ = 1 $$  EDIT: I see this has been dealt with before but at least with  I'm not making the fundamental mistake of assuming an incorrect definition of $i^2$.


At some point in the past, my grandfather let me read a book featuring tribes at war (I think it was 6). Each tribe had some carefully guarded unique power, one I remember was rapid regeneration. This regeneration was so fast that anything short if cutting of their head was non-fatal.  I recall some major incident where the main character, who is one of these regenerators, is cut in half and BOTH halves regenerate. The story of course concludes with a confrontation between the MC and his doppelganger.  I also recall there were individuals who could shape-shift, or make themselves appear as other people, and they were infiltrating all the tribes and inspiring conflict.  The MC was a prince or heir of his tribe, and he killed his younger brother by accident. He injured him in a way his regeneration should have fixed, but it wasn't his brother, it was one of the shape-shifters.

I read a book 10+ years ago where the world was ruled by various factions, each one had a special ability of some sort. The main characters faction had regenerative ability. Another faction had the ability to speed up or slow down time. I am not sure of the plot, but I know at one point he is injured so badly he starts growing a clone which he attempts to kill, but comes back later in the story.    Any ideas?


What do indexed mean in 'indexed family' in set theory?  Thanks! :)

What is the difference between "family" and "set"?  The definition of "family" on mathworld () is a collection of objects of the form $\{a_i\}_{i \in I}$, where $I$ is an index set. But, I think a set can also be represented in this form. So, what is the difference between the concept family and the concept set? Is there any example of a collection of objects that is a family, but not a set, or reversely?  Many thanks!


Where does $c$ squared come into play in the equation  $E=mc^2$. Multiplication obviously but how does energy equal mass times the speed of light?

I know that there's a difference between relativistic and rest mass. Relativistic mass is "acquired" when an object is moving at speeds comparable to the speed of light. Rest mass is the inherent mass that something has regardless of the speed its moving at.  When fusion happens, a certain percentage of the rest mass of two hydrogen atoms is converted into energy. I understand that $E = m_{rest}c^2$.   How does the rest mass of an object turn into energy? Does this involve particle physics? Doesn't this suggest that rest mass can be viewed as some sort of potential energy? It seems to me that it's a sort of locked energy that has to undergo a certain process to expel its energy to surrounding particles.  Also, Why does only a small percentage of rest mass turn into energy? Why not all of it. What dictates how much rest mass gets converted into energy?


I heard that argument means the method arguments, ( for example in below code)  def abc(a, b):     pass  c = 2 d = 3 abc(c,d)   a and b are arguments and c and d are parameters. Correct me if I am wrong?  Then in the below code   def abc(c=1,d):     pass   The error message is:     SyntaxError: non-default argument follows default argument   And also in below code  def abc(a,b):     pass  abc(a=1,2)   The error message is:     SyntaxError: non-keyword arg after keyword arg   In both error messaeges, 'no-default argument follows default argument' and 'non-keyword arg after keyword arg', why there is no mention of paramter?   It caused the confusion to me many times with both the error messages so aksing this question. Is there any specific reason for error message to be like this. and also could you let me know how to remember the correct error message corresponding to that error. Thank you.

When verbally talking about methods, I'm never sure whether to use the word argument or parameter or something else. Either way the other people know what I mean, but what's correct, and what's the history of the terms?  I'm a C# programmer, but I also wonder whether people use different terms in different languages.  For the record I'm self-taught without a background in Computer Science. (Please don't tell me to read  because I'm asking this for the benefit of other people who don't already have a copy of 's marvellous book.)  Summary  The general consensus seems to be that it's OK to use these terms interchangeably in a team environment. Except perhaps when you're defining the precise terminology; then you can also use "formal argument/parameter" and "actual argument/parameter" to disambiguate.


I am working on parsing the name and description value on the basis of the API body but it fails to capture using below code ... it is failing in parsing those description values which is having \r\n in the description text.  $..source..[?(@.name =~ /(.*global.*)/i || @.description =~ /(.*global.*)/i)]   It successfully looking for my search query 'global' and consider below as a matched value 'The information is global and it is embedded in the words'  It fails to capture below because it has \r\n 'global data is nowhere capture.\r\n we should do some other tricks.  Can anyone please help what exact regex should I put which would check 'global' from either Name or Description.

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I have installed "Vmplayer(version 6.0.2 build-1744117)" on my Ubuntu 14.04 LTS.   I have created 3 virtual machines on my home directory. When i open vmplayer, library always empty and every time i have to browse and select them to open. I tried different folder permissions and it didn't help. current folder permission is 755 and owner is current user(me).   How do i keep my vms on library, any idea? thanks.

Using Ubuntu 11.10 and Vmware Player 4.0.  Every time when I open the vmware player, the last library was not there (it was just blank). I can manually add it and it is working then.  Anyone experienced this?


I'm still a basic programmer and am starting on a small program to help me with workouts. In my code, I'm using a boolean to determine two different statements in my toString method. However, I'm having trouble getting the if/else statement to read the boolean as true when necessary and as a result only the false toString statement is being printed on the console. What am I doing wrong?  package workoutPackage;  import java.util.Scanner;  public class WorkoutRegimeMenu {      public static void main(String[] args) {         Scanner menuChoice = new Scanner(System.in);         int choice;         do {             System.out.println("*****Workout Regime Menu*****\n");             System.out.println("1. Enter todays workout information");              choice = menuChoice.nextInt();              switch (choice) {             case 1:                 Scanner sInput = new Scanner(System.in);                 Scanner iInput = new Scanner(System.in);                 boolean bWalk = false;                  System.out.println("What is the date of this workout?");                 String date = sInput.nextLine();                  System.out.println("What was your weight the morning of the workout? (in pounds)");                 int weight = iInput.nextInt();                  System.out.println("Did you walk at least an hour on this day? (y or n)");                 String walk = sInput.nextLine();                 if(walk == "y") {                     bWalk = true;                 }                 WorkoutInformation enterInfo = new WorkoutInformation();                 enterInfo.setInfo(date, weight, bWalk);                 System.out.println(enterInfo);                 break;              default:                 System.out.println("Please enter one of the numbered choices above");                 break;             }         } while (choice != 0);     } }    package workoutPackage;  public class WorkoutInformation {     private String date;     private int morningWeight;     private boolean walk;      public void setInfo(String workoutDate, int weight, boolean bWalk) {         this.date = workoutDate;         this.morningWeight = weight;         this.walk = bWalk;      }     public String toString() {          if (walk == true) {             return String.format("On %s you weighed %d pounds, walked for about an hour, and then performed your workouts.", date, morningWeight);         } else {             return String.format("On %s you weighed %d pounds and then performed your workouts.", date, morningWeight);         }     } }   If walk is true, then the first toString statement should print. However it is always read as false so only the second toString statement is printed.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


$f:\mathbb{R}^2 \rightarrow \mathbb{R}, f(x,y) = (y-x^2)(y-2x^2)$. Show that the origin is a minimum point for a restriction of $f$ to any line through origin, but isn't a minimum local point to $f$.  Here's my attempt:  $\partial_x f(x,y) = -2x(y-2x²) + (y-x²)(-4x) = -2xy +4x³-4xy+4x³ = 8x³ - 6xy $  $\partial_y f(x,y) = y-2x² + y-x² = 2y-3x² $  then, partialy differentiating again, we get  $ H(f(x,y))= \begin{pmatrix} 6(4x²-y) & -6x\\  -6x & 2  \end{pmatrix} $ So $\det(H(f(0,0)) = 0 $ and then the origin is a critical degenerated point, therefore can't be a local minimum point for $f$.  Is my argument alright? And how can I think about only the restriction of f to a line through the origin? My teacher suggested analysing the signal of f. So I found:  $ f>0 $ when $(y>2x²)$ or $ (y<x²)$  $ f<0 $ when $(y>x²$ and $y<2x²)$  How can I take conclusions for the restriction now?  Thanks.

There is an exercise in my lists about those functions: $$f(x, y) = (y-3x^2)(y-x^2) = 3 x^4-4 x^2 y+y^2$$  $$g(t) = f(vt) = f(at, bt); a, b \in \mathbf{R}$$  It asks me to prove that $t = 0$ is a local minimum of $g$ for all $a, b \in \mathbf{R}$  I did it easily: $$g(t) = 3 a^4 t^4-4 a^2 t^2 b t+b^2 t^2$$ $$g'(t) = 2 b^2 t-12 a^2 b t^2+12 a^4 t^3$$ $$g''(t) = 2 b^2-24 a^2 b t+36 a^4 t^2$$  It is a critical point: $$g'(0) = 0; \forall a, b$$  Its increasing for all a, b: $$g''(0) = 2b^2 > 0; \forall b \ne 0$$ and $$b = 0 \implies g(t) = 3 a^4 t^4$$ which has only one minimum, at $0$, and no maximum  However, it also asks me to prove that $(0, 0)$ is not a local minimum of $f$.  How can this be possible? I mean, if $(0, 0)$ is a minimum over every straight line that passes through it, then, in this point, $f$ should be increasing in all directions, no?


How can I increase the 100 file upload limit in drag & drop upload in SharePoint 2013?  I would also like to know if this limit is applicable to permissions levels -> i.e. can a user with Site Owner permission be configured to upload a great er number of files than 100?

My task is to upload more than 100 items. For example, I select 200 items in a folder and drag to the library.   But I get an exception from SharePoint stating that there is a limit of 100 files that can be added at a time.      I need to overcome this limitation, how can I do it?


This is intentionally a duplicate of the following question (because the answers there are not completely correct, and as a new user I somehow cannot comment there):   ADDED NOTE: The "How do I set up a Cron job?" question too wrongly states that "sudo crontab -e" edits /etc/crontab (it does NOT) - it IS marked as a duplicate of the "Editing crontab" question.  (hoping to get some upvotes here, so I can help correcting wrong answers in the intended way)

I would like to automate some services using cron jobs.  When I try to edit the crontab file at /etc/crontab, I am not able to save it as it says that it is read only.   What can I do?


I want to change the border color to red when the textbox value is empty in onblur event and change the border color to green when not empty.  At first time when the page is loaded I click on the textbox and leave the focus away from the textbox it changes the border color to red, afterwards I type some value in the textbox and leave the focus away, it changes the border to green, till now it is working fine. When I delete the text from the textbox and leave the focus it does not changes the color to red it remains in green color, what I have done wrong please help me in this regard...      <form id="form1" runat="server">

         <asp:TextBox ID="TextBox1" autocomplete="off" CssClass="form-control"  runat="server" onblur = "Validate('TextBox1')"></asp:TextBox>

 </form>   I need to change the border to red when no value in the textbox instead of green border when value is deleted from the textbox.

How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?


A question I already asked myself a few times is why I can't delete the current working directory using rm -r .  The shell does not have a problem with a non-existing directory as working directory, so I just created an alias for rm -r "../$(basename "$(pwd)")".  Why is there a difference between these two rms, while the output of realpath . and realpath "../$(basename "$(pwd)")" does not differ and the cwd of the rm is also the same?

The expression .* is expanded by bash to include the current and parent directories:  $ ls -la total 2600 drwxrwxrwx   2 terdon terdon 2162688 Sep 10 16:22 . drwxr-xr-x 142 terdon terdon  491520 Sep 10 15:34 .. -rw-r--r--   1 terdon terdon       0 Sep 10 16:22 foo $ echo .* . ..   If I run rm -rf .* on my Debian using GNU bash, version 4.2.36(1)-release and rm from rm (GNU coreutils) 8.13, I get this message:  $ rm -rf .* rm: cannot remove directory: `.' rm: cannot remove directory: `..'   Is this a GNU thing or is it POSIX? Are there any *nix systems where the command above will silently delete . and ..?  Also, is this a safety feature of the shell or of the rm command itself?


So currently I have three functions on my beamer presentation which look like this:  Now somehow it looks kinda different as when I write on a normal document:  As you can see, the letters are written differenty and I don't know why. Here's the minimal Code of the beamer part (The first image): \documentclass[utf8]{beamer}  % ============= % Packages  % ============= \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}                % west european chars \usepackage{amsmath, amsthm, amssymb}   % math symbols  \begin{document}  \begin{frame}     \frametitle{Test}     \begin{columns}         \column{0.33\textwidth}                 \begin{center}                     \begin{align*}                         f(x) = \frac{1}{x}                     \end{align*}                 \end{center}         \column{0.33\textwidth}                 \begin{center}                     \begin{align*}                         g(x) = \frac{2x + 1}{x + 3} +                         \frac{4x^{2} + 3x + 1}{(2x + 1)^{2}}                     \end{align*}                 \end{center}         \column{0.33\textwidth}                 \begin{center}                     \begin{align*}                         h(x) = \frac{2^{x} - 3^{x}}{2^{x} + 3^{x}}                     \end{align*}                 \end{center}     \end{columns} \end{frame} \end{document}  And if you need it, that's the code of the second image: \documentclass[a4paper, 12pt]{scrartcl}  % ============= % Packages  % ============= \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}                % west european chars \usepackage{amsmath, amsthm, amssymb}   % math symbols  \begin{document} \begin{align*}     f(x) &= \frac{1}{x} \\     g(x) &= \frac{2x + 1}{x + 2} + \frac{4x^{2} + 3x + 1}{\left(2x +             1\right)^{2}} \\             h(x) &= \frac{2^{x} - 3^{x}}{2^{x} + 3^{x}} \end{align*} \end{document}  How can I get the font in my beamer presentation as from the normal document?

In a LaTeX article, the math characters are more "curvy" than the text characters:  \documentclass[12pt]{article} \begin{document}  $x^2 + y^2 = z^2$ \end{document}     In a beamer presentation, the math characters do not have the same curves:  \documentclass{beamer} \begin{document} \begin{frame}  $x^2 + y^2 = z^2$ \end{frame} \end{document}     Question  How can I get the beamer math to look just like the article math?  I would prefer if the solution was a single line (that I could place at the top of my LaTeX file) as opposed to something that needs to appear next to every piece of math.


In several of Neil Turok's talks, he talks about this equation that encompasses all of physics. Here it is:    How much of it is true? If it isn't, then is it possible to put all of our knowledge of physics into one equation? Finally, can you explain where each term comes from (I understand till 'Einstein' and 'Newton' terms)? EDIT:  Is this a path integral formulation of some sort?

Is this equation in the image true? Can you give some topics that I can cover the equation?   Similar equation from :


I am not good at programming, so I would ask for your understanding concerning my question.  I have an attribute table that contains five columns which are: (Date, ID, Latitude, Longitude, Rainfall).  Rainfall for different periods of time (which are defined in column "Date") have been recorded in certain stations.  In the column "ID" is the ID of the station on which the recording has been made for a specific period of time. Every station has a unique ID, but at the same location, rainfall has been recorded for different time periods. On the column "Rainfall" appears the amount of rain that was recorded on the specific time and the specific station.  My question is, how can I get the total rainfall in a certain station that has been recorded, using all the records in column "Date" that refer to that specific station. Could I somehow use the coordinates of its station to get the total rainfall that has occurred on that specific station?  The software I use is QGIS 2.4 on Windows machine.

Are there QGIS tools that will allow users to get tabular statistics from their table?  I kind of expected I would be able to just open the table, select the field I was interested in, right-click on the field header and get something similar to this (screenshot taken from ArcGIS):    More specifically, I am looking for a QGIS alternative to the ArcGIS  and  tools, that offer a  you can retrieve about the tabular data.    Just after asking, I found  (see section 4.2 ) that describes how to find this functionality... Vector > Analysis Tools > Basic statistics.  I also found Vector > Analysis Tools > List Unique Values right next to it.  This gets me the list of unique values, but I would also like to see an additional column of frequency (count) of each unique item.  Is this similar tool available "out-of-the-box"?


The task is to determine if $\mathbb R[x]$, which represents the set of all polynomials with real coefficients, is a field. My response is that it is not, since I feel that not all of these polynomials have a multiplicative inverse.  If I am correct, how would I show this in detail?

I'm currently studying Polynomial Rings, but I can't figure out why they are Rings, not Fields. In the definition of a Field, a Set builds a Commutative Group with Addition and Multiplication. This implies an inverse multiple for every Element in the Set.   The book doesn't elaborate on this, however. I don't understand why a Polynomial Ring couldn't have an inverse multiplicative for every element (at least in the Whole numbers, and it's already given that it has a neutral element). Could somebody please explain why this can't be so?


Find the value of the constant $C$ for which the following integral converges and evaluate the integral for this value of $C$   $$\int_{1}^{\infty}\left[\frac{C}{x+2} - \frac{1}{\sqrt{x^2 +4}} \right]dx  = \lim_{t\rightarrow\infty}\int_{1}^{t}\left[\frac{C}{x+2} - \frac{1}{\sqrt{x^2 +4}} \right]dx = \lim_{t\rightarrow\infty} \left(\sinh^{-1}(\frac{t}{2}) - C\ln(t+2)- \text{constant}\right)$$  By taking $\ln(t+2)$ common factor $$ \lim_{t\rightarrow\infty} \ln(t+2)\left(\frac{\sinh^{-1}(\frac{t}{2})}{\ln(t+2)} - C\right)- \text{constant}$$  $$ \text{Since} \lim_{t\rightarrow\infty} \frac{\sinh^{-1}(\frac{t}{2})}{\ln(t+2)} = 1 \text{    then C has to be equal 1} $$   and this is where I am confused $$ \lim_{t\rightarrow\infty} \ln(t+2) = \infty $$  and when we multiply this by $0$, we get undefined, so why should the $C$ be $1$. It is stated that if $C$ was anything but $1$ the answer would be  $\infty$

Evaluate $$ \int_{1}^{\infty} \left(\frac{1}{\,\sqrt{\, x^{2} + 4\,}\,} - \frac{C}{x + 2}\right)\,\mathrm{d}x $$  I am stuck at this question where I should find the value of C for which the integral converges and evaluate the integral for this value of C. Any hints or answers ??.


I learned that "had", or past perfect is usually used with a dead entity. But what if I am not trying to emphasize the fact that an action had taken place before that entity died? Such as:     My dead grandfather has stepped on a mine (when he was alive).   This sentence is resultative, showing why he died, and uses present perfect.  And this sentence below:     My dead grandfather stepped on a mine (on July 6, 1995).   This sentence is incorporating the specific date at which he stepped on a mine, therefore using simple past tense.  Are the uses of simple past and present perfect tense above valid?

I remember (vaguely) reading somewhere that it is wrong to use the present perfect when the subject of a sentence is someone who is long dead:     *Einstein has visited the Philippines.   My question is, What if the dead person is not the subject but an object:     Leo is the best president our country has/had ever had. (The ones who   succeeded him were inferior, even our current president.)   Which tense is proper here


#include <iostream> #include<bits/stdc++.h>  using namespace std; int solve(int t){     float ans = static_cast<float>(320)/100;     cout<<fixed<<setprecision(2)<<ans; } int main(){     int t=320;     cout<<solve(t);     return 0; }  output:3.204745728 how should I get output as 3.20

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


We'd like the Windows 10 lock screen to remain on all the time (or at least for a couple of hours) so that the picture remains visible. This is for aesthetic reasons.  When the PC is locked (i.e. user logged on, station locked), it seems to turn off the screen signal after a minute or so has elapsed. Moving the cursor wakes it.  Changing the corresponding setting in Power Options doesn't seem to impact how the lock screen behaves. Does anybody have any suggestions?   It seems to not sleep the screen if you have powered up the PC and not yet logged on.

I use Windows 10 at work, and for security reasons, I always lock my workstation when I leave the room for any reason.  The problem is that my monitor is a Samsung 4K TV and the lock screen puts it to sleep after only 60 seconds, and after a few more minutes, it goes completely off, requiring me to use the remote control to turn it on again.  I'm OK with using the remote to turn it on in the morning when I come in, but it's annoying to have to use it after a 10-15 minute conversation in another office.


I'm looking to ask a question about the creation and population of a database using C#. For example:     I have a table for RangedItems, Charms, Necklaces, and WristItems. Now, there's an item that can go into any of those slots. What table do you add that item to?   What site is the best to ask these types of questions? This would probably also translate into a class creation question, as I would have a class for each table.

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


Why don't we consider incident rays which doesn't pass through the center or focus of a spherical mirror while drawing a ray diagram? Do those rays form any image when they intersect? like point a,b,c?

This example purports to show reflection of light rays from a spherical mirror. It looks good, until you try to draw a ray from the tip of the candle flame, then through the focal point, $F$, and then emerging parallel to the optic axis $(CF)$.  Go ahead, draw it on your computer monitor screen, or print this page and draw it on the paper. Whoops! This ray should then pass through the image of the tip of the candle flame, but it doesn't!  Here's what you get when you draw the third light ray (in red) from the candle flame. It comes nowhere near the image of the candle flame. As soon as you draw some of the "missing" rays, you discover that the diagram becomes inconsistent.    According to me, the diagram seems to be perfect. From where did this anomaly come from? Please help.


This question may sound a bit weird, but I never entirely got why do we need to have 2 different syntax for deleting dynamically allocated memory in C++?  For example,  int *p = new int[10]; delete[] p; // why not just delete p;?   In plain old C, you just use the free function to release the memory allocated for a pointer, regardless of the number of elements allocated. Of course, C++ is a bit more complicated, as it allows for class types, which invoke their destructor etc. However, I see no impediment in using a single syntax for deleting dynamically allocated memory in C++.  Is there any fundamental reason why it was decided to use 2 versions, delete and delete[]?  More than that, most compilers do not even warn you if you use delete instead of delete[], and this creates undefined behaviour.

This is a question that's been nagging me for some time. I always thought that C++ should have been designed so that the delete operator (without brackets) works even with the new[] operator.  In my opinion, writing this:  int* p = new int;   should be equivalent to allocating an array of 1 element:  int* p = new int[1];   If this was true, the delete operator could always be deleting arrays, and we wouldn't need the delete[] operator.  Is there any reason why the delete[] operator was introduced in C++?  The only reason I can think of is that allocating arrays has a small memory footprint (you have to store the array size somewhere), so that distinguishing delete vs delete[] was a small memory optimization.


I am studying the book Equations and Inequalities by Herman et al, and am stuck on the following exercise:  Determine: $S = \frac{1}{2}{n \choose 0} + \frac{1}{3}{n \choose 1} + \cdots + \frac{1}{n+2}{n \choose n}$   The hint says to consider $(n+2)(n+1)S$.  Doing so, I get:  $(n+2)(n+1)S = \frac{1}{2}{n+2 \choose 0} + \frac{1}{3}{n+2 \choose 1} + \cdots + \frac{1}{n+2}{n+2 \choose n}$,  but I don't see how this is any easier to solve.  I wonder if somebody might help by expanding on the given hint, and maybe offering their suggestions as to how to use it properly.  Thanks.

I need to express $$1 + \frac {1}{2} \binom{n}{1} + \frac {1}{3} \binom{n}{2} + \dotsb  + \frac{1}{n + 1}\binom{n}{n}$$ in a simplified form.  So I used the identity $$(1+x)^n=1 + \binom{n}{1}x + \binom{n}{2}x^2 + \dotsb   + \binom{n}{n}x^n$$ Now on integrating both sides and putting $x=1$.  I am getting $$\frac{2^{n+1}}{n+1}$$ is equal to the given expression.But the answer in my book is  $$\frac{2^{n+1}-1}{n+1}.$$ Where does that -1 term in the numerator come from?


I'm theming a view which name is testimonials, I would like to make the view block a slider, so I'm creating the twig file as views-view-unformatted--testimonials.html.twig.   When I inspect I'm getting {{ row.content }} from the default template. I would like to give div to each and every field I'm getting inside the twig.  How do I access the field contents in the twig.   I've a number of views for each view, I would like to theme it different ways, so can I created views-view-fields for each view?

I have a view and added the title as a field. For example: How do I print the title?  In Drupal 7 it was as simple as views-view-fields--[viewname].tpl.php <?php print $fields["title"]->content; ?>   How do we do this in Drupal 8? I have created views-view-fields--[viewname].html.twig I thought it might be {{ fields.title }} but I get the classic error message like so:  The website encountered an unexpected error. Please try again later.  I then tried {{ field.title }}, {{ title }} and {{ content.title }} but nothing prints.


I accidentally mounted iso file to the solid state drive /dev/sda, which contains windows operating system. After unmounting iso in ubuntu this drive get unreachable at all and unfortunately system can't boot to ssd and output this message:     Reboot And Select Proper Boot Device   I know that ssd files are not deleted and actually are hidden and maybe can not be found by system to boot properly. I just wanna to return them to the accurate correct location as before mounting in Boot-Repair-Disk terminal or ubuntu desktop. How can I deal with this issue?  I did not use the terminal for mounting. I used Ubuntu's GUI and simply choose my ssd as destination. After unmounting in Boot-Repair-Disk, the disk is shown as . (note: I made mistake about the location of ssd, the ssd location is /dev/sda)

I have an NTFS formatted USB Hard drive that has my personal files backup. Today I mounted the drive to an Oracle Linux system and copied a regular file using the below command (please see below commands). By mistake I used the device file /dev/sdb1 during copy.  mount -t ntfs-3g /dev/sdb1 /sample cp file1 /dev/sdb1   After this I unmounted the drive and connected to Windows system. Now Windows system complains that the drive need to be formatted and/or corrupted.  My question is: can we recover this drive without losing any personal data? How can I view the files available on this drive? Just mounting back to Linux system will show the files?


few days back i was going to my friend's house but i was not sure about his[my friend] exact location so i used Google maps and didn't closed the Map's tab. On my way to his house when i checked maps i was amazed to see that even without internet my location was getting updated continuously even maps were detecting the direction of my mobile device.Surely it's now an old technology and it didn't amazed me that way but actually i was thinking that what sort of techniques & technology (Programmatically) they are using to access my location and even direction of my device, so fastly?

I need my iPhone 7 Plus GPS accuracy to be very precise (without continously changing the blue dot position). My cellular data connection is often sloppy. Does disabling cellular data improve GPS accuracy? Does the GPS depend on cellular data at all? I thought the GPS partially relied on cellular data to improve its accuracy.


There is a useful rule in the PHB concerning multiple creatures being damaged simultaneously (PHB, p. 196):     If a spell or other effect deals damage to more than one target at the same time, roll the damage once for all of them.   That's a handy rule that stops us from needing to roll damage dozens of times for a single fireball. But it got me thinking about the Sorcerer's twinned-spell metamagic (PHB, p. 102).     When you cast a spell that targets only one creature and doesn’t have a range of self, you can spend a number of sorcery points equal to the spell’s level to target a second creature in range with the same spell (1 sorcery point if the spell is a cantrip).   It has been clarified elsewhere that , but rather including an additional target in the effect of the original spell. And while it's been established that the attacks from a twinned spell with attack rolls don't happen simultaneously (), it seems less clear to me that this would be the case for spells with no attack roll.  So if a spell like Blight were twinned, would you only roll once for the damage and use that total for both targets (modified by their respective saving throws), or would you roll damage twice (once for each target) because the original version of the spell only targeted one creature?

Two related questions:   When using Twinned Spell with an attack spell, do you make one attack roll for both targets, or one each? When using TS with a spell that deals damage: do you roll damage once for both targets, or once per target? If it's a non-attack spell, each gets its own Saving Throw, obviously.


[December 28, 2018]  I've been experiencing delays using the caps lock key. As you can see in the title, uppercase letters appear consecutively (CAps) even though I pressed the caps lock key (C - caps lock  - A) before I press another letter.  In order to achieve proper capitalization I need to stop typing for a second whenever I press the caps lock which messes with my typing rhythm. The slow keys is off in Universal Access. This problem doesn't exist in Windows. I'm new to Ubuntu and I'm trying to give it a chance but this problem is bugging me for a while now. Any help regarding this matter will be greatly appreciated. The version of my Ubuntu is Ubuntu 18.04.1 LTS.  To illustrate the problem (pressing caps lock alternately):  Windows - AaAaAaAa  Ubuntu - AAAAAAAA    [December 29, 2018]  Is there any other way to fix this problem rather than switching to Shift key. I'm used to caps lock key and I have a good reason why I can't just switch to Shift. I also tried using different keyboards, 2 local brand and 2 international brand (I have 3 spare keyboards = 4 keyboards in total) and the problem is still present. If there is no other fix to this problem then I have no choice but to replace Caps lock with Shift which is disappointing and will cause delay to my workflow.

This is my biggest issue with Linux and the main reason I don't use it as my main working OS.  Whenever I use caps lock to write something in upper case and disable it in order to keep writing the next letter AFTER I've disabled it is written in upper case.  So, my text comes out weird, as SOMETHING *L*ike this  I've tried Linux Mint, Fedora ... and the issue keeps happening.  Searching Google I've found some very rare persons have the same issue, but I was unable to find any solution.  Is there any way to solve this or am I DOOMED *F*or life?  BTW, whenever I ask this question someone suggest I should learn to use shift, instead of caps lock. I know, that's the right way, but I'm used to use caps lock and, well, it should work.


I have been listening to many videos and reading but I am very confused. Firstly, I read that quaternions exist in $\mathbb{R}^4$ which would seem to exclude imaginary numbers completely (I would have guessed). But secondly, if a quaternion is sort of like a complex number, why do we need $j$ and $k,$ why can't we just use $i$ throughout ($a+ib+jc+kd$) is different somehow than ($a+ib+ic+id$) and if so, in what way does $i$ differ from $j$ and $k$? Also, if quaternions have something to do with rotation is 3D space, why is a quaternion in a hypersphere? If we want to do something with rotations in on the plane, is 3D space involved?

I haven't really formally studied Algebra at anywhere near this level, but I was told about the existence of Quaternions a few years ago and I find them really cool. I also like how pure quaternions are analogous to cross products in $R^3$, and that it gives me a way of doing it algebraically rather than relying on hand rules.  Over the course of using them it's my understanding that multiplying an element by another, both imaginary numbers, rotates it in some manner so as to be orthogonal to both, similar to rotations of $\frac{\pi}{2}$ in the space with one real and one imaginary axis when multiplied by $i$, which is why it's useful for cross products as it will rotate it to be orthogonal to a plane spanned by linear combinations of those two vectors [afaik].   What I can't intuit though is why for any pure quaternion multiplication, there's a negative real part [the scalar product] if it's meant to correspond to a rotation within $R^3$ and the space of pure Quaternions is Isomorphic to $R^3$. Similarly I don't understand why $i^2 = j^2 = k^2 = $ A negative real.


I'm attempting to transfer a 1.4 GB file to a USB flash drive, and I'm getting speeds of only around 600-700 kbps. I've tried it in every USB port I have available, and I've also changed the setting in the "policies" page of the device manager to optimize for speed. The file is stored locally on the drive, and I'm not noticing anything odd with disk or CPU activity. I'm not entirely sure if the port I've got it plugged into (which is directly on the MB and not on a front header/panel) is 2.0 or 1.1 but even with 1.1 shouldn't I be seeing speeds of at least 10 MBps?   What could be the bottleneck here? I note that pretty much every question similar to this one has gone unanswered on SU.

What do I do to optimize the file transfer rate of a Memory Stick Duo?  The file transfer was not like this when it was still new.  Can reformatting give new life to a memory stick?  It takes about 20 minutes just to transfer 1Gb of file from computer to memory stick. The computer is decent enough. 2.50Ghz processor, 2Gb ram.


I just got to know the  software, which is a Java program for drawing Feynman diagrams. The cool thing about this program is the possibility of generating LaTeX code. Is there a similar program for graphics in general?

I found  to be a useful tool to help generate code for graphs. I suppose there must be other tools to help draw diagrams such as Sets/Venn Diagrams or Electrical Circuits (Logic Gates). Which ones would you suggest?


I have to store and retrieve the Image files .Can anyone please suggest me to save the file in the hosting system or In the DB. I am using SQL Server 2008.

So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB.  What do you think are the pros/cons?


I've inherited a fairly substantial LaTeX document as part of a new job. Unfortunately, I haven't really had time to get to grips with it and it now need to be compiled.  There are no errors (other than some biblatex warnings) but none of the mathematical operators are showing up (=, +, -, > etc.) except for \times. I've done some research and have come to the conclusion it's probably a conflict in the packages being used but I can't seem to figure out which one.  The preamble is:  \RequirePackage{xcolor}         % Extended colorsx    \documentclass{BYUTextbookUCTAS} \usepackage{natbib} \usepackage[immediate,save]{silence}  \usepackage[T1]{fontenc} \usepackage{lmodern} %definitely need this \usepackage{amsmath,amssymb} \usepackage{rotating} \usepackage{threeparttable} \usepackage{tikz} \usepackage[tikz]{bclogo} \usepackage{bigstrut} \usepackage{booktabs} \usepackage{lifecon} \usepackage{multirow} \usepackage{longtable} \usepackage{arydshln}  % Sub appendices \usepackage{appendix} \usepackage{chngcntr} \usepackage{etoolbox}   Edit: Thanks to egreg, I've managed to get the mathematical operators back but now there are some other formatting problems.  I've uploaded a PDF  showing what happens when I include/exclude the "lmodern" package.  And I've uploaded the cls file  (pastebin ).

Using the lmodern package, I had the typical font size issues in math mode: for example the sums were not large enough in some of my equations. To solve this I followed egreg's answer to the following question:   The solution works for the sums but now my brackets are not scaled correctly anymore. Making a minimal working example I noticed that the issue is related to the fourier package. So I suppose there are incompatibilities somewhere. I know fourier has incompatibilities with other math fonts packages such as mathptmx, in my case it might be related to lmodern. Is it possible to use fourier and lmodern and avoid the scaling issues I have with my equations?  MWE:  \documentclass[a4paper, 12pt, twoside,openright]{report} \usepackage{lmodern} \usepackage[upright]{fourier}  % declare `cmex` to be arbitrary scalable \DeclareFontShape{OMX}{cmex}{m}{n}{   <-7.5> cmex7   <7.5-8.5> cmex8   <8.5-9.5> cmex9   <9.5-> cmex10 }{}  \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n} \SetSymbolFont{largesymbols}{bold}  {OMX}{cmex}{m}{n}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{bm}  \begin{document}     \begin{equation}     U_{qq} = \sum_{i < j \leq N_m} q_i q_j \left[ \sideset{}{'}\sum_{\bm{n}} \frac{\text{erfc}(\alpha \lvert\bm{r}_{ij} + L\bm{n}\rvert)}{\lvert\bm{r}_{ij} + L\bm{n}\rvert} + \frac{1}{\pi L} \sum_{\bm{n} \not= 0} \frac{1}{n^2} \exp(- \frac{\pi^2 n^2}{\alpha^2 L^2} + \frac{2 \pi i}{L} \bm{n} \cdot \bm{r}_{ij}) \right]     \end{equation} \end{document}   Result with fourier:   Result without fourier:


It seems that on Windows 10 I cannot add new items to the "All apps" part of the Start Menu. I tried moving a shortcut to C:\ProgramData\Microsoft\Windows\Start Menu\Programs, but the program did not show up anywhere under the All apps view. Looking for the cause, I tried changing the name of one of the files already present in the aforementioned folder. To my surprise, the shortcut I renamed no longer shows up on the All apps view at all. Renaming it back to its original name did not bring it back. What could be causing this problem?  Update: Since I posted this question, I have noticed that the "Most used" applications are no longer updating.  Update 2: Since my last update, the issue seems to have somehow been resolved. I will look into possible causes for the resolution.

I just added the latest version of the Eclipse IDE to my computer. Eclipse is distributed as a ZIP file, so I unzipped it into a directory in C:\Program Files like I've done for past versions of Eclipse. However, I also like a shortcut in the start menu. I don't see a way to make that happen.  After I extract the ZIP, one of the files is eclipse.exe. What I've done in the past is to right click on this file, create a shortcut, and drag it into the start menu's All Programs section and it lives there. When I do that in Windows 10, I get an icon that indicates that I can't drop it there (there's a red circle with a slash through it).  I then tried to pin the application to the start menu using the right click menu. It's not what I'm looking for, though:    I then found  and follow that instructions. I made a shortcut on the desktop to the application and then copied that shortcut into %appdata%/Microsoft/Windows/Start Menu/Programs:    However, the result was identical to right clicking and pinning to the start menu - not what I want.  I don't want the Eclipse icon in the section on the right. I want it to appear in the section on the left, where Dia, Eclipse Luna, and other apps are listed. The three obvious solutions don't appear to give me what I want.  How do I do this?    As of 7 Sept 2015, I'm running Windows 10.1 Build 10240 and I still have this issue. I've tried the advice posted in the answers - putting the shortcut to the executable in the %appdata%\Microsoft\Windows\Start Menu\Programs and C:\ProgramData\Microsoft\Windows\Start Menu\Programs\ directories, yet no success getting the desired result.  I did try something new. I went to %appdata%\Microsoft\Windows\Start Menu\Programs (where the Eclipse Process Framework and Eclipse Luna shortcuts are located) and made a new folder called Eclipse. This folder appeared in the Start Menu. I copied the Eclipse Process Framework, Eclipse Luna, and Eclipse Mars shortcuts into this folder. The end result was this:    Again, not what I was expecting to happen. The Eclipse Process Framework and Eclipse Luna icons went into the new folder, which is good. The Eclipse Mars icon stayed on the side, where I don't want it.  This is what the folder structure looks like:      I'd be curious to know if this is an issue that may be resolved in a later build. Unfortunately, I do like some level of stability, so changing to one of the other release streams isn't going to help me. But if someone can point to this being a known issue that has been confirmed as resolved in a later build, I'd be willing to accept that answer once the build flows out to the main release stream.


So I'm a trusted user on . Suddenly I can't protect questions anymore? Bug?    I'm pretty sure this was working yesterday.

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


What are the pros and cons of choosing a local domain name such as mycompany.local versus a publicly registered domain name such as mycompany.com (assuming that your org has registered the public name)? When would you choose one over the other?  UPDATE  Thanks to Zoredache and Jay for pointing me to , which had the most useful responses.  That also led me to find this , which states:     It is best to use DNS names that are registered with an Internet   authority in the Active Directory   namespace. Only registered names are   guaranteed to be globally unique. If   another organization later registers   the same DNS domain name, or if your   organization merges with, acquires, or   is acquired by other company that uses   the same DNS names, then the two   infrastructures cannot interact with   one another.      Note      Using single label names or unregistered suffixes, such as .local,   is not recommended.   Combining this with mrdenny's advice, I think the right approach is to use either:   Registered domain name that will never be used publicly (e.g. mycompany.org, mycompany.info, etc). Subdomain of an existing public domain name which will never be used publicly (e.g. corp.mycompany.com).   The "never used publicly" part is a business decision so its probably best to get sign off from those in the company authorized to reserve domain names and subdomains.  E.g. you don't want to use a registered name or subdomain that the marketing dept later wants to use for some public marketing campaign.

This is a  about Active Directory domain naming.   After experimenting with Windows domains and domain controllers in a virtual environment, I've realized that having an active directory domain named identically to a DNS domain is bad idea (Meaning that having example.com as an Active Directory name is no good when we have the example.com domain name registered for use as our website).   , but I'm still not sure about what other rules there are around naming Active Directory domains.  Are there any best practices on what an Active Directory name should or shouldn't be?


Is there any known complete parametrization of the Diophantine equation $$ A^{2} + B^{2} = C^{2} + D^{2} $$ where $A, B, C, D$ are (positive) rational numbers, or equivalently, integers?

I was reasonably certain I've seen this before, but I was wondering how to solve the Diophantine equation  $$a^2+b^2=c^2+d^2$$  I tried a web search and found nothing on this one.  I'm trying to avoid another library trip to a less than local library (maybe I should have taken better notes on that chapter...).  I'm not quite sure how to handle this one.  The only thing I can figure out with this equation, if I remember correctly, is that the sum on either side may only contain prime factors of 2 or odd primes congruent to 1 mod 4.  And if I don't want a and b equal to c and d, the sum can't be prime as I believe a prime congruent to 1 mod 4 can be represented as the sum of 2 squares in exactly one way.  But that doesn't give me any insight into actually solving this problem.


I made this code:  Item.h:  #include <iostream> using namespace std;  template <class T> class Item { private:     Item<T> * next;     Item<T> * prev;     T * data;  public:     Item(T * pData = NULL);     ~Item(); };   I also made Item.cpp:  #include "Item.h"  template<class T> Item<T>::Item(T * pData) : data(pData), next(NULL), prev(NULL) {}  template<class T> Item<T>::~Item() {}   And this is the Main:  #include "Item.h"  int main() {     int * s1 = new int(5);     Item<int> * i = new Item<int>(s1);      system("pause");     return 0; }   When I am trying to separate the Item.h to Item.cpp (if I don't write declaration), I get this error:  Error  LNK2019 unresolved external symbol "public: __thiscall Item<int>::Item<int>(int *)" (??0?$Item@H@@QAE@PAH@Z) referenced in function _main.

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


In my D&D group, we have 4 great players, but one of them is constantly getting bored of their characters.  The other players are all invested in the story more than anything else and as such it really grates to have a character just drop out mid plot-arc and be replaced by some brand new guy who instantly needs to become best buds with the existing party.  However, on the occasions that I have refused him, or at least told him to wait a while before switching, he plays really half-heartedly, doesn't seem to enjoy himself and puts a damper on the whole table.  What can I do to fix this situation?

I have had problems in the past with players who are serial character creators. What I'm referring to are the players who cannot seem to stick with a character more than two sessions at a time without finding endless reason to complain about, dislike, or grow bored with their current character.  I'm guessing the common causes are boredom, dissatisfaction, or simply a short attention span. The effects, thus far, have been players never connecting with the other players or their characters because they know the player will stop caring after a few session or will switch; and it leaves me not wanting to bother creating plotlines for them.  So what are some solutions or compromises that could be proposed to such a player?


A common kernel choice is the gaussian kernel: $ k(x,x^{'}) = \exp \big( -\frac{1}{2\sigma^2}\| x - x^{'} \|^2 \big)$  This implies a transformation on $x$, and equally on $x^{'}$. What is it?

In SVM, the Gaussian kernel is defined as: $$K(x,y)=\exp\left({-\frac{\|x-y\|_2^2}{2\sigma^2}}\right)=\phi(x)^T\phi(y)$$ where $x, y\in \mathbb{R^n}$. I do not know the explicit equation of $\phi$. I want to know it.  I also want to know whether $$\sum_ic_i\phi(x_i)=\phi \left(\sum_ic_ix_i \right)$$ where $c_i\in \mathbb R$. Now, I think it is not equal, because using a kernel handles the situation where the linear classier does not work. I know $\phi$ projects x to a infinite space. So if it still remains linear, no matter how many dimensions it is, svm still can not make a good classification.


I've heard "from whence it came" said many times, often when the writer is attempting to be formal (or is in fact formal). But the  of whence is "from what place, source, or cause" (with "from" being the key word). So is it wrong to say "from whence it came"?

I just saw a , where one of the characters says:     it must be cast back in the fire from whence it came!   This struck me as odd, since I expected them to say "whence it came"; but now I find that "from whence" seems to occur as well.  Does anybody know whether this is correct, or whether it has been correct at some point and subsequently fell into disgrace (or vice versa)?


Here is my handler code in which i set my progressbar in oncreate() method       progressBar = (ProgressBar) findViewById(R.id.progressBar);      thread = new Thread(new MyThread());      thread.start();      handler = new Handler() {          @Override         public void handleMessage(Message msg) {             progressBar.setProgress(msg.arg1);                            }        };        if(progressBar.getProgress()==99)     {         Intent i = new Intent(SplashScreen.this,MainActivity.class);         startActivity(i);         finish();      }   And here is the MyThread Class through which i sending message to handler  class MyThread implements Runnable{       @Override     public void run() {          for (int i=0;i<100;i++){              Message message = Message.obtain();              message.arg1 = i;             handler.sendMessage(message);               try {                  Thread.sleep(100);              } catch (InterruptedException e) {                 e.printStackTrace();             }           }     } }//mythread   I want to start my main activity when progressbar complete its progress. but mesage.arg1 returns null Tell me where i am making mistake

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


I'm trying to say that there's black pork, cheap pork, premium pork, etc.  Hence,  1) Not all pork is created equal? 2) Not all pork are created equal?  I understand that plural of pork is still pork. But in this case, does the inclusion of "all" warrant an "are"?  Thanks in advance.

I've always understood the plural of fruit to be fruit, not fruits.  I was looking at some marketing material and they used the word "fruits" in the following context:      A unique infusion made with ... strawberry, raspberry and cranberry fruits    In discussion with someone about this sentence, he described that the  is not necessarily always people, and could be persons. Therefore it's possible that fruits could be a legitimate plural form.  Is fruits used correctly in this context, or could it be used correctly in ANY context?


For my geology diploma project I need to create  DEM from topography map my professor gave me to use as a base map. The map is georeferenced. My idea was to draw lines over the izolines of the map, then specify thair elevation and then create DEM. Equidistance of the izolines is 10m. I don't know how to do it or is it even possible in QGIS.

I have a shapefile with contours and their heights.   Is it possible to make a DEM from contours in QGIS without using GRASS?   I found  but the answer is for ArcGIS Desktop.


Does anyone know how to stop notifications from a single specific website? In Chrome and/or Firefox? Obviously I know how to turn them off for the entire application.  But I went to this website to lookup an old girlfriend, like one those records report. Decided not to pay and go through with it. And for a week now it gives me a notification with her name and hey let’s finish this. And there is no where for me to click to close it without it opening the website page. And I have to continue clicking it till it goes away. Only to return every hour. Super Frustrating.

I keep getting these notifications despite not having an RT tab open. What gives?


I'm typesetting a grammar specification for a programming language, which leads to many short snippets of grammar and example code interleaved in the document text.  The issue I observe is that an lstlisting has no proper spacing to the following paragraph, and messes up the spacing before all following section headings. See the following screenshot (notice how 0.1.1 Examples "sticks" to the paragraph):    Inserting a description list after the first listing (uncomment (A) in the code) actually resolves the spacing issue of the section heading:    Changing the first listing (change (B) in the code) to verbatim resolves the issue entirely and inserts a much desired vertical space before the following paragraph:    To sum up,   verbatim gives me the desired overall layout of the text, whereas lstlistings looks subpar layout-wise but breaks lines and highlights code nicely.   Am I missing out on something about lstlistings? Are there any alternatives that are closer to what verbatim does?    The following source code produces the above results:  \documentclass{report} \usepackage{color,dejavu,listings,paralist} \lstset{backgroundcolor=\color[gray]{0.90}, aboveskip=0pt, belowskip=0pt}  \begin{document} \section{Definition}  % (A) \begin{lstlisting} definition : name ":" expr \end{lstlisting}  % (B) % \begin{description} % \item[expr] can be any valid expression and is evaluated at compile time until a %             function, a type, or a constant value is obtained. If this is not %             possible, the compiler will stop with an error. % \end{description}  A \emph{definition} is an expression with a label assigned to it. The label allows other parts of the code to refer to the definition. Only definitions are exported out of packages and can be referenced from other code.  \subsection{Examples} \begin{lstlisting} (a) A: func x -> x*x (b) B: func x,y -> x*y (c) C: type Int range 0 to 7 (d) D: 123 (e) E: A(2) \end{lstlisting}  Where \begin{inparaenum}     \item is a function with one argument,     \item is a function with two arguments,     \item is a type representing integers from 0 to 7,     \item is the integer constant 123, and     \item is the integer constant 4 \end{inparaenum}.  \end{document}

Consider this example:  \documentclass[a4paper]{article} \usepackage{listings} \lstnewenvironment{shell}{}{} %\usepackage{verbatim} %\let\shell\verbatim %\let\endshell\endverbatim \begin{document}  \subsubsection{Test1}  \begin{shell} test \end{shell} Some text  \subsubsection{Test2}  More text, Test2 has no spacing above  \subsubsection{Test3}  Looks ok \end{document}   When I compile this I get    where did the space above section Test2 go? If I don't use listings, say the commented stuff, things are ok.  Any ideas?  Versions listed below.   article.cls    2007/10/19 v1.4h Standard LaTeX document class   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option) listings.sty    2013/08/26 1.5b (Carsten Heinz)   keyval.sty    1999/03/16 v1.13 key=value parser (DPC)  lstmisc.sty    2013/08/26 1.5b (Carsten Heinz) listings.cfg    2013/08/26 1.5b listings configuration


I killed all the bosses but the door will not open. I have beaten this game four times and I have never had this problem before.  I do not know what to do, can someone help me?

In Dark Souls 2 there is a 'Shrine of Winter' near Sinners Rise. When you approach the shrine it will not let you open the door and a message pops up that says      Seek Mightier Souls   What does this mean and how do you open this shrine?


Assume $S$ to be all continuous functions from $[0,1]$ to $\mathbb R$. I know by compactness of $[0,1]$ it follows that all maximal ideals of $S$ have the form $M_{x_0}=\{f\in S \mid f(x_0)=0\}$.Does there exist any non maximal prime ideal of $S$.I tried with some ideals of S but could not find any.please give me some idea how can I construct this?

Are there any prime ideals in the ring $C[0,1]$ of continuous functions $[0,1]\rightarrow \mathbb{R}$, which are not maximal? Perhaps, I duplicate smb's question, but this is an interesting problem! Could you give me any hint or give a link to some literature?


Let $x_{n}$ be a monotonously decreasing sequence converging to $0$. The series $\sum x_{n}$ is convergent. Prove that $nx_{n}$ is also convergent to $0$. I‘m kinda stuck here. Help would be appreciated.

I'm studying for qualifying exams and ran into this problem.  Show that if $\{a_n\}$ is a nonincreasing sequence of positive real numbers such that $\sum_n a_n$ converges, then $\lim_{n \rightarrow \infty} n a_n = 0$.  Using the definition of the limit, this is equivalent to showing \begin{equation} \forall \varepsilon > 0 \; \exists n_0 \text{ such that } |n a_n| < \varepsilon \; \forall n > n_0 \end{equation} or \begin{equation} \forall \varepsilon > 0 \; \exists n_0 \text{ such that } a_n < \frac{\varepsilon}{n} \; \forall n > n_0 \end{equation} Basically, the terms must be bounded by the harmonic series. Thanks, I'm really stuck on this seemingly simple problem!


Suppose $f \in L^{p_0} \cap L^{\infty}$ for some $p_0 < \infty$.   Prove that:  $\lim_{p \rightarrow \infty} \|f\|_p=\|f\|_{\infty}$  My attempt:  So the first step seems to be showing that the limit exists at all. I'm having trouble showing this, I feel like I'm getting a massive case of tunnel vision.  I know that we have an upper bound of $\|f\|_{\infty}$, but the function isn't monotone so that alone doesn't ensure the limit exists. I've been toying around with trying to find a convergent subsequence, and I think I've cooked something up, but then that didn't really do much for me. Could use some help on this one. Thanks!

In a space with measure $1$, $||f||_p$ is an increasing function with respect of $p$. To show that $\lim_{p \rightarrow \infty} ||f||_p=||f||_{\infty}$ we have to show that  $||f||_{\infty}$ is the supremum, right??   To show that, we assume that $||f||_{\infty}-\epsilon$ is the supremum.  From the essential supremum we have that $m(\{|f|>||f||_{\infty}-\epsilon\})=0$.  So, we have to show that $m(\{|f|>||f||_{\infty}-\epsilon\})>0$.   Let  $A=\{|f|>||f||_{\infty}-\epsilon\}$.   We have that $\int_A |f|^p \leq \int |f|^p \leq ||f||_{\infty}^p$.   $\int_A |f|^p >\int_A (||f||_{\infty}-\epsilon)^p=(||f||_{\infty}-\epsilon)^p m(A)$   So, $m(A)^{1/p} (||f||_{\infty}-\epsilon)<||f||_p \leq ||f||_{\infty}$  How could we continue to show that $m(A)>0$??   EDIT:   Is it as followed??  We have that $0<||f||_{\infty}-\epsilon<||f||_{\infty}$ for some $\epsilon>0$.  $||f||_{\infty}$ is the essential supremum. So, from the definition we have that $m\left ( \{|f(x)>||f||_{\infty}-\epsilon\} \right )>0$.   Let  $A=\{|f|>||f||_{\infty}-\epsilon\}$.   We have that $\int_A |f|^p \leq \int |f|^p \leq ||f||_{\infty}^p$.   $\int_A |f|^p >\int_A (||f||_{\infty}-\epsilon)^p=(||f||_{\infty}-\epsilon)^p m(A)$   So, $m(A)^{1/p} (||f||_{\infty}-\epsilon)<||f||_p \leq ||f||_{\infty}$  Taking the limit $p \rightarrow +\infty$ we have the following:  $$\lim_{p \rightarrow +\infty}m(A)^{1/p} (||f||_{\infty}-\epsilon)<\lim_{p \rightarrow +\infty} ||f||_p \overset{ m(A)>0 \Rightarrow \lim_{p \rightarrow +\infty}m(A)^{1/p}=1}{\Longrightarrow} \\ ||f||_{\infty}-\epsilon<\lim_{p \rightarrow +\infty} ||f||_p$$   Is this correct?? How do we conclude that $\lim_{p \rightarrow +\infty} ||f||_p=||f||_{\infty}$ ??


It seems that the numbering system refers to the section rather than the images. Moreover, when clicking the number it takes you to the start of the section that contains it, not at the real label.  For images I use:  \begin{figure}[H]     \centering     \label{fig:proc_func}     \includegraphics[width=\linewidth]{img/proc_func}     \caption{Effects of non-continuous sampling.} \end{figure}   Just saying: I have a page which is shown horizontal and that contains an image (I use package pdflscape), but removing it does not solve the problem.  These are my packages. I am using pdfLatex to compile.  \usepackage[utf8]{inputenc} \usepackage[urlcolor=blue, colorlinks=true, linkcolor=blue]{hyperref} \usepackage{graphicx} \usepackage{amsmath} \usepackage{pdflscape} \usepackage{pdfpages} \usepackage{geometry} \usepackage{float} \usepackage{rotating} \geometry{     a4paper,     total={170mm,257mm},     left=35mm,     right=35mm,     top=20mm, }   I'm thinking that hyperref is to blame, but I haven't changed its option.

\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.