Wednesday, September 15, 2021

Git: How to remove and Ignore DS_Store file

 When you work with Git  in a Mac. You might notice  .DS_Store file is added to your git commit unintentionally. 


Remove .DS_Store File 

If the  DS_Store File already added to your git report. first remove the file.

find . -name "*.DS_Store" -type f -delete
https://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di

Ignore .DS_Store File in your git commit

And let git know that you want to use this file for all of your repositories:


Find Details here : git ignore

Tuesday, August 3, 2021

Install Maven on MacOS Catalina

 There might be many ways to install Maven on mac but I found the best way to install maven on mac is to using homebrew:


Step1:  install homebrews (if you don't have already)

Follow this URL : how-to-install-homebrew-on-mac


Step 2 : Install Maven:

https://mkyong.com/maven/install-maven-on-mac-osx/


Extra tips.

Where I can find maven local repository:

>> ~/.m2

Sunday, June 27, 2021

What are Design Fundamentals?

 Building scalable, production-ready applications is both art and science.



Design Fundamentals comes in a lot of different flavours. Specifically they can be divided in to four categories. Categories that are equally important.






First Category 

Underlying or Foundational Knowledges . 


  • For Example: 
  • Client Server Model
  • Network Protocol
Software Architectural Pattern


Second Category


Key Characteristics of systems

  • Availability 
  • Latency,
  • Throughput 
  • Redundancy,
  • consistency 


Third Category

Actual Component of a system

Example: 
  • Load Balancer 
  • Proxy
  • Cache
  • Rate limiting
  • leader election


Forth Category:

Actual Tech, Real existing product or services


Example: 
  • Zoo Keeper
  • Nginx
  • Redis
  • Amazon S3
  • Google Cloud Storage



Saturday, December 12, 2020

How Computer works


How Computer Works





How Computer Executes a Program


How Data is transmitted over the cable 




How Does Internet Works



Sunday, April 5, 2020

How to return static content from nginx

     

Some times you might need to return static response from nginx. for example validating file upload limit


  error_page 413 @413_xml;
  location @413_xml {
            default_type "text/xml; charset=UTF-8";
            return 413 '<?xml version="1.0" encoding="UTF-8"?><result><status><interfaceId>cabinet.file.insert</interfaceId><systemStatus>NG</systemStatus><message>Image size Error(Capacity)</message><requestId>$request_id</requestId><requests/></status><cabinetFileInsertResult><resultCode>3008</resultCode></cabinetFileInsertResult></result>';
        }

Saturday, January 11, 2020

Spring : Aspect-Oriented Programming

AOP is the acronym for aspect-oriented programming, which refers to a type of programming that aims to increase modularity by allowing the separation of cross-cutting concerns. A cross-cutting concern is a functionality that is tangled with business code, which usually cannot be separated from the business logic. Auditing, security, and transaction management are good examples of cross-cutting concerns.

The following are other features that might be implemented as cross-cutting concerns.
  • Logging
  • Data validation
  • Caching
  • Internationalization1
  • Error detection and correction
  • Memory management
  • Performance monitoring
  • Synchronization

5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...