wiki of me
"ASP.NET Core 2 and Angular 5" by Valerio De Sanctis
- Reactive Manifesto
- preface
- Roslyn, CoreCLR, and RyuJIT
- pushState API and webhooks
- Hashbang versus HTML5 History API
- MBTI and FFM
- Typings
- canned Visual Studio Angular projects
- update UI templates in Visual Studio
- Resources versus Dependencies in .NET
- Program.cs varies between version 1 and version 2 of .NET Core
- app.UseStaticFiles();
- pulling things out of appsettings.json in an ASP.NET Core application
- the npm folder under the Dependencies folder
- Pentagonal Donut
- tsconfig.json
- webpack.config.js change to empower AoT compilation
- a webpack.config.vendor.js correction too
- keep manual changes to webpack.config.js and webpack.config.vendor.js
- deleting the dist folder and the default Error action
- what's in the ClientApp folder?
- boot.browser.ts and boot.server.ts
- turn off the caching of static files
- ViewModel
- attributes for ViewModels
- make a controller
- call one action returning JSON from another at a .NET Core MVC controller!
- old web forms ways to do routing
- convention-based routing versus attribute-based routing in MVC
- [NotNull] attribute
- the RESTful way in MVC... with an attribute
- preprocessor directives
- NMock3
- BASE_URL
- use HttpClient in a canned Visual Studio Angular 5 application
- style classes specific to the elements they sit at
- double asterisk for a wildcard in routing
- target properties
- use the class attribute as an Input???
- lifecycle hooks for directives
- other names for the banana box
- PathLocationStrategy vs. HashLocationStrategy
- Azure Table Storage
- loop in Entity Framework!
- the 3 ways to approach Entity Framework
- the very specific name ApplicationUser
- parent/child Code First Entity Framework relationships
- DbContext
- database management patterns/database initializers/DbInitializers
- connection strings
- loop in a connection string at Startup.cs
- the first migration
- dotnet update
- Guid versus numeric ids in Code First EF Core
- EntityEntry
- loop in a database seeder at Startup.cs
- Mapster
- IActionResult
- contravariance
- two differences between Observables and Promises
- Superclass and Subclass in Java
- treat the snapshot URL off of an ActivatedRoute instance as an array
- comments in LESS
- LESS options switches
- Switch CSS and LESS Compiler
- Bootstrap rivals!
- float: none;
- SIL Open Fonts License
- the four Web Components standards
- Foundation and Pure
- Template-Driven forms
- FormBuilder
- errors hanging off a FormControl
- do a .get off of a FormGroup to fish out a FormControl
- min and max numeric ranges of reactive forms validators
- "strictNullChecks": true
- JsonPipe
- IdentityDbContext
- AspNetSynchronizationContext versus SynchronizationContext
- non-null assertion operator
- RFC
- OpenIddict
- casting Guids to strings with a conditional magic argument
- PLATFORM_ID
Angular 2 and up and TypeScript as well
- the template tag versus ng-container
- hidden form fields are really, really hidden
- TypeScript "dictionaries"
- sorting collections
jQuery/JavaScript
- .keypress
- pressing space bar to select a radio button is same as clicking it
- Modernizr
- @Html.ValidationMessageFor and jquery.validate.js
- What browser am I using?
- event binding
- how to use a callback
- create an array and use .push to append to it
- a hash is an object, not an array, and must be created as such
- parse JSON to make a hash
- serialize objects to get them across the seam between C# and jQuery
- get a C# collection into jQuery and then use .each
- getting the current url, replacing every dash with a slash, and jQuery animations
- ===
- !!
- append to the html inside of a div with jQuery
- long polling example (timeout and setTimeout)
- progressively animate
- progressively load records with AJAX!
- keep form from posting
- real-time updates
- What is in JSON?
- compare the current date to another date
- iFrame interactions
- width
- make a button click from jQuery
- manipulate drop downs
- manipulate tables and dates
- use a variable in tandem with a magic string when manipulating an element
- functions and regex
- replace a substring
- split
- make sure a function is called when a drop down list changes
- find the nth-numbered element in a swath of HTML with jQuery
- remove part of a string via substring
- date stuff
- chaining variables
- using Plain-Jane JavaScript to get the values of form fields
- using Plain-Jane JavaScript to change styles
- going places
- interface with AJAX JSON from ASP.NET web forms applications
- draw on a Canvas
- checkboxes
- subtract one array from another in JavaScript
- use regular expressions in JavaScript
- slice (copy all or part of an array)
- try/catch, case, and casting to int
- see if a string contains a substring
- live/bind/delegate and innerHTML!
- animate, get current url, replace all slashes with dashes
- manipulate Date (remove days and find day of week)
- error handling
- $("#div").html("foo"));
- inheritance
- get width (and height) of browser and use it to change up the viewport metatag
- .call and .apply
- this
- debugger
- mocha 101
- script tags, adding to dropdowns with plain jane JavaScript, and underscore.js
- setInterval
- pop
- dropping $(document).ready
- pageinit
- throw away all of the contents of a dropdown list
- get the length of a dropdown
- get the selected value from a dropdown
- cast the value of a date type HTML control to a date
- loop through an array in JavaScript
- timer
- manipulate styles as an attribute
- find child nodes from a given DOM node
- drop something out of an array
- drop something out of an object
- grab from an object by position like an array
- make a reference-free copy of an object
- check if an object has properties
- stringify JSON
- enums
- return
- parse stringified JSON to an array
- drill deep into children from a parent
- setTimeout versus setInterval and how to pass variables to their functions
- cherry pick which children to manipulate
- grab an element by attribute such as style
- rounding
- scope strict mode
- encapsulation, inheritance, methods, and "classes"
- iFrame crosstalk between domains
- what is in the URL line?
- async: false
- .ajax error
- .trim()
- window.location.hostname and why it is weak
- react at the change of a dropdown menu
- early exit for foreach loops?
- double ampersand operator
- double pipe symbol operator
- question mark operator
- typeof
- instanceof
- .concat
- declare multiple variables in JavaScript on the same line
- charAt for finding the nth character in a string
- unbind
- the better way to .replace
- the simple read from an iFrame and disabling a button too
- find a string in an array of strings
C# String Manipulations
- make sure a decimal is presented with the correct length in terms of digits
- put spaces before capital letters in a string
- encryption, title case, and substring stuff
- make an order number at least six digits
- date stuff
Active Directory
- NTAuth
- Active Directory SIDs
- find your Active Directory username with System.Security.Principal
- get domains from forest
- find a user in a domain
Config Files
- read from App.Config in a C# unit test project
- prevent MVC4 from blocking images
- SQL Server Express Local Connection String
- Windows Authentication Web.config Connection
- a normal connection string
- use connectionStrings from Web.config
- use appSettings from app.config
MSSQL
- TRIM
- read lines from a flat file
- cast a substring to a datetime
- sending email!
- the JOIN in a view
- TOP
- select all columns from one table within a SQL join
- output parameters
- make guids auto-populate in SQL
- using SQL for sums and averages
- the "pagination" query
- TRUNCATE
- find a lack of matches with a JOIN statement
- cursor looping
- attach variables to a returned table as columns
- DISTINCT
- temp table
- classic CASE statement
- HAVING
- SQL transactions
- COUNT
- NOT IN
- foreign key
- Anshu Jain's SQL puzzle
- get above aggregate average values in MSSQL
- an example of a correlated subquery
- functions
- triggers
- CTE is MSSQL
- BETWEEN
- comments
- PRINT, CAST, and @@ROWCOUNT
- string manipulations
- NOT IN (1,13)
- decimal(p,s)
- IF
- DECLARE
- feed an INSERT from a SELECT in MSSQL
- UNION
- What stored procedures touch a given table?
- make a column in a SELECT from more than one selected column
- sort by ascending yet put the null values last
- use CHARINDEX to try to find a substring within a string
- smalldatetime
- get back the auto-incrementing id
- CAST varchar to int
- try to get around transaction locking
- add days to a date
- jobs
- REPLACE
- ISNULL
- grant execute rights to a user
- insert into numeric primary key column
- exec sp_helpdb
- date format friendly to both MSSQL and Oracle
- multiple columns in a cursor and CTEs when not abusing MIN
- an UPDATE with a JOIN in SQL
- jamming a CASE statement into a WHERE clause
- Generic_Table_Type
- use EXEC and EXECUTE to call sprocs
- types of joins
- safety check for if a sproc is yet made
- add/drop a column
- table variables
- GETDATE()
- BREAK out of CURSOR looping
- RAISERROR
- add a column to a table and make it NOT NULL
- cast a record count to a variable
- UNIQUE
- drop a table
- rename a table
- update numerous rows at once
- drop a constraint
- bridge table with foreign keys and auto-incrementing id
- rename a column
- add a NOT NULL column to an existing table that has rows in it
- allow a column to have null values
- make inbound parameters optional at a stored procedure
- nolock
- SCOPE_IDENTITY() and @@IDENTITY
- try/catch
- select directly to temp tables and table variables
- stuff
- sp_addlinkedserver, linked servers, and USE
- drop a stored procedure
- put a specific number into an auto-incrementing id
- FLOAT vs. REAL
- COLLATE for a culture and CHAR vs. NCHAR vs. VARCHAR vs. NVARCHAR
- check to see if a varchar column is NULL or an empty string
- iif
- STRING_SPLIT
NuGet
- what is NuGet?
- determine where to install and where to install from
- install a specific version
- uninstall (the right way)
C# 4.0 in a Nutshell
- Encapsulation in contrast to the Open/closed Principal
- M magic for decimal creation
- default values for value types in an array
- bottleneck through parent
- virtual and override
- casting a child class to a parent interface
- delegate example
- Func example
- use Action instead of Func when you wish for a Func to return nothing
- multicast delegate example
- closures
- = () =>
- events
- Math.Pow
- Put methods in a class that require casting to an interface to use!
- how getsetters reflect
- user interface technologies
- DateTimeOffset
- using IFormatProvider and ICustomFormatter
- using string.Format with flags enums
- set the culture of the current thread
- Tuples
- Process
- predicates
- Array.ConvertAll shows off the power of delegates
- type-changing across .Select
- lazy execution of IEnumerable
- expression trees
- query from one IEnumerable type collection to another
- .AsEnumerable()
- .AsQueryable()
- Upcast to an Interface!
- Cross Join Queries and Non-equi Join Queries
- expressions in C#
- Skip and Take
- Join/Distinct/Union/Structs/lookups
- Intersect/Union/Except
- SelectMany
- let
- LINQ to XML
- XML, XPath, and XSD
- XSLT
- IDisposable
- using
- Code Contracts
- Contravariance
- where T : Whatever
- File I/O
- Networking Cheat Sheet
- remoting
- the GAC has priority over the bin
- instance method
- the parameterless constructor on a base class is always called
- attributes
- use dynamic to add nonspecific types in C# 4.0
- use dynamic to cherry pick more specific types
- visitor pattern
- dynamic method calls
- static state
- unmanaged code and the C# extern keyword
- #if(!DEBUG)
- encrypt and decrypt
- signature versus public key handshake
- finalizers
- threading
- write your own equality comparisons
- spinning
- why use PLINQ?
- why not use PLINQ?
- asynchronous methods
- MarshalByRefObject
- unsafe
- fixed
- handing in delegates to APIs
- COM
- regular expressions
- conclusion
- What's in the Appendix?
- waiting for BOTH threads to finish before going forward
- generics magic
- the carat operator
SharePoint 2010
- delete a page and then get it back
- rename a menu link
- create a list from an Excel sheet
- export a list back to Excel
- make list columns sortable
- add a column to a list
- four ways to work in SharePoint
- User field type
- of "Navigation"
- getting started
- Hive
- Elements.xml
- make a list instance in a 2010 SharePoint project
- .wsp in the debug folder
- Navigation versus Quick Launch
- lookups
- using the canned site columns
- SharePoint 2010 runs in ASP.NET 3.5
- VMs for SharePoint
- Site URL
- Central Administration
- add a subsite
- extend permissions to others
- fields and rules in InfoPath
- SharePoint alerts
- get your InfoPath work back into Visual Studio
- using jQuery with SharePoint
- dealing with FOUCs
- change form field controls with jQuery
- jQuery validation against User type fields in SharePoint
- pain point when manipulating select lists from jQuery
- grant permissions
- add a folder
- add a page and add it to the navigation
- edit a page
Razor
- ActionLink
- ActionLink polymorphism
- RenderPartial
- if logic
- Html.IdFor
- make a dropdown from an enum
- Html.RenderPartial in Razor
- form fields
- make a form that explicitly uses POST
- Partial versus RenderPartial
- ModelState.IsValid
- model binding
- RenderSection
- BundleConfig.cs and Styles.Render/Scripts.Render
- Layout = null
- file type TextBoxFor
- @Html.Hidden
- @Html.ValidationMessageFor
- @ after @
- make your own controls
- select an item in a dropdown list
- the pig operator and a multi-select dropdown based on an enum
- Styles.Render versus Scripts.Render
- Html.Raw
- double up the at symbol
- get the url path to an action
- get the name of the current controller or action
- comments
- using ViewBag with Html.BeginForm requires some casting
- DisplayName attribute used with Html.LabelFor
- put an id on a Razor form
- Html.HiddenFor values
- AJAX forms
Mongo
- ABCs of Mongo
- CRUD
- add something then fish for it
- mess with Mongo in a shell
- C# driver for Mongo
- db.things.remove({});
- db["entities"].find(); and db["entities"].remove();
- getting started with C# integration
- get a filtered collection
- search with multiple criteria
IIS
- remember to create a user
- update an IIS6-friendly Web.config to be IIS7-friendly
- ~ support
- MVC4 content-blocking problem
- hosts file
- application pools
- open IIS web sites in Visual Studio
- install IIS
- use IIS in Visual Studio
- fake security
- set up IIS8 Express in Windows 8
- nest an ASP.NET web site within an ASP.NET web site
- Method Not Allowed
- turn off caching
- virtual directories
CSS
- transitions
- LoVe and HAte
- clear: both;
- white-space: nowrap;
- get rid of Safari form field highlighting
- use css3 selectors to differentiate styles for different input types
- center a div horizontally
- em
- the HTML tags for CSS
- @font-face
- media queries
- z-index
- end scrolling
- max-width
- emasculation of HTML tables
- get rid of bullets at unordered lists
- make text align to the bottom of a div
- put a scrollbar on a div
- absolute positioning
- fixed positioning
- sticky positioning
- static positioning
- nth-child
- leading underscores and asterisks
- CSS footer!
- nesting
- points to em to pixels to percentage
- letter-spacing/word-spacing
- shrink-wrap a div around its copy
- dropdown menus
- content, before and after
- calc!
- box-shadow
- gradients
- the new cellspacing="0"
- text-shadow
- accordion
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
- make the background-color nothing
- the ~ and the + and the > too
- background-size: cover; ...and circular avatars
- word-wrap: break-word;
- table cell formatting inline no longer
- prevent cascading?
VB Script
- this "VB Script" section is misnamed
- CType and DirectCast
- read from a text file
- try/catch/finally
- static-style stuff
- difference with C# in use of backslashes
Command Line Commands
- net stop w3svc
- ipconfig /flushdns
- installutil C:\LocaleOfPublishedFiles\NameOfApplication.exe
- shutdown /r /t 10
- gpresult /V
WinForms
- make a password field
- find the current directory
- Application.Restart();
this & OBJECT PROTOTYPES
- bolt properties onto a function
- bindings for this
- Array.prototype.slice.call()
- constructors
- currying with bind
- the spread operator and passing dummy objects for this
- fat arrow
- simple and complex primitives
- Object.assign
- Object.defineProperty
- .hasOwnProperty
- pseudopolymorphism
- how to name classes
- put a method on a function in JavaScript?
- __proto__
- OLOO
- duck typing
- class, constructor, super, extends
- conclusion
No comments:
Post a Comment