Skip to main content

Posts

Showing posts with the label Web Development

Top 25 Microservice Interview Questions Answered - Java Brains

1:13 Explain microservices architecture 3:42 Name three commonly used tools for Micro  5:10 What is monolithic architecture?   5:51 What are the advantages of microservices?  9:50 What is Spring Cloud?   12:04 Discuss uses of reports and dashboards in the environment of Microservices   13:24 What are the main differences between Microservices and Monolithic architecture?   14:48 What are the challenges faced while using Microservices?   17:59 In which cases microservices architecture best suited?   19:39 Tell me the name of some famous companies which are using Microservice architecture   20:34 What are the characteristics of Microservices?   20:46 What is RESTful?   22:40 Explain three types of Tests for Microservices   23:57 What are client certificates?   24:46 Explain the use of PACT in Microservices architecture.  26:29 What is the meaning of OAuth?  28:19 What is End to End Microservices T...

Book recommendation by Gurus in their fields

Books mentioned: Recommended by Telusko and JavaBrains Monolith to Microservices : Evolutionary Patterns to Transform Your Monolith. - Book by Sam Newman Cloud Native Java : Designing Resilient Systems with Spring Boot, Spring Cloud, and Cloud Foundry. - Book by Josh Long and Kenny Bastani Designing Data-Intensive Applications: T he Big Ideas Behind Reliable, Scalable, and Maintainable Systems. - Book by Martin Kleppmann URL:   MicroServices Q&A with JavaBrains | Live In conversation with: Navin Reddy from Telusko In conversation with Koushik (Java Brains)   Learning Programming in 2022 | Koushik, Navin & Hitesh with Ranga

Sync and Async

Sync and Async are like in the post office.  Sync - When you go to take your package you wait inline till your number comes and then you are served (wasting time and stopping all your daily tasks). Async - You get your number via SMS and you keep with the rest of the day and when your turn arrives you get a message on your phone to come and get your package.

Errors in Blazor Server App

Brief Contains all the errors occurred for me while working with .NET Core Web Application. The IDP.Generic Virus when running blazor server app. This is false positive while blazor server app so please put in to the exception list. This will be detected by the Anti-Virus running in Windows machine. The 'inherits` directive must appear at the start of the line. This happened with me because I copy pasted whole code of page or components in razor from the internet. Solution  - Simply manually write the inherits at the top of page and it will work.

Erros in .NET Core - Web Application

 Brief Contains all the errors occurred for me while working with .NET Core Web Application. HTTP Error 500.24 - Internal Server Error -  An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. This happens when running new created .net core - web application from the visual studio. fig. Error Solution1: Simply run your application from command line.  Solution2: Simply use your project name instead of the IIS Express and run your project.

