Jump to content

BrainDrain

Member
  • Posts

    53
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    New Zealand

Everything posted by BrainDrain

  1. I've spent the last week trying to get an application to work in Java. The ultimate goal of what I'm working on now is a fountain, which produces numerous water drops which rise off the top of the canvas. What I would like the erroneous code do is make each water drop in the fountain rise by two pixels. If its y position gets equal or below 0 then the timer should stop. The timer works, it decreases in the interval I have specified, but trying to redraw the water droplet fails. I am beginning to think that I need to use the repaint method of what I have called the "Display" class to repaint all items to make the canvas update. The only issue with this is that is that the water drop objects cannot call the class method repaint (in Display). The timers are a part of each water drop so I've presumed they should be in the water drop object. If someone could look at the attached Java files and explain what part of the implementation is flawed it would be a great help. Not_Repainting.zip
  2. It appears the moderator did not read the thread he blocked, and is unavailable to take the matter seriously, so I have appealed to the wider MSFN administration for clarification on the issue.
  3. http://www.msfn.org/board/Windows-95-Launc...it-t115099.html - A moderator has closed this thread under section 2c of the MSFN rules, which states The thread, however is not asking for academic help. The post is original research of which anyone who heard about the Windows 95 launch at the time could answer, with no academic knowledge. The section states that the rule's scope covers anyone who asks for support writing an academic document or assignment, it does not cover original research, properly citing the author of any quotes used. The following reasons are why I believe the locking was an incorrect decision: The thread is a "share your memories" type question, with no academic information being asked for or implied The section clearly infers that it covers cheating in academic material, however this thread covers original research, with cited sources. The explanation of the rule is that it protects the academic careers of posters, original research does not in any way threaten the academic career of the thread poster. If the thread is in violation, I would appreciate a further explanation as to how my post is in violation of section 2c. of the MSFN rules so that I do not repeat this.
  4. I'm doing a University paper on the Windows 95 launch, If anyone here remembers the launch I'd love to hear your experiences, or if you played with Chicago (before 24/8/95) it would be cool to hear about that. There's a blimmin' lot of articles about it, so I'm expecting it would've been quite memorial to many people in the IT field.
  5. I'm trying to diagnose a problem with my computer networks, I use a WiFi Router to connect to a modem, there's a PC plugged into a wired port on the router which goes on the internet fine; However on startup, often my laptop connects via WiFi with Limited Connectivity and cannot go on the internet. When I run "Repair Network Connection" it reports that it "Cannot Repair Network". Other times the laptop starts fine, WiFi works and I can browse the internet. Resetting the Router and disabling+enabling the laptop WiFi does not fix this. Does anyone have any ideas as to what could be wrong?
  6. My laptop's hinges have broken, and the laptops lid is nearly falling off, is there any way I could get it fixed? This is what it looks like
  7. Link to picture I've taken the cover off, its got a model number JVC brand Model: JDE2825P1 0-1
  8. I dunno, laptop its from has a b&w screen, less than 1mb RAM, no mouse... I cant get a model though
  9. I'm looking at a retro laptop for a friend, I've just opened the case, and this harddrive is not a normal 2.5" ide... its like twice the height, and has a longer IO port with more pins... In the photo its still got the laptops hdd holder on though, its basically a normal 2.5" drive but twice as high, and with a longer port, does anyone know what it is?
  10. Does anyone know a simple LAN messaging system that auto-focuses when another person says something, includes a "Send message" feature within the recieved message box, and doesnt need signed in / autosigns in? Something like Windows Messenger but without a contact list, just "Send message to LAN" or such and where hitting [X] hides the application, but it can still recieve messages. I've drawn a mspaint of a "dream application" to do this
  11. I've recently started on bebo, there doesn't seem to be many people on it, does anyone here actually use it, and how do I add friends? EDIT: Corrected wording
  12. Eech, I should have done a bit more trialing, replacing '&' with 'and' works (well enough)... it seems the character is handled as & until its painted on the form...
  13. ID3 version 2 or 3 is used in the files, I'm still actually figuiring out how to get proper ID3 v2/3 data.
  14. Would you be able to post what Registry value you changed, or change it back to what it was previously (by looking at another install)?
  15. A process included in my application uses Results in a string, which sometimes needs to include the '&' symbol. I know replacing '_ ' with '&&' would get it, however is there a way to handle the string where it doesn't amperand the character? This is really hard to explain... basically is there a method to safely detect '&' characters in a string and replace them with '&&', or prevent them from becoming amperanded at all? An example of an unsuccessfull call would be: Save a text file containing the contents '& ' as C:\test.txt In Delphi place a memo and button on the form, Memo1 and Button1 respectively Button1.click: begin Memo1.loadfromfile('C:\test.txt'); showmessage(Memo1.lines[0]); end Where it would show '_' in the showmessage.
  16. Thank goodness he got banned . I got a reply via PM from someone here that helped a lot. EDIT: The ID3 version 1 tags are up against each other... e.g. [artistdata...................songdata...................] Using his method, setting the number of chars to recieve to 35 for the artist name would give [artistdata.................songd] His method is one of the first I tried.
  17. This code: type TID3Tag = record ID: string[3]; Titel: string[30]; Artist: string[30]; end; var Form1: TForm1; implementation {$R *.dfm} function readID3Tag(FileName: string): TID3Tag; var FS: TFileStream; Buffer: array [1..128] of Char; begin FS := TFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite); try FS.Seek(-128, soFromEnd); FS.Read(Buffer, 128); with Result do begin ID := Copy(Buffer, 1, 3); Titel := Copy(Buffer, 4, 30); Artist := Copy(Buffer, 34, 30); end; finally FS.Free; end; end; procedure TfrmMain.Button1Click(Sender: TObject); begin if OpenDialog1.Execute then begin with readID3Tag(OpenDialog1.FileName) do begin LlbID.Caption := 'ID: ' + ID; LlbTitel.Caption := 'Titel: ' + Titel; LlbArtist.Caption := 'Artist: ' + Artist; end; end; end; From here extracts the song and artist tags correctly, however if either is over 30 characters the rest of the artist or song tag is chopped off... An example I'm looking at now is "Glamorous Indie Rock & Roll [2004]" as a ID3 song tag. It comes out as "Glamorous Indie Rock _Roll [2". Does anyone know how I could make this work correctly?
  18. Thanks, I got an idea from your code to use the About Delphi "alphabet puzzle", and hacked it to support renaming the lowercase version of ' x' to the uppercase version, it seems to handle large amounts of usage efficiently EDIT: I 'hacked it to support renaming...', not 'I hack it to...'
  19. In my application I need to capitalize the first character after each space in a string, is there anything faster than this: var mystring:string; begin mystring:=stringreplace(mystring, ' a', ' A', [rfReplaceAll]); mystring:=stringreplace(mystring, ' b', ' B', [rfReplaceAll]); mystring:=stringreplace(mystring, ' c', ' C', [rfReplaceAll]); mystring:=stringreplace(mystring, ' d', ' D', [rfReplaceAll]); mystring:=stringreplace(mystring, ' e', ' E', [rfReplaceAll]); mystring:=stringreplace(mystring, ' f', ' F', [rfReplaceAll]); mystring:=stringreplace(mystring, ' g', ' G', [rfReplaceAll]); mystring:=stringreplace(mystring, ' h', ' H', [rfReplaceAll]); mystring:=stringreplace(mystring, ' i', ' I', [rfReplaceAll]); mystring:=stringreplace(mystring, ' j', ' J', [rfReplaceAll]); Down to z and Z, it works, but it seems like a dirty, or roundabout method, is there any easier way of doing this?
  20. Thanks for that, I have admin rights and am using TRegistry, I'll try that code and get back EDIT: I made a mistake, I'm trying to detect if a Value in a key exists, reg.RootKey:=HKEY_LOCAL_MACHINE; IF Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',false) THEN IF Reg.ValueExists('Test') THEN Checkbox1.checked := true Would do exactly what I'm after if it worked, Sorry for getting that wrong I've found that reg.RootKey:=HKEY_LOCAL_MACHINE; IF Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',false) THEN Application.Terminate; doesn't do anything either, Its starting to sound like a permissions problem, but I can write and delete string values fine
  21. I've tried using the code given above, but that didn't affect Checkbox1.visible at all (It stayed ticked or unticked unless I actually clicked it) , I tried setting reg.Rootkey, as in this code: TRY reg.RootKey:=HKEY_LOCAL_MACHINE; IF Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',false) THEN IF Reg.ValueExists('Test') THEN Checkbox1.checked := true ELSE CheckBox1.Checked := false; EXCEPT END; end; But that causes an Access Violation when ran
  22. In my application a checkbox is ticked to show if the Run On Startup key for it exists, when the app starts this code is used: Reg.RootKey := HKey_Local_Machine; Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',false); IF Reg.ValueExists('Test') then Checkbox1.checked:=true; else CheckBox1.Checked:=false; However it doesn't do anything, I am looking at the string value "Test" in the registry at the above key. If anyone could work out why it's not doing anything it would be appreciated.
  23. Aah, I racked my brain over that all of yesterday afternoon... Thanks!
  24. I personally like the Flip slideshow feature in Windows Vista. I also like the whole "Preview images in folder on folder thumbnail" idea, it is awesome for my photo album. As for Flip3d in Vista, try out TopDesk (Google it), which does something similar to replicating it on Windows XP. The trial is great. I personally don't download anything that's not with Windows unless there is some benefit... WinAmp and Firefox for example. This is my Alt+Tab now:
×
×
  • Create New...