10:18 PM

build-a-web-and-mobile-application-with-angular-and-nativescript



Build a Web and Mobile Application with Angular and NativeScript
Getting Started :
 npm install -g @angular/cli
npm install -g @nativescript/schematics
npm install -g nativescript ng new angular-nativescript-project ng add @nativescript/schematics      or one line command        ng new --c=@nativescript/schematics --name=angular-nativescript-project --shared ng g component about ng g c contactus ng serve tns run android --bundle tns run ios --bundle
--control
   
  npm i nativescript-ui-listview
   
  For Textbox, label,radio button,
  npm i nativescript-ui-dataform   

  For calender you can [.....]

11:01 PM

how-to-repair-a-suspect-database-in-mssql

How To Repair A Suspect Database In MSSQL

Possible Causes

The database could have become corrupted.
There is not enough space available for the SQL Server to recover the database during startup.
The database cannot be opened due to inaccessible files or insufficient memory or disk space.
The database files are being held by operating system, third party backup software etc.
There was an unexpected SQL Server Shutdown, power failure or a hardware failure.

Solution: 

EXEC SP_resetstatus databaseName
ALTER DATABASE databaseName SET EMERGENCY
DBCC checkdb databaseName
ALTER DATABASE databaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB (databaseName, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE databaseName SET MULTI_USER [.....]

1:34 AM

How-to-catch-JavaScript-Errors

How to catch JavaScript Errors with window.onerror


I’m working on a new responsive website for company that has a fair amount of JavaScript and  that is viewed in lots of different browsers (mobile, tablet, desktop).  Naturally we want to log our JavaScript exceptions and their stacktraces,  just like we log server-side exceptions.  It is impossible to test every combination of device and browser so we rely on logging to find the edge cases we miss in our testing.
The way we handle our JavaScript exceptions is to:
 catch the exception.  collect data about the useragent.
 Save it to our logs by sending an ajax request with the data and the exception information.
[.....]

3:53 AM

Angular Cli not working



1. Step

npm uninstall @angular/cli -g

2. step

Cleared cache

3. step

Manually deleted content in
%AppData%\npm\node_modules

4.  step

npm install -g @angular/cli@latest [.....]

Next PostNewer Posts Previous PostOlder Posts Home