Errors in Software Development(Github, Gitlab, TFS or Azure Devops, C# NET, .NET Core, SQL, Flutter, ReactJS, ....)

 Brief This contains the link to errors which occurs when working with different platforms such as github, gitlab, and so on. Note - the errors here are only those which are occurred for me. Git Errors in Github Gitalb Errors in .NET Core - Web Application Errors in Blazor Server App Errors in SQL (MySQL or SQL Server or SQLite) Errors in App Development (Android, Flutter...)

Terminology Used In Software Development (Web/App)

 Brief This contains the most used terminology when working with software development i.e. both web application and mobile application. White Paper Prototype Architecture Sync & Async Cloud Cloud Native Architecture Styles Architecture Patterns Design Principles Design Patterns Low level Design UI/UX Software Hardware Domain/Domain Name DNS(Domain Name Server) Hosting/Web Hosting Identity Server Software Development http vs https Project Management, Product Owner, Scrum, Scrum Master, Agile...  Web Crawler: A Web Crawler will generally go through every single page on a website, rather than a subset of pages. Web Scraping: Web Scraping focuses on a specific set of data on a website. These could be product details, stock prices, sports data or any other data sets. You may reach out to  Anil Meharia for the best technology advice .

Web Application - Need to know

 Web Application Development - Full Stack (Front End, Backend, Database & Concept of Cloud) ========================== Front End - ES6+, ReactJS, TypeScript, HTML5, CSS, SASS Alternative ReactJS - AngularJS, Angular 2+, Vue.js TypeScript - jQuery/JavaScript CSS - Bootstrap, CSS3 SASS - LESS, SCSS... -------------------------- Back End - .NET Core, Entity Framework(EF) Core & LINQ Alternative .NET Core - .NET MVC, .NET MVP, .NET WebForm .EF Core - EF6, ADO.NET, Dapper, T-SQL .NET - Python, Go, PHP-Laravel, Node.js, JAVA, Ruby, R, -------------------------- Database - MySQL, NoSQL(MongoDB) Alternative MySQL - Postgress SQL, MS SQL Server, SQLite, Oracle MongoDB - Firebase, DynamoDB, CosmoDB... Note: Only knowlege or MySQL or NoSQL is enough. -------------------------- Cloud - AWS Alternative AWS - Azure, Google Cloud, Alibaba, Oracle Cloud... -------------------------- SVN Git - Locally changes Github/Gitlab/BitBucket... - Sever ma code halne Gitbash - Synchronization between...

C# and Git Branch Naming Convention

C# Coding Convention ==================== 1. General Naming Convention -> If more than one word is combined then you can follow either of below conventions. - Pascal Case: Capitalize first letter of each words. For eg: StudentService, FirstName, CapitalCityOfNepal, etc. - camel Case: first word is all lowe case and Rest follow pascal case. For eg: studentService, firstName, capitalCityOfNepal, etc. -> This is valid for all the naming i.e. variable, field, property, method, class, etc. -> If More than two letters acronym or abbreviation then follow pascal case otherwise make all capitals. -> For eg: i) PI constant const float PI = 3.145f; -> Acronym PI is exactly two letters acronym so, all letters is capitals. ii) API controller -> This should be 'StudentApiController' as API is more than 2 letters i.e. 3 letters acronym so, Pascal Case. 2. Naming Of Class i) Pascal Case ii) Service Name -> Create Separate folder c...

ADO.NET VS EntityFramework(EF)

Brief The below points are based on my personal experience. Using ADO.NET, we can see the results of the query and modify according in one place i.e. Database  ADO.NET, prevents from the circular dependencies which might happends in EF. For e.g. Two projects which are dependent on each other for data exchange which could be easily taken care by the sp or function in ADO.NET  Reporting is very easy in the ADO.NET compared to EF based on Performance. We can use different code base i.e. PHP, Python, C#, etc to consume ADO.NET based projects but EF is for C# projects only.

All about Microservices and Containers and Monolithic Architecure

Brief Containers, by contrast, are much smaller — perhaps one tenth or one hundredth the size of a virtual machine. And, because they do not require the operating system spin-up time associated with a virtual machine, containers are more efficient at initialization. Overall, containers start in seconds, or even milliseconds in some cases. That's much faster than VMs. That's why, from a performance perspective, containers are a much better execution foundation for microservices architectures. Their quick instantiation maps much better to the erratic workload characteristics associated with microservices.  Monolithic vs Microservices Architecture Monolithic applications are more of a single complete package, having all the related needed components and services encapsulated in one package. Fig: Monolithic Architecture A microservice is an approach to create small services, each running in their own space that can communicate via messaging. These are inde...

(JavaScript/jQuery): Create dynamically anchor tag and simulate click on that anchor tag automatically.

================================= var link = document.createElement('a');           link.href = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,' + response.data;           link.download = "report" + GetCurrentDate() + ".xlsx";           //Firefox requires the link to be in the body           document.body.appendChild(link);           //simulate click           link.click();           //remove the link when done           document.body.removeChild(link); ================================= var GetCurrentDate = function () {       var today = new Date();    ...

Add Swagger To Asp.Net Core Rest API

Brief Add SwaggerGen to the services collection in the Configure method, and in the ConfigureServices method, enable the middleware for serving generated JSON document and the SwaggerUI. public void ConfigureServices ( IServiceCollection services ) { // Add framework services. services . AddMvc (); services . AddLogging (); // Add our repository type services . AddSingleton < ITodoRepository , TodoRepository >(); // Inject an implementation of ISwaggerProvider with defaulted settings applied services . AddSwaggerGen (); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure ( IApplicationBuilder app , IHostingEnvironment env , ILoggerFactory loggerFactory ) { app . UseMvcWithDefaultRoute (); // Enable middleware to serve generated Swagger as a JSON endpoint app . UseSwagger (); // Enable middlewar...

Copy and Replace the .dll and .pdb file to the specified folder

Brief Solution copy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)HP.EMEA.Web\App_Data\Dependencies\$(ProjectName).dll" copy /Y "$(TargetDir)$(ProjectName).pdb" "$(SolutionDir)HP.EMEA.Web\App_Data\Dependencies\$(ProjectName).pdb" copy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)HP.EMEA.Web\bin\$(ProjectName).dll" copy /Y "$(TargetDir)$(ProjectName).pdb" "$(SolutionDir)HP.EMEA.Web\bin\$(ProjectName).pdb"

npm install on windows 7 python2 not found error and node-sass@3.13.1 error #317

Before I write all, I'd like to say that before the update everything worked well; while updating node from version 7.2.1 to version 9.4.0 and npm from version 5.5.1 to version 5.6.0 in Windows 7 (64-bit) using the installer (https://nodejs.org/en/download/) and installing globally gulp-cli version 2.0.0, as far as npm install starts from the JointsWP folder I get the following error: $ npm install npm WARN deprecated babel-preset-es2015@6.24.1: รฐ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue > uws@0.14.5 install C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\uws > node-gyp rebuild > build_log.txt 2>...

Highlight Menu On Scrolling (if reach div)

Brief Use   $(this).offset().top   instead of   $(this).position().top Fiddle As   .position()   get the current coordinates of the first element in the set of matched elements, relative to the offset parent whereas   .offset()   get the current coordinates of the first element in the set of matched elements, relative to the document. In your website all the DIV with class inside   .target   are inside therefore all the element of class   .target   are returning the value   .position().top   equal to 0. Decrease the offset value so that the   class   change when element reach the menu by making the   if   condition like this: if ( $ ( window ). scrollTop () >= $ ( this ). offset (). top - $ ( "#cssmenu" ). height ()) HTML <section id="main">     <div class="target" id="1">TARGET 1</div>     <div class="target" id="2">TARGET 2<...