Saturday, October 29, 2011

System error 58 while accessing shares on Windows 7 from XP

On a machine that share is located:

Go to Run -> Start and enter services.msc and restart Server service

or go to Run -> Start and enter cmd, then execute two commands below

net stop LanmanServer
net start LanmanServer

Thursday, October 20, 2011

Function Recurrence and Fibonacci Element

Let's say we want to calculate n-element value of Fibonacci sequence and we do not want to write to much code. The best solution is to use function recurrence. Here is the sample code:


int fib (int n)
{
    if (n <= 1) return 1;
    return fib (n-1) + fib (n-2);
}

Wouldn't it be nice to see how computer will proceed through stack to return the correct number?
I did it for you. We are starting at green box calculating value of 5th element. Have fun!

Function flow

Sunday, September 11, 2011

System error 53 has occurred. The network path was not found

Are you tired of looking for solution for this error and still having troubles with sharing or accessing files over your network?

I looked a lot for the answer and got "Check if services are running", "Restart", Unistall/reinstall".
I followed dozen of similiar advices. I was checking different options with Network Sharing Center. Nothing helped.

Stop doing it and try what helped me.

Run command line (Start and enter cmd)

net use z: \\computer_name\your_share /persistent:no

It should tell you that your password is invalid and ask you to provide new one.
It will map your share to network drive. You can disconnect it later if you don't need it or it will disappear next time you boot. It should make your other shares available as well.

Looks like the issue is related to some cached password which is no longer valid and windows explorer is not asking for it.