Categories
Game Creation Mastering Development

DirectXTK: SpriteBatch::Begin and Draw methods give LNK2019: unresolved external

Right now, im using DirectXTK (version 2020.2.24.4) and Visual Studio 2019. My declarations look like this: std::unique_ptr<SpriteFont> m_font; std::unique_ptr<SpriteBatch> m_spriteBatch; and my code look like this: m_font = std::make_unique<SpriteFont>(m_device.Get(), L”myfile.spritefont”); m_spriteBatch = std::make_unique<SpriteBatch>(m_deviceContext.Get()); m_fontPos.x = 1080 / 2.f; m_fontPos.y = 720 / 2.f; const wchar_t* output = L”Hello World”; DirectX::SimpleMath::Vector2 origin = m_font->MeasureString(output) / 2.f; […]

Categories
Mastering Development

How to access a method from another Rails controller

Right now, I have a controller called Reports and inside of it I have a method called generate_pdf. When the user clicks the PDF icon, it routes to generate_pdf. Works fine. However, now I am running a background task that needs to access the same code within generate_pdf from the Report controller. How can I […]

Categories
Mastering Development

Is there a way for me to write my own functions and perform them inplace like most methods in Pandas

I would like my functions to perform certain operations to my pandas DataFrame in place. Most methods in Pandas have the inplace methods, right now, I would like to use to use the idea of the inplace functionality to my function to make this particular function perform in place in order to avoid me reassigning […]

Categories
User Help

Is there such a thing as a public, open, free database of contact information for key people in numerous industries/contexts?

After coding a whole advanced system to create and send e-mails, I find myself utterly unable to find a database/CSV list of e-mail addresses, names, titles, occupations, genders, ages/birth years and company/organization for “key people” in a given industry/context. For example, right now, I have the desire to send e-mails to “all the Bitcoin people”. […]

Categories
Game Creation Mastering Development

I am trying to make a fast paced online shooter using Unity’s physics. Help

So I really want to make a 3d online shooter with a rigidbody controller. I don’t use Photon or UNet, instead, I use custom-built package management & internet communication. Link to the tutorial I followed: https://www.youtube.com/watch?v=uh8XaC0Y5MA&list=PLXkn83W0QkfnqsK8I0RAz5AbUxfg3bOQ5 Since it’s basically my first experience with networking I wanted to ask for some advice. For example, I want […]

Categories
User Help

macOS: How to bring a specific program forward with a keyboard shortcut?

How can I bring a specific window or program forward (and “active) with a single keyboard shortcut? I wrote an AHK script to do this on Windows: I would hotkey a window to Win+1 for example, and then whenever I pressed Win+1, I would activate that window. I want to do the same thing in […]

Categories
Ask Engineering

Using snubber diodes for DC motor and relay

I code in Arduino and build stuff but don’t have engineering background and get lost when trying to figure out datasheets. Already spent few hours on these and just looking for specific advice on which diodes to use (it would be even better if someone explain how to make that determination but just pointing to […]

Categories
Ask Engineering

Using snubber diodes for DC motor and relay

I code in Arduino and build stuff but don’t have engineering background and get lost when trying to figure out datasheets. Already spent few hours on these and just looking for specific advice on which diodes to use (it would be even better if someone explain how to make that determination but just pointing to […]

Categories
Ask Engineering

Using snubber diodes for DC motor and relay

I code in Arduino and build stuff but don’t have engineering background and get lost when trying to figure out datasheets. Already spent few hours on these and just looking for specific advice on which diodes to use (it would be even better if someone explain how to make that determination but just pointing to […]

Categories
Ask Engineering

Using snubber diodes for DC motor and relay

I code in Arduino and build stuff but don’t have engineering background and get lost when trying to figure out datasheets. Already spent few hours on these and just looking for specific advice on which diodes to use (it would be even better if someone explain how to make that determination but just pointing to […]