Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

import-module

What’s the difference between Add-PsSnapIn and Import-Module

August 31, 2023 by Tarik

Modules came about in PowerShell V2. V2 can still load Snapins though, if necessary. The big difference is that modules can be deployed using Xcopy. There is no need to register anything. To deploy a Snapin, an installer would have to hack the registry, which would require elevated priveleges. To load a module, you simply … Read more

Categories powershell Tags import-module, powershell Leave a comment

ConfigParser vs. import config

August 2, 2023 by Tarik

The biggest issue I see with import config is that you don’t know what will happen when you import it. Yes, you will get a set of symbols that are naturally referenced using a . style interface. But the code in the configuration file can also do who-knows-what. Now, if you completely trust your users, … Read more

Categories python Tags configparser, configuration, import-module, python Leave a comment

PowerShell Import-Module vs Dot Sourcing

June 8, 2023 by Tarik

Modules are best for libraries. They give you more control over what is exported from the module. That is by default all script variables in a PSM1 file are private – not visible outside the module when it’s imported. Likewise, all functions are public. However, you can use Export-ModuleMember in your PSM1 file to control … Read more

Categories powershell Tags import-module, powershell Leave a comment

How to update an imported module in Android Studio?

April 29, 2023 by Tarik

OK I found the answer by myself: You must not add the external library as an existing module. It will make a copy of it under your project folder. What you have to do is: Delete the library folder in your current project. (You can also delete the ./idea/modules/[module_name] folder.) Open the setting.gradle file and … Read more

Categories android Tags android, android-studio, import-module Leave a comment

Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

December 24, 2022 by Tarik

Remove this line from the build.gradle on the specified project apply from: ‘https://raw.github.com/twotoasters/gradle-mvn-push/master/gradle-mvn-push.gradle’

Categories android Tags android, android-gradle-plugin, android-studio, gradle, import-module Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa