Search results

  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...
  16. A

    Visual Studio: Object Highlighting

    Hi, Recently I wrote a Java application with NetBeans. It has one feature I would like to have in VS08: If an object is selected, it highligted all recurring instances of that object. For example: Dim X as Integer X = 10If I select the 'X' in the first line the second 'X' in the next line is...
  17. A

    Accessing Enums

    I guess it is a longshot but i'll ask anyway: Somtimes the declaration Enums is deeply nested in a class Class Some Class VeryLong Class ClassNames Enum eBla Test End Enum Public Shared Sub TestSub(ByVal Bla As eBla)...
  18. A

    Creating a very fast "hash"

    Hi I need to identify video files and that as fast as possible. Since I didn't find any hash which can generate an id within a second, I only hashed a very small part of the file. Basically I did this: Divide the data into 64 equal large sections At the beginning of each section, read the...
  19. A

    Files within a File

    I have about 6200 little files in a directory, which might be used by my program but in most cases the file will only be used once. Now having 6200 files of 2-10kb in a directory looks bad, so I'm looking for another way: One solution I thought of was creating a file which acts a an archive...
  20. A

    Storing "dynamic" data

    Hi I need to store "dynamic" data, which simply means: Some fields might be not used or maybe a new datafield is added. So if I create a class with every single field which might be needed, I will most likely end up having a class where many fields are unused. To counter this issue I've been...
Top Bottom