So I have this class and struct: class ISDFParams { public:     virtual ~ISDFParams() = default;     Vector3 point; };  struct SDFSphereParams : public ISDFParams { public:     float radius; };  I use it later like this SDFSphereParams p; p.radius = 4;  GetDensityData(p);  In GetDensityData(ISDFParams sdfParams) I do SDFSphereParams* _params = (SDFSphereParams*)&amp;params;  The problem is when I print _params-&gt;radius its anything else but 4. What am I doing wrong? P.S. I know the example is a bit pointless, but the original code is rather long so I cut down it my problem.
Someone mentioned it in the IRC as the slicing problem.
Why do light sources appear as stars sometimes? See for example this photo:    From my experience, the longer the exposure the stronger can this effect be observed. Is this correct? Are there any other factors that influence the creation of these stars (is there a better word for it, by the way?) And what exactly does technically happen? Wireless antenna does not appear despite its driver being installed I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done without manually decompressing and then compressing.  PS. I need to keep them as zip files since they are served to windows users( and as such have white spaces in their names) Subsetting matrices In Python, how do I determine if an object is iterable? Adding admin-ajax.php to the frontend. Good or bad idea? I love admin-ajax.php. But I hate having to localize in order to point frontend scripts to it, and I wish there was an equivalent, easy-to-find file for themes. (It also just bothers me to see frontend requests go through "/wp-admin/". No practical reason, just looks ugly IMO.)  So I've simply copied admin-ajax.php to the root dir at "/ajax.php", adjusted the include paths and removed the WP_ADMIN constant definition. Seems to work like gangbusters (I can now just direct all my frontend AJAX requests to /ajax.php! And I can still use the normal wp_ajax hooks in my plugins!).  But is this safe? What might go wrong? Since this isn't built into core, I assume there's a good reason as to why not. But looking through the code, I can't see any immediate problems.   You're smart--tell me if this approach is crazy. Or if there's a simpler method that I'm overlooking. Some Data Failed to Reconstruct, Motion Tracking I added tracks and stuff, but then when I tried to solve motion track, there was a error that said:     Some Data Failed to Reconstruct   and it also said to look into the console for details, which I did. This is what the console said:    By my understanding, my video is 372 frames long, and Blender is cutting the footage at 318 for some reason. Here is the image of the scene:    Why? Here are links to  and also . Also the next morning I did a camera solve, but then most of the frames went red. After installing NVIDIA driver, X isn't showing I recently installed the NVIDIA 319 driver from the Jockey window, and now X won't load! I'm stuck with a blinking cursor. I used to have the 304 drivers installed.  How do I fix this? How to recover files from dead windows using dos? My earliest PhD graduation date is 10 months away. Funding permits me to stay 1–3 months longer, so the final date is still uncertain.  It is never too early to make contacts for possible post-docs. But how long in advance is too early to formally apply to post-doc job openings or funding opportunities? Depending on the bureaucracy, the path from applying to starting can probably be anything from a week up to a year — someone I know is applying with  which had the opening advertised in August, application deadline in October, will have interviews in December/January, and the commencement of work only in September, 13 months after the initial job advertisement. My personal guess is that the long time between interviews and starting is to create a level playing field between those who do and those who don't need to go through a visa application procedure.  If I'm too early in applying for a post-doc, a hosting institution might prefer someone who can start earlier and where the graduation date is more certain. For example, in my case the graduation date is still uncertain, so there is a risk in accepting even if they are willing to wait. Project funding might also require the money to be spent rather soon.  If I wait too long, there might be a considerable period where I'm between jobs. Having a long (>6 months) period between jobs is a disadvantage for me. Maybe it's also a disadvantage for a hosting institution (I'm not sure).  How do I find the balance? For example, considering the duration of funding and visa applications, does it make sense to apply e.g. ? Or is it in any case virtually inevitable to have at least several months before my PhD graduation and the start of a post-doc? How do I put big brackets under different parts of an equation to attach text labels? How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts? For example: f =  x^3 +  2     |___|  |__|        |     |    text 1  text 2 Let $f(z)=\sum_{n=0}^{\infty}a_nz^n$ be a holomophic function in the unit disc. Show that if $$\sum_{n=2}^{\infty} n\vert a_n \vert &lt;\vert a_1\vert$$ and $a_1\not = 0$, then $f$ is injective.   I am able to show that $f'$ never vanishes by showing that $\vert f'-a_1\vert &lt;\vert a_1\vert$, but that doesn't imply that $f$ is injective. For example, $e^z$ is not inejective but its derivative never vanishes. What is required to prove that $f$ is injective? How do you show $f$ is injective on any set? Remove automatically added keyboard inputs and prevent them from coming back (Windows 10) I have 2 languages installed on my computer, both with a single input method.  I have 2 keyboards: CES-CSQ and ENG-US.    However lately (maybe after the last Win10 update) I started to see 2 additional keyboards in my systray  - namely CES-CS and ENG-CSQ.    Is there there a way to remove those 2 input options (CES-CS, ENG-CSQ) which I do not see in the Control panel's Language options?  Solution described at  question does not apply to my problem because I do not see input options that I want remove in Control panel's Language options. Should I use  tag for icons instead of ? How can I convince hyperref and xindy to play together nicely? Software to synchronize two directories (local/remote) I need software that would detect changes in directory (A) every 5 seconds or so and upload/delete changed files from/at (B) remote directory.  I found non-commercial software, . I am wondering if there are any commercial alternatives? Silverlight - how do I get the text of the selected item in a combobox There is already a similar post, that has an answer to my question, but it is quite short and I don't get it... So I am trying to show that  \begin{align} \{e_K |~ K \subset G~ conjugacy~ class \} \end{align} is a basis for $Z(\mathbb{Z}[G])$. Serre even writes "one immediately checks that the $e_K$ form a basis", but even reading the other post  I don't see that...  My approach to this is:  Be $x \in Z(\mathbb{Z}[G])$, which is equivalent to: $x = gxg^{-1}$ for all $g \in G$. Writing  $x = \sum\limits_{h \in G} \lambda_h h$, we get $x = \sum\limits_{h \in G} \lambda_h ghg^{-1}$. I don't really know how to go on at this point. I mean, I know that when $a,b \in K$ (same conjugacy class) you get $\sum\limits_{s \in K} \mu_s s = \mu\sum\limits_{s \in K} s$, since \begin{align} a = hbh^{-1} \Rightarrow \mu_a = \mu_b ~\forall a,b\in K \end{align} So all elements in the same conjugacy class have the same scalar.  But from here I don't really know how I can generate the $x = \sum\limits_{h \in G} \lambda_h ghg^{-1}$ with the $e_K$ ...  I would be really thankful, if someone could give me quite a basic proof that even I understand... What are valid values for the id attribute in HTML? When creating the id attributes for HTML elements, what rules are there for the value? I'm trying to get through my first SalesForce mod and it's definitely been a rocky path. I have one task I'm trying to do, but this section is holding me back.  I have two custom fields.  One a pick list and the other a text box. I have added them to the Approve/Reject Approval Request section in the Opportunity page. I added the fields through the Select Fields to Display on Approval Page Layout and they DO show up on the Approve/Reject Approval Request section. I added them in like ().  However, just the label for the fields show, the field itself is nowhere to be found and can't be used.    You can see and even use the fields when you open the Opportunity page itself, but when you go to use the Approve/Reject, you can't do anything with them or see any values.  I was never a SalesForce user and got this tossed in my lap and really don't know my way around yet. I appreciate any help on this!!  Thanks!!  Kurt