Pages

Monday, December 31, 2012

How to remove svn folders from server

How to simply remove svn files from server



Make sure that you have the access rights to delete files.

Use the following command:
find ./ -name ".svn" | xargs rm -Rf
where first part find  finds all .svn folders in your current directory ./
Do not confuse ./ and / since the simple forward slash deletes all svn files in your filesystem.
 
second part deletes each match
-R  deletes recursively the content
-f  ignore non existent files

Saturday, December 29, 2012

Belkin 54g wireless router disconnecting

How to solve permanently disconnecting Belkin 54g wireless router?


Yeah I know it very well. It can be drastically annoying the connection goes on and off all the time and you can't watch film, upload stuff, or effectively work from home.
Probably you even have noticed that the situation worsen when everyone is at home.
The good news here is that you don't need to rush to shop for new router. At least not before you try the following.

The cheap Belkin router comes with very handy web-interface loaded with functions.
Wait until everyone is asleep or go to your router and plug the wire in one of the 4 LAN slots.
In browser go to http://192.168.2.1 and navigate to "Channel and SSID" you can find it in "Wireless" section
The router comes set up for automatic channel selection which sometimes when a lot of wireless devices is querying causes the router going crazy and it rotates between channels. That is where it disconnects and reconnects all the time. Go ahead and choose one channel. You might try few of them before you find the stable one.

This is not a solution for all the problems but in some cases it might help. Other "tricks" in the sleeve are updating firmware, playing with wireless mode, MAC Address filtering etc.
I might write next few posts about it.

How to remove deleted folder from subversion in Netbeans

Deleting locally deleted folder.



When you came across a problem - You accidentally delete the folder and its content locally and don't bother to do it via Subversion. On the next commit in Netbeans SVN will complain about missing files  thinking there still should be something in it. Fortunatelly there is a way around.

  1. Commit all changes in all other folders in the parent folder where the deleted stuff was.
  2. Exit Netbeans (It won't work when Netbeans is running)
  3. In Terminal as root go into the directory where the deleted folder used to be.
  4. Make the folder with the same name  $:mkdir ./folder_name
  5. Add the folder to subversion $:svn add ./folder_name
  6. Force delete the folder from subversion $:svn --force rm ./folder_name
  7. Open Netbeans again and do the update on parent folder
  8. Now you can commit freely again