w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Add Own SYNC MENU in ACCOUNT & SYNC option
Problem Solved Here I have created my own Sync Notes mechanism as per my requirement for this i have to create following things. 1)Create own provider for handling synchronization which extend Content Provider. 2)Create own Service for data operation. 3)Create Sync Adapter in res/XML. 4)Register Provider in your manifest file. 5)Register your Service in manifest file. 1)Create own provider for handling synchronization which extend Content Provider. public class Provider extends ContentProvider { private static final int CONSTANTS = 1; private static final int CONSTANT_ID = 2; private static final UriMatcher MATCHER; private static final String TABLE = "constants"; public static final class Constants implements BaseColumns { public static final Uri CONTENT_URI = Uri .parse("

Categories : Android

Can I use the sync adapter in android with a facebook account?
Yes, but the sync adapter requires an account, so you would have to follow the instructions in the sync adapter docs to create a dummy account in the account manager just for your sync adapter. http://developer.android.com/training/sync-adapters/creating-sync-adapter.html#CreateAccountTypeAccount Your sync adapter would basically ignore this dummy account argument to performSync. The account used by the user to log in is not really relevant to your sync adapter. What you're interested in is the user's facebook account. You need to store some information somewhere like in SharedPreferences that your sync adapter can use to know what user and any other details it needs when it is authorizing with the facebook sdk. Your app would need an activity to have the user initially sign in with face

Categories : Android

SQLite database, multithreading, Locks and account sync on android
For multiple threads accessing, it is advisable to use the singleton pattern. Such a way, successive calls to the same database will be seamlessly serialised. However, it's not impossible to have some NullPointerExceptions on inserts. So, to expand your "Thread.sleep" logic, you could use this code: @Override public SQLiteDatabase getWritableDatabase() { while (true) { try { return super.getWritableDatabase(); } catch (SQLiteDatabaseLockedException e) { System.err.println(e); } try { Thread.sleep(500); } catch (InterruptedException e) { System.err.println(e); } } }

Categories : Android

Update exisiting contact - a non google account, like fb or other apps that sync to contacts
solved by using the newer ContactContracts api http://developer.android.com/reference/android/provider/ContactsContract.html

Categories : Android

Login via Titanium sync adapter for Rails
you are not passing in an options parameter in your model try making a change like this below this.sync("login", this, { success: function() {}, error: function(){} });

Categories : Ruby On Rails

Cannot login to Umbraco 6.0.7 back office using Firefox and Chrome, I am redirected back to the login page but IE and Safari is fine
This is slightly confusing, but can you check that: Your database connection in the staging web.config is correct; and the staging database's user/login has sufficient rights, and is assigned to the database I know you say that Safari and IE work fine, but just to cover the basics it's worth checking the database connections first.

Categories : C#

SoundCloud JS API - Can I login everyone with the same account?
The relevant information on authenticating without SoundCloud connect (ie: for a single user) is located here: http://developers.soundcloud.com/docs/api/guide#user-credentials

Categories : Javascript

My Account display only after login
in customer.xml at your theme before it is look like <default> <!-- Mage_Customer --> <reference name="top.links"> <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action> </reference> </default> <customer_logged_in> <reference name="top.links"> <action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>1

Categories : Magento

Login Registration with Two different account types
Add one more field in that table and assign two role like homeowner and rentors. Then at the registration time insert this field with some value (homeowner and rentors) or (1 and 2). Then check at the time of login then redirect to corresponding profile.

Categories : PHP

Android: Login using google account?
You probably want to use this guide: https://developers.google.com/+/mobile/android/sign-in From the guide: You must create a Google APIs Console project and initialize the PlusClient object. Add the Google+ Sign-In button to your app Add the SignInButton in your application's layout: <com.google.android.gms.common.SignInButton android:id="@+id/sign_in_button" android:layout_width="wrap_content" android:layout_height="wrap_content" /> Initialize mPlusClient with the requested visible activities in your Activity.onCreate handler. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPlusClient = new PlusClient.Builder(this, this, this) .setVisibleActivities("http://schemas.google.com/AddActivity", "

Categories : Android

login with thirdparty SNS account strategy
you can use the SDKs Provided by different Social Medias. It will maintain the session at your side. It is not proper to save userid on application side and other thing is that in almost all the medias you will require to send the access token and secret to request a data. and the Token Changes so its not good to save it. You can send it with your request and if it will be expired it will automatically ask you for the second time login. please visit: www.developers.facebook.com //for facebook www.dev.twitter.com // for twitter Try following links: https://github.com/fhsjaagshs/FHSTwitterEngine https://github.com/nov/fb_graph hope this will help you.

Categories : Iphone

Not login to paypal sanbox account
When you create your account at the new developer.paypal.com site it will walk you through importing any sandbox accounts you had previously configured at x.com. If for some reason that doesn't seem to be working for you and that account just isn't giving you what you need you could just create a new one from within your developer account and use that instead.

Categories : Paypal

How to login into a youtube account on iPhone
You can use Objective-C Client. Here are few samples. In iOS you need to do the OAuth2 using WebView. Here's a great explanation talk.

Categories : IOS

Auto login to migrate minecraft account
The token you retrive with your script is generated for your server and not for user submiting html form. You have to get your token with Javascript. BUT MLHttpRequest cannot load https://account.mojang.com/migrate. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://yourdomain.com' is therefore not allowed access. So I dont think you will be able to auth client with html/php .

Categories : PHP

Django allauth login with google account
You have configured a HTTPS redirect URI, whereas your Django app is using HTTP URIs. Either add http://tutor.herokuapp.com/accounts/google/login/callback over at the Google API console, or use HTTPS for your Django project.

Categories : Api

Only one login for user per account in asp.net not using the built-in membership
This may help in constructing a solution. The following link shows how to do what you said (in ASP.NET MVC), except the difference between this solution and what you need is this solution is as follows: User Bob logs in from his PC. Another user, using the same User ID of "Bob" logs in from another device (different Session ID). The FIRST session is killed while allowing the second session to live. From what you said, I believe you need the opposite behavior- disallowing a second instance of the same User ID from logging in when the user ID is already logged in, right? I believe you should be able to take this example and modify it to what you need it to do. This is a custom implementation of the built in membership (which I know you said you didn't want to use the built-in membershi

Categories : C#

How to read all facebook album from my FB account without login
To read an Album you need Any valid access token if it is public and belongs to a Page The user_photos permission if it belongs to a User The friends_photos permission if it belongs to a User's friend Source: https://developers.facebook.com/docs/reference/api/album/ Your example applies to a page. This is why you can get the album information without any token. As the documentation explains, you will need permissions to access the albums of a user. With permission, comes a token, which implies a user to login. So, you can't read all facebook album from your FB account without login.

Categories : PHP

Wifi EAP auth at login to network account on OsX and Win
what you would like to achieve is usually done by using 802.1X: http://en.wikipedia.org/wiki/IEEE_802.1X. A possible solution could look like this: Each client/notebook (not the user) has a certificate from a common trsuted source (a PKI) The client request a connection on your 802.1X Access Point who forwards the Request to a defined authentication service (usually a wireless controller and subsequently a radius server). This can be done by EAP protocol for example. Depending on the authentication result, the client can connect. In this scenario a certificate is used so that the client/notebook can connect before any windows login happened. Hope this helps to get you started.

Categories : Authentication

Android application login with google account
The blog I used a couple of years ago was Nick's blog http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app It's fairly straight forward. There are two steps Get Authtoken from the Android Authentication Manager Make a http(s) request to your appengine app (/_ah/login end point) with the authtoken which will respond with a cookie. Read the cookie and use for all future requests to appengine. You can follow the blog directly, but since the blog was written Google have made a GoogleAuthUtil available that simplifies step 1. of getting the auth token. This class however requires the play framework installed.

Categories : Android

Properly set sa account for MSSQL 2012. Unable to login
There could be multiple reasons. Please check your error log and find the state of error. Depending upon the state, error could be - State Description 1 Error information is not available. This state usually means you do not have permission to receive the error details. Contact your SQL Server administrator for more information. 2 User ID is not valid. 5 User ID is not valid. 6 An attempt was made to use a Windows login name with SQL Server Authentication. 7 Login is disabled, and the password is incorrect. 8 The password is incorrect. 9 Password is not valid. 11 Login is valid, but server access failed. One possible cause of this error is when the Windows user has access to SQL Server as a member of the local administrators group, but Windows is not provid

Categories : Sql Server

Facebook login on page - what when user delete app in own account?
I'm presuming by "still have my app on his account" you mean your app is still authorized to access that user's account with whatever permissions you've requested/the user granted when signing onto your site. If you've followed Facebook's instructions on implementing Facebook Login for Web on your site (https://developers.facebook.com/docs/facebook-login/getting-started-web/) you are probably already set to handle user revoking FB permissions from your app (or deleting your app from those allowed access to his/her account). Basically, when a user accesses your site and uses Facebook login you send a request to FB API to check their current login status: https://developers.facebook.com/docs/facebook-login/login-flow-for-web/#checklogin and if the returned result indicates that they are,

Categories : Facebook

mysql check account type to see if admin on login
if ($row["account_type"] == "c") { header("Location: admin.php"); }; in your while loop should do it. This will basically set the "Location" header to "admin.php" or whatever admin page you want, however don't forget to check in your admin page if the user is actually logged in, to avoid users simply going manually to "admin.php" and bypassing the permission check.

Categories : PHP

Auto login in twitter account using username and password
The Twitter API no longer supports authenticating to Twitter with a user name and a password. In order to use the API, you need to implement OAuth either by writing your own implementation (which I strongly advise again) or by using a library that someone else has written. Which one you use depends largely on your development platform.

Categories : Twitter

Magento Rest API Redirects to Customer Account After Login
Can you try the code provided here ? https://iqbalmp.wordpress.com/2013/09/03/magento-update-a-product-using-rest-api/

Categories : Magento

Google and Facebook login redirect twice at /Account/ExternalLoginCallback MVC - 4
If you post the code from the account controller, we might help. However, my thinking is, either you are clicking the button too fast twice, or, there is a duplication of code in the account controller calling Oauth twice.

Categories : C#

devise how to prevent a user from login in if account has not been activated
If you mean how you can set your active boolean after a confirmation email, you can override the confirm! method devise gives. If you need a method to prevent a non active user to login etc., override the new method in the SessionsController.

Categories : Ruby On Rails

Need help login into my yahoo mail account using Htmlunit in java
Its a little strange, but the default DOM parser isn't happy with the JS that was being run on the page. Using htmlunit-2.12, I just added a specific browser version (WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17)) and got it to run. See the sample code: Add the following (Note, I turned off the excess WARNINGS): import com.gargoylesoftware.htmlunit.BrowserVersion; ---- java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(java.util.logging.Level.OFF); java.util.logging.Logger.getLogger("org.apache.http").setLevel(java.util.logging.Level.OFF); WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17); // Get the first page HtmlPage page1 = webClient.getPage("https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym"); System.out.prin

Categories : Java

Made a restricted user account for SSH login, I have some security questions
Changing the port from 22 to something else is a good idea. Since port 22 is very common to try to crack, if you change it to another port, bots will have to scan for open ports. If you have port scan detection software installed, you can block their IP addresses before they get very far. Using password authentication is not a "stupid" thing to do if you have a nice long password with lots of entropy, however it is not nearly as strong as, say a 1024+ bit RSA/DSA key and it will be much more guessable. Even if your password were 50 characters long, most likely it will be some sort of a phrase using dictionary words. This is not to say that you are definitely going to get hacked, but the probability of it happening with password authentication is greater than public key authentication. You

Categories : Osx

django allauth not creating user account after Oauth login
If you end up at /accounts/social/signup/ you are not signed up, yet. At this stage, you have successfully authenticated with the social account provider, but you need to submit a few more details (e.g. your e-mail address in case the provider did not hand it over) to complete your account. Only after completing this stage you will be successfully signed up & logged in.

Categories : Django

Do I have to create an Account, Merchant Account, or just a customer to Credit a Balanced Bank Account?
Your workflow is correct. The Customer resource abstracts away from you the pain the Account resource had when dealing with underwriting a merchant. Underwriting is required as part of the KYC (Know Your Customer) operation requirements Balanced needs to follow. Each Customer has an attribute named is_identity_verified where you can know if the Customer's identity was verified. Ideally you want to make sure the identity is verified for each Customer to which you will be crediting. While you can still perform credits (I believe up to a certain limit) to Customers whose identity is not verified, you run the risk of increased fraud and there may eventually be consequences to your marketplace. Also, feel free to stop by #balanced on IRC. You'll probably get much faster answers to your questi

Categories : Misc

Foursquare bug: oauth login leads to 404 error if account is connected to Facebook
Looking at the un-minified javascript from foursquare.com/oauth2/authenticate we've tracked down the bug. The problem code comes from the following function: fourSq.auth.Autologin = { maybeFacebookAutologin: function () { window.fourSq.config.enableFacebookAutologin && (!$.cookie("disableFacebookAutologin") && !fourSq.api.models.companion.user.UserUtil.isLoggedIn()) && fourSq.facebook.getFacebookApi(function (a) { a.getLoginStatus(function (b) { if (b === fourSq.facebook.FacebookApi.State.CONNECTED) { var c = (b = location.href.match(/[?&]continue=([^&]+)/) || location.href.match(/https?://[^/]+(.+)/)) ? b[1] : "/"; a.loginWithPermissions(void 0, function () { var a = fourSq.stats.Action.build(fourSq.stats

Categories : Facebook

limited attempts for login and block a users account for a specific amout of time
1.You should create a DB table called attempts or something like it. then put your user ids from the user table you have already in it. Then every time someone tries to login have the code retrieve the number of current attempts and add 1 to it then update to the table. Then write a statement that if the attempts for a single account are greater than 5 display a message that tells the user they can't login. Use a session variable to set the timeout and lockout functionality. like this session_start(); $attempts = "your MySQL result from the attempts table"; if($attempts < 5){ //normal login with error message $next_attempts = $attempts++; //code to write $new_attempts to attempts table //set the start of the lockout timer if($attempts == 4){ $_SESSION('timeout')

Categories : PHP

ASP.NET Login control focus in FireFox
You can do this by adding the following code to the Page_Load method on your login page: AppLogin.Focus(); this.Form.DefaultButton = "ctl00$BodyPlaceHolder$AppLogin$LoginButton"; This will also cause the "login" button to be clicked when you click enter. Note: The full "path" (ctl100$BodyPlaceHolder...) may vary slightly depending on whether or not you're using master pages, panels, etc. You can simply view the element on the page in your favorite inspector and find the rendered name for the login button. More details can be found at my blog here.

Categories : Asp Net

Login not working in Firefox in Meteor
try returning false instead of e.preventDefault() refer this answer as well. e.preventDefault(); behaviour not working in Firefox?

Categories : Javascript

Facebook login works in chrome but not in Firefox
Problem: As stated you have to allow Facebook to use the two domains for your website. Solution: To do this, go to your Facebook Account: > Apps > Settings > Basic. In this page set both www.domain.com and domain.com for "App Domains". That will fix the problem for all browsers and future browser updates.

Categories : Asp Net Mvc

Why does wget use Firefox cookies to login on an authenticated webpage?
To do this with wget only, you need to first send your credentials to the login page, then use the returned cookie for the next request. The page in your code uses a simple post request (no javascript etc.), so it wouldn't bee too difficult: wget -q -O - --load-cookies=$workingDirectory/cookies.txt --save-cookies=$workingDirectory/cookies.txt --keep-session-cookies --post-data="mid=USERNAME&pwd=PASSWORD" "http://www.tczonline.ir/?m=login&op=inc" After that, the file cookies.txt should contain the session cookie and you can continue like you've shown above.

Categories : Python

Can't edit input fields inside iframe app after using FB.login on Firefox
Try to put window.parent.focus() right after this line: $('#email').val( me.email ); if (me.name) { $('.displayname').text(" as " + me.name); $('#name').val( me.name ); $('#email').val( me.email ); window.parent.focus(); } I've had the same problem - couldn't get the focus on input fields, until I've selected the parent window inside the FB.api.

Categories : Javascript

android application directly login using saved account credential in android device
This is an in-depth look into how you can authenticate based on the users Android credentials, has an example of how things work and how the UI should be try this use some refrence api also available link You can get help from android developer blog link

Categories : Android

Active Sync Client Sync Message, status code 4 - ParseSyncKey - AirSyncPermanentException
From http://msdn.microsoft.com/en-us/library/gg675447(v=exchg.80).aspx : A Status element (section 2.2.3.162.16) value of 4 is returned if the GetChanges element is present and empty or set to 1 (TRUE) when the SyncKey element value is 0 (zero). No error is returned if the GetChanges element is absent or set to 0 (FALSE) when the SyncKey value is 0 (zero). You have present and empty in your xml. You only may set GetChanges to 1 or live it empty (which is by default = 1) in any consequential sync request, not in initial sync request.

Categories : Misc

Use Interlocked.CompareExchange sync with a sync object in a Timer HandleElapsed handler
This is atomical, so threadsafe int sync = Interlocked.CompareExchange(ref syncPoint, 1, 0); if (sync == 0) It means: if the syncPoint is 0, put it at 1, give me the old value (so 0) and put it in sync (a local variable). Then check if the exchange was done (so if the old value was 0) What I would make different is instead of syncPoint = 0; I would use Interlocked.Exchange(ref syncPoint, 0); just to be sure that other threads can immediately see that the "lock" is free, otherwise the current thread could delay "writing" that syncPoint = 0 and no other threads could enter the "lock". BUT in the example given this is not a problem: HandleElapsed is called in response to a event (the Timer probably uses OS timers)... I can't even imagine that after the event has been handled ther

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.