_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d13301
Why don't you just create another short-cut on the desktop that starts devenv.exe without elevation? A: MSDN states: Launching an Un-Elevated Application from an Elevated Process A frequently asked question is how to launch an un-elevated application from an elevated process, or more fundamentally, how to I launch a ...
d13302
Actually there is no way of doing this without running a foreground service. Having listed in white list may not be appropriate for your application and even though it is, you ask user to give you permission which can be seen as something dangerous from the end user's point of view. However, I have a trick about this. ...
d13303
I think the problem here is in the conanfile of freeglut. Conan file be default says in packaging: self.cpp_info.components["freeglut_"].names["pkg_config"] = "freeglut" if self.settings.os == "Windows" else "glut" So it tries to find freeglut. At the same time be default conanfile sets "replace_glut": True. From Cmak...
d13304
If you want/need full text search then lunr could certainly be used for providing an index on the tags in those documents. If these links had a description, then lunr (or any other full text search) would be a good fit, you really are then doing a full text search. Tags, to me anyway, imply a faceted search. I would im...
d13305
You might try instantiating your serializer whenever your view is called by wrapping it in a function (you make a serializer factory): def like_serializer_factory(type_of_like): if type_of_like == 'book': class LikeSerializer(serializers.ModelSerializer): class Meta: model = mode...
d13306
Use $http.post $http.post(createdUrl) .then(function(response) {} A: When sending vulnerable data with post method it's advised to break apart your query string pass it in the request body. Like this: var myUrlWithoutQueryString = ... // here goes your url var loginData = { name: ... ps: ... action ......
d13307
This is not a huge problem, since the file can be edited like any text document. If you are at ssh and have root privileges, just nano /etc/passwd (i feel evil typing that haha), otherwise if there is another user with root privileges (other than pi) login in as them and edit the passwd file. If there are no other us...
d13308
For IE < 9 you should use EOT files. WOFF is for modern browsers. The FontSquirrel webfont generator is really helpful for this and will give you the @font-face kit too.
d13309
Finally I found a solution for it. Just bring the jquery select to files to your frontaccounting and include it on header.inc than you have to do one more step into it. Goto Root_of_FA/company/0/js_cache/utilis.js and found the below line window.scrollTo(0,0);if(!newwin){setFocus();} } }, false around this will be ...
d13310
Thanks great to see you managed to install it. Sorry, no it exists no bulk actions on hide you should select one by one the element or decide to hide all.
d13311
The UiApp is deprecated. That would be creating the server error. Sometimes the UiApp functions still work (like the chart service) but the output crashes. The googlescript library functionality should still work. https://developers.google.com/apps-script/reference/ui/ui-app?hl=en The html service should be a replaceme...
d13312
You may try to use join like this: SELECT main.id, s.name AS shoes, g.name AS gloves FROM tbl AS main LEFT JOIN tbl s ON main.id = s.id LEFT JOIN tbl g ON main.id = g.id
d13313
That is because Azure App Service for PHP 8 no longer uses Apache but Nginx. This is related to the question "How to Deploy an App Service in azure with Laravel 8 and PHP 8 without public endpoint?". As I mentioned there I will mention here too: I've written a full blog article about my first experiences with PHP 8 on ...
d13314
If you rewrite the tag/tag model and override the getTaggedProductsUrl() with the following it will work: public function getTaggedProductsUrl() { $fullTargetPath = Mage::getUrl('tag/product/list', array( 'tagId' => $this->getTagId(), '_nosid' => true )); $targetPath = substr($fullTargetPat...
d13315
You could look at this problem as permutations of 1 and -1, which while being summed together, the running sum (temp value while adding up numbers left-to-right) must not become less than 0, or in case of parenthesis, must not use more right-parenthesis than left ones. So: If n=1, then you can only do 1+(-1). If n=2, t...
d13316
You don't have to. But in windows you have to explicitly state you want the class to export symbols with _declspec(dllexport) (which is probably what that macro expands to).
d13317
You're mixing older Oracle join syntax with newer ANSI join syntax which is a bit confusing, and might trip up the optimiser; but the main problem is that you have an inner join between your generated date list and your gl table; and you then also have a join condition in the where clause which keeps it as an inner joi...
d13318
Inner AsyncTask in a seperate file This is the given situation: public class MainActivity extends BaseActivity Implements Foo, Bar { ... not so much code ... private class GetSomeStuff extends AsyncTask<String, Integer, Boolean> { ... lot of code ... } private class GetOtherStuff extends AsyncTask<St...
d13319
A couple of thoughts come to mind. * *The connection string you are using is the connection string if you are connecting to a SQL Server DB instead of a MySQL .Net Connector connection string. You're going to have to change the connection string example from the book to what MySQL needs. For example, MySQL doesn'...
d13320
To filter out nodes having inner text exactly equals certain value, use = operator wrapped in not() instead of using contains() in the same way : /collection/device/dcs/dc/nodes/node[not(name='test')]
d13321
The selector must be binded to some ng-model, which keep track of the current value. Supposing you have something like this: <select ng-model="FooBar"> Some options... (with their respectives value) </select> you can enable or desable multiple buttons using this var "FooBar": <input ng-disabled="FooBar !== desired...
d13322
If you want to dynamically load google's libraries, you should check out google's autoloader: http://code.google.com/apis/ajax/documentation/#AutoLoading It works quite nicely, but be careful if you use the autoloader wizard. http://code.google.com/apis/ajax/documentation/autoloader-wizard.html there's a bug for the c&...
d13323
This was asked and answered in the following issue on spaCy's GitHub. It looks like the script no longer worked after a refactor of the entity linking pipeline as it now expects either a statistical or rule-based NER component in the pipeline. The new script adds such an EntityRuler to the pipeline as an example. I.e...
d13324
For continues loader timer = Timer.scheduledTimer(timeInterval: 0.001, target: self, selector: #selector(setProgress), userInfo: nil, repeats: true) and func setProgress() { time += 0.001 downloadProgressBar.setProgress(time / 3, animated: true) if time >= 3 { self.time = 0.001 ...
d13325
If the names are starting in A2 with a heading in A1, you can just use this starting in C2 and pulled down:- =COUNTIF(A$1:A1,A2)=0 to get true/false values, or =--(COUNTIF(A$1:A1,A2)=0) to get ones and zeroes.
d13326
If someone faces the same question, this is the solution. In the CSS file, start the commands with a specific string (below) and then, on Markdown, use the div notation. Such as: <div class="question"> 1. My first question 1. My second question </div> /* -----------Question counter ---------*/ body { counter...
d13327
Instead of creating a temporary table and using a cursor to update each set of columns, this is a set based solution that avoids all of that. For the first part, if you just need 7 days then you can use a simple values tally table with a common table expression and the Table Value Constructor (Transact-SQL): declare @f...
d13328
I was able to clone my repo on local machine with this code. On cloud function I got connection time up def hello_world(request): from google.cloud import storage from git import Repo import os storage_client = storage.Client() path_temp = '/tmp' path_clone = path_temp + '/clone' try: os.mkdir(pat...
d13329
First, I presume you're not asking about a particular subprocess that exists simply to tell you the current working directory and do nothing else (Apducer's answer). If that were the case you could simply as os.getcwd() and forget the subprocess. You clearly already know that. So you must be dealing with some other (a...
d13330
If you take a look at the API docs for the select, you can see that MatSelect is exported as matSelect. This means that you can get a reference to the select in the template by writing #t="matSelect". If you then pass this #t into your function, you can update the select's value like this: mainValuesChanged(term, event...
d13331
Outbound E-mail doesn't specifically handle SSL, an enhancement request has been created to remedy this. However, Outbound E-mail uses Chilkat software, whose documentation seems to indicate that SSL should be chosen automatically when using port 995 (though I've not tried this). The above shown configuration doesn't a...
d13332
Never do option number 1 the way you do it. Instead of creating a bitmap out of a drawable every time you want to draw it, create a bitmap in the first place. That is, don't create a Drawable if you are going to draw a bitmap. Create a bitmap like this: mBitmap = BitmapFactory.decodeResource(mContext.getResources(), R...
d13333
Command="{Binding RemoveApplicationCommand}" Did you mean RemoveServiceCommand? A: Turns out the debugger was going over RemoveService the entire time but I had not put a breakpoint there. I had a wrong name in my RemoveService implementation ServerList.Remove() should have been ServiceList.Remove(). I assumed the de...
d13334
Right, this is because the type is dynamic. That basically means the meaning of the float cast depends on the execution-time type of the value. The is operator is checking whether float and double are the same type - and they're not, which is why it's returning false. However, there is an explicit conversion from doubl...
d13335
The problem probably lies in how you load your script, as there seem to be nothing wrong with it. You have to ensure that when the code is run, all of the required DOM elements are already rendered by the browser. You can use window.onload handler (or it's .addEventListener() equivalent) to call your initialization scr...
d13336
Did you checked with the [AllowAnonymous] attribute. If you put this attribute on your "Action" that you want to be open access, then anyone can access the method without login. If you want to allow access to a specific site/source, then please add this in your web.config file inside <system.webServer></system.webSer...
d13337
There is no public equivalent to SymGetLineFromAddr64 on OS X, but you can get source file and line number with the atos(1) developer tool. Here is some sample code to get a fully symbolized backtrace. #import <Foundation/Foundation.h> static NSArray * Backtrace(NSArray *callStackReturnAddresses) { NSMutableArray ...
d13338
It makes sense to create a new subfolder for your screenshots every time u start the script. Use a unique name for that for example the current timestamp: const puppeteer = require('puppeteer'); const fs = require('fs'); const path = require('path'); const currentDate = new Date(); const timestamp = currentDate.getTi...
d13339
Try =IF(B1>=A1,B1*0.12,0) check snap below And for formatting you can select column, right click - Format Cells - select Number and keep 2 Decimal places.
d13340
RISE is using v1.0.0 of reveal.js-chalkboard This version has color option informed as an array of colors where the first color gives pen color and the second color gives board drawings color. For example, "rise": { "chalkboard": { "color": ["rgb(250, 250, 250)", "rgb(250, 250, 250)"] }, "enable_c...
d13341
You can execute any SQL you want in a migration using connection.execute, for example: def up connection.execute(%q{ alter table t add constraint c check (x in ('a', 'b', 'c')) }) end def down connection.execute('alter table t drop constraint c') end You can also use foreigner to add proper FK supp...
d13342
Same thing happened to me and I had generated hash from debugkey for debugging in dev enviroment but when building it for Google Play the problem was appearing. You need to generate hash with the certificate and alias that you will sign the app for publishing in Google Play. Edit: You need to add key hash for both debu...
d13343
Your question is very open ended. Before preprocessing and fitting the model, you need to understand Object Detection. Once you understand what object detection you will get answer to your 1st question whether you are required to manually crop every 13000 image. The answer is no. However, you will have to draw bounding...
d13344
If you want to get information for single/specific drive at your local machine. You can do it as follow using DriveInfo class: //C Drive Path, this is useful when you are about to find a Drive root from a Location Path. string path = "C:\\Windows"; //Find its root directory i.e "C:\\" string rootDir = Directory.GetDir...
d13345
You need to check for null. public static boolean validAnswer(String answer) { if (answer!=null && (answer.equalsIgnoreCase("y") || answer.equalsIgnoreCase("n"))) { return true; } return false; } or an other unconventional way. public static boolean validAnswer(String answer) { if ("y".equalsIg...
d13346
Visual Studio 2015 is not producing the correct result for: F{a} The result should be a prvalue(gcc and clang both have this result) but it is producing an lvalue. I am using the following modified version of the OP's code to produce this result: #include <iostream> class F { public: F(int n, int d) :n_(n), d_(d)...
d13347
Your form_for needs to be namespaced too: <%= form_for [:admin, @country] do |f| %> ... <% end %> When you pass @country to form_for it's not going to know what namespace you want this form to go to and so it will default to just the standard POST /countries URL.
d13348
Yes You can do like this if($request->hasFile('image')) { $file = Input::file('image'); //getting timestamp $timestamp = str_replace([' ', ':'], '-', Carbon::now()->toDateTimeString()); $name = $timestamp. '-' .$file->getClientOriginalName(); $blog->image = $name; $fil...
d13349
This will give you the commit being merged: git rev-parse MERGE_HEAD I do not think that there is a way to find the branch name other than guessing with a command like: git for-each-ref | grep ^$(git rev-parse MERGE_HEAD) (which finds all branches pointing to the commit you are merging) Note that the commit being mer...
d13350
The ids dictionary is created for each rule in the kv file, and those ids are placed in the dictionary for the root of that rule. So the _input_parameters id is only in the ids of the Peenomat instance. So, I think you need to change: ip = App.get_running_app().root.ids._input_parameters to something like: ip ...
d13351
It looks to me like CharacterSkillLink itself is your through model in this case... it generically joins a content type to a SkillAbility If you think about it, it also makes sense that if you're doing a bulk_create the objects that you pass in must be of the same model you're doing a bulk_create on. So I think you wan...
d13352
The most likely problem is that your numeric data is being interpreted as a string. From the API.txt: Note that to simplify the internal logic in Flot both the x and y values must be numbers (even if specifying time series, see below for how to do this). This is a common problem because you might retrieve da...
d13353
This is quite tricky... almost impossible to make it really unbreakable. Any reasonnably motivated person will be able to pierce through it. You'll only make it a little harder to do. In any case, you definitely can't store any secret key in the bundle itself. You'd need to securely obtain the decryption key over a sec...
d13354
I'd slightly readjust how the workflow runs and allow it to be easily run in parallel. # Use variables to adjust models, makes it easier to change sizes iter <- 60 iter_samps <- 1000 factors_df <- data.frame(f1 = sample(LETTERS[1:3], iter_samps, replace = T), f2 = sample(LETTERS[4:5], iter_sa...
d13355
Try This. <?php class query { public function listfields (){ $fields = array(); $rowcnt =1; $result = $this->mysqli->query("SELECT id, name FROM fields", MYSQLI_USE_RESULT); while($row=$result->fetch_assoc()){ $this->fields[$row["id"]] = $row["name"]; //$this->fields[$rowcnt] = $row["name"]; // i...
d13356
There are two errors in your query. Error 1: highway=street Where does this tag come from? street is not a valid value for the highway key. In fact, since you want to obtain all streets you have to omit the value completely and just query for highway. Error 2: node() A road is not a node but a way. So you have to query...
d13357
Custom attributes are not available in Cognito access token. Currently it is not possible to inject additional claims in Access Token using Pre Token Generation Lambda Trigger as well. PreToken Generation Lambda Trigger allows you to customize identity token(Id Token) claims only. A: You can use ID token to get the to...
d13358
1) Passing in a temporary combo box model to selectWithKeyChar() that doesn't include the accents. If this is possible, how do you pass in the model to selectWithKeyChar()? 2) Overriding the selectWithKeyChar() method? 3) Making a custom method. In this case, how would you make it run instead of the one that alre...
d13359
Autolayout and SizeClasses wouldn't target specific devices, so you will have to set the font sizes programatically. You can use check the size of your device using UIScreen.mainScreen().bounds.size.height and set the size of your font accordingly. This solution will clarify you more. A: As you mentioned in your quest...
d13360
I am pretty sure it doesn't work because users is undefined when your component renders for the first time. Try to initialize that variable in the state doing something like this: state = { users: {} } and then use a fallback since id will also be undefined doing this: <FormInputs ncols={["col-md-5", "col-md-3", "...
d13361
shouldn't this: var item = $('edit-submitted-file'+c+'-ajax-wrapper'); be var item = $('#edit-submitted-file'+c+'-ajax-wrapper'); //if using id or var item = $('.edit-submitted-file'+c+'-ajax-wrapper'); //if using class A: You need to prepend '#' to the selector for -ajax-wrapper because you are selecting it by ID. ...
d13362
In my machine, I can reproduce your case by using different alignments for pointers. Try this code: mat_bench_fixture() { matA = new double[n * n + 256]; matB = new double[n * n + 256]; matC = new double[n * n + 256]; // align pointers to 1024 matA = reinterpret_cast<double*>((reinterpret_cast<unsi...
d13363
It looks like message['path'] is a bytes object rather than a string, and trying to apply strip() to a bytes object yields that rather cryptic error message. Instead, try message['path'].decode() to convert it to a string, then do your stripping and splitting. See also Python 3.0 urllib.parse error "Type str doesn't su...
d13364
if you simply must access the internal methods another work around would be making the projects as Friend Assemblies like that: //Lib Project #pragma once //define LibTest as friend assembly which will allow access to internal members using namespace System; using namespace System::Runtime::CompilerServices; [assembl...
d13365
You can use ng-submit for this: <form ng-submit="goToNextForm()"> <input type="text" ng-model="email"> <button type="submit" value="submit"> </form> And in controller: $scope.goToNextForm = function(){ //code to save data and move to next controller/form here } A: If you're not navigating to a different...
d13366
The fourth argument of WSARecv should be a pointer to the number of bytes received. However, you are passing the address of a pointer to the length of your buffer. If you were passing the pointer, and not a pointer to a pointer, then it would be weird but it should work fine (as it won't corrupt anything). As it is no...
d13367
You have multiple options. Let me explain the basic concept first. Generally every app on cloudControl has its own subdomain like APP_NAME.cloudcontrolled.com. Requests to those subdomains (or from a CNAME pointing to that subdomain) are forwarded by the routing tier to one or more of the containers available to serve ...
d13368
It seems you cannot do an update of multiple XML node values in a single UPDATE statement, as mentioned here: How to modify multiple nodes using SQL XQuery in MS SQL 2005 In your query above I think only the first instance found will be updated.
d13369
Use this: =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(RIGHT(A1,2),0,0) Then format the cells with a custom format of: yyyy/mm/dd h:mm
d13370
As far as I can see, no, it's not really possible. The development version has some methods for limiting foreign keys, but it doesn't seem to me that limiting based on the customer is possible, since it depends on separate foreign keys. The best suggestion, if you're really bent on doing it in the admin form, would be ...
d13371
Is the term "function projection" a standard term? Or does this feature carry a different name in the functional programming literature? No, you usually call it partial application. Does any variety of LISP implement this feature? Which ones? Practically all Lisp allow you to partially apply a function, but usually ...
d13372
If the lists are sorted, then it's relatively straightforward if you do something like this: List<Integer> intersection = new ArrayList<>(); int i = 0; int j = 0; while (i < list1.size() && j < list2.size()) { int a = list1.get(i); int b = list2.get(j); if (a < b) { i++; } else if (b < a) { j++; } els...
d13373
I modified your SaveTo_TextFile method. I added two columns to my dvList [Column1] and [Column2]. I was able to save the decimal value I entered in [Column2] successfully. I do not know how you formatted your DataGridView column but mine is only a DataGridViewTextBoxCell with no formatting. If I used formatting, this ...
d13374
Have you tried this solution from the UI-Router documentation? Instead of using the global $stateParams service object, inject $uiRouterGlobals and use UIRouterGlobals.params MyService.$inject = ['$uiRouterGlobals']; function MyService($uiRouterGlobals) { return { paramValues: function () { return $uiRoute...
d13375
Sticking to RC isn't very viable in the long term. Especially now, when Visual Studio 2015 RTM has been released. Unless you have some really strong incentive to stay on Release Candidate, I would recommend to: * *Get RTM Express Edition for free, whichever suits you best. SSDT 2015 is compatible with Web and Window...
d13376
Try to provide date by calculating first and then use it in query like below $date = date("m-d-Y", strtotime('-3 day')); $conn = getConnected("oversizeBoard"); mysqli_query($conn, "DELETE FROM postedLoads WHERE date < '".$date."'); It might help you. If need any other solution or help, do ask here. A: Use MySQL funct...
d13377
std::thread stores copies of the arguments it is passed. Which as Massimiliano Janes pointed out, is evaluated in the context of the caller to a temporary. For all intents and purposes, it's better to consider it as a const object. Since x is a non-const reference, it cannot bind to the argument being fed to it by the ...
d13378
It is all automatically included. You are perhaps thinking of import statements. The Activities you write in the same package will automatically be included. For other code, you can just press [Ctrl/Command][Shift][O] in Eclipse to auto-import. A: Answer is yes, there is an include statement, but only works on xml l...
d13379
This seems to work, as long as you can assume that all the frames in an AnimationDrawable are BitmapDrawables: for(int i = 0; i < animation.getNumberOfFrames(); i++) { Drawable frame = animation.getFrame(i); if(frame instanceof BitmapDrawable) { BitmapDrawable frameBitmap = (BitmapDrawable)frame; ...
d13380
For Swift 5 use the following: yourDataSetName.fill = LinearGradientFill(.... or yourDataSetName.fill = ColorFill(... More details you can read here: Charts A: I believe this is the code that you are looking for. You should be able to use the same ChartFill class in Swift to set set1.fill. let gradColors = [UIColor.c...
d13381
You probably want something like django-easy-select2 [readthedocs.io]. You can install this (in your local environment) with: pip3 install django-easy-select2 Next you add 'easy_select2' to the INSTALLED_APPS setting [Django-doc]: # settings.py # … INSTALLED_APPS = [ # …, 'easy_select2', # …, ] # … Now y...
d13382
The easiest way is to use a map as the value of your outer map, like the following: Map<String, Map<String, String>> nestedMap = new HashMap<> (); Map<String, String> fooInnerMap = new HashMap<> (), barInnerMap = new HashMap<> (); nestedMap.put ("foo", fooInnerMap); nestedMap.put ("bar", barInnerMap); However, this is...
d13383
This pull request includes a patch for the problem; the code is updated in git but is apparently not up to date even in the latest available gem. It's a one-line edit to bin/deltacloudd https://github.com/apache/deltacloud/pull/3
d13384
No. Swift is a compiled language, and the runtime doesn't include the compiler. The iOS SDK doesn't provide a way to evaluate run-time Swift code. You can execute JavaScript using JavaScriptCore, and JavaScriptCore makes it pretty easy to expose Swift objects and functions to the script. Maybe that will help you.
d13385
You really shouldn't do things like this: public boolean isUnlockValid(Offer offer) { return ((offer.unlockExpirationDate == null) || (System .currentTimeMillis() < offer.unlockExpirationDate.getTime())); } Create a class instance instead, which captures System.currentTimeMillis() and uses it. This way...
d13386
Passing formEditUsers() into the ajax success callback seems to work fine.
d13387
The ionic storage has moved to '@ionic/storage' as of rc.0 so import { Storage } from '@ionic/storage'; You can't specify whether its localstorage/sql or anything. But it uses each in order until its able to use one. Just create an instance and use it new Storage().set("key","value"); A: Old Question... but it just ...
d13388
I've checked your code using Xcode 7, which may not be ideal for resolving this issue because I had to covert your code to Swift 2.0, but here was what I found out. ISSUE * *First time opening the app, this block: if currentUser() != nil { initialViewController = pageController } else { initialViewController...
d13389
* *length is a function and it should be length() *You don't need to deference the pointer if you use -> *The result returned from length() is size_t Here is what I would use: int length = static_cast<int>((*ifxPtr).length()); A: foo-> is shorthand for (*foo).. Don't double up operators, also it should be length(...
d13390
Exceptions are the only thing that you haven't understood IMHO: exceptions are meant to be out of your control, are meant to be caught be dealt with from outside the scope they are thrown in. The try block has a specific limit: it should contain related actions. For example take a database try catch block: $array = arr...
d13391
If you don't know whether the array is sorted, you could use code like this to find the value in the array that is the closest to the passed in value (higher or lower): var list = [2, 5, 9, 12, 15, 19, 22, 25, 29, 32, 35, 39, 42]; function findClosestValue(n, list) { var delta, index, test; for (var i = 0, len...
d13392
why don't u add KASlideShow to a header view in ur UITableViewController ? First create that headerView and add to it 1 more view and subclass it of KASlideShow then connect your IBOutlet slideshow with this view then add KASlideShow settings to ViewDidLoad your code should look like the following code #import "SlideSh...
d13393
With reference to zf2 docs - filesystem cache there is a boolean config param file_locking which does Lock files on writing.
d13394
With --ntasks=4, srun will launch 4 identical Perl processes. What you want is --ntasks=1 and --cpu-per-task=4 so that Slurm allocates four cores on one node for your job.
d13395
A better flow to use is probably the Custom Authentication Flow. It is not supported in the AWSAuthUIViewController, but you may use the AWSCognitoIdentityUserPool to perform the flow. The custom challenge could be leveraged to pass information back to the client before ending the flow.
d13396
Since your file is located into a constants directory, you should probably use some .env file. Here is a guide on how to achieve this in Nuxt: https://stackoverflow.com/a/67705541/8816585 If you really want to have access to it into a non .vue file, you can import it as usual with something like this /constants/url.js...
d13397
no, because those functions are inline, they are inlined at compiletime and a Class or KClass is using reflection at runtime there are some tricks that you can do.. like with the companion class, but that does nto need the KClass<T> at all.. anything else that provides a generic argument of T would work just as well fo...
d13398
To specify which events you want your bot to receive, first think about which events your bot needs to operate. Then select the required intents and add them to your client constructor, as shown below. All gateway intents, and the events belonging to each, are listed on the Discord API documentation. If you need your b...
d13399
The std::future destructor will block if it’s a future from std::async and is the last reference to the shared state. I believe what you’re seeing here is * *the call to async returns a future, but *that future is not being captured, so *the destructor for that future fires, which *blocks, causing the tasks to be...
d13400
Shortly, if I get your question right, than yes, your description is correct. It's not very clear from question what "two memory locations, x and y". Based on how you put them in use in description, I'd presume that it's something like 2 pointers. int* x, y; and "Start with x = x1, y = y1" means assigning addresses t...