How can I make a polyline wrap around the world?

I am using  maps to create a representation of a round-the-world challenge. I would like to add a polyline which heads east from tokyo and then appears west of south america on the map - but instead I get a line which crosses the map in the opposite direction (see yellow line).    I think this is probably related to datelines and /or coordinate systems but am a bit sketchy on the detail. Can anyone explain the theory behind what I need to do to get this to work? I am using the bluemarble projection from Nasa:  var bluemarble = new L.TileLayer.WMS("http://demo.opengeo.org/geoserver/wms", { layers: 'bluemarble', attribution: "Data &copy; NASA Blue Marble, image service by OpenGeo", minZoom: 2, maxZoom: 5 });


Option clash: using pdfpages with xcolor

I am using \usepackage[table]{xcolor} to alternate table row colors in my thesis.  I have tried to include a .pdf file as an Appendix using pdfpages, however LyX tells me there is a option clash with xcolor.  Is there a known workaround for this issue? I have been stumped for the last 2 hours.  Many thanks


shortcut key to detach a tab in firefox (move tab to new window)

In FF, I can move a tab to a new window by either dragging the tab out of the browser, or right clicking the "move to New window" option from the context menu. is there a shortcut key to move the current tab to a new window without dragging or using the context menu, or a way to set one up?  Often, I like to look at 2 tabs side by side, so I drag one out, then hit WINDOWS KEY+→ to put the detached tab on the right, then ALT+TAB to tab back to the main window, then WINDOWS KEY+← to put the main window on the left. It would be great if I could do the whole process on the keyboard.  I checked  documentation and did not find any shortcut key for detaching a tab:


How do I tell GRUB2 to set its resolution (and also the one passed to the kernel) to the maximum one it can detect at time of boot?


Android app: "NEVERMIND" button in dialog is confusing, should say "Cancel" instead

When I clicked the little down  arrow in order to discard the comment I was writing, I was a little surprised (and baffled for a moment), when it showed me the following dialog:        Shouldn't that cancel button which for some reason says "Nevermind", say, well, "Cancel" instead ?  In all the other dialogs, it does say "Cancel", just not in this one for some reason.


find and print file path, without filename

Please check the below  awk '/SOURCE/ {print $3}' /MAC/Delete_Name.txt |      while IFS= read -r file; do find /OS/ -iname "$file.pdf" ; done    This results in output like this:  /OS/001DAY/11file/cooke.pdf   We want it to only print the file's path, like this:    /OS/001DAY/11file/


What's the right site for hardware (Mac) questions?

