Recent content by Arokh

  1. A

    Trouble parsing dates

    Hi, I need to parse a specific date format, as fast as possible, since there are around a million of them I need to parse in a go. The date format looks like this: "7/30 17:15:39.140" "7/30 10:07:03.156" After searching for an example on the MSDN I found this...
  2. A

    Interpreting analog sound signals from line-in

    Hi, I have an old amplifier which connects to a tuner and a tapeplayer, which are connected though three chinch cables (2xaudio 1xcommunication). Now instead of connecting the com-cable to the tapeplayer, I connected it to a loudspeaker and it was as I have hoped: As soon as I pressed a button...
  3. A

    Convert bytearray (of arbitrary size) to string of arbitrary base

    Hi, My current situation: After hashing I get a bytearray of 24 bytes, normally one would just convert it to hex which is easy. But now I have to convert it to the base of 36 (0-9 + A-Z), which is not so easy anymore. Is there a simple way to do this? The idea I have come up with seems a bit...
  4. A

    Tiger Hash Algorithm: How to speed up?

    Hi, I've been trying to speed up the calculation of the Tiger hash. Though its said that it is a fast hash function beating sha-1, but I can't get anywhere near the sha-1 speed. While sha-1 is limited by my HDD speed at about ~120mb/s, the Tiger hash is limited by my cpu and the speed drops...
  5. A

    Library error: Side-by-side configuration is incorrect

    Hi, I've been searching for a specific library which fits my need and now I finally found it, but I can't get it to work :/ The first problem was I forgot to change the settings from Any CPU to 86x, but as soon as I git rid of that error another came: System.IO.FileLoadException was unhandled...
  6. A

    Silence channel detection

    Hi, Is there any way to detect silent audio channels? I have some bogus video/audio files (avi, mkv, ogm, etc) which have mostly AC3 audio streams with 6 channels. The problem ist they only have 2 channels which contain actual audio data, the other channels are just silent. I need a way to...
  7. A

    Hashing a file with different hashes in one go

    Hi, I'm currently writing a application which calculates different hashes. Every hash I "have" has inheritet the HashAlgorithm class and now I want to use them to calculate those hashes. And I want it to be calculated as fast as possible. At first I thought it wouldn't be so hard to do so, but...
  8. A

    Plugin based app: Extensibility & Flexiblity

    In the course of coding a plugin based application (which is progressing very well), I sometimes worry about the aspects of Extensibility & Flexiblity. Plugins may communicate with other plugins so it obviously relies heavily on interfaces. My current (project)structure is like this...
  9. A

    Deserialize obj which assembly is not loaded

    Hi, In my program I dynamically create an instance of a class (from an external dll), which is responsible storing and loading data with serialization. The serialization is working fine, but the deserialization doesn't work, since the assembly where the class is located is not loaded. (At least...
  10. A

    Manually getting all files from directory

    Hi, surprisingly I couldn't find a topic which covers this (or I'm simply blind): I switched over from VB to C# and I've been using the My.Computer.FileSystem.GetFiles([SomeDir],FileIO.SearchOption.SearchAllSubDirectories,new String() {"*.avi","*.mkv"}) Method. Since the My namespace is not...
  11. A

    Removing a Tab from a TabControl with mouse events

    Hi I'm having a bit of trouble with removing a tab from a tabcontrol. The user can dynamically add tab, so obviously a way to close them is needed. First I tried to somehow a button to the tablabel but that has proven to be a little difficult. Now I just want to close a tab when the user makes...
  12. A

    [Flag] enum: Setting values

    Hi, I've created an enum with the Flag attribute and I want to use it as such, but the creating part is a little annoying. I've tried to make it less annoying by using Math.Pow but Csharp doesn't like that: [FlagsAttribute] public enum eDBFCode { //Byte 1 //B17=Math.Pow(2,0), B16_AId =...
  13. A

    Modules and Dependencies

    Hi, I'm currently rewriting a program so that it can be modularised and it is progressing well, but now I have a problem which I'm having problems with: Lets say I have two projects. The Main project with class main and another project Extention with class ext. Now assume 'class ext' is an...
  14. A

    Circular Shifting with only three bits

    Hi, I'm in need of circular shifting, which isn't supported in VB.NET. To make things a bit more complicated (no pun intended :p ), I only want to use the first 3 bits to do the rotation. (Just imagine a 3 bit integer) I've come up with some solutions, but I hope there is a more elegant, maybe...
  15. A

    Plugin based application with central saved settings

    Hi I'm writing an application which has script/plugin system. I want to provide a central place where settings are stored/recalled, dividing settings into private and public ones (per plugin). So basically my question is: Is there a reliable way to know from which dll the Property was called...
Top Bottom