Long time no see(write)…
Finally I found some spare time in order to write on this blog. I hope I will be able to write something interesting in the upcoming days as the summer holiday has come. I took some time off because I had a very tiring period in May with 5 contests (in which I was able to finish in the top spots).
I started working on a project, the project being a team of software developers. Although I am having my leadership capabilities tested, it’s quite fun and very different from writing software “alone”. Let’s hope this will come up nicely.
Off-topic: Many of you know that this period is marked by the EURO 2008 football tournament so HAI ROMANIA!
Hope to write here soon!
NETApi - The Winapi for dot NET
It’s here! The power of Winapi in your .NET based application.
I worked today on transfering all the Winapi-s to .NET. You can now just include as reference the NETApi.dll and then you can write code as if the api-s were .NET Native.
For example (code written in c#):
using System;
using System.Collections.Generic;
using System.Text;
using WIN32API;//the name of the namespace found in the NETApi.dll
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int p;
string path1=”f:\\testhex.txt”;
string path2=”e:\\testhex.txt”;
Decl.CopyFile(path1, path2, p);
}
}
}
The NETApi.dll is created in c# .NET 2.0 and contains three classes:
- Decl (contains declared functions and voids)
- Cst (contains constants)
- Types (contains structures and enums)
You can download the dll file from here: http://rapidshare.com/files/106919013/NETApi.dll.html
I will post it open source as soon as I’ll see there is a large request for this file.
If you find functions or voids that do not work please give me feedback!
Simple Hex Editor - C#
Sometimes it’s all about having the right tool for editing. I’ve built a hex editor which can come in handy for many of those users who want to edit files (especially the binary ones). It can also be used in your program because I added the argument option.
It’s written in C# with .NET 2.0
Features:
- View file in hex
- Edit at provided offset (hex or int) - to provide a hex number please insert H in the front of the number, for example: 2D will be H2D
- Find specified string (use 0 to specify a null character)
- Edit from command line : hexeditor.exe path offset value , for example: hexeditor.exe “c:test.exe” H23 test
Download:
Source code: http://rapidshare.com/files/95709335/HexEditor.rar.html
Binary file: http://rapidshare.com/files/95709694/HexEditor.exe.html
.NET Framework: http://www.microsoft.com/downloads/…displaylang=en
Dynamic load .NET dll files (Creating a plug-in system) - C#
Finally I found some spare time to write an article on my (this) blog.
In the last days I needed to write a plug-in system for one of my projects. I managed to write it in C# and decided to share it on my blog. It’s really simple to create as you will see:
//This is a C# Console Application Project. The code was written with .NET Framework 2.0
using System;
using System.Reflection; (more…)
Network Card Physical Address (MAC) Changer
I think many of you want a software that can help you change the MAC of a computer. This is why I built this tool! As you probably know, a Physical Address (MAC) is the address of the Network Card that identifies you in some way in a network (it might be local, wide or global). The problem is when you buy a new NIC (network card) or a new computer (with a new NIC) because you will have another MAC and you will have to call your Internet provider to change the information on the server. This can take a lot of time and is not worth it (time is money).
This software is really easy-to-use.
You can download it from here.
Source code here.
It’s coded in c# with .net 2.0 so you will need .NET Framework 2.0 which you can download it from here.
PS: I offer no warranty!
Sending e-mails with C# .NET 2.0
I ran over this problem a couple of days ago when I was writing a plug-in for one of my software projects. The Internet is full of examples of sending e-mail algorithms. The problem is none of them worked for me. After studying this problem I came up with a viable solution. In the following rows I will explain how it works (I’m proud that my solution was marked as an answer to this problem in the MSDN forum): (more…)
Something, anything…
I’m sorry I didn’t have time to post some new researches/minitools. I’ve been busy working on some personal projects and stuff like that. Of course Christmas and New Year’s Day “trapped” me and I couldn’t write a line of code nor to post anything. I hope in a few months I will finish my projects and take time off to relax or to post something interesting.
A happy New Year!
PS: I’m glad that Sub to Srt converter is becoming more and more popular on the Internet (4th link - Google.com). ![]()
A study on sorting times
As I said in a previous post, I worked on some research papers on cryptography and algorithms. I decided to publish, for now, one of the papers: “A study on sorting times”.
You can read/download it from here [romanian language].
Sub to Srt Converter
This software will help you convert from .sub file to .srt subtitle file. .SRT files are “readable” for DivX Player. I needed yesterday a .srt subtitle for a movie but I could only find .sub files. [PS: I don't have BS Player] This is why I decided to write this miniconverter.
It is written in c# with .net 2.0. You can view the source-code here: Sub to Srt Converter Source code (if it doesn’t work try downloading it from here: http://rapidshare.com/files/67641688/Sub_To_Srt_Converter.pdf.html)or download the software here: http://rapidshare.com/files/67637436/subtosrt.exe.html
You will need .net 2.0 to run it so if you don’t have it you can download it from here .
Size of program: 24KB.
PS: Be careful which .sub files you want to convert because some may be invalid or corrupt.
Cryptography and Linguistics. A research on Linguistic cryptosystems.
This minor research paper details the algorithm of encoding a text using linguistic knowledge.
Let’s take a function f:A → B , where A is the collection of plain text words, and B is the collection of the encrypted words. We will take for each word in A, a word y from another language. This way “this” is “atunci”, where “atunci” means “then” in Romanian language. The words in the Romanian language corresponding to words in A collection, form the cipher’s key.
The problem of this algorithm is that it is vulnerable to frequency attack (more…)