You don't even need to use cached.
Go to the normal page. You will see "obscured" replies with gibberish text which say you must register to read them.
Scroll down to the bottom of these and you will see a long list of categories the site offers. Scroll past that and the replies will be there.
Posts made by Treeki
-
RE: Experts Exchange
-
RE: Why is Everybody so clueless on the importance of Desktop Search to the Masses?
@SpectateSwamp said:
I'm sure if the poor unfortunates had a copy of their loved ones and pictures of the family home and relatives. All on a DVD they would be pleased as could be. I took 2 DVD copies of the recent HomeLess Shelter discussion, to the Shelter. Some nice things got said about helping them. I'm sure they watched it.
Getting the content on would be the same as if they came to Swamp Shack. My Laptop is my free range computer. They could insert their DVD and move the contents to a folder on C drive. Make changes and then burn the results. If they just wanted to look at their Family Album pictures then it would be even quicker. Just plug in the DVD and use the Swamp search that is on the DVD to do the displays. My PC is not on the internet and is far more secure. It doesn't need reloads of the OS.
I was just making a point. With this search people can compute without owning a computer. That's fairly significant to the poor.
Would SSDS even run from a DVD without blowing up? Oh right, it would display a VB error message in the titlebar. It modifies files like files.txt when it runs. These "library computers" probably wouldn't have DVD writers to update the file - or let you use them, if they had.
I actually tried SSDS a few days ago because I was bored. It works as a very basic replica of Notepad's find feature. I tried using it on a Lorem Ipsum sample text.
To replicate that:
- Select the filename on the first prompt
- Type "C" on the second (no quotes)
- Enter the search terms, separated by / if more than 1, for example: lorem/ipsum/consectetuer
I couldn't figure out the other modes, or the A/B/etc keys it tells you you can use while viewing results.
Entering "S" for the second prompt instead seems to make it only show the line the result was found on, instead of "Context".
Sorry, no useless demo videos for you. If I get bored enough I might make a SSDS clone in C# and .NET.
- Select the filename on the first prompt
-
RE: CMS System WTF
Try comparing that site to Opera's site: http://www.opera.com
"Inspiration" or more than that? -
RE: Free Download Manager WTF
All my stuff goes in the C folder. Helps organise it from the rest of the things in the C drive, and makes backups easier as I can just copy over the entire folder. (I don't use My Documents.) Why the name C? It's easy to type when extracting a Zip file, for example.
-
Free Download Manager WTF
While trying to download a program, I encountered this:
It had been running at really slow speeds previously.. less than 8000 bytes per second. A few seconds after encountering the huge time remaining amounts (which were constantly changing) the download finished. -
RE: (Li|U)n[iu]x admins collected and own WTFs
I admit it, I'm a Linux noob. I've never used any Linux other than Puppy Linux (awful!).
So a few days ago, I decided to try Debian on a VM.
I have an awful Internet connection.. so I downloaded the 40MB business card distro.
Started installing, waited ages for it to download+install the base system.
Then, I realised I had selected no tasks! So, all I had was a shell.
Time to reinstall, this time I read the manual and decided to just use tasks Standard + KDE.
So.. I installed until it got to the base system point. I had to go.. so I decided to leave it installing. When I return, it's at the exact same point: but I had chosen a mirror nearer to me, which didn't work. So much for that. So I chose another and finally started installing. Over 3 hours to download and install everything.
Then, I enter. So far so good.
The day later, after installing some stuff (packages are good!) I shut it down.
Later I start it again.. but KDE refuses to log in. Hours of digging around on the Internet.. until I realise I had ran out of disk space. So I enlarged the VMDK, enlarged the partition.. and finally I got it to work perfectly. That's where I am now. -
RE: A couple of Error'ds
Hey, I always got Spybot appearing like that on my old computer. So annoying. >_>
-
RE: Ambiguous Excel Dialog
The real WTF is that you're using the buggy, unstable, breaking-some-programs bbLeanSkin. (I assume it's that, it looks fairly similar)
-
RE: I think our database is down
Problem seems to be that it is initialised with a New SqlConnection(), so it will never be Nothing, unless some doofus sets it to Nothing, as Martin said.
-
RE: Windows Live Messenger WTF [ + Microsoft rant ]
Another WTF with Messenger:
File transfers are completely messed up.
Sometimes they fail to send a request to the other person.
Sometimes they don't send the request, but send it after a few minutes.
Sometimes they show up as declined when they have been accepted.
Sometimes, they don't even appear correctly in the chatbox, and/or mess all the text up! -
RE: Delphi and Indy sockets?
I'm assuming asynchronous sockets are similar to what VB and the WinSock control uses, correct?
I cannot just receive or send a short burst of information, because Furcadia requires me to constantly receive/send data, possibly for as long as days, if you wish to keep your character connected that long. I might just go back to VB, if this is so complicated..
-
RE: Delphi and Indy sockets?
I could not edit this post due to the stupid time limit.
I have managed to fix the code by adding exception handling. However, the program is still laggy and typing does not appear instantly in an Edit control after I've pressed the appropiate key. Help?
-
Delphi and Indy sockets?
Well, I decided it's time to switch from VB6 to something else. By looking at the few tutorials I could find, and so on, I have a basic client that can connect to a server and send/receive data. However, there are two issues: 1. the program is laggy when connected, and, 2. when disconnected, my disconnect code is not triggered, I get an error box saying "Connection Gracefully Disconnected" or something similar.
Here is the code I'm using:
procedure TForm1.Button1Click(Sender: TObject);
begin
Button1.Enabled := False;
IndyClient.Host := 'lightbringer.furcadia.com';
IndyClient.Port := 6500;
Memo1.Lines.Add('Connected.');
IndyClient.Connect; try
while IndyClient.Connected do
begin
Memo1.Lines.Add(IndyClient.ReadLn);
end;
finally IndyClient.Disconnect; end;
Button1.Enabled := True;
Memo1.Lines.Add('Disconnected.');
end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key = #13 then
begin
IndyClient.WriteLn(Edit1.Text);
Edit1.Text := '';
end;
end;
Can anyone help?
Edit: If it helps, I'm using Delphi 7 Personal and Indy 9.
On a side note, nice enterprisey forum making me create the whole post in the HTML Source Editor, because I can't stand having <p> tags which add unnecessary spacing AND are used as well as <br> tags. -
RE: I'm new here..
The real WTF is that this topic is still alive, for an introduction thread..
-
RE: So, another VB6 question.
Well, I can't edit it for some reason, so.. I managed to fix the problem. :P
-
So, another VB6 question.
This is getting annoying.. How can I get Split() to take a Byte array, and output using numbers, like: 1,5,60,200,129,104
I tried writing my own function, but I apparently cannot return arrays from a function. This is what I got:
Public Function sSplit(srcString As String, delim As String) As Byte
Dim TempArr() As String
Dim Dest() As Byte
Dim TempInt As Integer
If srcString = "" Then sSplit = Dest: Exit Function
TempArr = Split(srcString, delim)
ReDim Preserve Dest(UBound(srcString)) As Byte
For TempInt = 0 To UBound(TempArr)
Dest(TempInt) = Val(TempArr(TempInt))
Next TempInt
sSplit = Dest
End Function
Any easy way to do this, or am I stuck? :/ -
RE: WTF or not WTF: depends on level of coder?
The real WTF is that this topic was instantly changed into a discussion on the usefulness of copyright messages in websites (except for a few posts). Then to a discussion on where electrons come from.
-
RE: Copying an array into a ListBox easily? (VB6)
@PSWorx said:
As for the user defined type question, I don't really know what you suggested but you can't use them like arrays. If you want to copy a specific property from one variable to another, use [code]var1.someprop = var2.someprop[/code]. If you want to copy UDT variables as a whole, I think you can simply write [code]var1 = var2[/code].
If you feel that your program gets too complex because you have to do some non-trivial task in multiple places, that's the point where you need to introduce more subroutines. In the example above, you could for example define a [code]Sub FillListFromArray(a() as String, l as ListBox)[/code] and tuck away your list filling code there. That's good style in any case.
Thanks, but I already knew that (my program uses arrays for settings types, such as "Public gsSets(1 To 20) As GSettings")
I did actually make a Sub that converted ListBox to Arrays, and back. (I have several Modules full of subroutines)
-
RE: Copying an array into a ListBox easily? (VB6)
@Daid said:
Didn't addItem return a reference to the added item? Or was that only for the common controls treeview? (Which you should use anyhow, as it has a ton of extra options, even if you only want lists)
Thanks anyway, but I managed to dig up how to do this (the NewIndex property name sure is descriptive!). This is only for a list of text filters in the Settings dialog, so I didn't feel a full-fledged treeview was necessary. (I will be using it for something else where I need graphical icons on each list item, though.)
-
RE: Copying an array into a ListBox easily? (VB6)
Sorry for double-posting, but I've hit another problem.
Is there a way to assign an ItemData to an item added to a ListBox, which has Sorted set to True?
I tried this:
Public Sub AddFilter(FilterText As String, WhatType As Byte)
lstTextFilters.Sorted = False
lstTextFilters.AddItem FilterText
lstTextFilters.ItemData(lstTextFilters.ListCount - 1) = WhatType
lstTextFilters.Sorted = True
End SubBut it failed horribly. :( Is there any other way to do it?
-
RE: Dumbest Coding Mistake you've made?
Quite recent.
This explains it all:
Private Sub Form_Load()
...
NewInstance
...
gsGSets.CNServer = "blahblah.com"
gsGSets.CNPort = 6500
...
End SubLater...
Public Sub NewInstance()
...
wskS(i).RemoteHost = gsGSets.CNServer
wskS(i).RemotePort = gsGSets.CNPort
wskS(i).Connect
...
End SubWhen I tested it..
"Why does the connection NEVER work? :O I made sure I set the variables, I put a Debug.Print in NewInstance to check the variable, and it works when I set it in NewInstance. But never when I set it in Form_Load!"
Then I figured out that I was setting it after the call to NewInstance was made.
-
RE: Copying an array into a ListBox easily? (VB6)
@PSWorx said:
I don't think there is any way to do this without a loop in VB6. You can use a For Each loop instead of a For loop though.
Okay, thanks. Although I haven't been able to test it because my code is rather complicated, does assigning user-defined types work in the same way I suggested, as in "gsSets(1) = gsLoadedSets(2)"?
-
Copying an array into a ListBox easily? (VB6)
Is there an easy way to copy the contents of a dynamic array (which may be empty) into a ListBox? Tried lstBuddyList.List = gsSets(i).OLNames but that didn't work (since then, I've realised that arrays + Collections = FILE_NOT_FOUND).
Preferably, it should also be able to be used in reverse.. I really don't want to use For loops, as I have a few of these I need to do and I don't want to overcomplicate my settings dialog too much.
-
RE: A huge collection of VB6 WTF's (Warning: Long post!)
@Ice^^Heat said:
What is the advantage of VB6 over VB.NET?
As far as I can see, nothing. I've tried VB2005, and immediately gave up. I'm not about to rewrite over half of my project just for the so-called advantages of .NET. I'm familiar with VB6, it works fine for me, and I ran into many problems when I tried to convert my program.
-
RE: Youtube 0.1
@ender said:
@PSWorx said:
@XIU said:
@PSWorx said:
@Treeki said:
@AI0867 said:
@RaspenJho said:
@newfweiler said:
@operagost said:
@Cratig said:
@DaveK said:
@XIU said:
@Zecc said:
@Thief^ said:
@Nandurius said:
@ammoQ said:
@Daniel15 said:
@Daniel15 said:
@viraptor said:
@Daniel15 said:
@PsychoCoder said:
@DaBookshah said:
@tster said:
@PsychoCoder said:
@SamuelDr said:
[quote user="joe.edwards@imaginuity.com"]@PsychoCoder said:
@Veinor said:
@alostpacket said:
@Veinor said:
@halcyon said:
@PsychoCoder said:
@Tatiano said:
@Harsh said:
@PSWorx said:
@SamuelDr said:
@PSWorx said:
@Amackera said:
@PSWorx said:
@Amackera said:
[quote user="joe.edwards@imaginuity.com"]The Infinite Cat Project
Lolcats pales in comparison!
s this
Infinite quote project?
Yup
heh heh
Thats what I get for not scrolling down far enough (disregard my previous post)
How long until it blows up, I wonder?
I dunno.
soonish
well, the innermost quote box will eventually need to shrink to zero size.
Well at the rate we're going it's not going to take long hehe
It feels cool to have my post at the center of all this.
The reply page looks really strange
Well thats because we have an InifnitePost Syndrome going on here
Are we there yet?
We have to be getting close by now, right?
Nearly there, I guess.
/me will throw a /me in just for fun (watch what happens when you quote it :P)Dunno - trying.
The name after the / me changes to your name, rather than staying as mine (as it should - And does in SMF :))I think we've just about blown it up - The innermost quote box is all squashed on my 1280x800 screen :P
I wonder if I should do something about that - isn't it my duty as a moderator to stop such an abuse?
Good thing I just got a wide screen monitor. Looks fine here.
OMG it's gone mad.
Come on! Stop it already!
Good browser test :P
Reminds me of a Usenet Meow cascade!
I'll join in as well for the fun of it, it's also a good test for CS - See if there is a limit on quote blocks!
Scroll scroll scroll your bar, gently down the screen. Merrily merrily merrily merrily,...... erm... don't know how to finish it!
Life is Paula Beans?
Is this building to a punchline?
I think it's building to a stack-overflow...
I'd say it's broken already
Join me on a scenic tour of The Quote Pyramid, housing ancient relics mentions of stuff like Lolcats and /me tests!
Edgar the Eightball says:
/me is stupid!Still working on 1920x1200
Number of HTML tags this document consists of: 9320
[/quote]Scrolling down real quick gave me a headache -but typing this reply seems to cause even greater headache, since every time I press a key, the window either jumps up to the start of previous post, or back down to the editbox - really weird.
[/quote]
Firefox messes up sometimes if I try to view the later posts in Page 1.edit: Blah! Lost the quote. Readded it in edit.
-
RE: A huge collection of VB6 WTF's (Warning: Long post!)
Wait, it's possible to return two values from a function? :O
-
RE: A huge collection of VB6 WTF's (Warning: Long post!)
Since so many people have replied while I've been gone, I'll address most..
It's not a ploy to get new members, I assure you. :P I just wanted to give a little background on what this code was for. But I don't really want this topic to derail into talking about Furcadia, more on my noobish WTF's.
On the use of the Open statement: I learnt that from QBasic, which was what I first started programming with. Back then, there was none of this Scripting.FileSystemObject thing. (But Scripting.Dictionary is useful.)
On my abuse of Temp(insert type here) variables: I find them nice, since I don't need to keep adding Dim statements for every variable I need to use. Plus, I don't want to use too much memory by Dimming stuff I don't use (two Functions in particular are called for every single line of text sent from/to the client).
On how Furcadia is a furry MMO: I don't have the exact quote, but the Wikipedia article for it states many of its members are not part of the furry fandom, including me. Look beyond that stuff and it's a solid game which was intended for roleplaying, but can be used as a chatroom. It can be completely customised and you can make maps and script them, plus change almost every graphic in the client. Third party programs like bots and proxies are also supported, unlike most MMOs (that I know of).
On my weird way of handling the INI files: I'll probably change that.
On finding built-in functions: I totally agree. I don't have VB6 help, so the only resource I have is MSDN, which does not list many things (still trying to find documentation there on the CString and CBool functions someone mentioned)
To everyone who tried to help me: thanks. :) -
RE: Youtube 0.1
@AI0867 said:
@RaspenJho said:
@newfweiler said:
@operagost said:
@Cratig said:
@DaveK said:
@XIU said:
@Zecc said:
@Thief^ said:
@Nandurius said:
@ammoQ said:
@Daniel15 said:
@Daniel15 said:
@viraptor said:
@Daniel15 said:
@PsychoCoder said:
@DaBookshah said:
@tster said:
@PsychoCoder said:
@SamuelDr said:
[quote user="joe.edwards@imaginuity.com"]@PsychoCoder said:
@Veinor said:
@alostpacket said:
@Veinor said:
@halcyon said:@PsychoCoder said:
@Tatiano said:
@Harsh said:
@PSWorx said:
@SamuelDr said:
@PSWorx said:
@Amackera said:
@PSWorx said:
@Amackera said:
[quote user="joe.edwards@imaginuity.com"]The Infinite Cat Project
Lolcats pales in comparison!
s thisInfinite quote project?
Yup
heh heh
Thats what I get for not scrolling down far enough (disregard my previous post)
How long until it blows up, I wonder?
I dunno.
soonish
well, the innermost quote box will eventually need to shrink to zero size.
Well at the rate we're going it's not going to take long hehe
It feels cool to have my post at the center of all this.
The reply page looks really strange
Well thats because we have an InifnitePost Syndrome going on here
Are we there yet?
We have to be getting close by now, right?
Nearly there, I guess.
/me will throw a /me in just for fun (watch what happens when you quote it :P)Dunno - trying.
The name after the / me changes to your name, rather than staying as mine (as it should - And does in SMF :))
I think we've just about blown it up - The innermost quote box is all squashed on my 1280x800 screen :PI wonder if I should do something about that - isn't it my duty as a moderator to stop such an abuse?
Good thing I just got a wide screen monitor. Looks fine here.
OMG it's gone mad.
Come on! Stop it already!
Good browser test :P
Reminds me of a Usenet Meow cascade!
I'll join in as well for the fun of it, it's also a good test for CS - See if there is a limit on quote blocks!
Scroll scroll scroll your bar, gently down the screen. Merrily merrily merrily merrily,...... erm... don't know how to finish it!
Life is Paula Beans?
Is this building to a punchline?
I think it's building to a stack-overflow...
[/quote]
I'd say it's broken already
[/quote]
Join me on a scenic tour of The Quote Pyramid, housing
ancient relicsmentions of stuff like Lolcats and /me tests! -
RE: A huge collection of VB6 WTF's (Warning: Long post!)
Yes. I thought it was allowed?
-
A huge collection of VB6 WTF's (Warning: Long post!)
I'm a VB6 programmer, but I'm not too experienced, so I tend to make many WTFs :P I joined just to post this. Here are some from one of my most recent projects.
A little background: it's a proxy server for an MMO (Furcadia- anyone heard of it here? Probably not..) which adds various features. However, being my first proxy (and one of my biggest programming projects yet) it's rather badly written. I'll list all the WTFs I found here.
- Multiple characters were done by having a tabbed control and all character-specific stuff in a UserControl instance. Not very user-friendly..
- The online list feature (which allows you to check when other people are online) worked this way:
Every # seconds (could be changed), it would poll the server on instance 1. When instance 1 received the "player is offline" or "player is offline" message, it would trigger an event. The event would then use a For loop to send a message to the client informing it that the player was online, by triggering a method on every instance. - The code was untidily written. No indentation, and full of global variables.
- This line alone describes the WTFness of the away mode: wskServer.SendData "desc " & Replace(Replace(Replace(Replace(AFKDesc, "#desc", desk), "#d", AFKDays), "#h", AFKHours), "#m", AFKMinutes) & vbLf (For some reason, it was indented. I lost track of all the If blocks in that timer event, and gave in and indented it.)
- Else blocks seemed to have been unknown to me at the time: (Complete with stupid variable names! :))
If cArray(temp) = Chr(34) & ".flip" Then
If Flipzored = False And ScreenFlipd = True Then
Flipzored = True
ScreenFlipd = False
wskClient.SendData TPTag & "Screen flipped." & vbLf
wskClient.SendData "]|0" & vbLf
List1.AddItem "Screen flipped."
End If
If Flipzored = False And ScreenFlipd = False Then
Flipzored = True
ScreenFlipd = True
wskClient.SendData TPTag & "Screen flipped." & vbLf
wskClient.SendData "]|1" & vbLf
List1.AddItem "Screen flipped."
End If
Flipzored = False
cArray(temp) = ""
End If - Weird message parsing:
If AFKSet = True Then
If InStr(1, sArray(temp), "<font color='whisper'>[ <name shortname='") > 0 Then
afkwhifind = InStr(1, sArray(temp), "shortname='") + 11
afkwhifind2 = InStr(afkwhifind, sArray(temp), "'")
afkwhishortname = Mid(sArray(temp), afkwhifind, afkwhifind2 - afkwhifind)
afkwhifind = InStr(afkwhifind2, sArray(temp), ">") + 1
afkwhifind2 = InStr(afkwhifind, sArray(temp), "</name>")
afkwhiname = Mid(sArray(temp), afkwhifind, afkwhifind2 - afkwhifind)
wskServer.SendData "wh " & afkwhishortname & " " & Replace(Replace(Replace(Replace(Replace(AFKWhisper, "#player", afkwhiname), "#d", AFKDays), "#h", AFKHours), "#m", AFKMinutes), "#s", AFKSeconds) & vbLf
End If
End If
While I gave up on this mass of code, I decided to rewrite it.
A few WTFs from the new version: (I had to work hard to find them)
- To store Boolean values easier in settings files and Boolean variables without using a pile of IIf functions, I created these:
Public Function GetBool(FakeBool As String) As Boolean
If FakeBool = " " Then GetBool = True Else GetBool = False
End Function
Public Function SetBool(RealBool As Boolean) As String
If RealBool = True Then SetBool = " " Else SetBool = " "
End Function
Public Function GetNumBool(FakeBool As Integer) As Boolean
If FakeBool = 1 Then GetNumBool = True Else GetNumBool = False
End Function
Public Function SetNumBool(RealBool As Boolean) As Integer
If RealBool = True Then SetNumBool = 1 Else SetNumBool = 0
End Function
The GetBool function turns a value destined for the settings file (Alt+0160 = true, space = false) into a Boolean variable. SetBool does the reverse.
The GetNumBool function turns a value from a CheckBox's value property into a Boolean variable. SetNumBool does the reverse. - A rather inefficient INI parsing engine.
Open App.Path & "\Goom2.dat" For Input As #TempInt
'Here comes the INI parsing engine.. Yes, it's not good. :X
Do Until EOF(TempInt)
'Read in data lines...
Input #TempInt, TempStr
FileData = FileData & TempStr & vbLf
Loop
FileArr = Split(FileData, vbLf)
For TempInt2 = LBound(FileArr) To UBound(FileArr)
'Now parse it!
If Left(FileArr(TempInt2), 1) = "[" And Right(FileArr(TempInt2), 1) = "]" Then
'It's a section..
SectionName = Mid(FileArr(TempInt2), 2, Len(FileArr(TempInt2)) - 2)
ElseIf FileArr(TempInt2) = "" Then
DoNothing "Obvious reason :)"
ElseIf InStr(1, FileArr(TempInt2), "=") = 0 Then
DoNothing "MALFORMED INI FILES FTL"
Else
'It was fine..
TagStart = Mid(FileArr(TempInt2), 1, InStr(1, FileArr(TempInt2), "=") - 1)
TagData = Mid(FileArr(TempInt2), InStr(1, FileArr(TempInt2), "=") + 1)
'Now let's parse what we got..
(insert huge Select Case block here to load all the values)
End If
End Select
End If
Next TempInt2
Close #TempInt
I haven't anonymised these, since I don't need to. They're all my own code, so why? ;)
I'll probably post more soon.. - Multiple characters were done by having a tabbed control and all character-specific stuff in a UserControl instance. Not very user-friendly..
-
RE: I'm new here..
I actually don't work anywhere.. my programming is simply a hobby :)
-
I'm new here..
Sorry if this is the wrong place for a welcome thread.. I couldn't find anywhere else.
I'm new here. I found this site a few days ago, and I decided to join because I wanted to post something in the Side Bar WTF forum.
As for an introduction.. I'm a 12 year old programmer (VB6..) who makes too many WTFs, and enjoys reading others, so I thought it would be fun here..
While I could not print this post out and take a picture of the printout on a wooden table, I hope my description of this can replace it ;)edit: Is it possible to find a less user-friendly piece of board software? I would say "The real WTF is the board software", but that is rather overused already.. Oh wait, did I say it? :O