• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - FrOzeN

#1
Fun Forum™ / SC2 Unit - Tauren Marine
April 01, 2008, 06:13 AM
http://eu.starcraft2.com/features/terran/taurenmarine.xml

Neat April fools joke.

Hopefully they include these units in a secret cow level or something. That'd be awesome. :)
#2
General Discussion / Audio Quality
November 04, 2007, 04:59 AM
Most of the music I've downloaded has only been played through my crappy computer speakers, or through my headphones. So I've found that 128kbps has been fine to compress to without any noticeable quality loss. I'm planning to get a car in the coming months and put a quality sound system in. So I'm wondering if I'll start to notice the difference in quality from playing a 128kbps mp3 opposed to a 320kbps one. Any recommendations to what quality I should be after? Please post anything related to music quality. I've never really looked into this at all, and just assumed 128kbps would be fine.
#3
Seeing all these GPS devices everywhere these days, I assume it's fairly easy to acquire the lat/long values of your current location. I was curious if anyone here has worked with, or has any idea on how to get them. On an old laptop I have I thought it'd be fun to feed the lat/long values into it and read them through USB (or anything) then play around with them in a program I'd like to make.
#4
C/C++ Programming / RichTextBox
May 28, 2007, 03:45 AM
hWndEditBox = CreateWindow("EDIT",
                           "Edit Boxes",
                           WS_VISIBLE | WS_CHILD,
                           10,
                           10,
                           100,
                           50,
                           hWnd,
                           (HMENU)IDC_EDITBOX_TEXT,
                           (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
                           NULL);

The above code creates a Edit Box (Textbox) in C++. Does anyone have similar (or even an entire class) code to create a RichTextBox (and possibly post their AddChat procedure too). I need to add a RichTextBox to a program I'm making in VB6 and cannot use the .ocx control due to restrictions on how I'm doing the rest of the program. So I'll just convert the C++ code over, and modify it accordingly. Thanks.
#5
General Programming / Documenting a Project
May 27, 2007, 03:10 AM
For school, in Visual Basic 6 I have to make a program. The project I'll be making will consist of quite an amount of code, and an excessive amount of documentation on how all the code works and what it does. To give a bit of an idea, it'll be using a TCP connection done via the API and will have subclassing to hook the socket and capture the events (such as packets arriving) to be processed accordly, and be all neatly put together in a series of classes.

As I'll be making this project I want a way to document all the changes I make to my code. Usually I just have a text file which I log everything, though, I was wondering what other ways this can be done without having to install other software on the computer that'll be viewing the documentation (if the software can export the documentation to a webpage, pdf file, or something then that'd be fine too).
#6
Warcraft / Link to Armory
May 25, 2007, 11:36 PM
Just curious to see what everyone has. :)

Arasolin - Frostmourne/Horde - lvl 47 Blood Elf Paladin - My current (main).

Smurrf - Jubei'Thos/Alliance - lvl 47 Gnome Mage - No longer play.
#8
Web Development / Access a class globally? (PHP)
November 26, 2006, 10:43 PM
How can I setup my MySQL_Wrapper class to have global access?

Eg:
index.php:
include 'mysql.class.php';
include 'login.class.php';

$clsMySQL = &New MySQL_Wrapper;
$clsLogin = &New LoginClass;

$clsLogin->something();


login.class.php:
class LoginClass {
    var $username;
    var $example;

    function something() {
        $sql_result = $clsMySQL->sql_query("SOMETHING ...");
        return $sql_result;
    }
}


mysql.class.php:
class MySQL_Wrapper {
    var $sql_connection;

    function sql_query($query) {
        $str_result = mysql_query($query, $this->sql_connection);
        return $str_result;
    }
}
#9
General Discussion / Deciding on which monitor?
October 24, 2006, 01:49 PM
Samsung 204B 20" (Black - not silver as showed in link)

-or-

ViewSonic VX2235wm 22" Widescreen

I haven't looked into the second one much, but would it be good for gaming? Mainly games such as: CSS, Half Life 2, FEAR, etc..

Thoughts?
#10
Web Development / iFrame Trick
October 06, 2006, 11:31 PM
This may be handy if you don't have time to learn AJAX.

http://www.clananthrax.net/php/other/example.php
http://www.clananthrax.net/php/other/example.phps

Update your page with a hidden iFrame. :)
#11
General Programming / Booleans 2 bytes - Why?
September 13, 2006, 06:08 AM
Booleans are literally just True/False, yet they take up 2 bytes whereas you could fit 16 True/False combinations into that.

I understand it has something to do with the fact that they were created back when we used 16-bit systems and that it was more efficient process data in 16-bit chunks?

Anyone have any links about this, and why they're 16-bits?

Also, would it be a good idea to use an integer with bitwise comparisons throughout your code, so you could cut down every 16 booleans into 1?

Thanks. :)
#12
General Discussion / PayPal Question
September 12, 2006, 05:19 AM
I just signed up for a Personal Account and have read over a variety of questions on their FAQs, but still have a one. I fiqured some of you guys probably use PayPal and would know the answer to it.

