Giter Club home page Giter Club logo

.bookmarks's Introduction

.bookmarks's People

Contributors

hung-doan avatar

Watchers

 avatar  avatar  avatar

.bookmarks's Issues

Dual boot Ubuntu & Windows 10

Type: Guide
Descriptions:
[1] Install Windows 10 First
[2] Then Install Ubuntu
[3] Boot Windows 10 only do not show grub menu
[4] Repair Boot (Link)[https://help.ubuntu.com/community/Boot-Repair]
[5] Receive Error Boot Device Not Found (3F0) Pavilion 23 All In One (Link)[http://ubuntuforums.org/showthread.php?t=2238714]
NOTE : Use UEFF boot.
Reason:
N/A
Solutions:

HP and Sony only boot Windows. So we have many work arounds, some work better than others.

Since you do not have any Windows you can just create the Windows efi boot file with the Windows name. Then the UEFI will think it is booting Windows but really boots grub.

You will have to recreate in the efi partition the Windows folder, a boot folder under Windows and copy grubx64.efi into that folder and rename it to bootmgfw.efi.

mount /dev/sda1 /mnt
cd /mnt/EFI

use ls to see if mounted correctly
ls -l
mkdir Microsoft
mkdir Microsoft/Boot
cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Microsoft/Boot/bootmgfw.efi

Most systems also have a /Boot folder and can boot grub from that using a hard drive entry.
mkdir Boot

cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Boot/bootx64.efi

Your ls -l should then have this in the efi partition:

/EFI/Boot
/EFI/Microsoft/Boot
/EFI/ubuntu

You have a large 2TB drive. System will run better with a smaller / (root) partition and then larger /home or /mnt/data partition(s). With a large root, grub, kernels & system files may be anywhere in root or anywhere on drive. So drive has to jump all over 2TB to find its files. I expect it has ways to optimize that, but with a smaller / then it does not have that much space to find files from.

Ref:
[0]

microservice service hub issue

I think each service function in the same service should subcrible event by themeself. Instead of one central subcribler then distribute event to another function by a mediator like MediatR

Because MediaR will not guarantee that event will be send to all receiver, and It wont retry if It was failed.

An I dont think Mediator have any retry, event processing guarantee . Is that bug with MediatR.Publish ?

Single Sign On vs Centralized authentication

  • SSO is about you Sign In once, then other service will be signed on automatically without reentering user name + paswword.
  • Centralied authentication is about many application share the same user name + password. So that you do not need to manage many password

.NET Developer Interview Question.

BASIC

  1. Variable declaration: implicitly typed (var i = 10;) vs explicitly typed (int i = 10;)
  2. Memory management: HEAP vs STACK
  3. Memory management: Reference type vs Value type.
  4. What is dynamic type ?
  5. What is strongly type ?
  6. static method and a non-static method
  7. static variable and a non-static variable
  8. abstract class and interface
  9. abstract method and virtual method
  10. readonly keyword in C#
  11. Code decompiler

DATABASE

WEBSERVER

[Ref]
[1] http://stackoverflow.com/questions/365489/questions-every-good-net-developer-should-be-able-to-answer

ng-transclude prevent to access parent $scope

Type: Impediment
Descriptions:
ng-transclude prevent to access parent $scope
Preproduction:

<div> <-- $scopeA
    <ng-transclude>  </ng-transclude><-- $scopeB
<div>

Structure of $scopeA = {hello: 'world'}

Normally when we call "$scopeB.hello", It will travels up to parent $scope to find hello property.
The result if $scopeB.hello is exactly equal to $scopeA.hello

Reason:
N/A
Solutions:
N/A

Ref:
[0]

Webdeploy permission issue

System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos 

http://stackoverflow.com/questions/18452265/webdeploy-permission-issue

Solution:

Unless the user is an administrator, you need to grant them access to deploy to the website. You can do so by right clicking on the website in IIS Manager and select Deploy :: Configure Web Deploy Publishing. Just select the user and click OK (you can delete the publish settings file it generates on the desktop)

Setup your IIS for SSL Perfect Forward Secrecy and TLS

https://www.hass.de/content/setup-your-iis-ssl-perfect-forward-secrecy-and-tls-12

# Copyright 2014, Alexander Hass
# http://www.hass.de/content/setup-your-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# Version 1.4
# - RC4 has been disabled.
# Version 1.3
# - MD5 has been disabled.
# Version 1.2
# - Re-factored code style and output
# Version 1.1
# - SSLv3 has been disabled. (Poodle attack protection)

Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'

# Disable Multi-Protocol Unified Hello
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\Multi-Protocol Unified Hello\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\Multi-Protocol Unified Hello\Server' -name Enabled -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'Multi-Protocol Unified Hello has been disabled.'

# Disable PCT 1.0
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server' -name Enabled -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'PCT 1.0 has been disabled.'

# Disable SSL 2.0 (PCI Compliance)
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -name Enabled -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'SSL 2.0 has been disabled.'

# NOTE: If you disable SSL 3.0 the you may lock out some people still using
# Windows XP with IE6/7. Without SSL 3.0 enabled, there is no protocol available
# for these people to fall back. Safer shopping certifications may require that
# you disable SSLv3.
#
# Disable SSL 3.0 (PCI Compliance) and enable "Poodle" protection
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -name Enabled -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'SSL 3.0 has been disabled.'

# Add and Enable TLS 1.0 for client and server SCHANNEL communications
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'Enabled' -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'TLS 1.0 has been enabled.'

# Add and Enable TLS 1.1 for client and server SCHANNEL communications
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -Force | Out-Null
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -name 'Enabled' -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -name 'Enabled' -value 1 -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'TLS 1.1 has been enabled.'

# Add and Enable TLS 1.2 for client and server SCHANNEL communications
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Force | Out-Null
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -name 'Enabled' -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -name 'Enabled' -value 1 -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | Out-Null
Write-Host 'TLS 1.2 has been enabled.'

# Re-create the ciphers key.
New-Item 'HKLM:SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers' -Force | Out-Null

# Disable insecure/weak ciphers.
$insecureCiphers = @(
  'DES 56/56',
  'NULL',
  'RC2 128/128',
  'RC2 40/128',
  'RC2 56/128',
  'RC4 40/128',
  'RC4 56/128',
  'RC4 64/128',
  'RC4 128/128'
)
Foreach ($insecureCipher in $insecureCiphers) {
  $key = (Get-Item HKLM:\).OpenSubKey('SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers', $true).CreateSubKey($insecureCipher)
  $key.SetValue('Enabled', 0, 'DWord')
  $key.close()
  Write-Host "Weak cipher $insecureCipher has been disabled."
}

# Enable new secure ciphers.
# - RC4: It is recommended to disable RC4, but you may lock out WinXP/IE8 if you enforce this. This is a requirement for FIPS 140-2.
# - 3DES: It is recommended to disable these in near future.
$secureCiphers = @(
  'AES 128/128',
  'AES 256/256',
  'Triple DES 168/168'
)
Foreach ($secureCipher in $secureCiphers) {
  $key = (Get-Item HKLM:\).OpenSubKey('SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers', $true).CreateSubKey($secureCipher)
  New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\$secureCipher" -name 'Enabled' -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null
  $key.close()
  Write-Host "Strong cipher $secureCipher has been enabled."
}

# Set hashes configuration.
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5' -name Enabled -value 0 -PropertyType 'DWord' -Force | Out-Null

New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\SHA' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\SHA' -name Enabled -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null

# Set KeyExchangeAlgorithms configuration.
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman' -name Enabled -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null

New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\PKCS' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\PKCS' -name Enabled -value '0xffffffff' -PropertyType 'DWord' -Force | Out-Null

# Set cipher suites order as secure as possible (Enables Perfect Forward Secrecy).
$cipherSuitesOrder = @(
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521',
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384',
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256',
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P521',
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384',
  'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P521',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P521',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P384',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P384',
  'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256',
  'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P256',
  'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA_P256',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256_P256',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA_P521',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA_P384',
  'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA_P256',
  'TLS_DHE_DSS_WITH_AES_256_CBC_SHA256',
  'TLS_DHE_DSS_WITH_AES_256_CBC_SHA',
  'TLS_DHE_DSS_WITH_AES_128_CBC_SHA256',
  'TLS_DHE_DSS_WITH_AES_128_CBC_SHA',
  'TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA',
  'TLS_RSA_WITH_AES_256_CBC_SHA256',
  'TLS_RSA_WITH_AES_256_CBC_SHA',
  'TLS_RSA_WITH_AES_128_CBC_SHA256',
  'TLS_RSA_WITH_AES_128_CBC_SHA',
  'TLS_RSA_WITH_3DES_EDE_CBC_SHA'
)
$cipherSuitesAsString = [string]::join(',', $cipherSuitesOrder)
New-ItemProperty -path 'HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002' -name 'Functions' -value $cipherSuitesAsString -PropertyType 'String' -Force | Out-Null

Write-Host '--------------------------------------------------------------------------------'
Write-Host 'NOTE: After the system has been rebooted you can verify your server'
Write-Host '      configuration at https://www.ssllabs.com/ssltest/'
Write-Host "--------------------------------------------------------------------------------`n"

Write-Host -ForegroundColor Red 'A computer restart is required to apply settings. Restart computer now?'
Restart-Computer -Force -Confirm

Azure app service: An attempt was made to access a socket in a way forbidden by its access permissions

http://www.azurefieldnotes.com/2016/11/02/app-service-plan-outbound-network-connection-limit/

App Service Plan Connection Limit
Free F1 250
Shared D1 250
Basic B1 1 Instance 1920
Basic B2 1 Instance 3968
Basic B3 1 Instance 8064
Standard S1 1 Instance 1920
Standard S1 2 Instances 1920 per instance
Standard S2 1 Instance 3968
Standard S3 1 Instance 8064
Premium P1 1 Instance (Preview) 1920
WebApp Name Process Name Open Socket Count
App2 .WebJob.exe 4
App2 .WebJob.exe 4
App2 w3wp.exe 2
App1 .WebJob.exe 8
App1 .WebJob.exe 4
App1 .WebJob.exe 6
App1 w3wp.exe 2
App1 w3wp.exe 1870
App1 .WebJob.exe 6
App1 w3wp.exe 2
App1 .WebJob.exe 6
App3 w3wp.exe 4
App3 w3wp.exe 2
Total 1920

Cordova great command

adb logcat : to log Android activiry & debug support
adb logcat -d > output.log : save all log to file
adb logcat -c : clear log

cordova plugin ls
cordova plugin rm
cordova plugin add
cordova platom rm
cordova platom add android@version

Typescript & SytemJs conflict in finding module!

Case 1 :
import {List as ReleaseList} from "./release/list.component";

Typescript: Success
SystemJs can't find release/list.component 404 Error

Case 2 :
import {List as ReleaseList} from "./release/list.component.js";

Typescript: Can't find module /release/list.component.js
SystemJs : OK

How to move Virtual Machine between subscriptions

Type: Guide
Descriptions:
In some case you have to move your current VM to another subscription (because of billing problem or ...)
Unfortunately, Up to now (2015 Dec 21st), Ms Azure haven't had any plan to support to change the service subscription.
So, you have to do it manually follow this step:

  1. Capture your current VM from subcription A
  2. Copy Images to subcription B
  3. Copy storage from subcription A to subcription B (If It is required)

Solutions:
Requirement

  • Use ARM mode
  • User Azure CLI
  • Move machine VM01 from subscription S01 to subcription S02
  • Move data in storage account Store01 from subscription S01 to subcription S02

Prepare

  • Azure CLI installed

BEGIN
[Step 01] Capture VM01 image

  • Because It require your VM have to be generalized to make an capture-image, so you have to generalize your VM first

    vm generalize myGroup VM01

  • Then capture
    azure vm capture -g vamsproduction vams-web-machine-capture

    After you capture the VM, look at your OS's storage account, you can find a new *.vhd (some thing like vm01store.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/captured_osDiskName.vhd)

[Step 02] Re-create your VM from your captured-image

  • Azure doesn't allow to use images file from different subscription. So you have to copy your image to your new subscription. To do that, you can use AzCopy tools
    AzCopy /Source:https://vm01store.blob.core.windows.net/system/SourceType:Blob /SourceKey:put_your_key_here /Dest:https://vm01newstore.blob.core.windows.net/system /DestType:Blob /DestKey:put_your_key_here
  • Create new VM from your image
    azure vm create --image-urn  https://vm01store.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/captured_osDiskName.vhd  --storage-account-name vm01newstore yourGroupName newm01 "Southeast Asia" "Windows"

NOTE Now you can remote to your new VM. But after create your new VM you can receive error: VM has been created, but there was an error during provisioning. It's ok, keep go ahead.

[Step 03] Move data from old subscription.

  • Use can use AzCopy to copy your data to new server as well

Ref:
[1] azure-cli-arm-commands
[2] HOW TO CREATE A VIRTUAL MACHINE FROM A CUSTOM IMAGE USING ARM API AND POWERSHELL
[3] Using CLI to Capture and Deploy VMs
[4] How to capture a classic Linux virtual machine as an image
[5] Storage use AzCopy
[6] Image capture issue / VM unexpectedly started after guest-initiated shutdown
[7] Capture an image of an Azure Windows virtual machine created with the classic deployment mode

ASP .NET Core : services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) not override all AuthenticateScheme

When use JWT authentication in ASp .NET Core MVC, I expected that all scheme should be JWT

According to this link : aspnet/Announcements#262

There are now overloads that use the default schemes for each method in IAuthenticationService

DefaultScheme: if specified, all the other defaults will fallback to this value
DefaultAuthenticateScheme: if specified, AuthenticateAsync() will use this scheme, and also the
AuthenticationMiddleware added by UseAuthentication() will use this scheme to set context.User automatically. (Corresponds to AutomaticAuthentication)
DefaultChallengeScheme if specified, ChallengeAsync() will use this scheme, [Authorize] with policies that don't specify schemes will also use this
DefaultSignInScheme is used by SignInAsync() and also by all of the remote auth schemes like Google/Facebook/OIDC/OAuth, typically this would be set to a cookie.
DefaultSignOutScheme is used by SignOutAsync() falls back to DefaultSignInScheme
DefaultForbidScheme is used by ForbidAsync(), falls back to DefaultChallengeScheme

It state that "DefaultScheme: if specified, all the other defaults will fallback to this value", But It does not work.

services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
services.AddAuthentication(o =>
            {
                o.DefaultScheme = JwtBearerDefaults.AuthenticationScheme;
            })

Both of them are not work.

You have to define all scheme one by one

            services.AddAuthentication(o =>
            {
                o.DefaultScheme = JwtBearerDefaults.AuthenticationScheme;
                o.DefaultAuthenticateScheme = 
                o.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
                o.DefaultSignInScheme = JwtBearerDefaults.AuthenticationScheme;
            })

keep scroll position on navigate back

Type: Impediment
Descriptions:
keep scroll position on navigate back
Preproduction:
[1] View list of item A[]
[2] Scroll to item A[10]
[3] Click on A[10] to navigate to detail page
[4] Click back button to navigate back to the list page
[5] scroll position is restored to A[0] instead of A[10]
[6] End
Reason:
Developer may use $ionicConfigProvider.views.maxCache(0) function this configure will force ionic to not to cache any view.
Solutions:
$ionicConfigProvider.views.maxCache(3);// force ionic to cache previous 3 views

Ref:
[0] scroll-position-on-back
[1] Scroll position on back #439

can't read filename & filesize with window.resolveLocalFileSystemURL()

Type: Bug
Descriptions:
N/A
Preproduction:
If the entry from window.resolveLocalFileSystemURL() return a URL like content://com.android.providers.media.documents/document/image%3A10

It can't read file name and file size.

NOTE: in [email protected] the file entry can read file size but file name. It returns {namecontent} instead of actual file name.
Reason:
N/A
Solutions:
N/A

Ref:
[1] Get actual file name issue
[2] Cordova resolveLocalFileSystemURL works but then fileEntry.file() fails
[3] Get real path from URI, Android KitKat new storage access framework

Find Most Expensive Queries Using - MS SQL

  1. Using DMV
    (http://blog.sqlauthority.com/2010/05/14/sql-server-find-most-expensive-queries-using-dmv/)
SELECT TOP 10 SUBSTRING(qt.TEXT, (qs.statement_start_offset/2)+1,
((CASE qs.statement_end_offset
WHEN -1 THEN DATALENGTH(qt.TEXT)
ELSE qs.statement_end_offset
END - qs.statement_start_offset)/2)+1),
qs.execution_count,
qs.total_logical_reads, qs.last_logical_reads,
qs.total_logical_writes, qs.last_logical_writes,
qs.total_worker_time,
qs.last_worker_time,
qs.total_elapsed_time/1000000 total_elapsed_time_in_S,
qs.last_elapsed_time/1000000 last_elapsed_time_in_S,
qs.last_execution_time,
qp.query_plan
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
ORDER BY qs.total_logical_reads DESC -- logical reads
-- ORDER BY qs.total_logical_writes DESC -- logical writes
-- ORDER BY qs.total_worker_time DESC -- CPU time

  1. http://solutioncenter.apexsql.com/monitor-sql-server-queries-find-poor-performers-activity-monitor-and-data-collection/

  2. http://dbadiaries.com/using-sp_who2-to-help-with-sql-server-troubleshooting

Enterprise application download link click nothing happen in Safari

Tested in iOS 9.2/iPhone4s
http://stackoverflow.com/questions/26676600/ios8-enterprise-application-download-link-click-nothing-happen-in-safari
http://stackoverflow.com/questions/25772664/enterprise-app-update-distribution-on-ios-8/25948839#25948839
https://www.fireeye.com/blog/threat-research/2015/06/three_new_masqueatt.html

Temporary solution:

For example, in your plist:

<key>bundle-identifier</key>
<string>com.mycom.MyApp</string>
<key>bundle-version</key>
<string>0.2.2</string>

change com.mycom.MyApp to com.mycom.MyApp.ios8fix

WebDeploy - Not able to log on the user '.\WDeployConfigWriter'

Not able to log on the user '.\WDeployConfigWriter'. 
Logon failure: the specified account password has expired. 

Full credit to this blog, the problem is that the Web Deploy installer creates users with expiring passwords that are used to elevate permissions during deployment

Solution:

Use server manager on the accounts WDeployAdmin and WDeployConfigWriter to
reset the password
check password never expires
uncheck user must change password next logon

See this blog for more detail:
http://blog.workinghardinit.work/2011/07/18/wdeployconfigwriter-account-issues-trouble-shooting-web-deploy-2-0-with-lessons-learned/

cordova-plugin-googlemaps incompatibility with : com.telerik.plugins.nativepagetransitions + crosswalk

Issues:
mapsplugin/cordova-plugin-googlemaps#732
Telerik-Verified-Plugins/NativePageTransitions#95

If ANIMATABLE_XWALK_VIEW is set to FALSE :
-the map displays
-the map is covering everything else and where I should have my statusbar etc I get only white.
-transitions are not working
If ANIMATABLE_XWALK_VIEW is set to TRUE :

the map is all black
the map is not covering the rest of my app so that's good...
transitions are working...

If Remove crosswalk , It working fine!
Solution: NONE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.