Skip to main content

Posts

AWS amplify hugo App build specification amplify.yml

 I needed a content-oriented site with solely static content for a little project I'm working on, so Hugo was an obvious choice. I looked into using AWS Amplify to host it, But the default amplify.yml not working for me and can't find the correct build file, I have modified the amplify.yml to build the Hugo cms. Hope this is helpful, Please comment. version : 1 frontend : phases : build : commands : - npm install - npm run build:webpack && npm run build:hugo artifacts : baseDirectory : dist files : - '**/*' cache : paths : []

Easy site migration with hugo cms and netlify

 Old slow non-secure drupal base Sri Lanka hotel booking website migrated to netlify platform. Using Hugo cms these contents easily be migrated to a static website. The old backup data source can easily load to Hugo cms using gomplate tool. Gomplate :  A flexible commandline tool for template rendering. Supports lots of local and remote datasources. Reference : https://srilanka.lowcosthotelbooking.com/   https://lowcosthotelbooking.com/ https://gohugo.io/ https://www.netlify.com/ https://gomplate.ca/

ERROR running force:org:create: You do not have access to the [ScratchOrgInfo] object

Error : -   ERROR running force:org:create:  You do not have access to the [ScratchOrgInfo] object Solution :-  To enable Dev Hub in an org: Log in as System Administrator to your Developer Edition, trial, or production org (for customers), or your business org (for ISVs). From Setup, enter  Dev Hub  in the Quick Find box and select  Dev Hub . If you don't see Dev Hub in the Setup menu, make sure that your org is one of the supported editions. To enable Dev Hub, click  Enable . After you enable Dev Hub, you can’t disable it.

git Update failed

  Issue -  when you work with a large team, the git repository may have many branch creation and deletion operations, sometimes we may getting git update failed, when we try to update the whole repository. Solution - Tyr >  git fetch -p -p, --prune After fetching, remove any remote-tracking references that no longer exist on the remote. Tags are not subject to pruning if they are fetched only because of the default tag auto-following or due to a --tags option. However, if tags are fetched due to an explicit refspec (either on the command line or in the remote configuration, for example if the remote was cloned with the --mirror option), then they are also subject to pruning.

How to find best java libraries for your need ?

Java is most mature language and have lot of java libraries build over the years. Maven repository is the best place to search java utility. I have created jar search engine based on Maven repository index, you can search java libraries by any keywords. Java library search -   http://gcloganalyzer.com/jar-search Json viewer and Editor  -  http://gcloganalyzer.com/json-viewer/index.html

How to select GC for java application

Which garbage collection(GC) algorithm suite for the application If you don't have any strict pause-time requirements, first run your application and allow the VM to select a collector. If necessary, adjust the heap size to improve performance. If the performance still doesn't meet your performance, then use the specific collector and try. Performance is dependent on the size of the heap, the amount of live data maintained by the application, and the number and speed of available processors. If the recommended collector doesn't achieve the desired performance, then first attempt to adjust the heap and generation sizes to meet the desired goals. If performance is still inadequate, then try a different collector: Use the concurrent collector to reduce pause-time, and use the parallel collector to increase overall throughput on multiprocessor hardware. Available Collector in Oracle JDK -XX:+UseSerialGC -XX:+UseParallelGC -XX:+UseG1GC -XX:+UseCon...