A nautical navigation textbook on my table says that we can magnetise a non-magnetised needle by rubbing it with a silk cloth. I decided to cross check on the internet, and found some experts calling it off as bullshit. They said that it will make the needle charged with static electricity, as the friction will cause the electrons to transfer between surfaces, and the force of a magnetic field does not affect a static object. So if any of you can conform/reject this notion, then please do.
Apart from that, I tried to make sense of the fact that a capacitor creates an instantaneous current when connected to ground. I also know that a magnet can be made by placing a ferrous demagnetised object in the center of a copper coil that has an electric current running through it.
So if we're stranded at sea with our compass demagnetised, can't we make use of two dissimilar materials by rubbing them, then connecting the resultant static charged object to a copper coil that is ground, placing a demagnetised needle in the center of the coil and finally, closing the switch to let the charged object discharge?
As a needle has such low volume and mass, I believe a few such discharging cycles could effectively find us north again!
Will this work?
[EDIT #1] User @abel has noticed a very sweet phenomenon, and I thought it deserves some visual demonstration. I'll try my best to explain it, but any corrections are welcome.
When two objects have opposite electrostatic charge, they arrange their opposite charges as near to each other's opposite charges as physically possible. Thus, regardless of the two objects' orientations, the charges always stay close to each other. If we were to turn an object (say, a needle) near the surface of another oppositely charged object (say, silk cloth), we effectively move the charges relative to the object (needle) because the charges don't move and the object (needle) does! This imitates the electromagnet coil, when the charges (electrons) in the coil move around the core magnet in the center. I drew these diagrams, dedicated to Sir @abel and for future viewers of this post.
Rolling the (-) charged needle on a (+) charged (flat) silk cloth...
This is a cross section view. The needle's negative charged excess electrons attract the positive particles in the silk cloth. The like charges are repelled away from the points of contact...
Despite turning the needle to the right, it's electrons stay in the same place, which can be thought of as the electrons turning to the left of the yellow point on a stationary needle! The electrons are moving around the needle, just like the electrons in an electromagnetic coil move around the core magnet!
Turned needle...
Needle's charges (electrons) represented by cyan circle...
Needle's charges (electrons) can be thought of as having turned left of needle's yellow point...