I have used mauron85/react-native-background-geolocation for tracking the location of the user on my react native app. It is working fine while the app is on fore ground. The location is exact on regular interval. But if the app goes to background, the location is not the same, rather is moved from the previous location even though the device is not moved. Following is my configuration - BackgroundGeolocation.configure({ desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, notificationTitle: 'Background tracking',...
Wednesday, October 17, 2018
Rails Devise API - Login route responds with `You need to sign in or sign up before continuing.`

I'm currently using Devise with my Rails API app to authenticate users using devise-jwt. This is what my User model looks like: class User < ApplicationRecord devise :database_authenticatable, :registerable, :jwt_authenticatable, jwt_revocation_strategy: JWTBlackList end And config/routes.rb is set up like this: Rails.application.routes.draw do devise_for :users, path: '', path_names:...
Calling multiple methods with same name using SoapClient
I have a SOAP webservice and in SOAP UI I see that there are methods with the same name. So, for example, there are 2 CreateNewContact methods, one of which takes 3 parameters and the other 4. Below are the stubs generated by SOAP UI Method 1 Stub: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rfp="http://test.com/testWebservice/"> <soapenv:Header/> <soapenv:Body> <rfp:CreateNewContact_FullName> <!--Optional:--> <rfp:fullName>?</rfp:fullName>...
Android location manager error 'Exiting with error onLocationChanged line 152 “1”'
I have a location manager in my Android app that sometimes works. Sometimes I'll run the app and it will get location updates (with some errors). Sometimes I'll run it and it will just throw this error every couple seconds without receiving any location updates: E/IzatSvc_PassiveLocListener: Exiting with error onLocationChanged line 152 "1" Here is my class for managing location events: package com.company.AppName; import android.app.job.JobParameters; import android.app.job.JobService; import android.content.Context;...
Move IIS Logs to AWS s3 bucket
I have a requirement to upload IIS logs 7 days older to AWS S3 Bukcet. By using below code I am able to access AWS folders under bucket Import-Module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1" $AKey = "" $SKey = "" $source = "C:\inetpub\logs\LogFiles\*" $outputpath = "C:\scripts\Logs\logs3.txt" Set-AWSCredentials -AccessKey $AKey -SecretKey $SKey function Get-Subdirectories { param ( [string] $BucketName, [string] $KeyPrefix, [bool] $Recurse ) @(Get-S3Object...
Tuesday, October 16, 2018
Hide Navigation Controller Search Bar & opened Large Title programmatically

I have a tableView. I set the all settings about searchController ( Search Bar in Large Navigation Bar ) - ( open / close when scroll tableview ). I implemented rightBarButtonItem which name is 'Close' . I want to hide/close tableView and Search Bar with programmatically. I can hide tableView but not SearchBar. When I do isHidden for SearchBar , The Large Navigation Bar doesnt shrink to normal size. Pic 1. Opened search bar with...
Django: Sessions not working as expected on Heroku
Users keep getting logged out and sessions are not persisting on my Django app on Heroku. Users can log in, but they will be randomly logged out—even on the /admin/ site. Is there anything I'm doing wrong with my Django/Heroku config? Currently running Django 1.11.16 on Standard Dynos. settings.py SECRET_KEY = os.environ.get("SECRET_KEY", "".join(random.choice(string.printable) for i in range(40))) SESSION_COOKIE_DOMAIN = ".appname.com" CSRF_COOKIE_DOMAIN = ".appname.com" SECURE_SSL_REDIRECT = True # ... MIDDLEWARE_CLASSES...