2019-08-01

Found this, but not sure if could address my previous issue...


Reference URL:
https://sourcedaddy.com/windows-7/creating-windows-re-recovery-media.html



To build a Windows RE x64 ISO image that supports both EFI and BIOS firmware, enter the following command:

oscdimg "-bootdata:2#p0,e,betfsboot.com#pEF,e,befisys.bin -u2 -udfver102
-o c:\winrec_x64\ISO c:\winrec_x86\winrec_2X.iso"


Here, -bootdata sets the boot information for EFI and BIOS, and -UDFVer sets the required UDF version. You set C:\Winrec_x64\ISO as the path to the folders for the ISO image, and C:\Winrec_x64\Winrec_2X.iso is the path and file name of the ISO image that will be created. After you create the ISO image, you can burn the ISO image to a DVD using a CD/DVD burning application.














2019-07-19

AppleOutlookDAVConfig.exe causing CPU fan running like...

AppleOutlookDAVConfig.exe causing high processing, fan keep working like freaking noise....

kill it in task manager by End Process Tree.

2019-07-16

Maven: java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent





tried is working


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<!-- http://maven.apache.org/plugins/maven-compiler-plugin/ -->
<source>${version.jdk}</source>
<target>${version.jdk}</target>
</configuration>
</plugin>

<!-- https://www.mkyong.com/maven/mvn-site-java-lang-classnotfoundexception-org-apache-maven-doxia-siterenderer-documentcontent/ -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.7.1</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.0.0</version>
            </plugin>
<!-- https://www.mkyong.com/maven/mvn-site-java-lang-classnotfoundexception-org-apache-maven-doxia-siterenderer-documentcontent/ -->
           
</plugins>
</build>

Maven: Project Inheritance vs Project Aggregation


Reference URL: https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance_vs_Project_Aggregation

Project Inheritance vs Project Aggregation

If you have several Maven projects, and they all have similar configurations, you can refactor your projects by pulling out those similar configurations and making a parent project. Thus, all you have to do is to let your Maven projects inherit that parent project, and those configurations would then be applied to all of them.
And if you have a group of projects that are built or processed together, you can create a parent project and have that parent project declare those projects as its modules. By doing so, you'd only have to build the parent and the rest will follow.
But of course, you can have both Project Inheritance and Project Aggregation. Meaning, you can have your modules specify a parent project, and at the same time, have that parent project specify those Maven projects as its modules. You'd just have to apply all three rules:
  • Specify in every child POM who their parent POM is.
  • Change the parent POMs packaging to the value "pom" .
  • Specify in the parent POM the directories of its modules (children POMs)












2019-07-15

Maven BOM file.

I was confused by this Maven BOM file & Maven POM file...

you won't find bom.xml trust me...

Look for more info to reference URL:
illustrates how a "bill of materials" (BOM) can be created for use by other projects



We could implement and get benefits with 2 ways:

  1. Inherit
  2. or import.

As mentioned by baeldung.com:


In larger projects, the approach of inheritance is not efficient because the project can inherit only a single parent. Importing is the alternative as we can import as many BOMs as we need.




2019-07-10

Windows Schedule Failed to start.










Reference URL:

  1. https://songvacongnghe.blogspot.com/2017/02/loi-task-scheduler-failed-to-start.html
  2. https://systemadminguide.wordpress.com/2014/12/17/windows-task-scheduler-error-2147943730-reported/



Scenario:
Windows Schedule Failed to start.
Error Msg:
Task Scheduler failed to start "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup" task for user "Machine###\user_id". Additional Data: Error Value: 2147943730.


Actual caused from Error Value:
Finally, open command prompt, type net helpmsg 1330 and you will get an idea of what 2147943730 means. Simply, 2147943730 means Logon failure: the specified account password has expired.
By systemadminguide











2019-07-09

RI Binaries?


The term "Reference Implementation" (RI) relates to the JCP JSR triform delivery of Spec... more at below:


https://jdk.java.net/java-se-ri/8

RI Binaries (build 1.8.0_40-b25) under the GNU General Public License version 2





Found the term RI in post below

https://github.com/AdoptOpenJDK/TSC/issues/65

The term "Reference Implementation" (RI) relates to the JCP JSR triform delivery of Spec, RI, and TCK. OpenJDK produces the RI for each platform JSR at the point it goes GA, as you can see on the page you linked to above. The RI binaries for Java 8 and Java 11 are published once and don't change.

So it seems we are talking about hosting builds of the JDK8 updates and JDK11 stream JDK updates projects' releases - but we do that already. So what is the ask? That we host binaries of those releases that are built by Red Hat rather than AdoptOpenJDK?

The mission for AdoptOpenJDK is to have an "open and auditable" build, test, and distribution community. I don't yet see the proposal for how we achieve that by taking binaries built elsewhere. Is the plan that we link to Red Hat's open build system/build definitions somehow?






2019-07-05

Which JDK am I using?


I download JDK from here:
https://adoptopenjdk.net/

Using IDE:
Eclipse Java EE IDE for Web Developers.

Version: Photon Release (4.8.0)
Build id: 20180619-1200

Details for me to decide:
OpenJDK vs AdoptOpenJDK







2019-07-04

How to display number of items in sub-directories from command line



Reference URL:
https://askubuntu.com/questions/1150749/how-to-display-number-of-items-in-sub-directories-from-command-line/1150753#1150753



