Posts

html - How to login with Google Account from my PHP application? -

i need help. have been create php application , has sign in authentication access it. user table : =========================================================== username | password | email | e_pass =========================================================== admin | admin | mymail@google.com | mygooglepassword =========================================================== username , password column local authentication, email , e_pass google authentication. so, how can that? both local , google authentication done @ same step? because google calendar , google drive embedded in php application , need google authentication access them. here authentication code php code : <?php if (empty($_post['userid']) or empty($_post['passwd'])) { // jika file diakses secara langsung ?> <script type="text/javascript"> alert("you can't access file directly!"); </script>...

svn - allowing remote access to subversion -

we have default install of subversion running on redhat. i've created repository , added users in "passwd" file , updated "svnserve.conf" point this. now want allow these new users connect remote netbeans installation (using built-in svnkit). i can connect using ssh username/password, want connect new accounts i've added (as explained above). currently, i've tried: svn+ssh://myhost/path/to/repo , (svn://myuser@myhost/path/to/repo) - , explained, ssh accounts work. so need create proper linux accounts users? if so, whats point of svnserve.conf options setup users? any ideas? the answer split username , password out of repository url follows: repository url: svn://myhost/repo user: myusername password: mypassword note: didn't take 2 years solve this. hadn't noticed had left question open long , wanted close off.

html - Margin-top not working when an image is centered horizontally - Phonegap -

i new webdesign, using phonegap (html5) centered image horizontally way: .html <div id="loginholder" > <img id="image_person" src="img/icon_login.png" /> ... .css #image_person { display:block; margin-left:auto; margin-right:auto; margin-top: 30px; } ... #loginholder{ background-color: #29aae1; height: 200px; width: 70%; margin: 0 auto; } ... please why margin-top not working? you need trigger layout. add overflow:hidden #loginholder

Javascript/jQuery [object Object] when trying to find great-grandparent class name -

i'm trying great-grandparent div class name using .closest method of jquery. when test make sure correct div class name being passed, [object object] alert, appears sort of error. code meant able find div class name beginning 'form-container' regardless of number of div's between (this) , desired div. insight appreciated. thank you! <script type="text/javascript"> jquery(document).ready(function ($) { $('input').bind('blur', function () { var classname = $(this).closest('.form-container'); alert(classname + "classname"); var newclass = classname.replace('.form-container', ''); alert(newclass); alert("hello"); var name = $(this).attr('name'); var pathname = window.location.pathname; ga('send', ...

javascript - I want to pull a variable from a jscript file to provide the href value in an <a> tag -

i'm front-end web designer, dabble in javascript etc. i've been googling (i'm not @ jscript, can figure out 75% of time); i've been able find how create variables within html, isn't helpful. i've defined variable makes use of value function in linked jscript file has created. so ideally: <script src="myjscriptfile.js" language="javascript"></script> <a href="nameofvarfromfile" >the file!</a> i'm trying pull url of pdf file, , use url in object embedded in page. figured simpler way ask question , same result. you'll need reference javascript variable from javascript, , set link's href there. <a href="#" id="linktoset">the file!</a> <script src="myjscriptfile.js" language="javascript"></script> <script> document.getelementbyid('linktoset').href = nameofvarfromfile; </script>

asp.net - How is the User property generated when authenticating with bearer tokens in Web Api? -

the documentation sparse in area, means can't find clear answer anywhere. if i'm not mistaken, when using cookie authentication in mvc app, cookie contains encrypted info decrypted , seeded principal on each request. same thing happening bearer tokens? token contain info goes principal? how work behind scenes? i'm sorry if dumb question, find current authentication/authorization implementation in asp.net mvc , web api confusing, , there not lot of documentation out there. from understanding, pretty correct. when authenticating user's credentials, extend oauthauthorizationserverprovider class overriding grantresourceownercredentials method; create claimsidentity instance , pass authenticationticket. the claimsidentity (and assigned claims , data) encrypted , sent part of "access_token" section of response. microsoft's owin authentication middleware looks after plumbing of encrypt/decrypt , serialization process. iis hosted scenarios encr...

perl - Not able to generate the code coverage result using Devel::Cover -

i tried find code coverage c4rgr.pl test file devel::cover . have .pm module sitting in same area. using perl -mdevel::cover c4rgr.pl , generates cover_db , has runs subdirectory inside. inside runs subdirectory, versionated directory created every time run cover command , cover.13 obtained. cover.13 file (i think) has raw data code coverage results. still, unable test results in html output format or on terminal screen. this do: run perl -mdevel::cover c4rgr.pl here, c4rgr.pl uses .pm module sitting in same area. when run above command, runs test file no test coverage output shown in devel::cover html output obtained. nevertheless, cover.13 file created every time. cover.13 <- 1401378982.24872.12631 <- runs <- cover_db . can tell me how html file, please? able run dummy test same features , generate html file. actual test, not. or there way convert cover.13 file html not being done in case? after running perl -mdevel::cover c4rgr.pl...