Tag Archives: tool

News: New released LibreOffice version 6.0 .

As we know the LibreOffice is a good tool for most of office tasks.
Now this tool come with a new version and new features.
Two of this allow us to implemented a new import filter from QuarkXPress v.3, v.4. and a new export filter to format EPUB file format.
We can read more about the new version of the LibreOffice tool from release notes.

Posted in news. Tagged with , , , , , , .

Go – simple or not.

In this tutorial I will show you how important it is to read the documentation in programming.
I’ll start with a simple command to detect the go language version

Most will say there are improvements and it is normal to know them.
Some of them will think that implementation is not obvious at a more general level and does not affect basic issues.
Let’s continue with the following example:

Obviously the word “Probably” will ask us a question mark.
Here’s what the documentation tells us:

func (*Int) ProbablyPrime
func (x *Int) ProbablyPrime(n int) bool
ProbablyPrime reports whether x is probably prime, applying the Miller-Rabin test with n pseudorandomly chosen bases as well as a Baillie-PSW test.

If x is prime, ProbablyPrime returns true. If x is chosen randomly and not prime, ProbablyPrime probably returns false. The probability of returning true for a randomly chosen non-prime is at most ¼ⁿ.

ProbablyPrime is 100% accurate for inputs less than 2⁶⁴. See Menezes et al., Handbook of Applied Cryptography, 1997, pp. 145-149, and FIPS 186-4 Appendix F for further discussion of the error probabilities.

ProbablyPrime is not suitable for judging primes that an adversary may have crafted to fool the test.

As of Go 1.8, ProbablyPrime(0) is allowed and applies only a Baillie-PSW test. Before Go 1.8, ProbablyPrime applied only the Miller-Rabin tests, and ProbablyPrime(0) panicked.

About prime numbers:

When a number has more than two factors it is called a composite number. Here are the first few prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199

Although both Baillie-PSW test and Miller-Rabin tests, solve the same problem.
Knowing which version we have, we can see what is important for programming.
Also, the information like: ProbablyPrime is 100% accurate for inputs less than 2⁶⁴ are very important from a mathematical point of view.

Posted in All, Commands, Go, Programming. Tagged with , , , , , .

Windows 10 – WinSxS folder and DISM tool .

NOTE: Deleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.
The DISM command tool let you to deal with WinSxS folder.
You can use DISM with Windows cabinet (.cab) or Windows Update Stand-alone Installer (.msu) files to install or remove updates, service packs, language packs, and to enable or disable Windows features.
Let’s see some examples for this tool:
First , use analysis you can determine the overhead of the WinSxS folder:

In this example, the WinSxS folder appears to be 5.18 GB, but the actual overhead (the sum of the size of backups and disabled features and the size of cache and temporary data) is 551.75 MB.
This tool aslo provides more options to further reduce the size of the WinSxS folder:

The last option ( is not show in this tutorial ) is to analyze the size of the Component Store in an offline Windows image.
You need to copy a .wim file, a .vhd, or a .vhdx that contains a Windows image and then you can start cleanup of the image.

Posted in All, Commands, Windows 10, Windows 8. Tagged with , , , , , .

Using wmic command under Windows 10 – part 003.

According to microsoft official website , see the link you can change the execution priority of the processes.
You can see this two examples with wmic commands:

Posted in All, Commands, Windows 10. Tagged with , , , , .

Using wmic command under Windows 10 – part 002.

Today I used wmic command to take arguments and make html files with output result in same folder where you run the commands.
Let’s see the commands used to solve this tasks:

Posted in All, Commands, Windows 10. Tagged with , , , , .