Here's a little shell function that you can use. Just add these lines to your ~/.bashrc:
lsc(){
    ## globs that don't match should expand to a null string
  shopt -s nullglob
  ## If no arguments were given use the current dir
  if [[ $# -eq 0 ]]; then
    targets="."
  ## Otherwise, use whatever was given
  else
    targets=($@)
  fi
  ## iterate over the arguments given
  for target in "${targets[@]}"; do
    ## get the contents of the target
    contents=("$target"/*)
    ## iterate over the contents
    for thing in "${contents[@]}";  do
      ## If this one is a directory
      if [[ -d "$thing" ]]; then
        ## collect the directory's contents
        count=("$thing"/*)
        ## Print the dir's name (with a '/' at the end)
        ## and the number of items found in it
        printf "%s/ (%s)\n" "$thing" "${#count[@]}"
      else
        ## If this isn't a dir, just print the name
        printf "%s\n" "$thing"
      fi
    done
  done
}
then open a new terminal and run:
lsc /path/to/dir
For example, given the following directory (the \012 are newlines in the names):












2019-06-26

crontab job report error/command not found, only error at schedule, not in manual execute sh script.






Reference URL: https://stackoverflow.com/questions/8127433/unable-to-run-a-service-command-via-cron






sbin is not in the path when run via cron. Specify the full path to service. This is probably either /sbin/service or /usr/sbin/service. You can find the path on your system by running which service.





Work around:


add " 2>&1" behind your crontab for those scripts you totally no idea how to handle "properly" in short time.








Setup apache-archiva-2.2.4






create apache-tomcat-7.0.42/bin/setenv.sh
or
a softlink apache-tomcat-7.0.42/bin/setenv.sh to existing apache-tomcat-7.0.42/bin/env.sh file

for system properties below:

CATALINA_OPTS="-Dappserver.home=$CATALINA_HOME -Dappserver.base=$CATALINA_HOME"
export CATALINA_OPTS








Best Practice - Using a Repository Manager




2019-06-25

Is right click'abled.

Yes, you can right click at here now.

Have fun.

2019-06-14

VisualWget amazing. Download a website with folders and page






https://www.raymond.cc/blog/how-to-download-all-files-from-a-folder-on-a-website-or-ftp/view-all/

https://www.raymond.cc/blog/download/did/1048/





Wget
Wget is a free and very powerful file downloader that comes with a lot of useful features including resume support, recursive download, FTP/HTTPS support, and etc. In “The Social Network” movie, Mark Zuckerberg is seen using the Wget tool to download all the student photos from his university to create Facemash. Wget is a command line tool which can be a bit difficult to use for some basic users.
VisualWget
Thankfully there are free front-end GUI’s for Wget such as VisualWget that makes it so much easier to use Wget by simply clicking on the check boxes rather than manually typing the command line arguments. Download VisualWget, extract and run VisualWget.exe. Click on the New icon to open a New Download window. Enter the URL that you want to download and select the location that you want to save the files to.
VisualWget New Download
If you need to download multiple folders including subfolders, go to Advanced, click on Recursive Retrieval and tick on the first checkbox “–recursive“. Finally click OK to start downloading.
VisualWget Recursive
Although there are a few GUIs for Wget, we recommend VisualWget because it is free, portable, comes together with Wget and there is no need to download separately and manually unpacking it to the program’s folder or even configuring the path.
Read More: https://www.raymond.cc/blog/how-to-download-all-files-from-a-folder-on-a-website-or-ftp/





2019-06-11

Windows Server 2012 R2 Bare Metal Recovery failed with error 0x80070001



Hitting this issue with WinRE_WinServer2012_amd64.iso, self build by command (after install Windows ADK) and winre.wim from 9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVER_SOLUTION_EN-US-IRM_SSSO_X64FRE_EN-US_DV5.ISO(download from microsoft)

winre.wim
Size: 210 MB (220,338,425 bytes)
Size on disk: 210 MB (220,340,224 bytes)

seems able to continue recovery by copy winre.wim from server, at path C:\Recovery\WindowsRE\Winre.wim


Winre.wim
Size: 241 MB (252,717,138 bytes)
Size on disk: 241 MB (252,719,104 bytes)

2019-06-10

Change firmware type for VMware Workstation 15.1 player.


Solved by adding 1 line of config into vmx file in your target VM.

Reference URL: https://www.serverwatch.com/server-tutorials/enabling-uefi-on-virtual-machines.html



UEFI support must be enabled by manually editing the .VMX file or by using a third-party tool like VM Tweaker.
To manually edit the .VMX file, simply open with a text editor and add the following line and then save:
firmware = "efi"That's it — now that particular VM should run with UEFI.











All guides from google are for VMware Workstation 15.1 Pro.

  1. https://docs.vmware.com/en/VMware-Workstation-Pro/15.0/com.vmware.ws.using.doc/GUID-064517C9-14D6-4C87-8D2C-2856EFAE88EB.html?hWord=N4IghgNiBcIK4FMBmBLEBfIA
  2. https://communities.vmware.com/thread/594143



which Advance Options(under Autologin) is not available in VMware Workstation 15.1 player.(at least at my installation)









2019-05-27

To Be Find Out: Eclipse .settings



Eclipse .settings

Eclipse:
Eclipse Java EE IDE for Web Developers.
Version: Photon Release (4.8.0)
Build id: 20180619-1200

Might caused to have these xml config as below to be added automatically, right the time after you did Maven > Updates Project.

        <dependent-module archiveName="tss-lib-1.1.9-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/TssLib_Mobile_API/TssLib_Mobile_API">
            <dependency-type>uses</dependency-type>
        </dependent-module>








2019-05-23

Project 'X' is missing required Java project: 'Y'


Google'd: java maven project build path problems is missing required java project

Reference URL:
https://stackoverflow.com/questions/22050194/project-x-is-missing-required-java-project-y

reference above solving by tweaking in project x, but my case i have to tweak from project y

  1. Disable Maven nature for project y.
  2. Re convert to maven project again for project y.

Google Referrals