Vote count: 0I am new to CV2 and I am looking for some high level guidance for an application. I am working on a program that can detect red and blue beanbags that are in the frame of the camera. I played around with the example code off...
ادامه مطلبVote count: 0I need some help. I am setting some text on image using canvas but this time my requirement is I have to set one logo on that image using Canvas/ Javascript. I am explaining my code below.Here I can set the text on the image...
ادامه مطلبVote count: 0Orderby works when the page first loads, with the default value set in scope. But then value for the Order By changes, the sort order does not change. The option selector does assign the correct value upon selection and I have verified that. But no change in the sort order.Here is how I have my select options defined.RiskTalkNameAgeHere is how my ng-repeat is defined.The...
ادامه مطلبVote count: 0I have four datasets with overlapping datetime columns. I want to produce an analysis showing just the date columns as a single dataframe to reveal the overlapping dates. Similar to this,| A | B | C | | 2017-05-01 | NAN | 2017-05-01 | | 2017-05-02 | NAN | 2017-05-02 | | 2017-05-03 | 2017-05-03 | 2017-05-03 | | ... | ......
ادامه مطلبVote count: 0I want to formulate a code to send the SMS to the client using AWS service i have written a code for message push and its also giving me 200 success response. But unable to get the way to send message to particular user.public class Amazonsms {AWS credentials -- replace wit...
ادامه مطلبVote count: 0I have tried to fond an api for tuing a picture into cartoon in android studio project, but unfortunately i can't fond. So help me in finding an API of adobe for tuing a picture into cartoon in android studio project. asked 20 secs agoArifullahLet's block ads! (...
ادامه مطلبVote count: 0I need help to make a userscript to target all white background and tu them black and all black text to silver using javascript for all websites, all other elements should stay original. The color range for background is from silver to black and dark gray to black for tex...
ادامه مطلبVote count: 0I am developing an app in which the users can have multiple lists. My Firebase database looks like this:The model that i use is this:public class UserModel { private String userId; private String userName; private String userEmail; private HashMap lists;...
ادامه مطلبVote count: 0 I used postman and give me that code and i try. NSDictionary *headers = @{ @"authorization": @"Basic dXNlcl90c19hcGk6cW****************", @"cache-control": @"no-cache", @"postman-token": @"48ca81bb-eea4-7196-*******************" }; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.techshort.in/ts_api/category_list.php"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"GET"]; [request setAllHTTPHeaderFields:headers]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLRespon...
ادامه مطلبVote count: 0 I'm trying to input this transfer function in matlab, but I can't figure out how because it has both positive and negative exponents. If I do H = tf([1],[1 1 1 1],0.1,'variable','z^-1') I almost get it, but I can't figure out how to add the positive z to the bottom. I'm trying to use this H to plot the poles and zeros with pzmap(H). asked 55 secs agoJake Let's block ads! بخوانید...
ادامه مطلبVote count: 0 #include "std_lib_facilities" class Token { public: char kind; // what kind of token double value; // for numbers: a value Token(char ch) // make a Token from a char :kind(ch), value(0) { } Token(char ch, double val) // make a Token from a char and a double :kind(ch), value(val) { } }; class Token_stream { public: Token_stream(); Token get(); void putback(Token t); private: bool full; Token buffer; } ; Token_stream::Token_stream() :full(false),buffer(0) { } void Token_stream::putback(Token t) { if(full) error ("putback() into a full buffer"); buffer=t; full=true; } Token Token_stream::get() { if(full){ full=false; retu buffer; } char ch; cin >> ch; switch (ch) { case 'q': case ...
ادامه مطلبVote count: 0 I'm a newbie in JS and have a little to no knowledge about asynchronous program and promise. I have a problem in getting result from post PHP as written in this code: showModalLink = function(d, i) { $('#myModalLabel').text(d.source.name + ' - ' + d.target.name); $('#modalJum').text(d.jumlahlelangsama); var lelang = d.daftarlelangsama.split(", "); var lelangmodal = []; var promises = []; for (var i = 0; i < lelang.length; i++) { querystring = "select pemenang from lelang where id = " + lelang[i]; console.log(querystring); var queryobj = { query: querystring }; promises.push($.post('indikasi3modal.php', queryobj)); } Promise.all(promises).then(function(results) { if (results[i] ...
ادامه مطلبVote count: 0 I am searching a way to authenticate users from an Active Directory Server within my Python / Flask Application. Also needed is a verification step where the client certificates are checked. After the step the Python application should know the groups of the current user so that different access levels can be defined. In the last weeks I read about OAuth2, heard about SAML, ADFS and Shibboleth. Flask Oauthlib appears to provide a good solution for OAuth2 but it is no perfect match for the use case. (+ not really simple and kind of broken) Therefore: Has anybody tried to integrate ADFS into Flask? Any recommondations on how to this? I thought about using python-saml - can I make...
ادامه مطلبVote count: 0 My desktop has a NVIDIA GeForce GTX 745 with 4GB DDR3 and I plan on upgrading to an NVIDIA GeForce GTX 1070 with 8GB DDR3, I have read mixed reviews online and it seems as though too slow of a dedicated PHYSX dedicated graphics card would actually decrease your frame rate. Seeing as the 745 would sell for very cheap and I would feel bad not using all of my hardware, will I see an improvement in performance? Is there any way that I could utilize my old graphics card? asked 42 secs agoCHouse95 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 New to using SQL server management studio... Just trying to filter my table results to show only records that have (deceased) in them... So far I have select SURNAME, count(SURNAME) from [dbo].[blahblah] group by SURNAME order by SURNAME I would usually use TRIM/translate like the below, however it doesn't recognise these functions... select trim(translate(cast(GUAR_PHONE as string), '0123456789', ' ')),GUAR_PHONE from atable WHERE trim(translate(cast(GUAR_PHONE as string), '0123456789', ' '))'' ; asked 38 secs agoBenji Taylor Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to create a new document wherein some of the field values would come from the current document. Note that current document is not in edit mode. There are three buttons in the current document: Edit Document //Validate inputs myForm = window.document.forms[0] myForm.Refresh.click() myForm.Edit.click() Add Guest //Validate inputs myForm = window.document.forms[0] myForm.AddGuest.click() Close myForm = window.document.forms[0] myForm.Close.click() Once the Add Guest button is clicked, it must be able to access the lotusscript agent which can be found in another hidden button, "AddGuest". @Command([ToolsRunMacro]; "AddGuests") Once the Add Guest button's clicked, there ...
ادامه مطلبVote count: 0 Hi I have json file i need to restrict entering same class and section in json file using php. please help me where me went wrong in code.... My json file as follows [{ "acdyr1": "2000", "acdyr2": "2001", "parameters": [{ "medium": "ENG", "academic_syllabus": "STATE", "class_section": [{ "standard": "UKG", "sec": ["A"] }] },{ "medium": "KAN", "academic_syllabus": "STATE", "class_section": [{ "standard": "LKG", "sec": ["A"] }, { "standard": "UKG", "sec": ["A"] }, { "standard": "UKG", "sec": ["A"] }] }] }, { "acdyr1": "2001", "acdyr2": "2002", "parameters": [{ "medium": "ENG", "academic_syllabus": "CBSE", "class_section": [{ "standard": "LKG", "sec": ["A"] }] }] }] // Code goes h...
ادامه مطلبVote count: 0 I haven't found a working example of implementing PCA analysis using Opencv that suits my case, so I'm not sure what is wrong with my implementation, which follows: void PreProcessor::performPca() { const int type = CV_64F; cv::Mat pt_mat = cv::Mat::zeros(numPatients, numFeatures, type); for (int y = 0; y < numPatients; y++) { for (int x = 0; x < numFeatures; x++) { pt_mat.at(y,x) = features[y].at(x); } } cv::PCA pt_pca(pt_mat, cv::Mat(), CV_PCA_DATA_AS_ROW, numFeatures); cv::Mat dataprojected(pt_mat.rows, numFeatures, pt_mat.type()); for (int i = 0; i < pt_mat.rows; i++) { dataprojected.row(i) = pt_pca.project(pt_mat.row(i)); } features.clear(); for (int i =0; i< dataprojected...
ادامه مطلبVote count: 0 I've seen couple of ways, some of them seems not relevant any more though. In which one do you use? asked 31 secs agoM.Ashbo Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i got some project that the idea is the sender send the file.txt to the receiver on linux c++. i have implemented the function explain below. the problem is if the sender send a file with 1638 number of lines the receiver can't properly write the file. sender.cpp int Socket,n; int t; struct sockaddr_in serv,client; char *buffer; int size, size1= 0; char cisi[10]; void socketting(){ Socket = socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); serv.sin_family = AF_INET; serv.sin_port = htons(41); serv.sin_addr.s_addr = inet_addr("127.0.0.1"); socklen_t l = sizeof(client); socklen_t m = sizeof(serv); } int main (){ socketting(); while(1){ ifstream is ; cek: is.open("iptabless.txt", ios::in|io...
ادامه مطلب