May 29th, 2009
I've just finished writing the article about Weierstrass M-test, unfortunately it's only available in Polish. There is a 5 examples and "how to do this shit" descriptions
. Before reading I recommend you to get know something about convergence tests.
Categories:
Mathematics. Tags:
examples,
mathematical analisys,
series theory.
May 22nd, 2009
Some time ago I needed SHA1 hash function for files in OpenSSL and I would like to share it with you
. Source code is short so it doesn't deserve for whole page. Enjoy!
#include
#include
#include
char* sha1(char* file_name)
{
SHA_CTX sha;
SHA1_Init(&sha);
FILE* f = fopen(file_name ,"rb");
char buf[1024];
int length = 0;
while((length = fread(buf, 1, 1024, f)))
{
SHA1_Update(&sha, buf, length);
}
fclose(f);
unsigned char out[20];
SHA1_Final(out, &;sha);
return strdup(out);
}
Categories:
C\C++,
Source codes. Tags:
examples,
ssl.
May 14th, 2009
It will be a short entry. I changed my e-mail account. So please send my messages for the new e-mail address:
kamil[dot]wylegala[at]gmail[dot]com.
Of course previous account is still working and you can also send messages there.
I would like to change the release date of Uplo4der program (although concrete date wasn't specified
) about a couple weeks. The reason is interface which was designed by NetBeans IDE. It doesn't look great on other OS. So I've been forced to rewrite whole interface from beginning and it'll take some time...
Categories:
Blog,
Software.