I use something like the following to export a layout to pdf: projectInstance = QgsProject.instance() layoutmanager = projectInstance.layoutManager() layout = layoutmanager.layoutByName(&quot;test&quot;) exporter = QgsLayoutExporter(layout) exporter.exportToPdf(&quot;C://test.pdf&quot;, QgsLayoutExporter.PdfExportSettings())  But I want to use the  parameter when exporting otherwise it defaults to using vectors. How can I set this parameter when setting up QgsLayoutExporter.PdfExportSettings()?
I need to use the setting Disable tiled raster layer exports from the GUI in my Python code, but I can't seem to find it.  exporter = QgsLayoutExporter(layout)     exporter.exportToPdf(path, QgsLayoutExporter.PdfExportSettings())   How can I do this?
What are the minimum requirements to run Windows 10? Why weren't everyone on Haruun Kal made a Jedi? I have a layout similar to:  &lt;div&gt;     &lt;table&gt;     &lt;/table&gt; &lt;/div&gt;   I would like for the div to only expand to as wide as my table becomes. How to see an embedded image's dpi (ppi) in a pdf in Acrobat Pro? The following situation baffled me slightly: after preparing a pdf in a different program I wanted to make sure that an embeded image in the pdf file had the right dpi, yet I found no way in adobe acrobat pro to inspect the file/image dpi.   Can that be, or am I missing where this feature is hidden? I have a Canon Powershot A710 and I previously had a previous Powershot A-series model. I love them due to the high amount of control they offer. Sadly, they both suck in low light conditions, their flash is very unresponsive, and the camera takes several seconds preparing itself for the next shot after a flash shot. And even then, the pictures they take in low light/flash are as bad as good are those with good light.  I'd like a camera which gives a lot of control options, but what do I need to look for to find one that's great in low light, with or without flash? What is the meaning of the color of the node sockets in the node editor? I have been searching on the web and I can't find this. What is the meaning of the color of the node sockets in the node editor? Copy files excluding x,y,z causing error in shell script How do you create a bootable USB stick using windows 7 I've downloaded Ubuntu desktop (the .iso file that is) on a windows 7 machine and want to create a bootable USB stick in order to install it onto a laptop which currently has no OS. Is there a way to do this? If $M$ is an $R$-module and $I\subseteq\mathrm{Ann}(M)$ an ideal, then $M$ has a structure of $R/I$-module Let $M$ be an $R$-module and let $I$ be an ideal of $R$ such that $I$ is a subset of $\mathrm{Ann}(M)$. Define a product of an element of $R/I$ by an element of $M$ as follows: $$(r+I)\cdot m=rm.$$ (a) Show that this product is well defined. (b) Show that this product, together with the sum of elements of $M$, turns $M$ into an $R/I$-module.  My answer for (a): Let $r+I,s+I \in R/I$ such that $r+I=s+I$. Then $(r+I)m=(s+I)m$, for all $m \in M$. Then $rm=sm \implies r=s$  (since the inverse of $m$ is in $M$), so the product is well defined.  Is my answer to (a) correct?  How can I use Ann(M) to answer (b)? prove or disprove: For a prime number p, there is a positive integer n such that $p+1 $= $n^2$ if and only if $ p = 3.$ Prove or disprove: For a prime number p, there is a positive integer n such that $p+1 $= $n^2$ if and only if $ p = 3.$  first im trying to proof if p is prime number there is positive integer n such that $p+1=n^2$ implies $p=3$  suppose there is positive n integer such that $p+1=n^2$ and prove that $p=3$. $p=n^2-1=(n+1)(n-1)$ since $p$ is prime $n-1=1$,$ n = 2 $ $p+1=4$ $p=3$ hence it is proved that $p=3$  now if $p=3$ implies there is positive integer n such that $p+1=n^2 $  $p=3$ and p is prime  $p+1=n^2$, $4=n^2$, $n2$ or $n=-2$ hence it is proved that there is positive integer $n$ such that $p+1=n^2 $  is my proof correct? and also for prime number can i write $n+1=1$ instead $n-1=1$? I used an SRTM DEM to create a hillshade in QGIS 2.2.0. However, the resultant hillshade seems to be vertically exaggerated. Also, changing the settings for scale and z-factor does not have any effect on the resultant hillshade. I have tried both options in QGIS, Analysis-> DEM (Terrain models) and Terrain analysis -> Hillshade. Both methods gave the same results.  Is this an isolated incident, a bug, or am I missing something? I did apt-get upgrade it never finishes at this point:  Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-3.2.0-24-virtual Updating /boot/grub/menu.lst ... done  You already have a NoLOADER configuration in /etc/grub.conf Running boot loader as requested Running /usr/sbin/grub  ...    The system does not freeze (Ctrl-Z works, I get my console back) just that that /usr/sbin/grub seems to never complete.  What should I do? I found this interesting problem in :     Given a point $P$ in space, and given a piece of malleable material of constant density, how should you shape and place the material in order to create the largest possible gravitational field at $P$?   Any ideas? Expectation of Exit Time of Brownian Motion from Interval I am trying to solve the following:  Let $W_t$ be a brownian motion and $a,b &gt;0.$  Define $\tau$ to be the exit time of $W_t$ from $[-a,b]$, that is $$\tau = \inf\{t \ge 0\ :\ W_{t}(\omega) \notin [-a,b]\}.$$  Show that $\tau$ is integrable and compute $\mathbb{E}(\tau)$.  I have seen this stated without proof multiple places that $\mathbb{E}(\tau)=ab.$  What is the logical argument that backs up this statement?  How are we guaranteed $\tau$ is integrable? Why $SU(3)$ and not $U(3)$? Wrap Caption Around TikZ Figure If $a, b$ are positive real numbers and $a+b = 1$, prove that :  $$\left(a+\frac{1}{a}\right)^2 + \left(b+\frac{1}{b}\right)^2 \geq \frac{25}{2}$$  I can see that the value $\frac{25}2$ is attained for $a=b=\frac12$. But I do not know how to show that this is the minimal possible value.  Thank you. I installed Ubuntu yesterday, so I'm trying to get used to it.  I'm really close to my router, but my wifi signal gets too low. Sometimes I'm in Facebook or Youtube and the signal is high, almost full, but it is usually in one or two bars, and sometimes none.  I can use Internet normally, I can watch videos and stuff, but the problem is when I try to update something or Ubuntu is downloading stuff, the downloads get stuck or get cancelled telling me that I should check my connection.  How can I fix this? I should be getting a really good signal, I'm really close to my router, my phone has full signal, and a notebook with Windows 7 has full signal here too.  Sorry my bad English and I hope you can help me.  $ lsusb Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Can I cast a spell in the middle of jumping with a Jump spell? I have not completely read the rules for 5e, and my group has played a decent amount of 4e. We recently started 5e.  So my question is, as a Wizard, can I cast the Jump spell on myself one turn, then the next turn jump high into the air and cast Thunderwave straight down? I'm a little unsure of how the actions work in 5e. The point is to hopefully knock a handful of enemies prone to make quick work of them with my group. (We have a house rule from 4e where a successful attack on a prone character is an automatic critical.) Are global variables thread-safe in Flask? How do I share data between requests?