Vote count: 0 I try to invoke a webservice from my program (written in C++, VS6.0 and SoapSDK 3.0). From SOAPUI I invoke as shown in the image. I tried to write code based on examples from the inteet as follow. CoInitialize(NULL); ISoapSerializerPtr Serializer; ISoapReaderPtr Reader; ISoapCoectorPtr Coector; ISoapError Err; // Coect to the service Coector.CreateInstance(__uuidof(HttpCoector30)); Coector->Property["EndPointURL"] = "http://psaljane:8080/CIPSiteWeb/services/MassinissaWebService?wsdl"; Coector->Property["AuthUser"] = "wsuser"; Coector->Property["AuthPassword"] = "WsUseR$1994"; Coector->Coect(); // Begin message Coector->Property["SoapAction"] = "executeService"; Coector->BeginMe...
ادامه مطلبVote count: 0 This is not a dup of JSlint: unexpected 'for' , please do not mark it as such: There is no native for loop for looping through an object or object literal ( I know there is a .forEach for arrays ). Why does jslint suggest not using for loops? How do you loop through an object that does not have Array.forEach() or Array.some() or similar? But the bigger more important question, is why is this suggestion made? Obviously I could use Object.keys() and then forEach() but this seems like a longer way to do it. Originating Code // on a truthy match retus true and breaks from loop Pub.someKey = function (obj, func, con) { var key; if (!Pub.isFunction(func)) { retu false; } for (key in ...
ادامه مطلبVote count: 0 While wrk is giving me excellent stats in terms of percentile, I want to see where the latency spikes are occurring as std.dev. is quite high (~70%). I suspect it is probably when new apache process is spawned the spike is occurring asked 1 min agoshreyas Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I’ve been given a project on following requirement. I would like to know if any shortcut applicable trick is there to open a SQlite database and execute SQL queries using .bat file. If it’s there it would be much helpful to me. My database path I’ve kept as under: C:UsersbhattyDesktop Database name: content.sqlite Query to be updated: update attribute set att_final=0 where att_id like 1 asked 48 secs agoYogin Bhatt Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a rest api in nodejs. my mobile app will consume my rest api. Can i implement oauth2 type authentication using aws cognito for my mobile app? I need resource owner password grant if i implement oauth2. asked 23 secs agoLutfor Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have fliters in my asp.net project and want to add expression to this list with condition: Expression func; var list = new List(); I want to use "OR" condition between elements of list. for example: if(sth){ func = p => p.a...
ادامه مطلبVote count: 0 As an exercise, I'm trying to use a systemcall from node.js to write a small text file to the /tmp directory. Here is my code: #!/bin/node var child_process = require("child_process"); var send = "Hello, world!"; child_process.exec('cat - > /tmp/test1', { input: send }); The file actually gets created; but, no content is placed in it. Things just hang. Can someone please tell me what I'm missing? Also, I'd really like to know how to do this synchronously. Thanks for any input. ... doug asked 1 min agouser3311045 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have an edit menu that appears on the top edge of the selected LI in a potentially deeply nested UL. That edit menu can potentially cover up the text of the previous, adjacent LI, so I'd like to be able to hide the edit menu if you mouse over the previous LI (regardless of which UL the LI falls under). Furthermore, there may be hidden LI's in between the edit menu and the last visible LI before the edit menu, so we only want to deal with the last visible LI. In my below example, I'd like the .edit-menu div to hide when you hover over li#3. HOVER ME HIDDEN, SO SKIP THIS ONE Edit SELECTED LI Here is an attempt I made at determining the next one, but it only works if the next LI...
ادامه مطلبVote count: 0 I want to create a web based scraper using Python, Selenium and PhantomJS where you can input a url into a form and the results from the scrape will be retued to the webpage. I can run it on my PC and I can also get it to work through the terminal. It is located in a virtual environment on Dreamhost shared hosting with Python3.5 installed. I have tested that the parameters are being passed in fine, and it does work using just lxml and requests. However, when I try to run the script from the form on the webpage using PhantomJS then it doesn't work properly. The following error in retued... Traceback (most recent call last): File "testscrape.py", line 140, in driver = init_driver...
ادامه مطلبVote count: 0 I'm trying to write a image via UART on Beaglebone Black. But when I use the write() function in library . int write( int handle, void *buffer, int nbyte ); Regardless of agurment nbyte in the write() function has int type, I can not transfer 70kB at once time. I displayed the number of byte which is transfered, and the result is the number of byte = 4111. length = write(fd,body.c_str(),strlen(body.c_str())); // cout...
ادامه مطلبVote count: 0 I am wanting to add a cocoapod as a dependency within my Xcode project. However, I am trying to avoid using cocoapods within my project for various reasons. How can I add the pod to my project like a submodule as an alteative? The cocoapod that I'm attempting to use is InstagramKit. I attempted to install the git repository as a submodule, which worked fine. Once there I tried adding the entire cocoapods project to my xcode project. I added it as a project dependency, but the build fails with no indication as to what went wrong. I did run pod install on the InstagramKit project that I added to my project. So all of its dependencies were properly configured. Any idea how I can a...
ادامه مطلبVote count: 0 Hi im writing a Slot machine GUI and i want it so that The Slot machine will stop Reel 1 and roll reel 2 and 3 when "Respin" is pressed. This code is not working for me please help if (event.getSource()== btnHold1) { counter = 0; timer1.stop(); btnHold1.setEnabled(false); } if (event.getSource()== btnHold1 && event.getSource()== btnRespin) { timer2.start(); counter2=0; timer3.start(); counter3=0; } asked 43 secs agoMichaelG Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have 2 files in the main dir of my Meteor project. 1. test.html Test 2. test.coffee { Template } = require 'meteor/templating' #require './test.html' Template.test.onRendered () -> console.log 'test rendered' When the comment is active a get the error TypeError: Caot read property 'test' of undefined when I comment it in the error is: Error: Caot find module './test.html'. Is it still posible to work with Blaze and CoffeeScript? asked 37 secs agosoftwarerero Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've been leaing Shiny and R for a few days, but I've run against a wall. My problem is as follows: I want to use radioButtons (input$relStat) so if an option each option runs a different calculation for textOutput. The inputs come from a slider for basicIncome and numeric for childNum. #ui.R sliderInput(inputId = "basicIncome", label = "Choose a monthly basic income", value = 600, min = 0, max = 1200, step = 50 ), textOutput("aualBasicIncome"), ) #server.R aualBasicIncome...
ادامه مطلبVote count: 0 I am trying to pass value quest.quesId and questionOption.name to function checkScore. But it is coming as undefined(questionId, optionName). If same line is put inside ol then I am able to get the quest.quesId but this would not suffice the purpose. HTML page {{ quest.question }} {{ questionOption.option }} Check Score JS page var qnaModule = angular.module("qnaModule", []); qnaModule.controller("qaCtrl", function($scope) { $scope.questionJson = [{ "question": "What's your name?", "quesId": 1 }, { "question": "When was the universe form?", "quesId": 2 }] $scope.optionJson = [{ "option": "A", "quesId": 1 }, { "option": "B", "quesId": 1 }, { "option": "C", "quesId": 1 }, { "opti...
ادامه مطلبVote count: 0 I want to fetch user data from Facebook using my app. I've written the code and it logs in the user but fails to fetch user data. Here's the code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AccessToken accessToken = AccessToken.getCurrentAccessToken(); callbackManager = CallbackManager.Factory.create(); if (PrefUtils.getCurrentUser(getActivity()) != null) { //dont ask for login Intent homeIntent = new Intent(getActivity(), MainActivity.class); startActivity(homeIntent); Toast.makeText(getActivity(), "Intent", Toast.LENGTH_SHORT).show(); //getActivity().finish(); } mCallBack = new FacebookCallback() { @Override public void onSuccess(Log...
ادامه مطلبVote count: 0 I am working on asp.net application where i am using facebook and google plus login with c sharp code. Everything working fine for both social platforms. I am using the following code: CS: GoogleProfile profile = new GoogleProfile(); FaceBookUser faceBookUser = new FaceBookUser(); protected void Page_Load(object sender, EventArgs e) { try { //Google plus GoogleCoect.ClientId = ConfigurationManager.AppSettings["GoogleClientId"].ToString(); GoogleCoect.ClientSecret = ConfigurationManager.AppSettings["GoogleClientSecret"].ToString(); //Facebook FaceBookCoect.API_Key = ConfigurationManager.AppSettings["FacebookAPIKey"].ToString(); FaceBookCoect.API_Secret = ConfigurationManager.App...
ادامه مطلبVote count: 0 I encountered a quite weird problem when indexing a numpy ndarray. You can produce the result with following code. I don't understand why the result of indexing a is somehow transposed while the result of 2d array b is normal. Thanks. In [1]: a = np.array(range(6)).reshape((1,2,3)) In [2]: mask = np.array([True, True, True]) In [3]: a Out[3]: array([[[0, 1, 2], [3, 4, 5]]]) In [4]: a[0, :, mask] Out[4]: array([[0, 3], [1, 4], [2, 5]]) In [5]: a[0, :, mask].shape Out[5]: (3, 2) In [6]: b = np.array(range(6)).reshape((2,3)) In [7]: b[:, mask].shape Out[7]: (2, 3) asked 2 mins agoTexot Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm looking for all setuid/setgid files. When I don't use -exec, it works as expected: # find /usr/bin -type f -perm -4000 -o -perm -2000 /usr/bin/wall /usr/bin/ksu /usr/bin/chage /usr/bin/chfn /usr/bin/chsh /usr/bin/fusermount /usr/bin/passwd /usr/bin/write /usr/bin/su /usr/bin/umount /usr/bin/gpasswd /usr/bin/newgrp /usr/bin/mount /usr/bin/pkexec /usr/bin/crontab /usr/bin/cgclassify /usr/bin/cgexec /usr/bin/ssh-agent /usr/bin/Xorg /usr/bin/at /usr/bin/sudo /usr/bin/locate /usr/bin/staprun When I use -exec, I only get a subset of the results back: # find /usr/bin -type f -perm -4000 -o -perm -2000 -exec ls -l {} ; -r-xr-sr-x. 1 root tty 15344 Jan 27 2014 /usr/bin/wall -rwxr-sr...
ادامه مطلبVote count: -1 I am looking for a good example for using Asynctask in NavigationDrawer that uses RecyclerView for listing menu items asked 2 mins agonme Let's block ads! بخوانید...
ادامه مطلب