• Content count

  • Joined

  • Last visited

Community Reputation

191 Neutral

About cavendert

  • Rank
  1. Registry Entry Locator

    Going to look into both of those now. Thank you so much!! For C# type questions, is the Microsoft page the best place to go? or MSDN?
  2. I am trying to write a Console Application in C#, that basically looks in a specific registry location, and returns "True", or "False", depending on whether or not it finds a key in there. I have no idea how to write anything that will do registry searches.    Basically, I'm looking for some advice on code to work with. Most importantly, I'm looking for reading material, so that I can try and understand this better. Usually, when I search for this kind of thing, I get results for people trying to do similar things, but not documentation (like W3 schools has for Javascript).     Any, and all advice that anyone an offer, would be greatly appreciated. 
  3. HTML Spacing

    Ok, cool. I will be updating that shortly. Please forgive this "stupid question", but in that case, where I create a <div> that holds the articles, would I want to use a "float left", or is there a better option for spacing.........spacing is currently my Kryptonite
  4. HTML Spacing

    <!DOCTYPE html> <html>   <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>Untitled 1</title> <style> .map{ height:150px; width:150px; border-radius:50%; background-image:url('../Images/Map2.jpg'); background-size:cover; float:right; margin:0px 0px 10px 0px; } .clock{ height:150px; width:150px; border-radius:50%; background-image:url('../Images/clock.JPG'); background-size:cover; float:inherit; margin:0px 0px 10px 0px; } .left{ float:left; text-align:center; } .right{ float:right; margin-top:5px;     } .bottom{ padding: 0px 0px 0px 600px; float: none; } #left_bar { height:60px; width:60px; } article{ position:relative; } body{ background-color:beige; } header{ text-align:center; font-size:50px; background-color:black; color:red; } footer{ text-align:center; } article{ text-align:center;     } table{ padding:10px 0px 10px 0px; } td{ height:60px; width:60px; border:2px black solid;   } </style> </head>   <body> <header>MiniMap</header> <div class="map"></div> <div class="clock"></div> <div class="left"> <table> <tr> <td><a href=""><img src="../Images/Right Bar/Home.png" id="left_bar"/></a></td> </tr> </table> <table> <tr> <td><a href=""><img src="../Images/Right Bar/Articles.png" id="left_bar"/></a></td> </tr> </table> <table> <tr> <td><a href=""><img src="../Images/Right Bar/Video.png" id="left_bar"/></a></td> </tr> </table> <table> <tr> <td><a href=""><img src="../Images/Right Bar/Podcast.png" id="left_bar"/></a></td> </tr> </table> <table> <tr> <td><a href=""><img src="../Images/Right Bar/Contact.png" id="left_bar"/></a></td> </tr> </table> </div> <div class="right"> <a class="twitter-timeline" href="" data-widget-id="668113160134647808">Tweets by @SamerGhani</a>   </div>   <div id="article1"><article> <h1 id="h1"><a href="http://<a href=""> Ark:<em>Survival Evolved</em> Mod Lets you play as Dinosaurs!</a></h1> <p>When I was young, I always hoped against hope that I would grow up to be a dinosaur. This is probably as close as I’m going to get. FinntasticGames “Play as a dino” mod is exactly what it sounds like: it lets you be a dinosaur in Ark, a game about punching trees and pooping uncontrollably. Also dinosaurs. Given that people have been requesting this type of thing for ages, it’s almost surprising that it’s not an official game feature. Oh well, mods to the rescue. </p> </article> </div> <article> <h1><a href="http://<a href=""> <em>Bloodborne</em> used to wreck me. Now I"m wrecking <em>Bloodborne</em></a></h1> <p>Once more unto the breach, dear hunters. Bloodborne’s DLC expansion hits next week, and while I can’t talk about The Old Hunters yet, its impending arrival prompted a return to From Software’s bloody action game. Specifically, I dove into New Game Plus mode. You know what? This game’s still frickin’ amazing. </p> </article> <article> <h1><a href="http://<a href=""> The Problem With The Newest Version of Superman</a></h1> <p>2015 has been a hell of a year for the Man of Steel, bringing the biggest changes that the character’s seen in decades. And, while I mostly like how the current Superman reads after getting his powers reduced and secret identity outed, his monthly adventures feel like they’re losing steam to me.</p> </article> <article> <h1><a href="http://<a href=""> A Price of Games Journalism</a></h1> <p>For the past two years, Kotaku has been blacklisted by Bethesda, the publisher of the Fallout and Elder Scrolls series. For the past year, we have also been, to a lesser degree, ostracized by Ubisoft, publisher of Assassin’s Creed, Far Cry and more. In those periods of time, the PR and marketing wings of those two gaming giants have chosen to act as if Kotaku doesn’t exist. They’ve cut off our access to their games and creators, omitted us from their widespread mailings of early review copies and, most galling, ignored all of our requests for comment on any news stories.</p> </article> <footer> <div class="bottom"> <table> <tr> <td>Home</td> <td>Videos</td> <td>Articles</td> <td>Podcasts</td> <td>Contacts</td> </tr> </table> </div> </footer> </body>   </html>
  5. HTML Spacing

    <!DOCTYPE html>   Ok, I'm starting to pull my hair out with this one, and really could use some guidance. I am trying get the Twitter feed on the right hand side (which I did), and I managed to get the articles in the middle to not overlap it. The top 2 articles have shifted over to make room for the Feed, but now the remaining articles won't shift, so everything is no longer in a nice "column".    Is there a trick to this spacing issue?    Also, please let me know if the code is not showing in the post. 
  6. Processing Language

    Awesome, that is the description I was looking for! I was already working a bit with C# (Not a ton), and just happened to come across processing. Like I said, wasn't sure what it's "real world" applications were, especially since I would like to make a career out of this one day.    Thank you for the advice!!!
  7. Processing Language

    Hey everyone. I'm pretty new to programming, and currently working alot with HTML, CSS, and Javascripting. But, a friend of mine had shown me a language called "Processing", and wanted to know the general opinion about it, as I really see that popping up in the forums. 
  8. Apparently, no so simple Math.....

    Ah. That's what I was assuming, but I didn't want to assume. Thank you all for the advice!!!!
  9. Apparently, no so simple Math.....

    In pokemon, all offensive attacks do at least one damage even if they should be 100% negated(except for move types that are uneffective against the opponent types(i.e ghost/normal iirc)) so, let me just fix chubu's real quick: health -= max(attack - defense, 1) All very nice! I do have one question. In this line of code right at the bottom, what is the 1 for? I get that we are trying to always do atleast 1 damage, but does that effect the code if normal damage is done? 
  10. Apparently, no so simple Math.....

    I still have the same issue, where Mega Bidoof throws off the numbers. Though, as I look at it, my health should always hit 0 in the first move anyway, so I'm not sure I care that much. Thanks again for the idea!
  11. Apparently, no so simple Math.....

    damn........that's genius.........Then make two? One for my damage, and one for their damage?
  12. Apparently, no so simple Math.....

    If it helps, I just found that my compiler got, this might actually work. So, I have a follow up question!! This code should work about 60% of the time, every time.    Until "Mega Bidoof" is chosen. As a joke, his stats are so high, that he is ruining the equation. Other than writing an if/else statement for bidoof, and mega bidoof, with their own while statements, is there a better way to write that?
  13. Pokemon battling again for practice. Tried to make it a little harder this time with attack and defense. Health - (attack - defense).   I get the feeling my order of operations is getting messed up somehow, because no matter, how I re-code it, somebody is always gaining life.    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 {     class Pokemon     {         public string Name;         public int Health;         public int Attack;         public int Defense;     }     class Program     {         static List<Pokemon> shaunPokemon = new List<Pokemon>() {             new Pokemon {                 Name = "Mega Bidoof",                 Health = 700,                 Attack = 600,                 Defense = 500             },             new Pokemon {                 Name = "Bidoof",                 Health = 350,                 Attack = 150,                 Defense = 50,             },             new Pokemon {                 Name = "Bidoof",                  Health = 350,                  Attack = 150,                 Defense = 50,             }         };         static List<Pokemon> myPokemon = new List<Pokemon>() {             new Pokemon {                 Name = "Scizor",                 Health = 400,                  Attack = 180,                 Defense = 100             },             new Pokemon {                 Name = "Houndoom",                 Health = 380,                 Attack = 220,                 Defense = 50             },             new Pokemon {                 Name = "Tyranitar",                 Health = 350,                 Attack = 100,                 Defense = 80             }         };         static void Main(string[] args)         {             //Random Generator             var rnd = new Random();             var randomChoice = shaunPokemon[rnd.Next(shaunPokemon.Count)];             Console.WriteLine("Writer Shaun challenges you to a battle!");             Console.WriteLine("I choose you, " + randomChoice.Name + "! \n");             Console.WriteLine("Please choose your Pokemon.");             for (int i = 0; i < myPokemon.Count; i++)             {                 Console.WriteLine("Press " + (i + 1) + " for " + myPokemon[i].Name + ".");             }             var myInput = Console.ReadLine();             int index = int.Parse(myInput) - 1;             Console.WriteLine();             Pokemon selected = myPokemon[index];             Console.WriteLine("I choose you, " + selected.Name + "! \n");             Console.WriteLine("Press Enter to attack.");             string acceptInput = Console.ReadLine();             while (selected.Health > 0 && randomChoice.Health > 0)             {                 selected.Health -= (randomChoice.Attack - selected.Defense);                 randomChoice.Health -= (selected.Attack - randomChoice.Defense);                 Console.WriteLine(selected.Name + "'s health = " + selected.Health);                 Console.WriteLine(randomChoice.Name + "'s health = " + randomChoice.Health);                 Console.WriteLine();                 Console.WriteLine("Press Enter to Attack again.");                 Console.ReadLine();             };         }     } } As you can see, I even raised the attacks, to make sure that (Attack-Defense) should always be positive.    Am I missing something that simple?    
  14. Advice on Simplifying

    Awesome! Thank you again for the advice and the help!
  15. Advice on Simplifying

    Alright, I needed to step away from this for a bit, because I wasn't following.    Having said that, and going back and writing it again fresh with your advice, it all makes perfect since to me.    The index, and Pokemon selected was exactly what I was looking for. Thank you for the help! I'm writing this again fresh, so I can get it to memory.