Say I'm using a Personal Account which has a MAX of US$500/month received funds limit. If I'm on US$400, say, on the 10th, and someone were to send me a sum of US$150 would it:


  • a) Unable to be sent to the account.
  • b) Give me x-amount of days to upgrade to a Premier/Business Account, or the money will be refunded to the sender. Also, if this is the case, what is x?
  • c) Other. Elaborate.
#13
I was bored the other day mucking around with the For loop making words, and I ended up with this after awhile.

http://www.clananthrax.net/vb6/Encrypter.zip

It works fine for encrypting/decrypting strings, though, it's not very practical nor efficient. I just wrote it out of boredom. Though it may be interesting to look over. Also after playing around with it '346' seems to be a relatively good 'x' value to use.

Thoughts..?
#14
Over the past few days, my computer has been blacking out and power is still going to the monitor/keyboard as the lights are on but the screen doesn't show anything, and the keyboard doesn't pick up anything. Also, the USB mouse doesn't respond.

When I turn my computer on this also occurs, no matter how many times I restart I still get this.  You here all the fans turn on etc.. but just before the part where an orange light blinks and makes that usual "beep" sound as it starts to turn on, it doesn't quite get there.

After getting annoyed I banged the case at back where the powerbox is and surprisely the orange light flashed and it turned on, though a few hours later it blacked out again. For the last few days I'm hitting it like this to turn it on. Any ideas on what the problem may be?
#15
Fun Forum™ / Microsoft LMFAO!
May 31, 2006, 03:37 AM
http://img446.imageshack.us/img446/2641/microsoftlol6mn.jpg

ROFL, it classified it's own mail as junk mail.
#16
C/C++ Programming / C Question
May 29, 2006, 05:21 PM
With the following code:
#include <stdio.h>
#include <string.h>

int main(int argc, char* argv[]) {
    char strTemp[11];

    sGetMessage(strTemp);
    printf("%s\n", strTemp);

    system("PAUSE");
    return 0;
}

sGetMessage(char* Message) {
    strcpy(Message, "Hello World!");
}


Should the sGetMessage function have a data type scope?

Eg,
int sGetMessage(char* Message) {
    strcpy(Message, "Hello World!");
    return 0;
}
#17
Battle.net Bot Development / Idea for Hashing
May 24, 2006, 10:24 PM
At the moment the WarCraft 3 hashes are around 10.7MB. So I downloaded UPX which cuts them down to 3.5MB. I'm not really too sure about how UPX works and all. But I was thinking if someone rewrote the hashing algorithms to take into account there newly compressed size. It would save a hell of alot of bathwidth and a bit of storage too, as hashes are probably the most commonly downloaded files.

Any thoughts on if this is worth doing? Or flaws in this?
#18
Thought I'd share this. Slightly different to the more common methods. It's just ment to be a really simple way of adding text without any format required. Also by expanding vbCurreny constances it could be easily modified to add more abilties to it.

Private Const AC_BOLD_ON As Currency = 0
Private Const AC_BOLD_OFF As Currency = 1
Private Const AC_ITALIC_ON As Currency = 2
Private Const AC_ITALIC_OFF As Currency = 3

Private Sub AddChat(ParamArray Parts() As Variant)
    Dim i As Integer
    With rtbChat
        .SelStart = Len(.Text)
        For i = LBound(Parts) To UBound(Parts)
            .SelLength = 0
            If VarType(Parts(i)) = vbCurrency Then
                Select Case Parts(i)
                    Case 0: .SelBold = True
                    Case 1: .SelBold = False
                    Case 2: .SelItalic = True
                    Case 3: .SelItalic = False
                End Select
            ElseIf (VarType(Parts(i)) = vbInteger) Or (VarType(Parts(i)) = vbLong) Then
                .SelColor = Parts(i)
            Else
                .SelText = CStr(Parts(i))
                .SelStart = Len(.Text)
            End If
        Next i
    .SelText = vbCrLf
    .SelStart = Len(.Text)
    End With
End Sub


Example:
AddChat AC_ITALIC_ON, vbWhite, "Hello ", vbRed, " there.", AC_ITALIC_OFF, vbWhite, AC_BOLD_ON, " BOLD!"
Output:
QuoteHello there. BOLD!

[EDIT] Note: When parsing Integers, Longs or Curreny into the function to be displayed as text. Place CStr() around them to convert them to a string so they don't get interpreted as Colours/Formatting.
#19
General Programming / HSC Question
May 22, 2006, 10:00 PM
BEGIN FindDogOwner (req_microchipno, req_ownername)
    found = false
    open (Owner) indexed by microchipno
    read (Owner) microchipno, ownername
    WHILE not found OR not end of file
        IF microchipno = req_microchipno THEN
            req_ownername = ownername
            found = true
        ENDIF
        read (Owner) microchipno, ownername
    ENDWHILE
    IF not found THEN
        print 'no owner recorded'
    ELSE
        print 'owner is '; ownername
    ENDIF
END


Question: What type of variable is 'found'?
  (A) A constant
  (B) A flag
  (C) A string
  (D) A trigger

---
Just post either A, B, C or D depending on what you think/know the answer is. I'm going over HSC tests from previous years, and found the answer they said for this one to be different to what I thought. I'll post it after some replies.

Also, HSC stands for "High School Certificate", it's Australian. It would be equivalent to whatever the most important exam you do in High School in America/Canada/etc..