Posts

Registering more developer finger printing for your android development

Image
Let's say you have more than one developer working on your android app. Good news is your can easily set this up using firebase console as shown below.

Just thought you want want to know.








android error 12500 - trying to setup google single sign on

If you're hitting this messages and getting error code 12500 then please ensure your emulator supports google play.

You emulator would generally ask you to login to gmail account ...blah blah blah.. if you don't get that, it is almost certain you need to install it. :)


The funny thing is I have emulator with Android 4.4, SDK 19 ad that doesn't work. So I created another emulator with Android 6.0 (Google API) and SDK 23.

Most people don't run into this issue. But if you do, you're sorted now.




facebook single sign on using android sdk

This the best place to get started :-

https://developers.facebook.com/quickstarts/124695344865811/?platform=android#


Getting started with Docker Engine API on Windows with Go (Golang)

Make sure you installed

1. Docker ToolBox

2. Go language from Google.

3. Create the following script and call it "listimage.go"



4. Fire up "Docker command prompt". And then run "go run listimage.go". This will list all the image in your current container.




Cloud design pattern

These are pretty common design pattern for cloud pattern.

Availability 

- End point Availabity
- Throttling
- Queue resource leveling


Database 

- CQRS
- Event Sourcing
- Index Table
- Sharding
- Cache Aside
-







Excel File 0xC020801c issue

I encountered a couple of issue with :-

a) DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER - Excel Source Failed validation and return error code  0xC020801c.

b) Microsoft.Jet.OLEDB.4.0 is not registered. If the driver is not installed, run package in 32bit mode. An OLEDB Service componet :- 0x80040154 description - Class not registered.

This really points to 32 bit vs 64 bit incompatibility issues.

Solution:

Install 64 bit driver or redeploy your SSIS package in 32 bit.





What is the difference between .net core, .net standard and .net framework

Check out this site here and it gives a detail list of comparison :-

https://github.com/dotnet/standard/tree/master/docs/comparisons


SSIS - "Microsoft JET Database Engine" error - Hresult: 0x80004005 Description: "Unexpected error from external database driver (1)

Bump into this error a couple of days ago. The root causes - Windows Update. To way to resolve this is look at your windows update and check against Microsoft website to see what is the patch about.

For example, KB4041693 provides a list of components affected and possible resolution.

If you cannot quickly repair your connection string from Jet to ACE,. then you might try uninstalling windows updates and restart your machine.  This could be different on your machine, there could be additional updates you need to un-installed compare to the list below :-

KB4041681 - Windows 7 Update 

KB4041693 (Window 8 and Window Server 2012 ) / KB4041678 (Windows 7 and Win 2008 Server)   - Both stated it will affect Microsoft.Jet driver 



SQL-Management studio -> SSIS package -> The specific package -> Report -> All Execution and try to see what other error messages you're getting.

Do not focus on the DRIVERS. Re-installing the database driver is the last option. You should use existing…

android - great resource for working with material design

Should definitely check out this site here to get more information and tips on working with different android components.

https://materialdoc.com/components/autocomplete/






Docker - How to configure IIS (Web server) feature in docker image

The following scripts gives an example of how we can configure our windows server to add web server feature into our docker image.

use powershell.exe to run a script with space in its path

If you run into a situation whereby you need to execute a powershell script that has a space in it using powershell.exe. just add a -File parameter in there. Otherwise you will get error message and putting quotes in between the "xxx.ps1" script won't work.

Example is shown below :-


%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\powershell.exe  -File "%APP%deployControlService.ps1" -projectPath "%~dp0"


Android facebook integration

Getting Android app integrated with facebook application is pretty straight forward. If you follow the guide here, it will guide to from start until end.

https://developers.facebook.com/docs/facebook-login/android/


The only point that i would like to emphasis here is, this line of code in "onActivityResult". You will get resultCode = -1 even though you have signed in successfully. That is why, forwarding result to callbackManager is important as it will be able to tell for sure if your user did signed in, signed out or cancel.

protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); callbackManager.onActivityResult(requestCode, resultCode, data); }