How do I decompile a .dll file?

The answer depends on what language the DLL was written in. If it was a .NET language then, as pointed out, you can use .NET Reflector. If it’s the older Visual Basic (pre-.NET), then the DLL is compiled as what’s called p-code and there are a few options for doing some variations on decompiling. Finally, if … Read more

Having trouble setting working directory

The command setwd(“~/”) should set your working directory to your home directory. You might be experiencing problems because the OS you are using does not recognise “~/” as your home directory: this might be because of the OS, or it might be because of not having set that as your home directory elsewhere. As you have tagged the post … Read more

Categories R

Create Git branch with current changes

If you hadn’t made any commit yet, only (1: branch) and (3: checkout) would be enough.Or, in one command: git checkout -b newBranch With Git 2.23+ (Q3 2019), the new command git switch would create the branch in one line (with the same kind of reset –hard, so beware of its effect): As mentioned in the git reset man page: You have made some … Read more

So what does “return 0” actually mean?

Is it like php, where it returns its argument as the value of the function call? Is it just good practise? Yes, PHP and many other languages borrowed the return keyword from ‘C’. And in all the languages, the return keyword has the same function – to return from the function. Anything that follows return keyword is the value that is … Read more

Categories C Tags