User Login

Please enter user name and password into following boxes!

If you are not registered yet, please click

Forget Password

If you forget your password, please click


  • Php Laravel Socialite And Android Google Sign In Operation

    Php Steps 1. Install Socialite: composer require laravel/socialite 2. Add following codes in config/services.php 'google' => [ 'client_id' => env('GOOGLE_CLIENT_ID'), // Your Google Client ID 'client_secret' => env('GOOGLE_CLIENT_SECRET'), // Your Google Client Secret 'redirect' => '', ], And add GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET variables in .env file: GOOGLE_CLIENT_SECRET=c-4CsKAagTYHVyPKbGVcbAsr...Continue Reading

    Cordovalib Problem With Android Studio

    Error Message: Error:Cause:;)V Solution: Change gradle version as follows: buildscript { repositories { // Gradle 4.1 and higher include support for Google's Maven repo using // the google() method. And you need to include this repo to download // Android plugin 3.0.0 or higher. google() ... } dependencies { classpath '' } } Problem: Error:Unable to r...Continue Reading

    Android GPS Location Example

    Android package; import android.Manifest; import android.annotation.SuppressLint; import; import; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os.I...Continue Reading

    Android Correct Usage Onesignal

    When using onesignal as notification system in Android application, we should insert following codes in ApplicationManifest.xml file: <meta-data android:name="com.onesignal.NotificationOpened.DEFAULT" android:value="DISABLE" /> After adding this meta-data, Android will disable launcher activity to be opened. Handle notification opened event as follows: public class App extends Application { protected boolean active = true; protected int splashTime = 3000; @Override public void onCreate() { s...Continue Reading

    How to Upload Files In Android

    You can use following codes to upload files with extra parameters in Android app: public String uploadFile(String uri, String fileName) throws Exception { String lineEnd = "\r\n"; String twoHyphens = "--"; String boundary = "*****"; int bytesRead, bytesAvailable, bufferSize; byte[] buffer; int maxBufferSize = 1 * 1024 * 1024; FileInputStream fileInputStream = context.openFileInput(fileName); URL url = new URL(uri); // Open a HTTP connection to the URL HttpURLConnection conn = (HttpURLConnection) url.openC...Continue Reading

    MappedBy in bi-directional @ManyToMany : what is the reason

    Question: 1. What is the reason for setting MappedBy in bidirectional many-to-many relationships? 2. When one table has significant amount of records, while other has a few, which side is better to put mappedBy Answer: It's actually a good question, and it helps to understand the concept of an "owning" entity. If you want to prevent both sides (in a bidirectional relationship) from having join tables, a good idea, then you need to have a mappedBy= element on one side. Whether or not there is a join table is controlled by the mappedBy="name" el...Continue Reading

    Spring Security Concurrent Session Implementation With Custom Form Login Filter

    In Spring 4, we can use following configuration to adjust concurrent session count: To use concurrent session support, you’ll need to add the following to web.xml: <listener> <listener-class> </listener-class> </listener> In addition, you will need to add the ConcurrentSessionFilter to your FilterChainProxy. The ConcurrentSessionFilter requires two properties, sessionRegistry, which generally points to an instance of SessionRegistryImpl, and expiredUrl, wh...Continue Reading

    Abstract classes and Spring MVC @ModelAttribute/@RequestParam

    You need to provide your own Binding methods and then create the correct subtypes. Spring wouldn't know otherwise which of the subtypes should be instantiated for which element. Example: Url address can be like this: /proje-basvuru/ilk-uzun-metrajli-film or /proje-basvuru/kisa-film @ModelAttribute("project") public Project getProject(final HttpServletRequest request){ return createProject(getProjeBasvuruUrl(request.getRequestURI())); } private Project createProject(String projectType) { if (projectType.equals("ilk-uzun-metrajli-film")) r...Continue Reading