On GNU R if you delete your objects by
rm(list=ls())
This action won't free any memory associated with those objects. For this reason, R provides a utility for garbage collection, simply apply
gc()
This will free not used allocations. If you like to apply this whenever R allocates memory, apply this:
gctorture(on = TRUE)
Consult with R Internals manual for further details.
Tuesday, 12 January 2010
Thursday, 10 December 2009
Groebner Bases and Cryptography
You may have already heard the brilliant technique called Groebner bases to solve multivariate system of equations. But unfortunately it is pointed out that it isn't possible to use this in cryptography: [Why you cannot even hope to use Groebner Bases in Public Key Cryptography?].
Wednesday, 15 October 2008
Deleting extraneous files from destination: rsync
There were some reported non-functioning --delete flag when using rsync in syncronizing two filesystems/locations. This may occur due to failures or errors during rsync tries to sync zero size files. One simple work around for this is using --ignore-errors flag. Some examples for taking backup of user directory:
rsync -vaz -e ssh --delete --ignore-errors user@host:/home/user/ local_dir/
rsync -vaz --delete --ignore-errors /home/user/ /media/disk/backup_dir/
rsync -vaz -e ssh --delete --ignore-errors user@host:/home/user/ local_dir/
rsync -vaz --delete --ignore-errors /home/user/ /media/disk/backup_dir/
Thursday, 14 August 2008
TCL Bad Code Error
Using tcl extension would be quite reasonable to write a flexable code. How ever if you use parse command set and TCL_OK as a return, be sure that type of your function is int, otherwise tcl complains with a strange run time error, saying bad code. So, be sure about the correct return type.
Subscribe to:
Posts (Atom)
