Vote count: 0 Pretty much the title. I want to use google app script to gather some info from the web, and put it in the document. I'd assume it is possible to google things from google script, but I caot find an answer. Can anyone help me with this? asked 1 min agouser1932868 Let's block ads! بخوانید...
ادامه مطلب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 I am trying to handle svn operations through a web portal using SVNKit with spring. I am able to perform separate operations like commit,cleanup,update etc. My commit code goes like : public Exception commit(String user, String password, String fileName,String comment) { Exception svnException = null; try { SVNUtil.cleanUpSVN(); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user, password); ISVNOptions options = SVNWCUtil.createDefaultOptions(true); SVNClientManager svnClientManager = SVNClientManager.newInstance(options, authManager); SVNCommitClient svnCommitClient = svnClientManager.getCommitClient(); File commitFile = new File(fileName...
ادامه مطلبVote count: 0 As the title suggests, I have a Grafana 'graph' that I populate with points from InfluxDB. The elements of the time series have two fields: 'rate' and 'source'. The graph is time on the x-axis of course, and 'rate' on the y-axis. I'd like to see 'source' when I hover over a point. Is this possible with Grafana / Infux?` asked 1 min agohorse hair Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am pretty new to python, but I know the basic commands. I am trying to create a for loop which, when given a list of sentences, adds a key for the length of each sentence. The value of each key would be the frequency of that sentence length in the list, so that the format would look something like this: dictionary = {length1:frequency, length2:frequency, etc.} Here is the code I have: dictionary = {} for i in sentences: dictionary[len(i.split())] += 1 When I try to run the code, I get this message: "SyntaxError: multiple statements found while compiling a single statement." I am not sure if this is a problem with the loop, or with the sentences themselves (I created them by u...
ادامه مطلب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 In my Android project, I have a webview. HTML source has 2 radio buttons. Using Espresso Web, I want to choose one of these 2. How do I do that? For eg: Thanks! asked 40 secs agoShikhar Shrivastav 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 I am trying to merge two mp4 files which are having different frame rates using following code: public class MergeMP4 { public static void main(String[] args) throws IOException { String[] videoUris = new String[]{ "D:/m2.mp4", "D:/m1.mp4"}; List inMovies = new ArrayList(); for (String videoUri : videoUris) { inMovies.add(MovieCreator.build(videoUri)); } List videoTracks = new LinkedList(); List audioTracks = new LinkedList(); for (Movie m : inMovies) { for (Track t : m.getTracks()) { if (t.getHandler().equals("soun")) { audioTracks.add(t); } if (t.getHandler().equals("vide")) { videoTracks.add(t); } } } Movie result = new Movie(); if (...
ادامه مطلبVote count: 0 I would like to show only partners that a user is assigned to, I have a list of partners as below: { "_id" : ObjectId("57c1cfa16c9cdc9007b26f8a"), "__t" : "Partner", "createdAt" : ISODate("2016-08-27T17:36:33.648+0000"), "updatedAt" : ISODate("2016-08-27T17:36:33.648+0000"), "user" : ObjectId("57c1cf776c9cdc9007b26f7b"), "descr" : "asdkalksdasdasd", "name" : "partner1", "__v" : NumberInt(0) },{ "_id" : ObjectId("57c1cfe76c9cdc9007b26fd2"), "__t" : "Partner", "createdAt" : ISODate("2016-08-27T17:37:43.784+0000"), "updatedAt" : ISODate("2016-08-27T17:37:43.784+0000"), "user" : ObjectId("57c1cf776c9cdc9007b26f7b"), "descr" : "sdfdsfsdf", "name" : "partner2", "__v" : NumberInt(0) }...
ادامه مطلبVote count: 0 How the insert dynamic formula in excel vba? (i.e) if i insert a formula in cell it should produce an output correspondingly. The formula is dynamic with various operators such as 100*a+b/c*d asked 40 secs agoatharsh Let's block ads! بخوانید...
ادامه مطلب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 have the function: //this function takes two params, a string and then the delimiter where the string is to be split up function substringSplit(str, del){ var str; var del; for(var i=0;i...
ادامه مطلب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...
ادامه مطلبVote count: 0 I need to check if two given sequences are equal, but if I find a mismatched element I need to check in a 3rd sequence (same size of the other two) if that can be ignored. I know that I can write a simple algorithm to solve that, but I would like to know if there is any C++-like style to solving this, using a std algorithm. Example: A = [1, 2, 3, 4, 5, 6] B = [1, 2, 3, A, 5, 6] M = [true, true, true, false, true, true] N = [true, true, true, true, true, true] bool equal1 = the_equal(begin_A, end_A, begin_B, begin_M); // Should retu true, even if '4' is different from 'A' since in the same position of the found mismatch, in the M sequence, we have a false that indicates that pos...
ادامه مطلبVote count: 0 How can I find an object in JpaRepository which value stands between two other values. This is my table in DB: What query should I use ? findOneBetweenSinceAndUntil(Long value) ? asked 36 secs agoGustavo Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Hi I am using Express to work with MongoDB. I am pretty new to both. I got a find function working, it looks like this: function find (current_collection, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': '1234abcd' }, function (err, result) { // ... some err and cb handling }); }); } I logged the result and everything looks fine. I want to this code somewhere else, so I tried to use variables in the query and tued the function into something like this: function find (current_collection, val, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': val }, functio...
ادامه مطلب