2018-10-22         Primo

Starting Paypal Merchant Account

I have tested my application using sandbox account in paypal using IPN method. Now I want to start live selling my products. I need you guys to help me which type of accounts is good or best. Do I need Merchant account or another type of account share me link where can i signup for seller account and also send me link where i can signup for one buyer account. And also please give some tip about live paypal. Its going to be my first paypal experience. This is old, but I'll answer it in case someone else is in this boat.You need a business account to access most of the API...

 paypal                     1 answers                     97 view
 2018-10-22         Primo

How to Drag and Drop onto .BAT all while maintaining entire File Name?

I created a small bat that takes folder(s) and/or File(s) and stores the results in a temp file. But I soon found that when trying to drop a file with a !, the ! was lost when the results were put in temp file. I also tried to add tokens and override the default delimiters, but no go for that as well. Any Ideas?::Drag and drop Folder(s) or File(s) stores results in temp txt fileFor %%I in (%*) do (set Drag_Drop_Var!n!=%%Iecho !Drag_Drop_Var0!>>temp123456789.txtSo disabling delayed expansion works for retaining the ! but their are cases where I need it enabled and I wi...

 loops                     1 answers                     12 view
 2018-10-22         Primo

Silex: Get Authenticated User Information on Routes Outside of Firewall

I am using Silex 2.0 (I know - it's development version and not fully released yet) along with CNAM's JWT security provider (see: https://github.com/cnam/security-jwt-service-provider) to write an API for an open source application I am writing.In short, there are three types of users that I care about:Sitewide admins (ROLE_ADMIN) that have complete accessCommissioners (ROLE_COMMISH) who create objects they own, and can edit their own objectsAnonymous users who access read-only information.As such, there are three sections of routes that go along with these "roles":/admin/*...

 php                     3 answers                     4 view
 2018-10-22         Primo

NoReverseMatch at / list

I tried get dynamic linkError: NoReverseMatch at / Reverse for 'new_single' with keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried: ['single/']Code:view:{% for new in news %} {{ new.id }} <h2><a href="{% url 'new_single' pk=new.id %}">{{ new.title }}</a></h2>{% endfor %}urls:urlpatterns = [ url(r'^$', views.news_list, name='news_list'), url(r'single/<int:pk>', views.new_single, name="new_single"),]views:def new_single(request,pk): new=get_object_or_404(News,id=pk) return render(request,"news/news_single.html",{...

 django                     1 answers                     41 view
 2018-10-22         Primo

What kind of C11 data type is an array according to the AMD64 ABI

I was researching the calling convention of x86_64 that's used on OSX and was reading the section called "Aggregates and Unions" in the System V x86-64 ABI standard). It mention arrays and I figured that was like a fixed length c array, e.g. int[5].I went down to "3.2.3 Parameter Passing" to read about how arrays were passed and if I'm understanding correctly, something like uint8_t[3] should be passed in registers as it's smaller than the four eightbyte limit imposed by rule 1 of the classification of aggregate types (page 18 near the bottom).After compiling I see that ins...

 c                     1 answers                     85 view
 2018-10-22         Primo

Python selenium tor failed to start

from selenium import webdriverfrom selenium.webdriver.firefox.firefox_profile import FirefoxProfilefrom selenium.webdriver.firefox.firefox_binary import FirefoxBinarybinary = FirefoxBinary(r'C:\Users\Skid\Desktop\Tor Browser\Browser\firefox.exe')profile = FirefoxProfile(r"C:\Users\Skid\Desktop\Tor Browser\Browser\TorBrowser\Data\Browser\profile.default")driver = webdriver.Firefox(profile, binary)driver.get("http://stackoverflow.com")A window from tor pops up saying "Tor failed to start" I press OK then it says, "Could not connect to tor control port' I solved my similar ...

 python                     2 answers                     93 view
 2018-10-22         Primo

Trying to list items in object and one is an array....keep getting error

This question already has an answer here: Cannot read property 'map' of undefined in React 2 answers That's because the variable this.state.topic.comments has no values [XXX]

 reactjs                     1 answers                     57 view
 2018-10-22         Primo

Spring - Error Parameter 0 of constructor in Service required a bean of type Configuration that could not be found

I followed tutorial for uploading files but I end up with the following error:Parameter 0 of constructor in nu.pk.cv.storage.FileSystemStorageService required a bean of type 'nu.pk.cv.storage.StorageProperties' that could not be found.Action:Consider defining a bean of type 'nu.pk.cv.storage.StorageProperties' in your configurationThe only difference that I know that I have done is that I use @RestController instead of only @Controller And that I have my controller in another subpackage and not in the parent package. My storage classes are in nu.pk.cv.storage while my contr...

 java                     2 answers                     57 view
 2018-10-22         Primo

Set style with eventsetter in resources programmatically

I need to apply style in grid resources programmatically in code behind.I've the following snippet of code :<Grid x:Name="grid"> <Grid.Resources> <Style TargetType="{x:Type ig:LabelPresenter}"> <EventSetter Event="PreviewMouseMove" Handler="LabelPresenter_PreviewMouseMove"/> </Style> </Grid.Resources> . . .</Grid>I want to create the Style in code behind and add this to resources for handle the relative action.I tried to do this in this way but it dosen't work. public MainWindow(){ Initiali...

 c#                     1 answers                     90 view
 2018-10-22         Primo

How to calculate ranging by a few conditions?

I have 2 tables:activityuser_id login_time1 2018-04-152 2018-04-183 2018-04-193 2018-04-201 2018-04-202 2018-04-204 2018-04-20--paymentsuser_id amount 1 10 1 30 2 100 3 35 4 0I'm looking for number of users, which have login_time = 20.04.2018 by grops.Desired result on 20.04.2018:total_amount number of users0-10 110-20 030-50 250-and more 1Please help Use case when and inner joinselect case when amount<=10 then '0-10...

 mysql                     2 answers                     56 view
 2018-10-22         Primo

Oracle vs. Hypersonic SQL

I need to select by date in a SQL query, for exampleSELECT * FROM foo WHERE date = '2009-09-09'That query works in my Hypersonic test database, but not Oracle, which seems to requires:SELECT * FROM foo WHERE date = TO_DATE('2009-09-09', 'yyyy-mm-dd')Is there a way to select by date uniformly across these two databases? I found the answer - you can create the TO_DATE function in HyperSonic and then the second query works in both. For example, make the class:public class Date { public static String toDate( String value, String format ) { return value; }}And t...

 sql                     5 answers                     73 view
 2018-10-22         Primo

Dfango function view VS class RedirectView. How to make class view accept arguments

Function as a view knows question, but class does not (args,kwargs are from url, empty, post method has only choice , but not question).Both work, but for adding checks I would like to know how to get question in class. Its init or get_redirect_url or request have nothing inside like question_idurl.pyfrom django.urls import pathfrom . import viewsapp_name = 'polls'ulrpatterns=[ path('<int:question_id>/vote/', views.vote, name='vote'), path('<int:pk>/vote0/', views.vote0.as_view(), name='vote0'),]views.pyclass vote0(generic.base.RedirectView): pattern_na...

 python                     1 answers                     15 view
 2018-10-22         Primo

Sql Server, Select count of users at a location on any given day

I have the following tables:Table A:[Location] [TotalUsers] LocationA 5LocationB 10LocationC 6TableB:[User] [FromLocation] [ToLocation] [StartDate] [EndDate] UserA LocationA LocationB 01/01/2013 05/05/2013UserB LocationB LocationC 02/02/2013 04/04/2013I also have a calendar table which may help.What I want to do is for each date in the calendar table query Table B to give me a count of how many users are each site on any given day. Alos using the overall user count in Table A I could have a totoal for every day.Ideally...

 sql                     1 answers                     34 view
 2018-10-22         Primo

How to prepare JSON in Azure Policy

In Azure Policy, How to prepare and return the result as following JSON object.return { Id : 1, prototype: 'skeleton1', status: 'success'}The value will be dynamically set to JSON data in policy.When use straight as above JSON string then, its fail and unable to save the policy. If you need a dynamic data response, then you probably need to look at the set-body policy and liquid templates:https://blogs.msdn.microsoft.com/apimanagement/2017/09/25/deep-dive-on-set-body-policy/For static response data, you can also use the set-body policy like this:<set-body>{ "Id...

 json                     1 answers                     46 view
 2018-10-22         Primo

Why does my custom VM Image not show up in Azure Create VM Interface?

I recently went through the hassle of creating and uploading a .VHD image containing a nice little Debian installation to my Azure Storage Account. It was created in Fixed Mode and uploaded as a PageBlob.After a couple of attempts I was able to create an Image from my Blob, but I have no idea where to go from here.Obviously, I want to create a VM instance from my image, but I can't figure out how to select my Image. I followed the NEW > Compute > Virtual Machine > From Gallery link, and there is a tab labeled My Images, but my image does not show up there.Does anyo...

 azure                     2 answers                     51 view
 2018-10-22         Primo

how p-paginator works

by setting [rows]='10' and [paginator] = 'true' I can get what I want. But now I want to control p-datatable by using p-paginator in order to use onPageChange() to get the pageNumber. So how can I associate these two tags.enter image description here You need to set ... [paginator]="true" [rows]="10" [rowsPerPageOptions]="[10,20,50]" [totalRecords]="dataset?.length"(onPage)="fn($event)"...In this way you can calculate actual page.fn(event:any){ let pageNumber = Math.ceil(event.first/event.rows);} [XXX]

 primeng                     1 answers                     46 view

Page 1 of 146  |  Show More Pages:  Top Prev Next Last