Trying to implement a variadic min() function in C++
Why can templates only be implemented in the header file?
How do you pull first 100 characters of a string in PHP How to add thickness to a curve? How can I add thickness to a curve? I already tried with the extrude and depth options in the curve settings, but it doesn't work properly. Many of the people have asked almost the same question.  I'm trying to render a big mesh + fur/grass file with a few characters on the screen.  when I hit render, after a number of processing, copying data to gpu etc... i get following error.  Mem: 2960.07M, Peak:2960.07M | CUDA error: Out of memory in cuMemAlloc(&amp;device_pointer, size).  I'm using Geforce GTX 690 which contains 4GB memory.   Can somebody tell me how can i get GPU rendering, while 2960M is far less then 4196M of memory.   I know somebody would suggest me to use CPU.. but i'm curios why not GPU?   I've already compressed texture, etc   Edited  I don't think any other application is using any of my 1GB remaining memory. everything is closed but blender is there, also the GPU utilities are showing 2000/2000 MB are free on one card and 1900/2000MB is free on 2nd card.    i'm using GTX 690. with two GPUs of 2GB each. If somebody thinks that one GPU should have memory matching to the cuda memory/or Peak memory then I'm doubtful. Because in preferences Blender does know that I have 2GPUs where I can select either first GPU or second GPU or even both.   When I render some of smaller objects/scenes both of my GPU renders simultaneously with two blocks.  I'm running following specs  Xeon E5-1660 0 24GB - 1600mhz GTX690 I'm using Terminator version 0.97. Is there a way that I can scroll unlimited? In the current version I only can scroll back limited history How to change the href for a hyperlink using jQuery How can you change the href for a hyperlink using jQuery? How can I prevent my Wi-Fi connection from glitching? Occassionally my Wi-Fi goes into this weird state where the phone "thinks" I'm connected, but the connection simply doesn't work.  Apps still seem to think I have connectivity, though they can't actually connect to anything, and the status bar still shows that I'm connected to Wi-Fi.  Turning Wi-Fi off and back on resolves the issue, and this occurs on multiple networks.  It seems sort of like whatever service manages the Wi-Fi connection gets killed occasionally.  It usually happens when I've been playing a game (that doesn't access the Internet) for a while or if my phone's been sitting for a while; it never happens while I'm actively using the connection.  I have my Wi-Fi timeout set to "Never" and the normal timeout isn't the issue since my phone regularly lasts several hours without the Wi-Fi dying.  Sometimes it dies a couple times in a day, and recently I went a week or so without it happening.  How can I fix this or prevent the service from being killed (if that's indeed what's happening)?  Shouldn't that be a system process that never gets killed?  (Does Android ever kill system processes other than when they crash?)  Could it be related to TouchWiz?  I have an SGS Vibrant running 2.2 (Bionix NextGen v1, but this has occurred on multiple ROMs). How do I design a 2A or more power supply for my consumer USB devices? I understand that many of my consumer devices charged by USB ports can charge at higher rates than 0.5A.  However, in testing, I've found they don't consume more than this. Test Setup  I have a power supply that outputs between 0 and 30 volts, and 0 to 20 amps. I set the voltage to 5 volts, then connected up a female USB to the wires correctly. When I plug in a Samsung Galaxy S4 Mini, it pulls around 0.44 amps. It is the same with a Samsung Galaxy Tab Pro. However, when I connect an iPad Air with an official lightning cable, it only pulls around 0.11 amps. Also, I tried connecting a ZGPAX S28 smartwatch and it was still about 0.44-0.45 amps.  The power supply is more than capable of outputting the maximum 2.1 amps, so why doesn't it to at least the tablets? What do I need to do in my test setup to convince the devices to consume their maximum charging current? Gapless superconductivity I don't understand what is meant by &quot;gapless superconductors&quot;. As far as I know, the superconducting gap is necessairy for both zero resistance and the Meissner effect, the two hallmarks of superconductivity. So, what does it mean to have gapless superconductivity and how does it work? Thanks in advance, Greetings How do I return a variable from Google Maps JavaScript geocoder callback? How I can automatically add a page if the total number of pages is odd? I need automatically add a blank page (also without document header, numbering and footer) at the end of the document, if the total numbers of pages is odd. How I can do that? And preferably without using any additional package. :) Tikz won't plot the function properly I tried to plot the following function but it didn't work:  y = 300 + 1000/x + 2.5x.  This is the document, but instead of the plot it only shows the axis.  \documentclass{article}  \usepackage{pgfplots}% This uses tikz \pgfplotsset{compat=newest}% use newest version  \pgfmathdeclarefunction{Function}{1}{%   \pgfmathparse{300 + 1000/x + 2.5}% }  \tikzset{My Line Style/.style={smooth, thick, samples=400}}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0.0,     xmax=250,     ymin=0,     ymax=50,     axis x line=bottom,     axis y line=left,      xlabel= $y$,     ylabel=Cost,      xtick={250},     xticklabels={250},         restrict x to domain=0:250,     ]        \addplot+[My Line Style, color=black, samples at={1,2,3,4,...,249,250}] (\x,{Function(\x)});   \end{axis}  \end{tikzpicture} \end{document} \documentclass{article} On Irix's  4Dwm, there was an ability to minimise windows into a box (contrary to the task bar used by modern window managers). I have seen this also on an old HPUX.  See the "console" square in the linked image:    Is it possible to accomplish on Ubuntu, either with a plugin or maybe some  window manager other than Unity? I'm attempting to cut a hole in a plane. I added a cylinder object, added the Boolean modifier to the plane, selected "cylinder" and "Difference", but no hole is made. The lower half of the cylinder just highlights, moving/deleting the cylinder reveals a hole-less plane.      How can i cut a hole in the plane? Objects Not Showing in Other Workspace Viewports, Only Default Density of random variables Let $X$ and $Y$ be independent random variables with respective densities: $f_X (x) = xe^{-\frac{x^2}{ 2}} 1_{]0,+\infty[} (x)$ and $ f_Y (y) =  \frac{1}{\pi \sqrt{1-y^2}} 1_{]-1,1[} (y)$  Let $U:=XY$ and $V:=X\sqrt{1-Y^2}$  I try to check whether U and V are independent and which law they follow.  What I did:  After some calculations, I found the density of $(U,V)$:  $ f_{(U,V)}(u,v)=\frac{1}{\pi } e^{-\frac{u^2}{ 2}}1_{\mathbb{R}}e^{-\frac{v^2}{ 2}}1_{\mathbb{R}_+^* }$ Which mean that $(U,V)$ follows a $ \mathcal{N}(0,1)$ law (because $u^2+v^2=x^2$) and that  U and V are independent because $f_{(U,V)}$ can be factored as the products of densities of $U$ and $V$  My question:  There is a factor $\frac{1}{\pi}$ and I don't know to which density it will belong: to $U$ density or to $V$ density?  Many thanks! Motivation behind standard deviation? Various \textcolor within lstlisting? Windows Spotlight Source and Save locations? Where are the images from  coming from?  Where are they being saved on my system?  Is there any way for me to point this at my own source of images? What are metaclasses in Python? In Python, what are metaclasses and what do we use them for? I have Lubuntu 16.10 installed on my disk mounted as /.  The problem is that the CUPS log file( /var/log/cups/error.log)  grows all the time until I no have free space left on the disk...   So when I delete that file, the space on disk freed up again  I already tried:    fsck disk usage analyzer every apt-cleaning/autocleaning, and dependencies fixing.    How should I proceed?  du -sxh:  9,0G    .  Model: ATA ST3160815AS (scsi) Disk /dev/sda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type      File system     Flags  1      32,3kB  50,3GB  50,3GB  primary   ext4            boot  2      50,3GB  160GB   110GB   extended  5      50,3GB  158GB   108GB   logical   ext4  6      158GB   160GB   2136MB  logical   linux-swap(v1)   parted --list &amp;&amp; sudo df -h:  Model: ATA ST3160815AS (scsi) Disk /dev/sda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type     File system  Flags  1      32,3kB  50,3GB  50,3GB  primary  ext4         boot  2      50,3GB  160GB   110GB   primary  ext4   Filesystem      Size  Used Avail Use% Mounted on udev            985M     0  985M   0% /dev tmpfs           201M  6,3M  195M   4% /run /dev/sda1        46G   43G  709M  99% / tmpfs          1003M  188K 1003M   1% /dev/shm tmpfs           5,0M  4,0K  5,0M   1% /run/lock tmpfs          1003M     0 1003M   0% /sys/fs/cgroup tmpfs           201M   36K  201M   1% /run/user/1000 /dev/sda2       101G   60M   96G   1% /media/aram/