• Content count

  • Joined

  • Last visited

Community Reputation

116 Neutral

About Phytoplankton

  • Rank
  1. I hope things work out for you. If I can offer some advice for your trial though -- Don't let them upset you. Don't use words like "murder" and "sociopath", even if they're justified. They're going to do everything that they can to make you appear to be unstable, and this is your opportunity to prove them wrong by keeping your cool. Be disappointed instead of angry.
  2. Call me old fashioned, but I kind of think that all candidates should have to don mech-armour suits and fight it out in an epic battle on the moon. The last candidate standing wins.
  3. [web] web animations???

    When the user hovers over the image, have the image's src be replaced with the src of an animated GIF. Something like this. (It's untested, but should be close). <img class="blah" src="regular.gif" alt="asdfasdf" /> img.blah:hover { src = "animate.gif" } Using Flash here would be overkill (and having too many flash objects can be rough on the client's CPU). And my opinion on QuickTime would be to use it never ever ever ever ever ever. While it's possible to view QuickTime on a PC, it never works well. Regardless of where you stand on the Mac-PC debate, the majority of users have PCs.
  4. Software Tester Internship

    If the starting salary is minimum wage, then they're probably using the 1000 monkeys at 1000 typewriters strategy to flesh out their bugs. There's nothing wrong with asking for more money -- you just need to be aware that you might not get it. Try to hold off on talking about money if at all possible until the end of the interview process. That way, you've hopefully already sold them on you as an employee at this point. Just decide whether or not you're willing to accept minimum wage before negotiations start. If it were me and I was just starting out, I'd probably take the low wage and deal. As for impressing the interviewer, I expect they're going to be most interested in: * How well you deal with conflict * How good you are at working with others * How reliable and hardworking you are * Your personality (fun to be around, but not a goof off. not so nervous that you're hard to work with, not so casual that you don't show proper respect). Education is great to show too, but at an entry level, if you already have an interview, I think it's the other qualities they'll be more interested in.
  5. Play any MUDs?

    There's a playable version up (though still in Dev) if you'd like to check it out. I'd appreciate any suggestions. Untitled MUDdish, Doorish game You can play without registering. There's a lot that's not yet implemented, but you can get a feel for where it's going.
  6. Should we still bother with personal websites?

    I'd say the best reason to keep a personal site is that it gives you an excuse to learn more about web development and design.
  7. Help! My document is lost!

    Both the previous solutions should work. Another option is to download the Viewer for MSOffice products. Office Online File Converters and Viewers Viewers are free and don't expire. However, you can only read, not edit.
  8. Help! My document is lost!

    Convert your Works document to Office.
  9. I want to move to a warmer state: CA, TX, or FL?

    Quote:Original post by andreib I've always wanted to live in a worm environment I've got good news for you. You can do just that for only $19.99 Wild Science Worm Farm at Amazon Just set up the kit and crawl inside. You'll be sure to enjoy your new worm environment.
  10. I think this bridal website is trying to show you what the bride will be like after the wedding vows are done and said.
  11. Did Daggerfall scare you as a child?

    I never played Daggerfall, but the game that scared me as a child was Hunt the Wumpus. No, seriously, it did. You'd be sitting there playing through the maze, and then out of nowhere, that goddam Wumpus would eat you. I'd jump out of my chair. I was 4. Cut me some slack.
  12. [.net] Get Static Method's Type

    Quote:Original post by capn_midnight Quote:Original post by Phytoplankton I have a static method where I need to determine what class it's in. *** Source Snippet Removed *** Since it's static, I can't simply do a this.GetType() as "this" doesn't exist. MethodInfo.GetCurrentMethod().DeclaringType ALMOST does the trick. However, it gets the type in which the method is declared. Not the method which calls it. are you wanting to find the class that declares the static method or the class that called the static method? If it's the type of the calling method that you want, you need to access the stack trace var type = new System.Diagnostics.StackTrace(1, false) .GetFrame(0) .GetMethod() .DeclaringType; new StackTrace(1, false) -> 1 is how many frames to skip, the first one is always the current method, so you obviously want to skip it. False is to skip pulling back file, line, and column info for debugging. GetFrame(0) -> yeah, just get the first frame in the stack trace GetMethod() -> MethodBase object, and from here you should be able to tell what is going on It's interesting that you can do that. Not quite what I was trying to do, but I still learned something. I'm thinking what I was trying to do might not be possible. It's hard to explain, but I'll try. I have a class AdventureCreatureInstance (which can be a monster, NPC, or player). It has a static method UpdateCurrentAdventureRoomGuid() That method calls DataObject.UpdateField() which needs to know which Type it's updating the field for as different Types use different tables in the database. I have another class: public class AdventurePlayer : AdventureCreatureInstance Since it inherits from AdventureCreatureInstance, it also gets the method UpdateCurrentAdventureRoomGuid(). So, I might call AdventureCreatureInstance.UpdateCurrentAdventureRoomGuid() or I might call AdventurePlayer.UpdateCurrentAdventureRoomGuid(). I wanted UpdateCurrentAdventureRoomGuid() to be able to determine which it was, but it's sounding like that's just not possible In the end, re-wrote the function as: public static void UpdateCurrentAdventureRoomGuid<T>(string ConnString, Guid AdventureCreatureInstance_Guid, Guid CurrentRoom_Guid) { DataObject.UpdateField<T>(ConnString, AdventureCreatureInstance_Guid, "CurrentRoom_Guid", CurrentRoom_Guid); } Anyway, thanks for the help. I learned something.
  13. [web] Game in HTML

    Quote:Original post by oler1s Sounds like you are talking about a Choose Your Own Adventure story in electronic form. I made one of those :)
  14. I've done this before with ASP.NET/AJAX, but you should be able to do the same thing with PHP. In the client-side javascript, create a function which queries the server for the current chat log. function RequestChatLog() { var url = 'Default.aspx?Command=REQUEST_CHAT'; var oAjax = GetAjaxObject(); oAjax.onreadystatechange = function() { if (oAjax.readyState == 4) { ProcessChatLogResponse(oAjax); } }"POST", url, true); oAjax.send(null); } Call that function after the page loads. Now, you'll need to create a function that handles the response from the server. //this assumes that you have a <div> with the id "dvChatLog". //after the chat log is displayed, it will request another update //in 0.25 seconds function ProcessChatLog(oAjax) { var dvChatLog = document.getElementById('dvChatLog'); dvChatLog.innerHTML = oAjax.innerText; setTimeout('RequestChatLog()', 250); } On the server, if the user contains "Command=REQUEST_CHAT", tell it to clear the response and only print out the Chat log. --- As for submitting the chat message that the user types to the server... Create a button in the HTML which calls the function SendChatMessage(); //This assumes that an <input> with the id "tbMessage" exists function SendChatMessage() { var tbMessage = document.getElementById('tbMessage'); var chatMessage = tbMessage.value; tbMessage.value = ''; var url = 'Default.aspx?Command=SEND_CHAT_MESSAGE&Message=' + escape(chatMessage); var oAjax = GetAjaxObject();"POST", url, true); oAjax.send(null); } Now, this code is pretty simplified. It doesn't take the user name into account. Also, you might want to change ProcessChatLog() to parse XML sent from the server rather than just displaying text. However, if you're new to Ajax, it's much easier to just display some text. I didn't list any server-side code as I'm not much good with PHP. (Nothing wrong with PHP, I just know ASP.NET better.) However, you should be maintaining the chat log on the server side either in the Application object or within an XML, database, or textfile. I haven't tested the code above, but it should get you started at least. AJAX can be a bit confusing at first, but once you get the hang of it, you can do some cool things with it.