Undefined global variables

I know that this question may be a "dumb" one but just forgive me for this :( I was doing a quiz-time application but just got a problem :( my two global variable are not defined which are "score" and "solvedQuestions" although there's no variable h...
more »

2017-10-04 22:10 (0) Answers

byte[] as an input for a rest web service

having problems with the following. i can't seems to pass in the byte[] created from a file into a web service. when i execute my client code, the server log throwing nullpointer for the pdfFile byte[]. please assists here. Server side: @RequestMap...
more »

2017-10-04 07:10 (1) Answers

Knowing when the UI is ready in React / Redux

I would like to know how long it takes my app to become "ready" for the user to interact with it. The timeline of the app loading includes the following: DOM load. Initial React render. HTTP calls triggered from various componentDidMount()s HTTP ca...
more »

2017-09-25 22:09 (0) Answers

swift3 - replace url

I should replace download URL like "../~~~~.pdf.2.3"(.zip, .xls etc...) to "../~~~.pdf" If I use url.lastPathComponent, returning nil. So I did like this code. let fileLastPathComponents = remoteFileUrl.absoluteString.components(separatedBy: "/") ...
more »

2017-09-25 11:09 (1) Answers

How to add prefix in URL-name in Django?

Here's first url-file: from blog import urls as blog_urls urlpatterns += [ url(r'^blog/', include(blog_urls, app_name='blog', namespace='blog')) ] And the second url-file (blog/urls.py): urlpatterns = [ url(r'^$', blog, name='...
more »

2017-09-21 10:09 (1) Answers

Setting 'response headers' on a 'file://' request

I am writing an Apache Cordova app (v7.0.1). Let's imagine that in my index.html, I reference some large JS library big-boy.js (300kb). The native WebView never caches this file, and loads it each time adding to latency. If it was a remote resourc...
more »

2017-09-18 02:09 (0) Answers

Website is different when I upload on FTP

I have just started developing for a few weeks now and I bought a domain, but when I upload the files on live, the website looks different than what I have uploaded. Now, this gets fixed when I clear my cache. The problem is that my visitors enter, t...
more »

2017-09-14 19:09 (1) Answers

inject javascript to iframe before rendering

I'm using prototype of "appendChild" to intercept all the calls to "appendChild" and i would like to inject my javascript to the "" of the iframe, but when i do i get an error because when i try to inject my code the iframe is still not ready so i'm ...
more »

2017-09-12 12:09 (0) Answers

How is a custom url desgined in a website?

How is a custom url for a page in a website designed? For example : AngularJS passing data to $http.get request Two approaches to comes to my mind - Creating a folder in that location and putting the index.php which will get the question data. Cr...
more »

2017-09-11 19:09 (0) Answers

Denied protocol bypass to execute xss

I have a website which have permit to make the http link, so i was trying to pop up the alert box, by injecting the payload i.e. javascript:alert(1) when i click on the link it becomes by default, denied:javascript:alert(1) So is there any method t...
more »

2017-09-06 21:09 (0) Answers

Impact of the Redirection Vulnerability

Its my first question so if i done some thing wrong then don't mind it, I know what is the redirection vulnerability, but what i actually want to know the Impact of this vulnerability? Are we able to steal some cookie? ...
more »

2017-08-31 13:08 (0) Answers