back soft

مطالب مرتبط با «using nd» در back soft | نویسنده: استخدام کار

XMI File Reading using Asp.net C# and show in tree view

Vote count: 0 How I can read XMI file in asp.net C# and show in tree view. XMI have different format with XML , I want to read XMI file data with following format in asp.net C#. Format for XMI given bellow. Can any one please suggest how I can read this format and convert this XMI to Tree format in C# boolean byte boolean byte...

ادامه مطلب

API send email and Password using CURL

Vote count: 0 I have written some code into a plugin for Wordpress that when the User hits the submit button their information is stored in the WP database and is also sent to a third party website with their email and password using JSON protocalls. this is the code I use: $url = "https://api.example.com/v1/logins"; $data = array( 'email' => $_POST['$bemail'], 'password' => $_POST['$password'], ); $content = json_encode($data); $curl = curl_init($url); $apikey = "xxxx"; curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array( 'example.com-Api-Key: ' . $apikey, 'Accept: application/json', )); curl_setopt($curl,...

ادامه مطلب

datetime checker using if else condition c#

Vote count: 0 i use this code check date availability from the database and so i use one textbox which is linked to a datepicker ui and a dropdownlist to select time. the problem is if i select a date and fullday and if it is in database table already it shows date unavailable as its supposed to same for afteooon or forenoon for the same date. but when i select a date where either afteoon or forenoon is already booked it only blocks afteoon or forenoon respectively and if i select fullday for the same date it says date available and i tried to use if condition inside if condition to solve this but i dont know where im doing wrong please someone help me. thanks in advance. Sincerely the front...

ادامه مطلب

Generate different totals of an image using a checkboxlist and user input

Vote count: 0 I have a barcode generator that takes information stored in a database and generates a barcode from a databound checkboxlist selection. There are different check boxes, the user checks the boxes of the items they want and enter a universal total. protected void btnGenerate_Click(object sender, EventArgs e) { int n; int i = Int32.Parse(BatchNumText.Text); for (n = 1; n...

ادامه مطلب

Using WebSocket++ and authentication

Vote count: 0 I would like to add a WebSockets server to the stack, which is currently a mix of .Net for the web service side, and c++ for the high performance servers. I would like to interface some of our c++ servers, which currently use a custom protocol, with a c++ WebSockets service. I'm fairly new so I've looked around and for a first cut, I would like to use WebSocket++ I've looked at the documentation, and see that a basic service can be started at any port. What I'm wondering is how to handle authentication. Ideally, we could use our current authentication methods, which is either Basic (over https), or token based with a (also over https). All of the examples I've seen have the Web...

ادامه مطلب

Reading the XMl Response and Extracting the nodes using c#

Vote count: 0 I am trying to extract the XML Response from an API. My XML response looks like below. I tried different methods. can you please help me in reading and extracting the individual nodes from the XMl response. For Example: I want to extract node from below XML response. 54378451898093/24/2016 1:34:44 PM22022ITSTEST.ISMICC Processor24032016013444184.9966.55.53.68MANUALFALSESaleFALSEYM0b144718-3597-4cfb-a2b5-058679510f29303281111184.990917Keeth BolerVISA0approvalSettled asked 31 secs agovinisha9 Let's block ads! بخوانید...

ادامه مطلب

how to read data from json instead of array using ng2-dnd package?

Vote count: 0 Im using ng2-dnd package, simple html5 package to do drag-and-drop on a list to sort it, but I could only figure out how to populate the list from an array and I need it from json, this is my code: import { Component } from '@angular/core'; import { DND_DIRECTIVES } from 'ng2-dnd/ng2-dnd'; import { Report } from "./Report"; @Component({ selector: 'my-app', styleUrls: ['style.css'], directives: [DND_DIRECTIVES], template: ` {{title}} list of reports: ID:{{rep.id}} Name:{{rep.name}} {{reports | json}} ` }) export class AppComponent { title = 'Reorder List'; reports = [ new Report(1, 'Italy'), new Report(2, 'Spain'), new Report(3, 'Italy'), new Report(4, 'Spain'), new Report(5, 'N...

ادامه مطلب

Using AngularJS ngModel and Form Validation to $watch two elements and test if they are equal whenever either input changes

Vote count: 0 What I am trying to do is create a directive which compares two password inputs and triggers invalid if either changes. I have found a few examples and have tried a few and have combined a few in my own attempts. However, I have only been able to toggle the validity with $setValidity when the confirm password field changes. When you change the password field it doesn't trigger the invalidity of the comparison. Here's my directive: app.directive("passwordVerify", function() { retu { require: "ngModel", scope: { passwordVerify: '=', }, link: function(scope, element, attrs, ctrl) { scope.$watch(function() { var combined; if (scope.passwordVerify || ctrl.$viewValue) { combined = sc...

ادامه مطلب

How do I export an Excel worksheet and embed it in email using powershell?

Vote count: 0 I'm looking to take the first worksheet off of an Excel workbook and embed it into the body of an email. The problem I'm ruing into is that the first half of my code won't export the worksheet into a nice, single .htm file (which you can do in Excel) and thus, doesn't embed properly. Another member suggested exporting to a single .mhtml file, but I found that opens another can of worms when trying to get it to embed into the body of an email. I'm willing to tear this all apart and start over, however, if I use a single .htm file from a "Save As" from within Excel, it works perfectly. Thanks in advance all. ##### Excel Stuff Here ################ #Create and get my Excel Obj $ex...

ادامه مطلب

How to set min and max prices for products using _POST_FLAT_FILE_LISTINGS_DATA_ in Amazon MWS API

Vote count: 0 How to set min and max prices for products using _POST_FLAT_FILE_LISTINGS_DATA_ in Amazon MWS API for a particular product with a asin/sku in php asked 16 secs agoSaroj Shaw This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

How do I set NTFS permissions to a Linux equivalent using Bash on Windows-10?

Vote count: 0 I want to remote in to a Ubuntu server using my new and still shiny Windows 10 Bash. When I try ssh -i "... /private1.ppk" Uname@IP I get the message " WARNING: UNPROTECTED PRIVATE KEY FILE!" & "Permissions 0444 for '... /private1.ppk' are too open." Wanderings around the web suggest 0600 should do it. I have already stripped back the permissions for the file private1.ppk and the folder it is in to 'read-only' for just one user. Needless to say chmod 0600 private1.ppk doesn't work. I'm not surprised because the Win & Linux ways are so different but it's worth asking in case I'm missing something ... is there a way to get my file to 0600? In the meantime it's back to PuTTY :-) a...

ادامه مطلب

Using Spring RestTemplate for HTTPS call causes "javax.net.ssl.SSLHandshakeException" unable to find valid certification path to requested target

Vote count: 0 I am able to hit the service using postman(rest client) but the same fails while using Spring Rest Template. asked 17 secs agoVikas Rajoria This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

Move myvenv and using virtualenvwrapper-win

Vote count: 0 I have this directory structure: C:/Python/projects/ | |__ myproject1name/ | |__project1site/ | |__myvenv/ | |__ myproject2name/ |__project2site/ |__myvenv/ To activate myvenv I digit C:/python/projects/myproject1name/myvenv/scripts/activate It works but it's boring so I want to use virtualenvwrapper-win I installed it inside myvenv (that is with myvenv active)... I think it's an error so I installed again globally. Right? Anyway it doesn't works (workon command unknow). I think I should set WORKON_HOME enviroment variable. I see two ways: 1) use the default %USERPROFILE%Envs 2) set WORKON_HOME=C:/Python/projects/ but then each project should have a different named env? or mayb...

ادامه مطلب

how to get word and decimal value separate in array using regex in c#

Vote count: 0 need following output : 1) decimal value must be as it is 2) if we use "()" in input string as given in variable input1 = "pops + nts(1.75%)" , then its should remove that closing and opening bracket expected output: [0]="pops" 1="nts" [2]="1.75" static void Main(string[] args) { //string input1 = "pops + nts(1.75%)"; string input2 = "pops + nts1.75%"; string[] Resul2 = Regex.Split(input2, @"(W+)(D+)(d+)"); } asked 29 secs agoyash fale This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labo...

ادامه مطلب

Mobile based authentication using Angular/ionic and a symfony backend

Vote count: 0 I have a mobile app which is trying to authenticate before accessing APIs from a symfony backend. Here is how it is done : the app use a route like oauth/v2/token to which it gives the useame, password and other stuffs like client_id and client_secret. And the oauth retus a auth_token, refresh_token and other stuff. But here is the issue. Whenever I try to access to an API in the mobile (i'm testing via browser by using the command ionic serve) it redirects me to the web authentication page and my API retus in the console html code for that authentication page. Does someone might know where I get it wrong. For info whenever I make an api call I inject the token I get from authe...

ادامه مطلب

Internationalize and Localize option using Ionic2/Angular2

Vote count: 0 I am developing ionic2/angular2 app for Android mobile. I want to provide option to user to choose language option in the login page. Is there any way to do the app level Inteationalization using ionic2/angular2? I have seen so many examples with device level Inteationalization. asked 45 secs agovishnu This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

How to manipulate packet and write to pcap file using pcap4j

Vote count: 0 I want to get through a pcap file and go to each packet. Then get IP Address and manipulate it. In the end, I'm going to write it into a new pcap file. I use pcap4j version 1.6.4 and below is how I get the Source IP Address: String fname = "FileName"; String dumpFile = "newFileName"; PcapHandle h = Pcaps.openOffline(fname); PcapDumper dumper = h.dumpOpen(newFileName); Packet p = null; while ((p = h.getNextPacket()) != null) { IpV4Packet ip = p.get(IpV4Packet.class); Inet4Address srcAddr = ip.getHeader().getSrcAddr(); } As I mentioned, I got the Source IP Address and now I don't know how to set the new Source IP Address and write it to NewFileName. Any help would be appreciated....

ادامه مطلب

I want to get descriptive statistics in python using describe function in pandas library

Vote count: 0 enter image description here I want to get descriptive statistics in python using describe function in pandas library. I want the summary statistics for column contb_receipt_amt at level of cand_nm. I tried using aggreggate and groupby function but could nt implement it correctly. Also, how can i use decribe for a selective column in python. asked 38 secs agoAbhisek Gupta This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

Trying to find the circular reference in my django urlpatterns using django-subdomains?

Vote count: 0 I'm getting a the url conf correct for my web app, and I'm at a loose end. I think the idea behind django-subdomains is that the subdomain routing is stored in the SUBDOMAIN_URLCONFS ROOT_URLCONF = 'creativeflow' # A dictionary of urlconf module paths, keyed by their subdomain. SUBDOMAIN_URLCONFS = { None: ROOT_URLCONF + '.urls', # no subdomain, e.g. ``example.com`` 'www': ROOT_URLCONF + '.urls', 'blog': 'blog.urls', } Then my creativeflow.urls and blog.urls are: """Creativeflow URL Configuration.""" from django.conf.urls import url from django.contrib import admin urlpattes = [ url(r'^admin/', admin.site.urls, name="admin"), ] And """Creativeflow URL Configuration the blog app...

ادامه مطلب

In C++ what is the difference between declaring an object using {}, () and nothing?

Vote count: 0 I have defined this class: class numbers { private: int i{ 0 }; int j{ 0 }; public: int get_i() const; int get_j() const; void set_numbers(int, int); numbers(int x, int y); numbers(); }; Now in the int main(void) what is the difference between the following statements: numbers numberA; numbers numberA (); numbers numberA {}; numbers numberA (10,20); numbers numberA {10,20}; Basically I am confused between the use of () empty or otherwise vs {} empty of otherwise. Both of them seem to give same result, but with programming languages things usually have very specific meanings thus this question. I notice that using numberA (10,20); causes 2 calls to initializer than numberA {10,2...

ادامه مطلب