Search found 204 matches

by tappatekie
Mon Dec 05, 2011 8:23 pm
Forum: Programming Discussion
Topic: Halp ! T.T
Replies: 11
Views: 1847

Re: Halp ! T.T

Okay,Im basing this as a serious question. From my experience, I never used power functions to calculate the actual length of the bits. So instead of while (number > pow((double)base, power)) { power++; } I would try //Define the current bit thingy... (you'l see further in the code) int baseVal = ba...
by tappatekie
Thu Dec 01, 2011 12:25 pm
Forum: Programming Discussion
Topic: Server Multithreading Help
Replies: 4
Views: 1392

Re: Server Multithreading Help

dandymcgee wrote:Ah, glad you finally figured it out.
Thanks, it was a real thorn to get rid of
by tappatekie
Wed Nov 30, 2011 7:33 pm
Forum: Programming Discussion
Topic: Server Multithreading Help
Replies: 4
Views: 1392

Re: Server Multithreading Help

Okay, Just to let you know (if you are looking a this post) that I have fixed the problem.
It turned out it was a coding error I made when the server actually processed the socket.
by tappatekie
Tue Nov 29, 2011 2:44 pm
Forum: Programming Discussion
Topic: Server Multithreading Help
Replies: 4
Views: 1392

Re: Help

Update: I have found something using google (did'nt find before because I was being specific in the search) Im using /* *I will probably use my own home-brew object type for this bit */ private AutoResetEvent p_WaitHandle = new AutoResetEvent(false); private void listen(TcpListener listener){ while(...
by tappatekie
Tue Nov 29, 2011 11:07 am
Forum: Programming Discussion
Topic: Server Multithreading Help
Replies: 4
Views: 1392

Server Multithreading Help

Right I have a extremely frustrating error that I have never been able to fix. I am using C#.Net and the bog standard System.Threading namespace and I it's fine if you give me code for VB.Net or .Net for C++. I am trying to get a multi-threading system going in the web server so it can process more ...
by tappatekie
Tue Nov 29, 2011 1:37 am
Forum: Programming Discussion
Topic: Archive folder format?
Replies: 8
Views: 1404

Re: Archive folder format?

Hmm, Just out of curiosity, how are you going to save the content to the file? As in every time a file is changed, you re-save the whole table or do you write to the file but only write the necessary changes?

And from your edit. It will make things more faster too :D
by tappatekie
Tue Nov 29, 2011 1:30 am
Forum: Programming Discussion
Topic: Archive folder format?
Replies: 8
Views: 1404

Re: Archive folder format?

Ok, sounds like your going to have something like myDir/file.txt then you define myDir as a directory from processing the slashes right? If that is the case, what if you have a file without an extension? Unless your checking if it ends with a slash? Wups did'nt read the "before the slashes"...
by tappatekie
Tue Nov 29, 2011 1:16 am
Forum: Programming Discussion
Topic: Archive folder format?
Replies: 8
Views: 1404

Re: Archive folder format?

It's in C++. I could have easily achieved all of it (and could even change it to,) standard C. But I love namespaces, and all (mine at least) programs that will be using it are mostly C++ anyways. Don't really know C++ but know the syntax near enough since I know C#. In my experience, I developed a...
by tappatekie
Tue Nov 29, 2011 12:56 am
Forum: Programming Discussion
Topic: Archive folder format?
Replies: 8
Views: 1404

Re: Archive folder format?

May I ask what language you are using?
by tappatekie
Sun Nov 27, 2011 6:54 pm
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

If you organize the database, searches are pretty fast regardless of its size. How do you mean "organize"?, as in their all sorted?. If so that's all covered I am working on having the database structured like this [table identifier token (tells the parser that it's a table) (byte[])][/ta...
by tappatekie
Sun Nov 27, 2011 6:03 pm
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

Ah okay. I have destroyed the dark cloud that hung over the source files (commenting the code) so now I am developing the first stages of the database overhaul to make searches alot more faster (from advice from this thread) Thanks I don't expect the database system to be as good as SQL. But as it w...
by tappatekie
Sun Nov 27, 2011 4:15 pm
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

No I mean to actually find the entry in the first place without the help SQL
by tappatekie
Sun Nov 27, 2011 12:56 pm
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

Rebornxeno wrote:How do you find the book your looking for in a library? Maybe the two things aren't much different! :O
You make it sound simple...
by tappatekie
Sun Nov 27, 2011 9:24 am
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

I suppose
by tappatekie
Fri Nov 25, 2011 3:36 pm
Forum: Programming Discussion
Topic: Searching
Replies: 26
Views: 4008

Re: Searching

Sorry don't mean to spam, but I just came up with a good Idea, What if I have all the rows in one go as in Row1Entry1,Row1Entry2,Row2Entry1,Row2Entry2 Then just say like, I want 0 to be "Row2Entry1" So I pass y=1, x=0 so the location will be (y+1)*(x+1) //Still thinking of this formula.......