Where do questions along the lines of "how do I get my scanner (model number here) to work over the network with the latest OS X ?" (and similar questions) go? (Obviously, they don't go on Stack Overflow.) Is there a master list somewhere?


Period of a pendulum on a train at relativistic speeds as observed by 2 different observers

My friend asked me this question  "Two observers, A and B:  QUESTION : "A is on a train travelling at a constant speed of 0.9c and B is standing on the ground outside. Both observe the motion of a 1m long pendulum swinging (in the direction of the motion of the train), compare the observations made by A and B with regards to the motion of the pendulum. Observer A measures the period of the pendulum to be 2.01 seconds."  I'm not too familiar with Special relativity but, A is stationary relative to the equilibrium position of the pendulum so he will observe the period of the pendulum according to T = 2π√(l/g)  The pendulum is moving relative to B and so B will observe the effects of time dilation, length contraction etc and the period of the pendulum will be greater than that observed by A. But the length of the pendulum is unchanged (I think), but the angle it makes with the vertical is changed and so is the period.   However, according to Special Relativity, the Laws of Physics are the same in inertial frames, so   T = 2π√(l/g) should hold for B's frame of reference as well so the gravitational field observed by A and B should be different.   From what I've read, the period measured by A shouldn't be 2.01 seconds, as the Earth is moving relative to the pendulum, and A on the train and so we can not take g = 9.8 ms^-2, but it is true that time dilation effects will take place and B will observe a longer period? What exactly are the effects at play here that make the period observed by B longer?   Thanks in advance, and apologies I'm not very familiar with Special Relativity at all


I'm looking for all Internet about how sending a custom object using an Intent inside of an setOnItemClickListener. I want to send this Person Object to another Activity, but it's always sending null. I need to put it in 6 EditText different. Can someone help me?  listEndereco.setOnItemClickListener(new AdapterView.OnItemClickListener() {         @Override         public void onItemClick(AdapterView<?> parent, View view, int position, long id) {             Intent intent = new Intent(AdrressApp.this, EditorPerson.class);             Person pessoa = listEndereco.getItemAtPosition(position);             intent.putExtra("pessoa", pessoa);             startActivity(intent);         }     });   Here is the another activity:  Intent i = getIntent(); Person idPessoa = (Person) i.getSerializableExtra("pessoa");   When I run the app I get this error:   Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference


Test if a not class member function exists (SFINAE)

I have defined many objects, and for some of them, i defined a function :  template <typename Ratio>  auto print(const T &t, bool a= true, bool b= true) {     std::stringstream ss;     // ... do stuff ...     return ss.str(); }   where T is the type of one of the objects for which print is defined. Ratio is used inside the function.  My question is : Is there a way for a type T to find if this function exists ?   For others uses, i already used templates and SFINAE to detect if a class member method exists. But for my problem here, i can't find the solution ... Anyone ?  Thanks, Ben  PS : Example of SFINAE use in my code, where i needed to detect if a class member method exists .  static T none() { ... }  /**  * SFINAE for checking id none method exists  */ template <class T> static auto hasNoneMethod(int)     -> std::integral_constant<bool, std::is_same<T, decltype(T::none())>::value>; template <class> static auto hasNoneMethod(...) -> std::false_type;  /**  * Type-Function  */ template <typename T> struct HasNoneMethod: decltype(detail::hasNoneMethod<T>(0)) { };


import java.util.ArrayList;     import java.util.Collections;        ...      or     import java.util.*;      Is there any execute time difference according to usage ? Which one should I prefer to use?


How do different difficulties work on story missions?

When selecting a story mission, I can choose between "Easy" and "Hard".  Next to the difficulty, the game displays some kind of level.  However, when you start the mission, you still end up in the common map area with other players.  What exactly changes when you select a higher difficulty?  Is it possible to see other players playing on "Easy" when you select "Hard" before entering the mission zone where respawning is restricted?


A few clarifications regarding convolutional neural networks

When reading about the transforming the fully connected layer into convolutional layer, posted in .  I just feel confused about the following two comments:      It turns out that this conversion allows us to "slide" the original ConvNet very efficiently across many spatial positions in a larger image, in a single forward pass.   A standard ConvNet should be able to work on any size image. The convolutional filter can slide across the image grid, so why do we need to slide the original ConvNet in any spatial positions in a larger image?  And      Evaluating the original ConvNet (with FC layers) independently across 224x224 crops of the 384x384 image in strides of 32 pixels gives an identical result to forwarding the converted ConvNet one time.   What does "strides of 32 pixels" mean here? Does that refer to the filter size? When talking about 224*224 crops of the 384*384 image, does that mean we use a receptive field of 224*224?  I marked these two comments as red in the original context.


The special linear group $\text{SL}_n(\mathbb{R})$ is its own commutator

Let $SL_n(\mathbb{R})$ be the set of $n\times n$ matrix with determinant one. Where can I find a proof that $[SL_n(\mathbb{R}),SL_n(\mathbb{R})]=SL_n(\mathbb{R})$? I've seen this result mentioned in several places, but couldn't find a proof.  For reference, the commutator $[SL_n(\mathbb{R}),SL_n(\mathbb{R})]$ is defined as the group generated by the set of all elements of the form $a^{-1}b^{-1}ab$, with $a,b\in SL_n(\mathbb{R})$.


I'm new to this but I have a question, when someone only tells you part of the truth for example a conversation:     Me: hey I bought a new car   Saying I bought a new car, but hiding the fact that its second hand. I remember someone telling me this and that the media does it. Is this shadowing or something?


Homeomorphism between punctured plane and cylinder

I am asked to prove that the cylinder and the punctured plane are homeomorphic.   I understand that I need to find a function that maps every point in the plane to a point on the cylinder.   I can represent every point on the plane in polar coordinates and now I just need to find a mapping from each point in the plane in R^2 to the cylinder in R^3.   I have found that a solution is $f(r\cos\theta,r\sin\theta)=(\cos\theta,\sin\theta,\log(r))$ which makes sense except I cannot understand why  $f(r\cos\theta,r\sin\theta)=(\cos\theta,\sin\theta,r)$ would not be a solution. Since $r \in (-\infty,\infty)$, wouldn't this still result in a cylinder?


How to set the text in sans-serif without using \tcblower?

When defining a tcolorbox-environment, there is the option fontlower available. However I have yet to discover to invoke that setting without using \tcbolower. Is it possible to get the content in the box set in sans-serif without using tcblower? I would prefer a native solution instead of a) using an unnecessary command, b) that dashed rule/line and/or c) using a work-around to circumvent the production of said rule. Screenshot of problematic MWE  Problematic MWE \documentclass[ parskip=false ]{scrartcl}  \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[english]{babel}  \usepackage{tcolorbox} \tcbuselibrary{skins} \newtcolorbox{specialnote}[1]{ fonttitle=\Large\sffamily, halign title=center, sharp corners, colback=white, title={#1}, width=(0.85\columnwidth), center, enhanced, frame style={ top color=black!70!white, bottom color=black!50!green }, boxrule=2mm, fontlower=\sffamily, }  \listfiles  \begin{document} \section{Just some words without meaning} Abc. Def.  \begin{specialnote} {Look look!} \tcblower asdfasdf \end{specialnote}  \end{document}


Calculating Hubble's constant at earlier times

I want to calculate Hubble's constant at some redshift $z$. I have found the following formula:  $$H^2=H_0^2\left(\Omega_m\left(1+z\right)^3+\Omega_{\Lambda}\right)$$  Now it's obvious that at higher redshift $z>0$ (earlier times) the Hubble's constant $H$ increases, which should not be the case. Why can't I use this formula and which formula should I use then?


Why the manipulator is not in the center

I want the manipulator to be like in the picture:  But when I select the car the manipulator is not in the center of the object.  How can I do this? the manipulator is visible in the center of the object


What are the good references on theory and applications of path integrals and partition functions in theoretical high energy physics?

I have recently been involved with many papers (related to black hole information paradox, etc) in which the concepts of (Euclidean) path integral and partition function are used extensively. Of course I have seen these in a standard QFT course (like Peskin), but still I feel uncomfortable and need to know more about the mathematical framework and physical applications and intuitions. Could you please introduce some good advanced textbooks (or book chapters) on this subjects?


Is there a command line tool that could connect to wifi and takes ssid and pass as arguments?

Currently I am using nmtui for selecting a spot.  I would like to connect to a wifi spot from command line.  I expect there might be a tool that would work this way  connec2wifi -s somessid -p ****   Where -s is ssid and -p is password  or even like this?  connec2wifi  somessid *****   Also, if there is no such tool. What would be the best way to implement it?


When I am trying to plot the function x^0.5 / ( x^0.5 + 10^0.5 ), the plot will only start at x=1 but not at x=0. See the following MWE:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}   \begin{axis}[     axis x line=bottom,     axis y line=left,     ytick={0,0.5,1},     xmin=0, xmax=10, ymin=0, ymax=1   ]      \addplot[mark=no,black,very thick,domain=0:20]{x^0.5/(x^0.5+10^0.5)};     \addlegendentry{}   \end{axis} \end{tikzpicture} \end{document}     Modification  If I use the same code but plot only the function x/(x+10) everything works fine.  I tried to play around a bit with the domain property and if I set it for example to 0.0001 the plot starts in the origin. However, the function has a messed up shape between x=0 and x=1.  \addplot[mark=no,black,very thick,domain=0.0001:20]{x^0.5/(x^0.5+10^0.5)};     Question     How do I get the function properly plotted in the range x=0 and x=1?


Do older versions of cards use the card types printed on the newest version?

On the older versions of the Magic: The Gathering card  the card type was listed as "Summon Lord" but on the newer versions it is listed as "Merfolk Lord".  If I play the old version of the card does it use the new card type or the old card type?


What bizarrities lurk within the decimal expansion of an irrational number?

i.e. can we write  $\pi = 3.14159\dots X\dots$  where $X$ consists of (say) $10^{100}$ consecutive zeroes?  [Originally asked on reddit without response :-( ]


In first step of Ubuntu installation: crash screen

I am a Java programmer and I want to install Ubuntu 13.10 to use for my programming needs. But I have a problem. On my first step of installing Ubuntu X86 (I am a newbie) when I go to setup screen in boot, the screen will crash:    But on another PC this works fine.   Monitor: CRT 17-inch (Might this be the problem?) CPU: Intel dual E2200 2.2 X86 RAM: 2gb Graphics Card: Nvidia 9500GT


Reference for easy understanding of calculus

Can you please suggest some books or websites for higher secondary school student for easy understanding of calculus?(Just I want to learn to carry out basic calculations)


How to remove Ubuntu partition from Windows 7? Which partition is it?

A similar question has been asked here: , and I've used the advice that was posted.   However, I still can't figure out which of the partitions is Ubuntu.  Here's a screenshot after I run diskmgmt.msc    I need a fresh install of Ubuntu since my current one has suddenly stopped working. I had used .iso image by mounting the image and installing it on a thumb drive when I partitioned it.  To do the above, do I need to remove the partition first from diskmgmt.msc and then go about partitioning it again from the image like I did the first time around?   Update. I get "Boot error" when I try to run the Ubuntu installer by booting from USB. When I press enter, it takes me to the grub screen. Do I need to use Windows recovery disk to repair so that grub is no longer there? (This problem was resolved)  I have now attached the screenshot that I get when I choose "Something else" when the installer asks me how I want to partition my disk. It seems the 52.64 GB was the one with Ubuntu on it. I was confused because according to the diskmgmt.msc it's 100% free. . I have deleted ext4 and swap, restarted the install, selected "Install Ubuntu alongside them" and that seems to have worked.  Thanks everyone for the advice!


Are these two writings of Planck's Law the same thing?

I checked one of the other  - and I still seem to have a different equation than they offer (as far as I can tell). I'll use the notation the books used, btw.  In one of my reference books, they first derived the Rayleigh-Jeans formula (I can include how they derived it, if that will help):  $$u(v,T) = \frac{8\pi v^2}{c^3}k_BT,$$  ($k_B$ - Boltzmann constant, $v$ - frequency, $T$ - temperature)  Then they "re-derived" Planck's formula by replacing the integral with the summation and ended up with:  $$u(v,T) = \frac{8\pi v^2}{c^3} \frac{hv}{e^{\frac{hv}{kT}}-1}$$  ($h$ - Planck constant)  However, the next book I looked at puts Planck's Law in terms of $\lambda$:  $$u(\lambda) = \frac{8 \pi hc\lambda^{-5}}{e^{\frac{hc}{\lambda kT}}-1} = \frac{8\pi}{\lambda^5}\frac{hc}{e^{\frac{hc}{\lambda kT}}-1}$$  By the way, the Rayleigh-Jeans law the second book derived is:  $$u(\lambda) = \frac{8\pi kT}{\lambda^{-4}}$$  My questions are:  If both functions are valid, why are only one of them mentioned in each book?  Why can't I find the function with $v^2$ on Wiki, or PSE... is the first book wrong?


Which of these film introductions demonstrate the correct use of English Grammar? I have used example (1), but have been taken to task for so doing.   Eagle Films present  Eagle Films presents


Strange search criteria in Stack Overflow

I am daily follower of Stack Overflow and I have seen one weird tag. When I click on a particular tag then all the questions regarding that tag will be display, right? Check this image:   Is this correct? Shouldn't it only display JavaScript questions here?


Center text vertically in a text box Illustrator CC

I know it's not possible in CS5, now we have CC with more functions so does anyone know if there is a button to centre type vertically in a text box in Illustrator CC?   I am creating lots of templates with text boxes that have many different numbers of lines and are being edited frequently so type needs to sit in center of box vertically automatically. The workarounds in other threads do not help me, for example selecting the boxes elements above and below them to centre each time content is updated is not an efficient method as there are over 30 text boxes multiplied by 25+ templates.   QUESTION ANSWERED: This functionality is not supported in Illustrator CC.  Many thanks.


Im trying to make a python program, and i just can't find any information on Google on how to just execute a non-python file from python (with an if statement).  For Example:  if abc == "abc":     "Execute ThisFile.sh"   EDIT: this was marked as dupe, but I am not trying to run a single command, I want to execute the entire file.


how do i get power armour training in fallout new vegas

I have blown up the brother of steel and I cant do arcades quest is their any other ways of getting power armour traning


Looking-up the values of one worksheet in another worksheet

Basically, I could do this manually, but as the data is huge, it would take a lot of time. I am sure there must be a formulaic way of doing it.  I have two worksheets in Excel.  Worksheet 1.  Column-A        Column-B Device Names    Total numbers Device A           19  Device B           81 Device C           12  Device D           21  etc.               etc.   Worksheet 2.  Column-A         Column-B Device Names   Total numbers Device D Device S Device Z Device S etc.   I need the formula which will look-up the Device names in Column-A/Worksheet 2 in ColumnA/Worksheet 1. If the device names in worksheet 2 and worksheet 1 match, the data in Column-B of worksheet-1 should be transferred to Column-B in worksheet-2.


Does recent paper show Bohmian mechanics is correct?

The following paper was recently featured in a German science magazine (Spektrum der Wissenschaft):  (DOI:10.1126/science.1501466)  The abstract reads     Weak measurement allows one to empirically determine a set of average trajectories for an ensemble of quantum particles. However, when two particles are entangled, the trajectories of the first particle can depend nonlocally on the position of the second particle. Moreover, the theory describing these trajectories, called Bohmian mechanics, predicts trajectories that were at first deemed “surreal” when the second particle is used to probe the position of the first particle. We entangle two photons and determine a set of Bohmian trajectories for one of them using weak measurements and postselection. We show that the trajectories seem surreal only if one ignores their manifest nonlocality.   To what extent does this show Bohmian mechanics is correct in the sense that it explains things normal QM does not explain?  Unfortunately I had to realize I don't know enough about the subject to understand the full paper. I would just like to know if they actually claim to have experimentally shown that an interpretation of QM is distinctly different from standard QM.  I am particularly asking in light of thoughts like .  EDIT  I first accepted the answer given by @Timaeus below. There are two reasons I removed the acceptance tick again:   I discussed with a friend who knows a lot more than me about weak measurements. He said they are not really completely understood yet, nevertheless give surprising empirical results. These seem to be hard to reconcile with the standard interpretation of quantum mechanics, though a lot easier to reconcile with things like Bohmian mechanics. It is hard to read from the papers if it actually shows distinguishing features between the interpretations. Now Timaeus argued that they can't because the "interpretations" by definition only predict the same results. Well, apparently they don't so I will repeat my question slightly differently: Does this paper show that Bohmian mechanics is correct and that the standard interpretation is not? There has been  by the same group that in fact won the "Breakthrough of the year" award. From the abstract:      A consequence of the quantum mechanical uncertainty principle is that one may not discuss the path or “trajectory” that a quantum particle takes, because any measurement of position irrevocably disturbs the momentum, and vice versa. Using weak measurements, however, it is possible to operationally define a set of trajectories for an ensemble of quantum particles. We sent single photons emitted by a quantum dot through a double-slit interferometer and reconstructed these trajectories by performing a weak measurement of the photon momentum, postselected according to the result of a strong measurement of photon position in a series of planes. The results provide an observationally grounded description of the propagation of subensembles of quantum particles in a two-slit interferometer.


Algorithm to see if two voxels are interconnected

I'm looking for a good algorithms for the following problem: Given a 3D grid of voxels (which may be either empty or filled), if I pick two non-adjacent voxels, I want to know if they are connected to each other by other voxels.  For example (to illustrate the situation in 2D), where # is a filled square:    1 2 3 a # # # b # # c # # #   If I pick a3 and c3, I want to determine as quickly as possible if they they are connected; if there is a path between a3 and c3 through filled pixels. (The real situation is in a 3D voxel grid, of course.)  I've looked at floodfill algorithms and path finding algorithms, but I'm not sure which to choose. Both do unneccesary work: Flood fill tries to fill all voxels, but this is not needed. Path-finding algorithms are usually concerned with finding the shortest path, which is also not necessary. I only need to know if there is a path.  What algorithm should I be using?  Edit: based on the comments, I think should add the following: the content of the voxels are not known in advance, and also, the algorithm is needed to detect if removal (emptying) of a voxel would cause the group of voxels to break into two or more smaller groups.


While using nohup to put a command to run in background some of content appear in terminal.  cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: Input/output error   I want to save that content to a file.


T-SQL How can I use a variable in the WHERE IN clause?

I can do this and it works (but would like something more simple):  Declare @PropIDs        varchar(50) Set @PropIDs = '1, 2'  IF OBJECT_ID('dbo.TempProp') IS NOT NULL DROP TABLE dbo.TempProp  CREATE TABLE [dbo].[TempProp](     [PropCode] [VarChar](3) NULL)  Set @Sql = 'Insert Into TempProp Select PropertyCode From Property where PropertyID In (' + @PropIDs + ')'  Execute (@Sql)   But I wish I could do just this:  Declare @PropIDs Set @PropIDs = '1, 2' Select PropertyCode  Into #TempProp From Property where PropertyID IN (@PropIDs)   It is the "...Property IN (@PropIDs)" that is giving me trouble. Any suggestions?


'starting version 219' bug after the 15.04 update

After update my system to 15.04, I have an error message at the boot: 'starting build 219'.  The bug is known, its recommend to go to console mode and enter this command:  sudo systemctl enable sddm.service -f   But when I enter this command I get an error message:  Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)


Will malware in Windows affect Ubuntu in other partition?

If I run Ubuntu and Windows on a single machine in separate partitions, will viruses and other bad migrate between the two operating systems? In other words, will bad stuff under one OS infect the other?


How do I show a message with username and date at login?

How to show the message "hello $username, today's date is $date" as soon as you login to Ubuntu.


I want my baby back bounty or my bounty back baby

So I put a bounty on something. Then I figured it out. Can I just wait the next 7 days for it to expire and then get my points back? Is there any way to salvage them? Please, people, I'm desperate for SO fame and fortune.


Unable to install Skype in Ubunutu 12.04

I downloaded Skype for Ubuntu from . I tried to install it with the command sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb but the installation failed. The following lines were displayed in the terminal:  dineshkumar@dineshkumar-desktop:~/Downloads$ sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb Selecting previously unselected package skype. (Reading database ... 169017 files and directories currently installed.) Unpacking skype (from skype-ubuntu-precise_4.2.0.11-1_i386.deb) ... dpkg: dependency problems prevent configuration of skype:  skype depends on libqtwebkit4 (>= 2.2~2011week36); however:   Package libqtwebkit4 is not installed.  skype depends on libxss1; however:   Package libxss1 is not installed. dpkg: error processing skype (--install):  dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme ... Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Errors were encountered while processing:  skype   Why did the installation fail and how could I install Skype from the .deb file that I have?  I checked the question  but found it of no use. The problem being discussed there was about Skype malfunctioning after an update. But in my case, I couldn't even install Skype properly.


What statistical test do I use for differences in proportions?

I have two groups of samples with a proportion of mutations in each sample being a particular type (the proportions are represented as a fraction of 1). How to I check if that type of mutation is significantly likelier to happen in one group over the other?


Inline bash program has incorrect mv usage

In my current directory, I have multiple subdirectories that contain files. I'm trying to move those files from the subdirectories to my current directory. To this end, I've created this inline bash program: for i in */ ; do for j in $f* ; do mv "$i$j" $PWD ; done ; done When I run this program, however, I'm prompted by the correct use format: usage: mv [-f | -i | -n] [-v] source target        mv [-f | -i | -n] [-v] source ... directory  I'd appreciate any clarification as to why this is happening. Thanks!


A good Open Source book on Analytic Geometry?

Hi my course specifically talks about :  Cartesian and Polar Coordinates in 3 Dim, second Degree eqns in 3 vars, reduction to canonical forms, straight lines, shortest distance between 2 skew lines, Plane, sphere, cone, cylinder, paraboloid, ellipsoid,hyperboloid of one and two sheets and their properties.  This is merely indicative, and I would really like if the book talks about these (atleast) and some more. Would appreciate if it contained solved examples and exercise problems as well  Help Much Appreciated, Soham


Can a character save against a harmful spell they thought to be harmless?

It's a pretty simple question, but I can't find a definite answer:    The cleric tells the warrior he is going to cast a Cure spell on him (harmless spell). The warrior says ok. The cleric instead casts a Inflict Wounds spell (hostile spell). He succeeds at a Bluff check, the warrior doesn't realize that the incantation is different.   Can the warrior try to save against the harmful spell?


HELP Creating customized version of Ubuntu

Pretty much all I want to change is the theme, icons, login screens, logo's, wallpapers etc. but I want a .iso that keeps the theme changes I made and can be installed on my brother's/friend's/family's computer like it was a brand new install of Ubuntu stripped of my personal info, but not the theme changes. I just want to simplify it for them a bit. Almost like a new distro, but not. Just a face lift that can be distributed to less tech informed people in the community.  Any help?


Old sci-fi book where a tunnel with varying values of pi leads to alien civilization

I'm looking for a book I read as a kid (somewhere around 1985-1990 and probably published before this since it was translated to my language). The title says pretty much all I remember about the book. However the memory has stayed with me for a quarter of a century, so I'm desperately trying to find out what it was.  Other things I remember are the aliens looking relatively humanoid (not very sure about this), the aliens capable of shaping their surroundings with the power of the mind and advanced medicine. I also think you were able to travel faster near the center of the tunnel, along a shaft of some kind(?). I know this is all very vague, but I'm hoping someone can help.  Oh, and I do not think it was 'The Way' by Greg Bear.


I have a listview and when it clicks on a certain option I want it to create a new intent. Like a menu item. This is my first time working with list views, so I'm probably just missing the right way to do this, but is there an easy fix?   private void registerClickCallback() {     ListView list = (ListView) findViewById(R.id.mainlist);     list.setOnItemClickListener(new AdapterView.OnItemClickListener() {      @Override     public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {         TextView textView = (TextView) viewClicked;         Toast.makeText(main.this, position, Toast.LENGTH_SHORT).show();         if(textView.getText().toString() == "my Profile"){             Intent intent = new Intent(this.getApplicationContext(), myProfile.class);             startActivity(intent);         }     } });      cannot resolve method 'getapplicationcontext'


NullPointerException in binary search tree

Each time I run it, I get a NullPointerException.  public StrongBuilder inorder() {     return inorder(root);  }  private StringBuilder inorder(Node root) {     StringBuilder val;     if (root != null) {         inorder(root.getLeft())      }     val = new StringBuilder().append(root.getValue().getAccountNumber()).append(root.getValue().getName());     inorder(root.getRight());     return val; }   Can anyone help spot the error for me? Thanks.


I'm trying to make Wheat    How to bend this object without affecting target size?  When I add this Object in Curve modifier with NurbsPath in object section my object changes sizes and moves, looking broken.  Screenshot broken object      Broken Wheat     I tried select nurbs, Ctrl+A and choose Scale and Rotation, and object still resizes and looks broken  Here is my project file


Unable to get Pwnhammer on Terraria on Android

I've killed the Wall of Flesh twice now on Android, but I've never been able to get or even see the Pwnhammer, so now I'm stuck and I can't get any better ores.


Good evening everybody, excuse me for such question, but i totally dont understand how to use .bib file for references in article, can somebody explain me step by step moves, how to include the file so that my WINEDT will see it and use it ? How to create bib file properly. Which folder should i put it ? Thank you


prove that $|{\{X\subseteq\mathbb{N}|\ |\mathrm{X|={\aleph_{0}}}\}}| = 2^{\aleph_{0}}$

I need to prove that:  $$|{\{X\subseteq\mathbb{N}|\      |\mathrm{X|={\aleph_{0}}}\}}| = 2^{\aleph_{0}}$$. it's allowed to use the fact that $|P(\mathbb{N})|=2^{\aleph_{0}}=|\mathbb{R}|$ - this is the original form of the Q.  It's written terribly, and that's a part of why I failed to prove it. the Q is essentially: prove that the cardinality of the SET of all the infinite sub-sets of $\mathbb{N}$ (referred as $\mathrm{X}$), is equal to $2^{\aleph_{0}}$. further more, I'd rather prove that without using onto/one-to-one function, only if possible, in the tools of elementary set theory (meaning, without ZFC)


Compute $\lim_\limits{n\to\infty}a_n$ where $a_{n+2}=\sqrt{a_n.a_{n+1}}$

I managed to show that the limit exists, but I don't know how to compute it.  EDIT:  There are initial terms: $a_1=1$ and $a_2=2$.


Is there a way to start any program instead of windows explorer?

Im making a kind of information terminal, is there a way to start my program instead windows 7 desktop? Not together but only my exe program.


Old short story with multidimensional being/monster

As I remember the being from a multi dimensional universe seemed to change form as different parts of it interacted with our 3 dimensional universe.  I read it in the 1963 paperback edition of The Best of Science Fiction edited by Groff Conklin.  is a list of the contents.  The  has stories that are not in the 1963 edition.  Anyone familiar with either edition should be able to identify the story.


Why does a stable orbit of $H$ atom contain an integer number of de Broglie wavelengths?

I was trying to understand why a stable orbit of a hydrogen atom has to satisfy that the orbit length must be a multiple of de Broglie wavelength.  I have seen some related questions like .  But the answers seemed not very clear to me. "For the system to be stable, that is, the electron shouldn't cancell itself out". I agree with "shouldn't cancel out" But I didn't understand why only an n*π would be chosen.   I've known it should be a condition for "standing wave", but a standing wave is not necessarily n*π, is it? I'd like to know in detail about why it's stable. Moreover, what if it's an ellipse orbit? Thank you all in advance!


How to prove ~ (~P & ~Q) : P ∨ Q by natural deduction

Here's another of Tomassi's exercises I can't solve (Logic, page 106):  ~ (~P & ~Q) : P ∨ Q   I have to use natural deduction and the only rules I know are:   assumptions, modus ponendo ponens, modus tollendo tollens, double negation, reductio ad absurdum, conditional proof, v-introduction, v-elimination, and introduction, and elimination.   Tomassi's proof consists of 14 steps.  Thanks for the help.


ProLiant SE316M1 + Intel S3500 SSD + Smart Array P410 512MB. Battery (BBWC) needed?

I'm looking to replace our SQL Server:     HP Proliant DL360 G4   2x 64-bit Intel Xeon 3.60 GHz, 1M Cache, 800 MHz FSB   4GB RAM DDR2   HP Smart Array 6i   2x 146GB SCSI 15K (RAID 1)   With this:     HP ProLiant SE316M1   2x Intel Xeon L5520 (8M Cache, 2.26 GHz, 5.86 GT/s Intel QPI)   Nehalem   16GB RAM DDR3   HP Smart Array P410 512 MB BBWC Cache   2 x 120GB Intel DC S3500 SSD (RAID 1)   I'm also upgrading from SQL Server 2000 and Windows 2003 to SQL Server 2008 R2 and Windows 2008 R2.  I understand the SE316M1 is basically a DL160 G6.   I know our current setup is so ancient (10-year-old) that almost anything can be a big improvement. And this new setup is not a big deal either (5-year-old and pretty unexpensive). But I want to do something as good as I can with my limited budget, but also very reliable.  My biggest concern is the P410 Smart Array and the SSDs (Intel DC S3500). I understand they're compatible, the S3500 is a decent and reliable SSD, and that the P410 won't be a bottleneck for the SSDs.  But what is the Battery Backed Write Cache (BBWC) Module for? Is it a must? What would I be missing in this setup if I don't have it? I'm reading this: . Would I loose performance whith those Intel SSDs? The server will be protected with a UPS. Sorry, I'm a bit confused here! Thanks!


Profile page looks weird when you earn a new privilege

So far, I've reproduced this with the Android 4.4.2 default browser and Google Chrome (55.0.2883.87 m).  This is, at least, present on  and on .  On smaller screens (320px width), the profile looks incredibly weird.  This is how it looks like:      And this is how it looks like on my phone:    This is what the page looks like, when viewed on a desktop:    The page seems fine to me when you don't have the "You earned a new privilege" showing.


How to quickly calculate large factorials by hand

How would I calculate something like 30! by hand? Is it necessarily tedious? Or are there some techniques to make it faster and easier?


How do we create getters/setters in APEX, and why do we need {get; set;}?

In trying to create getters and setters for my APEX classes, I am creating standard methods such as:  public String getName() {     return name; }   But, I noted that APEX supports C#-like shorthand, i.e. {get; set;}. When attempting to use this shorthand - anticipating it will create the getName method automatically - I receive an error that the method does not exist.  I assume that the shorthand was not made to support this type of usage, but it does then beg the question: what is its purpose? I also noted that it is required that the variable be declared public. Again, if the variable is already made accessible from outside the class, defining a getter and setter would seem redundant.


I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance:  Matches   CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT   No Match   aWC2H 7LT WC2H 7LTa WC2H   How do I solve this problem?


Meaning of square brackets [] in MS-SQL table designer?

I have a copy of an existing database with existing records. when i was playing around with the table designer and noticed some of the column names have [] around them. they all seem to be arbitrary typed (float, datetime, netext, nvarchar etc) and there is nothing in column properties that gets rid of the []. I tried to rename delete the [] but it reappaears as soon as I exit edit.   according to  post, it is a keyword column for xml columns? but none of those columns are xml columns. Would someone kindly explain the purpose of this to a ms-sql newbie? thanks


I need to create closed network for few computers running Windows XP connected to wireless router. Can some one give me some pointers?  I configured the routers wifi and security, set device ip to 192.168.0.1 and dhcp range of 5 addresses (192.168.0.100-104). Computers connect to my wifi network and can ping router but can't see each other in network. I turned on file and printer sharing and shared appropriate folders and set permissions. I added all computers ( with unique names ) to the same workgroup called ABC and restarted them. They should see each other now but they don't, nor I can ping them  (I did this same setup with 5 pc running Windows 7 and they immediately showed on HomeGroup so now I can't figure out what is wrong with this). Firewall is disabled and router is tested and configuration ok.


Why do I have suggested edits to review, but there are none in the queue?

Look at this image:    That was on the  site. I have the ability to approve suggested edits that are proposed. This number sits at 4. However, whenever I click the lovely button, it leads me to an empty queue.    Thinking that someone else may have reviewed them (and it must've been at a really nifty speed), I decided to let it go. However, the number won't go back. Instead, it goes up.  Could there be something wrong with this?


ascending/descending in LINQ - can one change the order via parameter?

I have a method which is given the parameter "bool sortAscending". Now I want to use LINQ to create sorted list depending on this parameter. I got then this:  var ascendingQuery = from data in dataList                       orderby data.Property ascending                       select data;  var descendingQuery = from data in dataList                       orderby data.Property descending                       select data;   As you can see, both queries differ only in "ascending" resp. "descending". I'd like to merge both queries, but I don't know how. Does anyone have the answer?


Is it possible to write extension methods for Console?

While looking at  and it's answers I thought that it would be a good idea to write an extension method for System.Console that contained the desired functionality.  However, when I tried it, I got this compiler error      System.Console': static types cannot   be used as parameters   Here's the code:  using System; using System.Runtime.CompilerServices;  namespace ConsoleApplication1 {     public static class ConsoleExtensions     {         [Extension]         public static string TestMethod(this Console console, string testValue)         {             return testValue;         }      } }   Is there another way of creating extension methods for static types? Or is this just not possible?


fastest way of searching for a text in a file (not file name) including the root volume

Which is the fastest search method in linux to search (only) for a text inside whole linux file system (NOT JUST A SINGLE FILE) the search needs to be performed on all the files including the root binaries.


Without appealing to choice, can we prove that if $X$ is well-orderable, then so too is $2^X$?

Without appealing to the axiom of choice, it can be shown that (Proposition:) if $X$ is well-orderable, then $2^X$ is totally-orderable.  Question: can we show the stronger result that if $X$ is well-orderable, then so too is $2^X$?  Proof of Proposition. Pick any well-ordering of $X$. Then the lexicographic order totally orders $2^X$.  More explicitly: for any two $f,g \in 2^X$, define $f < g$ iff   there exists $x \in X$ such that $f(x) \neq g(x)$, and if $x \in X$ is minimal such that $f(x) \neq g(x)$, then $f(x)=0$ and $g(x)=1$.   It can be shown that $<$ totally-orders $2^X$.


Let G be a simple planar graph on 13 vertices. Prove that at least one of G and its complement G is not planar.  Can we say that:  e<=3n-6 , where n = number of vertices $n(n-1)/2$ is the total number of edges  in graph. Thus let's say that n = 5 , if we substitute it to $n(n-1)/2=e<=3n-6$ we will get that $10<=9$ which is not right. Actually we should substitude 13 i think to formula described before. From this point if G isn't planar , then G complement isn't planar as well? Is it possible to show it in this way?


Why didn't Harry Potter move out of the Dursley's house after he discovered he was filthy rich, particularly when he was mistreated by the Dursleys?

With so much money, it is easy for Harry to move out of the house where he is mistreated and live in comfort somewhere else. Even though he is still a boy, it should not be difficult for him to simply pay lots of money to one of his Gryffindor school-mates' parents to put him up at their house. Besides, after becoming a pay-master, he will surely be treated like a king. Why put up with the Dursley's when he can live like a king?   It seems like a no-brainer and easy task for Harry to move out of a home where he is treated with disdain. Why didn't he?


Can energy be taken out of the QFT vacuum?

There have been recent questions about the vacuum. In my simplified knowledge the vacuum is like a ground state energy level, and also that there might even exist other lower energy levels than the vacuum we find ourselves in. The sea is a soup of created and annihilated pairs of virtual particles with virtual energies and momenta. In a normal sea on earth, which also represents a ground state of water, energy can be taken out of random waves by the clever construction of valves that allow only one way motion of water. Is it conceivable that a  gadget of similar function could be found for the vacuum sea, or is it forbidden by conservation laws? My intuition tells me that it might be possible if GR is taken into account, but my physics knowledge does not stretch to support this. Edit : An explanation of why I am asking this question: Let me expand on the example of the sea. The energy from the waves comes from either tides, i.e. gravitational forces, or wind (temperature differentials). If these were missing the oceans would be like glass representing a unique ground state of the gravitational well of the earth. In an analogy, a gravitational wave going through the vacuum  would be supplying energy to the vacuum sea. I have been thinking of this analogy ever since cold fusion surfaced and refuses to die out, the most  too. Approached from nuclear physics orders of magnitude the claims seem preposterous. There are people though who believe they have  results of extra energy over input energy, much more than chemical reactions could supply. This set me thinking on vacuum energy and the analogy with getting energy from the sea. A crystal is a prime candidate for any exploration of such concepts and in all cold fusion "successful" results crystals have been used. Now if the effect depended on the vacuum and how much distorted it was by a passage of a gravitational wave at the time of the experiment, or the exact orientation of the crystal, or the type of impurities in the crystal ( F centers etc) one would expect to get haphazard results, and non repeatable by other experimenters. Of course this would be the first experimental evidence of gravitational waves :). Edit 20/7/12 Maybe I should clarify that an acceptable answer in the negative would be one based on conservation laws. I believe that data trumps theory, and next in line are conservation laws,because they are the distillation of an enormous amount of data. Some people seem to think that theoretical definitions can substitute for proof in physics, but physical theories change, solid data do not, and this is physics, not axiomatic mathematics.


Is there a way to assign a symbology automatically based on the file name in QGIS?

In QGIS is it possible that when I create a shapefile and give it a file name e.g. Site, that I can assign symbology to that automatically?  I have a set symbol for Site and many other features but would love it if I could auto assign the symbology based on the file name.  I know this is possible in ArcMap but am trying to find out whether this can be done in QGIS.


Is it safe to have no `/home` partition?

Most of the time I have 2, 3 or more Linuxes (usually ubuntu-family) side by side and I want to limit the number of my partitions.  So, I only use / partition for each of them and never had problems. A home folder is present anyway and I do not see why that should be on a separate partition.  But I see that many people recommend almost as a necessity to have a separate /home partition.  I would see that as an advantage if it could be used for different systems at the same time or something like that, which, while doable, is not what I need, I think, as the home folder contains settings which are very system-specific and also program-specific and program-version-specific.    As far as settings are concerned: using an old home folder/partition with a new system seems useless or even dangerous to me. As far as data files (multimedia, documents etc) are concerned: as indicated in a comment under  answer - a completely separate partition (outside any system installation) and possibly symlinks is a better choice: isn't it?


How do I see what arguments with which a running program was launched in an external cmd prompt?

I have a program in Windows 7 that launches ffmpeg in an external command prompt window but it is impossible to see what arguments were passed in.   Is there a way to see what arguments were given?


Launch an application in Windows from the Ubuntu desktop

I'd like a write a shell script in Ubuntu that does the following:   Boot up a Windows 7 guest OS in Virtualbox, if it isn't running already. Run a shell script in Windows, where the shell script is invoked from the Ubuntu host operating system.   My goal is to create an application launcher on the Ubuntu host desktop for an application on the guest OS. For example, I could create a shortcut for Visual Studio on the Ubuntu desktop that launches Visual Studio in Windows. I've always wanted to be able to launch Windows applications directly from the Ubuntu desktop instead of waiting for Windows to start up before clicking an application shortcut.


How do I get rid of a follower in Skyrim if I'm pretty sure she's dead?

I'd had a Dark Brotherhood initiate follow me for some time. A while back though, I'm almost positive I killed her (I think I was annoyed with her -- might've been in the way of a door or something). I don't know if I'd saved, but either way she's no longer "following" me. I've tried to have other people follow me since then, but they all say something to the tune of "Looks like you've already got someone with you." I don't know if I did actually kill her, but even if I hadn't wouldn't she have grown tired of waiting if that were the issue? I've retraced my steps several times, went back to the Dawnstar Sanctuary to see if she had returned, even tried going through old save slots. Is it possible it's a glitch? Or is there a way to fix it?  Alternatively, is it possible to sacrifice her in Boethiah's Calling in order to get rid of her, or would I need her to actually follow me? (I've never done the quest so I wouldn't know.)     [EDIT: To the people marking this as a duplicate of "How do I get Skyrim to recognize I don't have a follower anymore?", this is not as I am not using PC, I am using Xbox, and therefore cannot use console commands. The other suggestion on that page said to reload, which I have before. I promise, I've researched this many times. If such an answer already existed I wouldn't be asking.]


Combinations of sets raised to the power of a prime modulus: $\binom{p^{\alpha}-1}k \equiv (-1)^k \pmod p$

This is a problem out of the text Introduction to the Theory of Numbers by Niven, Zuckerman, and Montogmery and I am having quite a bit of trouble with it.  I tried to prove it directly, but that didn't work.  The question is:     Let $p$ be a prime and $\alpha$ a positive integer.   Show that $\binom{p^{\alpha}-1}k \equiv (-1)^k \pmod p$ for $ 0 \leq k \leq p^\alpha -1$.   If relevant, I did prove that ${{p^{\alpha}}\choose k} \equiv 0 \pmod p$ for $ 0 < k < p^\alpha $ but I can't seem to incorporate it.


Why do we use Fourier transforms in QFT?

I ask this question, as someone has recently asked me this and I'm not sure I gave them a satisfactory/correct answer.  I explained that in QFT we describe particles (and there interactions) in terms of fields, which fundamentally have a wave-like nature (indeed, solving the appropriate equations of motion gives rise to exponential solutions, suggesting such a decomposition into Fourier modes). In general, we wish to describe discrete excitations in these fields and this requires us to know hoe the field is "constructed". This can be achieved through expressing the field in terms of its Fourier transform, i.e. an infinite sum of the frequencies that constitute it and the excitation modes (amplitudes) associated with each of those frequencies.  Would this description be correct at all? Any corrections, improvements and/or explanations will be much appreciated.


Please tell me how to correctly encrypt the data (username, email, message) sent to the server from sql injections. I can not understand the syntax of the record itself.  My php handler  session_start();  if (isset($_SESSION['captcha']) && $_SESSION['captcha']===$_POST['captcha']){     if (isset($_POST['username']) && isset($_POST['email']) && isset($_POST['message'])){          $username = $_POST['username'];         $email = $_POST['email'];         $message = $_POST['message'];          $db_host = "localhost";          $db_user = "alekspvn"; // Логин БД         $db_password = "123"; // Пароль БД         $db_table = "book"; // Имя Таблицы БД      $connect_db=mysql_connect(HOST, MYSQL_USER, MYSQL_PASS)            or die("No connection with SQL");           mysql_select_db("guests_db",$connect_db);          mysql_query("SET NAMES 'utf8'",$connect_db);          $result = mysql_query ("INSERT INTO ".$db_table." (username,email,message) VALUES ('$username','$email','$message')");         echo json_encode(['success' => true, 'message' => 'Added to db']);     }  } else {     echo json_encode(['error' => false, 'message' => 'Wrong captcha']); }


Had to re-ask the question since I only had a temp account, and  couldn't respond


keyboard no longer repeats keys when held down

I just wanted to make some input where I press a key and the auto-repeat function engages so I don't have to press the 0 key many times to make a long number.  10000000000000000000000000000  This has always worked without fail in the past, but it's not something I do often and I'm not sure where to look next to figure out what might be preventing this.     I've toggled the sliders to change the delay for key repeat, but the only thing I can hang my hat on is that perhaps Lion disables this with the new feature where you hold down some keys (like the vowels, but also some consonants) to get alternate accented characters.  s turns into ß or ś or š and so on....  Am I missing an obvious setting, or is this something that has moved to a hidden setting or is simply a bug that these controls are still around since key repeat is now deprecated?  Comments welcome if anyone doesn't have an answer, but can provide specifics where this does work for them. I've checked two Macs so I'm guessing it's not related to keyboard type or connection method.


How does Facebook detect if I block javascript on my browser?

I had opened my browser setting and blocked Javascript for all websites. But when I tried to access Facebook, it says  "We're sorry, but Facebook doesn't work properly without JavaScript enabled." My question is, how they have detected that my browser is not allowing Javascript?


When I shut down my system, there is a message on the log:   A stop job is running for MySQL Community Server (xs / 10min)   I'm able to quit using MagicSysRq keys, but it isn't seems the proper way to do this.  This is happening at 60% of the time.  I Googled the issue, and I found this question: . I implemented  and , but the issue still persists.  Can somebody suggest a souliton?  I'm currently using Ubuntu 17.04, and MySQL v. 14.14.


A word or sentence that makes no sense until you understand the irregular spelling

English has a "intricate" relationship between graphemes and phonemes,i.e. there is no sure way of knowing how to pronounce something by just looking at its written form.  Generally any language has this property, but English is much more complicated in comparison to - say - Italian (which happens to be my native language).  This fact is known, and I remember stumbling upon a very nice sentence by an English Author, who leverage on this fact and wrote a sentence whose words did not make any sense together, but if you read them, then the "sounds" formed a perfectly meaningful phrase.  I seem to remember something concerning "god" and a "fish"?  Not sure though.  Anybody remember that?


Graphics glitches and artifacts with Ryzen 5 3400G APU

I built a new computer and am now getting weird graphics glitches when browsing the web or streaming video in a browser.        (this one isn't mine, but similar to what is happening to me)  My setup:     (BIOS is updated with latest firmware), 16GB (2x8GB) DDR4 3200  Connected to  (old computer and HDMI cable worked fine with this TV)  I have tried many of the fixes that I found searching online, but none of them seem to completely fix the problem. I have tried fresh installs of the latest Ubuntu 18.04 and 20.04 versions. I have tried a couple methods of updating or changing the kernel versions. Changing resolutions, refresh rates, or scaling does not fix the issue.  Current configuration after fresh 20.04 install:  lsb_release -a  Distributor ID: Ubuntu Description:    Ubuntu 20.04 LTS Release:    20.04 Codename:   focal   uname -a  Linux media-server 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux   lspci | grep VGA  07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c8)   sudo lshw -c video  *-display                         description: VGA compatible controller        product: Picasso        vendor: Advanced Micro Devices, Inc. [AMD/ATI]        physical id: 0        bus info: pci@0000:07:00.0        version: c8        width: 64 bits        clock: 33MHz        capabilities: pm pciexpress msi msix vga_controller bus_master cap_list rom        configuration: driver=amdgpu latency=0        resources: irq:101 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fcb00000-fcb7ffff memory:c0000-dffff


TinyDNS and proper settings for SPF records

I've inherited a TinyDNS configuration that have following entries for SPF:  @domain.com:x.x.x.3:a::86400 @domain.com:x.x.x.103:c:10:86400  =domain.com:x.x.x.3:86400 =mail.domain.com:x.x.x.3:86400 =mail.domain.com:x.x.x.103:86400  'domain.com:v=spf1 ip4\072x.x.x.3 ip4\07231.130.96.103 ptr\072mail.domain.com +mx a -all:3600 'mail.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600 'a.mx.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600   This is the result from   SPF record lookup and validation for: domain.com  SPF records are primarily published in DNS as TXT records.  The TXT records found for your domain are: v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all   SPF records should also be published in DNS as type SPF records. No type SPF records found.  Checking to see if there is a valid SPF record.   Found v=spf1 record for domain.com:  v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all   evaluating... SPF record passed validation test with pySPF (Python SPF library)!   I'm struggling with this from yesterday and cant figure it why this validator returns No type SPF records found. I see in BIND we cand define SPF type record with example.com.  IN SPF "v=spf1 a -all", but in TinyDNS we only have TXT records that we set for SPF, maybe this is a problem?


So I created a Cube in Blender and then I created an Empty beside the Cube (in object mode). Now, when I move the Empty around, the Cube follows... Why?


Access Windows Disks from Ubuntu LiveCD?

I'am right now on my Ubuntu 14.04. I guess and I have a file on my Windows disks (I have three disks) and when I Click on one of them I have this message  Error mounting /dev/sda2 at /media/ubuntu/5208BE9708BE7995: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999,dmask=0077,fmask=0177" "/dev/sda2" "/media/ubuntu/5208BE9708BE7995"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   As I said it's not dual booting with my Windows 10 but it's LiveCD and i am running from my USB


How to link opened file with project tree in NetBeans

I feel dumb asking this question, but I can't find solution to this myself.  When I open several files in editor and switch between them, I have problem finding currently opened file in project or files tree.  I used Eclipse before and every time I changed a tab with file, the project tree set focus for the same file. Is there a way to do something like this in NetBeans?


View outlook calendar in SharePoint 2013

Is it possible to view outlook calendar in SharePoint 2013?  Head of the department wants to view everyone's Outlook Calendar in the SharePoint 2013. Is this possible?  He can view other's outlook calendar in his outlook a/c but he wants to view other's outlook calendar in SharePoint 2013.


Not able to login after upgraded from Ubuntu 16.10 to Ubuntu 17.04

I've upgraded my ubuntu from 16.10 to 17.04. After system restart I'm not able to login with the original password. Any Idea what should I do now?  Below is the screenshot -


Automatic driver search & update on Windows?

I have a Dell laptop issued by my employer, and I always find it a real pain to search for, download and maintain their drivers. It baffles me that there does not seem to be a nice way (product, website, ...) to just download the stuff you need, without hassle. The same goes for the other Windows based laptops in my direct environment.  Are there any (preferably free) automated solutions available? Or do you have a nice workflow - other than searching the manufacturers website - to help smoothing this process?


Use Complete Induction of set theory to prove $\frac{1}{\sqrt{1}} + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + ... + \frac{1}{\sqrt{n}} > \sqrt{n}$.

Proove by the Complete Induction for every $n\in \mathbb{N}, n \geq 1$ $$\frac{1}{\sqrt{1}} + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + ... + \frac{1}{\sqrt{n}} > \sqrt{n}$$.  I know only the basis - $\frac{1}{\sqrt{1}} \geq \sqrt{1}$.  But, I dont know how to do the change from the regular induction to the induction of Set theroy(Complete Induction).


Why using gerunds and infinitives as a noun when the verb has its own noun?

to forgive is a great value Forgiveness is a great value Forgiving is a great value  Does meaning change ? And why ? Grateful to your help


A compound adjective with a double noun: where does the hyphen go?

I have a noun that consists of two words ("impact parameter") that I am trying to turn into a compound adjective to describe a certain type of collision ("high impact parameter collision").  Where, if anywhere, should the hyphens go on this phrase?  The two choices I can't decide between are:   high-impact parameter collision high-impact-parameter collision


Mean Value Theorem: $\frac{2}{\pi}<\frac{\sin x}{x}<1$

I need to show that $\dfrac{2}{\pi}<\dfrac{\sin(x)}{x}<1$ for $0<x<\dfrac{\pi}{2}$.  I know I need to use the mean value theorem, would I just say that since $f$ is continuous in the interval (call it I).  We know $\exists c\in I$ such that $f'(c) = \dfrac{f\left(\dfrac{\pi}{2}\right)-f(0)}{\dfrac{\pi}{2}}$. I don't know where this is going though.  Also, would I need to show $\lim_{x \to 0}\dfrac{\sin(x)}{x} = 1$? Is there a way to do this without L'H Rule?


Elements on review stat popup overlap window rectangle

On MSE (English):        On ruSO (Russian):        On jaSO (Japaneese):        On ptSO (Portuguese):        On esSO (Spanish):        Also note that progress indicator (white/green line) is not centered between values (current, needed) at least when no review completed yet, i.e. zero count.


Can a monk combine Martial Arts with Dual Wielding?

I want to get a clearer ruling of unarmed strike. The way I've read/imagined it is using any part of a humanoid creature's body to hit something else. Fists, kicks, elbows, knees, headbutts, whatever. With a description like that, I imagine it's believable to be able to punch someone twice, go in for a knee-headbutt combo, or stab someone, then punch them. However, when looking at the "Unarmed Strike" in simple weapons, there are zero keywords. No "light" weapon for dual-wielding.  One of my players asked me about making a monk that "dual-wielded" unarmed attacks. Combine with Martial Arts, this type of fighting could yield one quarterstaff attack, one off-hand unarmed strike, and then a bonus unarmed strike from Martial Arts. I doubt I'd be opening any real kind of Pandora's box, but the question remains:  ...Can a monk (or someone with Two-Weapon Fighting) "tri-wield" unarmed attacks without Extra Attack?  [Would it be overly gamebreaking to consider Unarmed Strikes light weapons?]


The inequality $\frac{a}{b}+\frac{b}{c}+\frac{c}{a}\ge 3$

Suppose $a,b,c$ are positive numbers. I would like to prove the following inequality in the most elementary way:  $$\frac{a}{b}+\frac{b}{c}+\frac{c}{a}\ge 3.$$  I think I can prove using derivatives but I need to find a more simple proof.


Passing a read-only parameter in C++: copy or reference, or

I have a template function, that accepts a read-only parameter of the templated type. This is a library function for various platforms, from 8-bit (AVR8) to 32 bit (Cortex). How to pass this parameter?   template< typename T > void f( const T p ){ ... }  template< typename T > void f( const T & p ){ ... }   By value is (probably) more efficient for parameter types that are smaller than a pointer, by reference is (probably) more efficient for parameter types that are larger than a pointer, and/or expensive to copy.   Is there any standard way to abstract this choice, like  template< typename T > void f( pass_efficiently< T > p ){ ... }   ?


Refusal of a visit visa for a resident of Saudi Arabia

I am an expat who's been living in Saudi Arabia for more than 30 years. I have a valid 5-year visa to the UK. I wanted to take my family (4 members including my wife) on a vacation to the UK and this is their first time traveling outside KSA and my home country.  I just moved to a new job (I wasn't between jobs as I moved immediately) recently and the pay in my new job is around £9,000 per month, which is the same as my previous job. Unfortunately, my bank statement does not include the first month's pay from my new employer.  I got the attached letter and I am aiming to change the following. I need your expertise and advice:   I will change it from 2 years to 6 months, as I applied for 2 years. I will include a reference name and number in my employer letter to backup the first point. I asked the landlord to share with me a rental contract. However this will only be  1 month old on my travel date. Any recommendation regarding the ties to Saudi Arabia and that I will return?


If I want to build an online server can I just copy paste a world I created? If so how can i do that. If not what are the basic step to start one?  Thank you


how can I use the shutdown command to hibernate the computer in X hours?

I'd like to hibernate my windows 7 pc in 10 hours after a download is finished. When I execute this: shutdown -h -t 36000  All I get is the shutdown help text. Doesn't matter if I'm in admin or normal for the cmd prompt. Is there something I'm missing? I've tried -t 36000 only with the same results. Same with / instead of -. So either a) it isn't working or b) it has a funny way of telling me about it. Do the power management settings interfere with this command? Update: The /s switch shuts the computer down (not hibernate). /h is a valid switch. Here's a screenshot of my command:


Why this approach in proving the identity $\sin 2\omega+\sin 2\phi+\sin 2\psi= 4 \sin\omega \sin\phi \sin\psi$ does not work?

Before explaining the situation I have read  which deals with the problem and shows a solution.   The problem is as follows:  $\textrm{Prove:}$  $\sin 2\omega+\sin 2\phi+\sin 2\psi= 4 \sin\omega \sin\phi \sin\psi$  $\textrm{Given this condition:}$  $$\omega +\phi+ \psi= \pi$$  However I tried to solve it in a different way, without appending the double angles and summing them together at the end, as it has been suggested by one user to the OP in the preceding question.  My attempt differs from the OP as he has not mentioned an effort into solve the problem, to which it is to be exposed below. In request of proof reading.  Therefore, in my attempt to solve this problem I did what I felt obvious and that was to take the sine function to the whole condition as shown below:  $$\sin \left (\omega +\phi+ \psi \right )= \sin \left ( \pi \right )$$  Grouping:  $$\sin \left (\omega + \left(\phi+ \psi\right) \right )= \sin \left ( \pi \right )$$  $$\sin \left (\omega + \left(\phi+ \psi\right) \right )=  0 $$  $$\sin \left(\omega\right) \cos \left(\phi+ \psi\right) + \cos \left(\omega\right) \sin \left(\phi+ \psi\right) = 0 $$  $$\sin \omega \left(\cos \phi \cos \psi - \sin \phi \sin \psi\right) + \cos \omega \left(\sin \phi \cos \psi + \cos \phi \sin \psi \right) = 0 $$  $$\sin \omega \cos \phi \cos \psi - \sin \omega \sin \phi \sin \psi + \cos \omega \sin \phi \cos \psi + \cos \omega \cos \phi \sin \psi = 0$$  $$\sin \omega \cos \phi \cos \psi + \cos \omega \sin \phi \cos \psi + \cos \omega \cos \phi \sin \psi = \sin \omega \sin \phi \sin \psi$$  $$\sin \omega \left(\cos \phi \cos \psi\right) + \cos \omega \left(\sin \phi \cos \psi + \cos \phi \sin \psi\right) = \sin \omega \sin \phi \sin \psi$$  Using product to sum identity:  $\sin \omega \left(\frac{1}{2}(\cos (\phi + \psi) + \cos \left(\phi -\psi\right))\right) + \cos \omega \left(\frac{1}{2} \left(\sin \phi \cos \psi + \cos \phi \sin \psi\right)\right) = \sin \omega \sin \phi \sin \psi$  $\sin \omega \left(\frac{1}{2}(\cos (\phi + \psi) + \cos \left(\phi -\psi\right))\right) $ $+ \cos \omega \left(\frac{1}{2} \sin (\phi + \psi) + \sin (\phi-\psi) + \sin(\phi+\psi) - \sin(\phi-\psi)\right)= \sin \omega \sin \phi \sin \psi$  $\sin \omega \left(\frac{1}{2}(\cos (\phi + \psi) + \cos \left(\phi -\psi\right))\right)$ $ + \cos \omega \left(\frac{1}{2} \left(\sin (\phi + \psi) + \sin (\phi-\psi) + \sin(\phi+\psi) - \sin(\phi-\psi)\right)\right)= \sin \omega \sin \phi \sin \psi$  Simplifying similar terms:  $\sin \omega \left(\frac{1}{2}(\cos (\phi + \psi) + \cos \left(\phi -\psi\right))\right) + \cos \omega \left(\frac{1}{2} \left( 2 \sin (\phi + \psi) \right)\right)= \sin \omega \sin \phi \sin \psi$  Then multiplying all by $4$  $$2 \sin \omega \left((\cos (\phi + \psi) + \cos \left(\phi -\psi\right))\right) + 2 \cos \omega \left( \left( 2 \sin (\phi + \psi) \right)\right)= 4 \sin \omega \sin \phi \sin \psi$$  By returning to the initial condition: $\omega +\phi + \psi =\pi$  $$2 \sin \omega (\cos (\pi-\psi)+\cos(\phi-\psi))+2 \cos \omega (2 \sin(\pi-\psi))= 4 \sin \omega \sin \phi \sin \psi$$  $$2 \sin (-\cos \psi + \cos (\phi - \psi)) + 2 \cos \omega ( 2 \sin \psi) = 4 \sin \omega \sin \phi \sin \psi$$  And that's how far I went, I feel I'm almost there but I don't know if I am in the right path or maybe not. Can somebody instruct me where exactly can I relate the double angle of omega, phi and psi?. Why is my method not working?  what did I missed or what should I do to my steps to prove this identity?.


Blogs link from the not existing community page refers to 404

The “blogs” link from the , e.g:        refers to another not existing page:        Looks like blogs link should refer to the same page as for “blog” link in the footer:


What is the probability distribution for this question?

I tried to find the probability distribution for this problem and then calculate the expectation of $n$. I suppose the total states of our problem would be $52^n$ and our desired states would be $52$ combination of n with permutation $52!$ for distinct cards and our probability function will be $p(n)=\frac{n!}{(n-52)!(52^n)}$ with $n = 52,53, ....$ But the summation over $p(n)$ is not $1$. I don't know what is wrong with this solution. Can anybody help? Thank you so much


I have a sensor at some arbitrary orientation (non-zero roll, yaw, pitch) given by quaternion $q_{0}$. I then pitch the sensor to orientation $q_{1}$. When I compute the relative rotation between the two as  $r = q_{1} q_{0}^{-1}$  Then I notice that the relative rotation has roll, pitch and yaw components. Why is this and how do I get a pure pitch from $r$?


How do I mirror an object using the mirror modifier?

How can I mirror a cylinder using the Mirror Modifier in order to get two cylinders?  I want to edit one of the cylinders and get the same result on the mirrored one.


Relation between $SO\left(1,3\right)$ and $SU\left(2\right)$

I've seen it claimed in physics classes that there is an isomorphism of Lie algebras  $$\mathfrak{so}\left(1,3\right)\cong \mathfrak{su}\left(2\right)\oplus\mathfrak{su}\left(2\right)$$ However, the argument used relied on taking complex linear combinations of a basis for $\mathfrak{so}\left(1,3\right)$ so that the resulting basis contained two copies of $\mathfrak{su}\left(2\right)$.   Namely, there is a basis for $\mathfrak{so}\left(1,3\right)$ given by $\left\{J_1,J_2,J_3,K_1,K_2,K_3\right\}$ with  $$\left[J_i,J_j\right]=\sum _{k=1}^3\varepsilon _{ijk}J_k$$ $$\left[K_i,K_j\right]=\sum _{k=1}^3\varepsilon _{ijk}J_k$$ $$\left[J_i,K_j\right]=\sum _{k=1}^3\varepsilon _{ijk}K_k$$ The new elements $J_i^{\pm}=J_i\pm iK_i$ then have the commutation relations of two copies of $\mathfrak{su}\left(2\right)$.   The problem I have with this derivation is that $\mathfrak{so}\left(1,3\right)$ and $\mathfrak{su}\left(2\right)$ are real Lie algebras. So, taking complex linear combinations doesn't really make sense.   Is the stated result true?


How to find out why a SQL query does not produce rows as expected?

I am very new to programming. In my database class, I have to "return only invoices that have a balance due that's greater than 50".  When I run this, nothing shows up. What am I doing wrong?  USE ap; SELECT invoice_number, payment_total + credit_total AS 'payment_credit_total' , invoice_total - 'payment_credit_total' AS 'balance_due' FROM invoices WHERE 'balance_due' > 50 ORDER BY 'balance_due' DESC


Bash history is not remembered in Terminal

My Bash history is remembered when I connect to my Mac via SSH, use iTerm2 or launch bash in the built-in Terminal app (every command I typed in bash is saved) but is not when I just use the built-in Terminal app. I already tried resetting the profiles in Terminal. I also checked ownership and permissions of .bash_history. Later I also tried to delete this file.  didn't help either. My default shell definitely is bash.


A holomorphic bijection from the open unit disc to the complex plane

By Liouville's theorem, there is no non-constant holomorphic function from the complex plane to the unit disc. I wonder what the converse is like--surely there are holomorphic functions on the open unit disc into the complex plane, but are there any bijective ones?


I recently read this article () about data tables. The article contains a bunch of uses for data tables. To communicate the ideas, the author is using some animated gifs if the data tables.  My question is, does anyone know what tool was used to create those animated designs?


TikZ: Bend text so that it follows a line

I have two arrows going from a node on the left to a node on the right. Both arrows are slightly bent. I want to label the arrows with text that is bent just like the arrows. This is as far as I've got:  \begin{tikzpicture} \node (One) at (-3,0) [shape=circle,draw] {One};  \node (Two) at (3,0) [shape=circle,draw] {Two}; \draw [->, thick] (One) to [bend right=45]  (Two); \draw [->, thick] (One) to  [bend left=45] (Two); \node (mental) at (0,1.75) {Some bent text}; \node (non-mental) at (0,-1.75) {Some more bent text}; \end{tikzpicture}


I want to know how much is the integral $\int_{0}^{L}\sin(nx)\cos(mx)dx$ when $m=n$ and in the case when $m\neq n$. I know the orthogonality lemma for the other cases, but not for this one.


How would you evaluate $\sum_{j=0}^t \frac{j}{2^j}$?

According to WolframAlpha, this evaluates to $2^{-t} (-t + 2^{t + 1} - 2)$.


Getting a sharp focus on a 50mm when the subject is at 5m - 10m

I'm a novice photographer with a 450D/XSi. I'm using a 50mm/1.8 prime lens to start out and I noticed that a lot of times my pictures end up not being sharp for stationary scenes. I was mostly using manual focus and switched to using auto focus mainly for this reason. The problem is even with auto focus this happens.  I noticed this mostly happens when a subject is from around 5 - 10 m, and in low light situations. I try to keep the aperture at around f/2.8 to get better sharpness without opening it all the way. I increase the ISO to get better exposure (even though my camera's high ISOs are not that good). But, I do decrease my shutter to around 1/25 s. The image shown is an example of this. The settings are f/2.8, 400 ISO, 1/25s.  I think the lower shutter speed may contribute to this focus problem, but I'm not sure whether it's the only reason. Is the focal length of the lens also a contributing factor here? But, most online material doesn't say anything about focal length when giving recommendations for landscapes (I assume that if it's good enough for objects at infinity, then it should be good enough for objects at 10m). So, I assume this is not the case. Is that right? Is it possible to get some recommendations as to what sort of settings I should aim for to get the best focus given I have a good exposure given I have an objects at 5m - 10m?


I can not access Http Server on Amazon EC2 Instance

It can be so easy. But I can not it.  I run a http server on my EC2 server. And I can access it through localhost.    My Inbound rules:    And my http request with Public DNS (IPv4):    What is the missing?


How do I save/remember last-used window position and size for applications?

When I log in Ubuntu, I would like all windows opened at previous session (terminal and Firefox mainly) to be re-opened automatically at the same size and position.  How to proceed?


Vote change on ANSWER if QUESTION is edited

Similar to this question, but different reasoning:    And I feel like I have to ask a new question so that Jeff will notice.  Someone writes a question. Suppose it's a SQL one. They don't provide version information, so then I upvote an answer that runs nicely in SQL 2008. Then the question is edited to say it's actually SQL 2000. All I can do is put a comment on the answer I upvoted, saying that my upvote only applies because the code is fine in SQL 2008. But in the meantime, the answer that works on SQL 2000 is left languishing somewhere else, possibly never notice because the asker hasn't accepted it. So unless the person who Googles/Bings/Altavistas the solution notices the 15th comment where I write "This doesn't work on SQL 2000", and only notices the 100 upvotes (oh, sorry - I had said 'SQL', so that's not going to apply), the searcher is going to feel misled by this site.  So please, let me know if a question is edited (so that I can change my own answers), and so let me change votes if I feel it's necessary.


Problem on Extremal Graphs: three independent paths

The problem states that:     A simple (or strict) graph with $n$ vertices and $m>\dfrac{3(n-1)}{2}$ edges, has two vertex   joined by three independent paths.   Any hints, ideas or useful results, to attack this problem?


A ranch dressing recipe I found online calls for a few dried herbs and a couple of fresh herbs, specifically fresh chives and fresh Italian parsley.  To save time and money, I'd like to substitute if the fresh herbs for dried herbs. Is it OK to make the substitution if the dressing is allowed to rest overnight, hopefully giving the substitutes enough time to release its flavors? And if so, would it be a one to one substitution (e.g. 1 teaspoon fresh = 1 teaspoon dried)?


Does a Rogue using Use Magic Device for a scroll or wand also need to emulate a class feature?

I'm confused about Rogues and Use Magic Device. I've searched the core book and the Internet for the past 4 hours and can't find the answer to my simple question.   Since a Rogue doesn't have any spells, a spell list or caster level, do you have to emulate a class feature in addition to all other necessary checks to use items like scrolls and wands?


Which is correct: "you and I" or "you and me"?

I was told the correct usage is for example: "My wife and me" but I hear often "I and my wife" or "my wife and I". Google gives 34M results for "My wife and I" and 909K results for "My wife and me" Which is the correct form and why? It occurred to me that maybe it could depend on the rest of the phrase? (subject or object)  "My wife and I are eating an apple" "You can see my wife and me in this picture"


Title of the page in search results and title of google's cached version are different. Why?

Check this:   The title of the first result is "Kansas Gun Laws - Gun Laws By State". Although, on the page google has cached the title is different:  <title>Kansas Gun Laws - Kansas Gun Law - Reciprocity Guide</title>   Google shows the title that has been on the site 2-3 months ago. Google bot has visited the website a lot of times since that, and as you see it even cached it (the latest version is of 15th Sept), however for some reason it doesn't change the title to the new one in the search results.  We use hash-bang URL structure on this website. It completely meets google's requirements for AJAX websites (_escaped_fragment_ stuff). The issue I explained is happening with almost all hash-bang pages that got indexed.  Questions:   Why does it keep old page title in the search results? Can it be connected to the fact that I'm using hash-bang URLs? There are lots of pages on the site that have the same issue, all of them have hash-bang URLs. Another thing I noticed is that Google's "Preview" feature doesn't work for any hash-bang URLs on the site. Did I do anything wrong? It has got cached versions of the pages, why wouldn't it generate a preview?   Thanks.  PS. Here's a weird thing I also noticed: this search query  shows the correct title for the same page as in the example above. Why does google show different titles for the same page when you run different queries?


When converting an array of jpegs to a video file (ogg format) I have been using the -crf option.  What are the valid ranges for -crf? Currently I am using 23.    I cannot find the bookmark I read to know what this flag does and I have spent some time Googling around.  These are the arguments I am using at the moment:  -f image2 -r 10 -i " + _sourcePath + @"\img%05d.jpg -crf 18  -y -r 10 " + _destPath + "\\" + _filename + ".ogg"


Dual screen setup Apple Cinema Displays Mac mini

How do I connect dual screen setup on a Mac Mini?  Mac Mini: Late (2012) Apple Cinema Display 27" Apple ThunderBolt Display 27"  ThunderBolt Port: Apple ThunderBolt Display 27" Tried two different Kanex XD units and did not work.  Kanex XD: Mini display port female to HDMI female converter to HDMI cable to HDMI Port on Mac mini.  Does anyone have a link to a converter that work or an option to hook up?


QGIS styling - displaying an outline around line features in QGIS

I am trying to symbolize a road network in QGIS.  Currently I am using a pen width of 1.86 milimeters to symbolize the roads, however I would also like to outline the roads with a secondary color.  This is easily done for polygons, however I cannot figure out if it is also possible with line features.  Another solution would be to use a buffer to generate polygons from the roads, however this is not optimal, so I would like to avoid this.  FINAL EDIT: I do not think this question exactly has been answered before, at least I couldn't find it. However, the answers in the linked questions could also be applied for my case.


I know this may sound strange but I don't know even how to search this syntax in internet and also I am not sure what exactly means.  So I've watched over some MoreLINQ code and then I noticed this method  public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source,         Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) {     if (source == null) throw new ArgumentNullException(nameof(source));     if (keySelector == null) throw new ArgumentNullException(nameof(keySelector));      return _(); IEnumerable<TSource> _()     {         var knownKeys = new HashSet<TKey>(comparer);         foreach (var element in source)         {             if (knownKeys.Add(keySelector(element)))                 yield return element;         }     } }   What is this odd return statement? return _(); ?


How can I replace harped on with a more positive expression?  The production manager harped on the new quality assurance regulations for nearly an hour.


Python syntax highlighting breaks on quotation mark

A quote mark (') in a comment breaks further highlighting. Example:


Chrome doesn't show in list of browsers when setting default in Windows 10

After an update to both Windows 10 and Chrome (51.0.2704.103), my default browser has cleared:    and clicking the "+" button to choose the default only gives me the option of Edge and Firefox:    Does any one know why this is or what I can do to fix it?


Having trouble indexing and executing a query in O (log n) time.  The query includes an INNER JOIN, an ORDER BY, and an equality operation. If I understand the laws of databases correctly, a query can be indexed and executed in O (log n) time (or thereabouts) if a non-equality operator is not used on more than one column. In this case, I believe the INNER JOIN does count as an equality operator and the non-equality operator would be the ORDER BY portion of the query. This table has upwards of 10,000,000 rows and needs to handle several reads and writes per second.  Using PostgreSQL. This is what the table looks like. As you can see, the column 'Names' is a list property and it is the column that the INNER JOIN goes against:  Age Names                       Date 34  ['carla', 'john', 'sam']    3/13/2011 26  ['json', 'cindy', 'joel']   3/13/2011 72  ['beth', 'amber', 'susie']  3/13/2011 14  ['john', 'jim', 'debie']    3/13/2011   This is the query that we are trying to do:  SELECT * FROM the_table WHERE Age==26 AND Names=='john' ORDER BY Date   My background is from using App Engine's Big Table, so I've used equality operators here to indicate that 'john' should be one of the names in the Names column. This would be an acceptable query in GAE's big table, it would execute in O (log N) time as all Big Table queries are reqyured to do. I am assuming there is a way to do this in PostgreSQL as well since PostgreSQL accepts list data types as columns.  Is this possible to do in PostgreSQL?  If so, how should the index be set up (we can't figure out how to set up an index that takes into account the three properties)?


Is there a string math evaluator in .NET?

If I have a string with a valid math expression such as:  String s = "1 + 2 * 7";   Is there a built in library/function in .NET that will parse and evaluate that expression for me and return the result? In this case 15.


get items in specific summary task folder in SharePoint 2010 via client object model in c#

i want to get items in android via web api web service.  when user click on items web api return values step by step from sharepoint task list.          using (ClientContext context = new ClientContext(siteUrl))         {             context.Credentials = new NetworkCredential(user, password, shp.domainname);              //SP.List oList = context.Web.Lists.GetByTitle(id);             Web web = context.Web;             List list = web.Lists.GetByTitle(listname);             context.Load(list);             CamlQuery camlQuery = new CamlQuery();             camlQuery.ViewXml = "<View Scope=\"Recursive\"><RowLimit></RowLimit>/View>";             //camlQuery.ViewXml = "<View Scope=\"RecursiveAll\"><RowLimit></RowLimit>/View>";             ListItemCollection items = list.GetItems(camlQuery);             context.Load(items);             try             {                 context.ExecuteQuery();             }             catch (Exception e1)             {                 //some code here             }              foreach (ListItem item in items)             {                 AndroidReport andRep = new AndroidReport();                  andRep.id = int.Parse(item["ID"].ToString());                 andRep.title = item["Title"].ToString();                 andRep.rootlevel = int.Parse(item["_Level"].ToString());                 int a = int.Parse(item["ItemChildCount"].ToString());                 int b = int.Parse(item["FolderChildCount"].ToString());                 if(a>b)                     andRep.FolderChildCount = a;                 else                     andRep.FolderChildCount = b;                 //note                 //todo: r1 when subfolder in data downsn exist                 if (andRep.FolderChildCount >= 0)                     andRep.type = "true";                  andReps.Add(andRep);             }   but problem is which way to get only items (folders) on specific folder... not all the folders and items...  i want to get only the folders on root folder...  when i query          camlQuery.ViewXml = "<View Scope=\"Recursive\"><RowLimit></RowLimit>/View>";   only leaf appears   and when this query:          camlQuery.ViewXml = "<View Scope=\"RecursiveAll\"><RowLimit></RowLimit>/View>";   all the childs and parents returned.  thanks in advanced


I am trying to run this code:  # create virtual multi-band raster  gdalbuildvrt -separate rgb.vrt red.tif green.tif blue.tif # write multi-band raster into geotiff gdal_translate -of GTiff -co PHOTOMETRIC=RGB rgb.vrt rgb.tif   I want to know how to be able to do this in a terminal outside of QGIS.


Looking at Earth's history using a cosmic mirror

Assuming we have a very powerful telescope, and a huge mirror 1000 light years away from earth, is it possible to look at this mirror to see what people did on earth 2000 years ago?  Is it even possible to build such telescope, are there anything discovered in the universe that can act like a mirror?


Not able to change default group for user with `sudo usermod -g`

I have looked at the questions and answer here at U&L but I still cannot get my default group to change from a user.  [red@ws-red-l ~]$ whoami red [red@ws-red-l ~]$ groups yellow green [red@ws-red-l ~]$ sudo usermod -g green red usermod: no changes [red@ws-red-l ~]$ sudo usermod -G green red [red@ws-red-l ~]$ groups yellow green [red@ws-red-l ~]$ touch file [red@ws-red-l ~]$ ls -l file -rw-r--r-- 1 red yellow 0 Feb 18 13:51 file   I would prefer if red did not belong to group yellow so when I do a touch file the group of the file would be green.  What am I doing wrong here?


Minecraft baby zombie riding a zombie villager

So I was going down to my lab I made and I saw a baby zombie riding a zombie villager.  Can anyone explain this?


What component is a VZ reference designator for

The board I'm looking at is a modem board from a fax machine.  There are 2 identical components labeled VZ1 and VZ2 on the board, both components have F175 on the face and have 2 SMC leads.  One of them has a resistor across the back pins, and they look like they might be part of the power circuitry.


I have upgraded my OS version a few times. What is the best way to remove the old kernels and free space?


I initially added a wildcard subdomain as below on my cpanel account and it works fine (all level of subdomain works):   *.example.com   but when I add following second wildcard subdomain to explicitly install ssl for that:   *.co.uk.example.com   any domain ending with .uk.example.com no longer work (e.g. uk.example.com or test.net.uk.example.com ... etc)  is there anything wrong with dns server bind or is this by design?


Newton's method linear convergence proof

How would you show that if f'(a)=0 then the Newton's Method is linear convergent when 1. $f''(a)\neq 0$ 2. $f''(a)=0, f'''(a) \neq 0$? I am having some trouble getting it to the point where you can take the limit of ratio of the error terms and using L'hospital's rule to prove this.


I'm trying to run Ubuntu 14.04 from ram.  There are several articles that show how to do this with older ubuntu versions (using casper scripts and toram option), but none are applicable to 14.04. Anyone know how to do this?


How can I edit my question to make it "active" without taking credit from a previous editor?

I asked a question with bad grammar and poor quality because I have poor English skills. Another experienced user edited my question. I really appreciated his editing and am very grateful to him.   But one day later, my question is not on the "Active" list. I would like my question to still appear active, so I edited it. The question lost the previous question editor. My question status has changed to active and shows it was edited by me just a few seconds ago.  I don't want this because I assume the previous question editor has lost some reputation.  How can I make my question active without losing the previous question editor? I know I could add a bounty, but I don't want to do that.


How can I wipe all files and software not part of Ubuntu?

I have a dev machine that I use npm and node on. I have been having trouble with permissions issues and repeatedly tried uninstalling and working with nvm and other stuff. I'm not really looking for ways to solve that issue and would prefer to start from a clean slate. Is there a way to wipe everything from my system?


If surviving the Killing Curse is as easy as having someone die for you, how is Harry the first ever to survive it?

Harry survived the Killing Curse because Lily gave her life to save his, and that's it. Similarly when Harry gave his life to save the people of Hogwarts, Voldemort couldn't kill anyone attending there so they are also made immune to the curse. So how has this never happened before?? No one in the history of the world has ever sacrificed themselves? Seems fishy.


iPhone won’t install previously deleted default app

I’ve been trying to reinstall some default apps I had previously deleted such as “Watch” and “Files” through the App Store however with all of them I get the message:     Unable to install ‘app name’ Please try again later.   All other apps download fine, it’s just the default Apple apps that won’t install.


How do I escape the wildcard/asterisk character in bash?

For example:  me$ FOO="BAR * BAR" me$ echo $FOO BAR file1 file2 file3 file4 BAR   and using the \ escape character:  me$ FOO="BAR \* BAR" me$ echo $FOO BAR \* BAR   I'm obviously doing something stupid.  How do I get the output BAR * BAR?


Why is the "add comment" link showing up when I can't actually post a comment?

I have only 1 reputation, and I see on all questions "add a comment" link.  However when I click it, I get:     You must have 5 reputation to comment   It means I can't really comment. So why show me the link in such case?


Prove $-12^{482}$ has a multiplicative inverse modulo 175

As in the title, I'm trying to prove $-12^{482}$ has a multiplicative inverse modulo 175. Generally, I believe I could do this by showing that $gcd(-12^{482}, 175)=1$, (i.e that they're relatively prime) but I'm not sure about how to deal with the exponent without fully computing $-12^{482}$.


How to ask for a co-supervisor? (master's program etiquette)

I'm finishing up the first year of my master's program, heading into the second starting September. I had proposed a topic to my (then potential, since confirmed) supervisor in October and we agreed to work together. I changed this topic a month ago for various reasons (mostly lack of available data).  My supervisor was supportive of my topic change and throughout this process has been really helpful, responsive, and critical. But he is not really knowledgeable about the topic or the theoretical framework I am using - his helpfulness has come more from his knowledge of the discipline I'm working in (to which I am new) and his commentary on how I present and support my ideas. I feel that a co-supervisor would help focus my ideas and point out possible gaps, flaws, or inconsistencies in my analysis of the data based on their knowledge of the topic.  Is it too late to ask for a co-supervisor at the end of first year? I have a professor in mind who I'd like to ask, and he is someone I already know, but since it's quite late in the year I am wondering if it is appropriate to even ask. (And I'd definitely consult my current supervisor first. He'd probably be ok with it).


how can i change the blend mode to alpha in 2.79

In Eevee in newer versions you have to change blend mode to Alpha blend if you want to use transparency. How do you change this blend mode in former version before 2.8? So how can i do this in 2.79 with Blender Render engine? (thanks Jachym)


I'm having a tough time getting a handle on this one.    Background - I'm deployed, and have one Laptop with me running Kubuntu 13.10.    I need to do some recording, and would like to use Ubuntu Studio.  I was running a Live CD, but then started thinking about installing to a Flash drive, so, when I wanted to record, I just boot from the thumb drive and use that.  There seems to be some confusion... When I find articles, many are  centered around installing FROM a flash drive to a HD.  I came across a site - and a program called USB installer. It requires you have an ISO and a Flash drive - and it does the rest.    Did that, and when I booted from the drive, it came up with an  installer.  I'd like to install TO the flash drive - but - won't that leave a bunch  of install files ON the  flash drive I don't need?  Am I missing something?  Shouldn't I be running the install FROM the CD TO the Flash drive?  PS - I don't really care about saving anything to the flash drive - I'd  just like it to be 'updateable' and save settings.  Thanks in advance..


Any idea how to make these insets on a plastic bottle? Tried with bezier + lettice but results are not good and with no control once applied.  thanks!


Can you please help me with the question:  How to proof that a bounded, open interval is not compact.