發表文章

目前顯示的是 1月 16, 2019的文章

iframe issue after signin apk

圖片
1 I am loading a video with iframe in my ionic1 app,it was worked perfectly in android and ios. recently it stopped working in android and at the same time ios doesn't effect,well the thing is the frame loading the video very fine dev,debug mode but when i sign the debug apk and check its not even loading a dummy iframe all i can see is white screen i had given the permissions to app to load th externals. <iframe id="streamFrame" name="iframeName" scrolling="no" src="myurl" allow="microphone *; camera *; encrypted-media *; midi *;"></iframe> UPDATE As i dont have any idea whata is happening after signing,I decided to debug the signed apk to check any error after signing.so i used debuggale=true in android manifest file.after this when i build new apk and check in console i havent seen any errors,but magically iframe start working.If i remove that in manifest file its not working. The same things for all c...

Drainage divide

圖片
Line that separates neighbouring drainage basins Major drainage divides (red ridgelines [1] ) and drainage basins (green regions) in Europe. (Note the German labels.) A drainage divide , water divide , divide , ridgeline , [1] watershed , or water parting is the line that separates neighbouring drainage basins. On rugged land, the divide lies along topographical ridges, and may be in the form of a single range of hills or mountains, known as a dividing range . On flat terrain, especially where the ground is marshy, the divide may be harder to discern. A valley floor divide is a low drainage divide that runs across a valley, sometimes created by deposition or stream capture. Since ridgelines are relatively easy to see and agree about, drainage divides are often natural borders defining political boundaries, as with the 18th century North America Royal Proclamation of 1763 that preceded the American Revolution. Contents 1 Types 2 Valley-floor divides 3 Impact on communication 4 See...

Pennant Hills, New South Wales

圖片
Suburb of Sydney, New South Wales, Australia Pennant Hills Sydney, New South Wales Pennant Hills Library, Yarrara Road Population 7,287 (2016 census) [1] Postcode(s) 2120 Elevation 167 m (548 ft) Location 20 km (12 mi) north-west of Sydney CBD LGA(s) Hornsby Region Northern Suburbs State electorate(s) Epping, Hornsby Federal Division(s) Berowra Suburbs around Pennant Hills: Cherrybrook Westleigh Thornleigh West Pennant Hills Pennant Hills Wahroonga Beecroft Cheltenham North Epping South Turramurra Pennant Hills is a suburb in the Northern Suburbs of Sydney, New South Wales, Australia. Pennant Hills is located 20 kilometres north-west of the Sydney central business district in the local government area of Hornsby Shire. Contents 1 History 2 Commercial areas 3 Transport 4 Churches 5 Schools 6 Sport and recreation 6.1 Parks and reserves 6.2 Sport and leisure 7 Population 7.1 Demographics 7.2 Notable residents 8 Climate 9 References 10 Sou...

Subscribe on route.queryParams and route.params at the same time

圖片
1 I have next URL with both route.params and route.queryParams .../search/VALUE1?method=VALUE2 I have created route path : 'search/:id', component: MyComponent Component export class MyComponent { ... constructor(private route: ActivatedRoute) ngOnInit() combineLatest(this.route.queryParams, this.route.params) .subscribe([queryParams, params] => console.log(ID:' + params('id') + ',M:' +queryParams('method')); // code ) But there is a problem - when user changes main param and query param at the same time - then subscribtion will be called twice, e.g. user calls .../search/VALUE1?method=VALUE2 .../search/VALUE3?method=VALUE4 Console log ID:VALUE1,M:VALUE2 ID:VALUE3,M:VALUE2 <-- redundant method call ID:VALUE3,M:VALUE4 How to subscribe on both route.params , route.queryParams but call subscribtion only once? What tried private method: string; // ngOnInit() this.route.queryParams.subscribe( queryParams => this.method...