Petit Computer Wiki:Chat/Logs/17 November 2013

 [11:55]  Click. [11:55]  dangit [11:55]  who here [11:55]  would love [11:55]  an rpg maker like system for ptc [11:56]  I'm trying to make the "Detect string or variable" program in C#, but it keeps throwing exceptions with Convert.ToInt32 and Convert.ToString [11:56]  My internet is acting up [11:56]  hmm... I think I would. Probably wouldn't use it myself [11:56]  You don't need "Convert.ToString", just use .ToString on the variable in question [11:57]  I don't know about the other one, it could be that you have poorly formed strings [11:57]  here's my code [11:57]  using System; [11:57]  [11:57]  class Program [11:57]  { [11:57] <IAmAPersson> public static void Main(String[] args) [11:57] <IAmAPersson> { [11:57] <IAmAPersson> Console.Write("Enter a string or a variable, and I will figure out which one it is!\n"); [11:57] <IAmAPersson> string inp = Console.ReadLine; [11:57] <IAmAPersson> if (Convert.ToString(Convert.ToDouble(inp)) == inp) [11:57] <IAmAPersson> { [11:57] <IAmAPersson> Console.Write("You entered a variable!\n"); [11:57] <IAmAPersson> } [11:57] <IAmAPersson> else [11:57] <IAmAPersson> { [11:57] <IAmAPersson> Console.Write("You entered a string!\n"); [11:57] <IAmAPersson> } [11:57] <IAmAPersson> Console.ReadKey; [11:57] <IAmAPersson> } [11:57] <IAmAPersson> } [11:57] <IAmAPersson> [11:57] <IAmAPersson> it works fine until you enter anything with letters [11:57] <Randomouscrap98> Oh, that's why [11:57] <Randomouscrap98> You need the "TryParse" method, not just straight up conversion [11:57] <IAmAPersson> I know why it's acting up [11:57] <IAmAPersson> oh [11:58] <Randomouscrap98> You only use Convert if you KNOW what the input will be [11:58] <Randomouscrap98> In your program, you don't, so you "Try" to parse it [11:58] <Randomouscrap98> http://msdn.microsoft.com/en-us/library/f02979c7(v=vs.110).aspx [11:58] <Randomouscrap98> If it can parse it as an integer (or double, if you want), then it's an integer. Otherwise it's a string [12:00] <SmokedSausage> Do i have enough of the communities approval Mr. Randomous? [12:00] <Randomouscrap98> I don't know, I need to talk to the other admins lol [12:00] <Randomouscrap98> Like Brian [12:00] <IAmAPersson> I'm fone with it [12:00] <IAmAPersson> fine* [12:01] <Randomouscrap98> I know he said yes, but I need him to confirm before we do that [12:01] <Randomouscrap98> In the meantime, do you want to do you test page cleanup? [12:02] <Lumage> *jokingly* I guess that's a no then. [12:02] <IAmAPersson> his internet is really poopy [12:02] <IAmAPersson> this is normal [12:02] <Lumage> I know. [12:03] <Lumage> *elevator music* [12:03] <IAmAPersson> if I'm getting 16 errors from 3 lines of code, am I doing something wring? [12:03] <Randomouscrap98> Absolutely lol [12:03] <Lumage> XD no, not at all. [12:04] <IAmAPersson> make that 16 errors from 1 line of code [12:05] <Lumage> Change == to = [12:06] <IAmAPersson> lol I'm fixing it [12:06] <Randomouscrap98> Hey person [12:06] <IAmAPersson> yes? [12:06] <Randomouscrap98> How many cores do you have? [12:06] <IAmAPersson> I think only 1 [12:06] <IAmAPersson> maybe 2 [12:06] <Randomouscrap98> ...1??? [12:07] <Randomouscrap98> How old is the computer? [12:07] <IAmAPersson> I'm not sure [12:07] <Randomouscrap98> Is it a laptop? [12:07] <IAmAPersson> no [12:07] <IAmAPersson> I don't know how many cores [12:07] <Randomouscrap98> Oh. Do you know what the processor is called? [12:07] <IAmAPersson> All I know is that my dad made it [12:07] <IAmAPersson> and that it is really fasty [12:07] <IAmAPersson> fast* [12:07] <Randomouscrap98> Do CTRL-ALT-DELETe and go to the performance tab [12:08] <Randomouscrap98> How many graphs are there on the first line? [12:08] <IAmAPersson> 3 [12:08] <IAmAPersson> 3 cores [12:08] <IAmAPersson> ok [12:08] <Randomouscrap98> Ok, that's good [12:08] <SmokedSausage> Ehrmagurd [12:08] <Randomouscrap98> As long as you don't have 1; this code I'm making wouldn't work very well [12:09] <IAmAPersson> am i using TryParse wrong? [12:09] <IAmAPersson> I* [12:09] <Randomouscrap98> Is it not working? Look at the example given on that page I sent [12:09] <SmokedSausage> Hi Kiby [12:09] <TriforceOfKirby> Hi [12:09] <Lumage> So... bored... [12:10] <GimmeMoreCoinz> o.0 [12:10] <GimmeMoreCoinz> this si so interesting. [12:10] <GimmeMoreCoinz> is* [12:10] <GimmeMoreCoinz> i'll have to be able to see the finished code later :D [12:10] <IAmAPersson> using System; [12:10] <IAmAPersson> [12:10] <IAmAPersson> class Program [12:10] <IAmAPersson> { [12:10] <IAmAPersson> public static void Main(String[] args) [12:10] <IAmAPersson> { [12:10] <IAmAPersson> Console.Write("Enter a string or a variable, and I will figure out which one it is!\n"); [12:10] <IAmAPersson> string inp = Console.ReadLine; [12:10] <IAmAPersson> public static bool TryParse(string inp, out int result) { } [12:10] <IAmAPersson> } [12:10] <IAmAPersson> } [12:10] <GimmeMoreCoinz> I learn by others code to [12:10] <SmokedSausage> Randomous do I have enough of the wiki's approval? [12:10] <Lumage> &gt;.&lt; [12:10] <IAmAPersson> I'm pretty sure that's wrong [12:10] <Randomouscrap98> I've already said, I need to talk to Brian [12:11] <Randomouscrap98> And would you like to try your cleanup page? [12:11] <SmokedSausage> I would [12:11] <Randomouscrap98> OK [12:12] <SmokedSausage> Please don't take me asking as me trying to push you, I am just curious is all. I'm really sorry if that's what it feels like [12:12] <Randomouscrap98> No, it's no problem! [12:13] <SmokedSausage> Okay [12:14] <Randomouscrap98> OK, before we do this, I'd like to talk to the Admins that are on right now [12:14] <Randomouscrap98> We need to stop putting the downloads into a gallery [12:14] <TriforceOfKirby> Ok [12:14] <Randomouscrap98> Because this happens: [12:14] <IAmAPersson> Ok [12:14] <Randomouscrap98> [12:14] <Randomouscrap98> Go to page 2 [12:14] <Randomouscrap98> Beat the clock and Bug fire both have a picture for their game [12:15] <Randomouscrap98> But instead, the gallery overrides this and shows the QR as the thumbnail [12:15] <Randomouscrap98> This isn't good [12:15] <IAmAPersson> That's what's been going on with my page [12:15] <IAmAPersson> oohhhhh........... [12:15] <IAmAPersson> I'll get mine tomorrow [12:15] <Randomouscrap98> This is why I was against it in the first place [12:15] <Randomouscrap98> But everyone seemed to want it lol [12:15] <Randomouscrap98> I think the thumbnails are important though [12:15] <TriforceOfKirby> So it that the wikis fault? [12:16] <TriforceOfKirby> is* [12:16] <Randomouscrap98> Well, yes. But it makes sense, doesn't it? [12:16] <TriforceOfKirby> Yes [12:16] <Randomouscrap98> It would rather use a Gallery image than some image floating around [12:16] <Randomouscrap98> It sounds better [12:16] <IAmAPersson> The problem with that is [12:16] <IAmAPersson> a gallery slider can only hold 4 images [12:16] <SmokedSausage> So what page do you want me to clean? [12:16] <Randomouscrap98> Errr I don't know yet [12:16] <IAmAPersson> and it can be pesky with sizing [12:17] <Randomouscrap98> Don't use a slider either [12:17] <Randomouscrap98> Why can't the pictures just sit on the page? [12:17] <SmokedSausage> That bugs me too [12:17] <TriforceOfKirby> I don't see why not [12:17] <Randomouscrap98> I do it in Village lol: Village [12:18] <Randomouscrap98> Here, read this: http://community.wikia.com/wiki/User_blog:Kirkburn/How_images_are_picked_to_represent_articles [12:19] <TriforceOfKirby> I wish you could choose which image shows up [12:19] <IAmAPersson> YES [12:19] <IAmAPersson> I AGREE [12:19] <IAmAPersson> 100% [12:19] <Randomouscrap98> That would be nice [12:19] <Lumage> I think I'm going to go to the library now. [12:19] <Lumage> Or soon. [12:19] <TriforceOfKirby> Ok [12:19] <Randomouscrap98> We should contact Wikia like it says on that page and tell them that their system is not working for us [12:20] <TriforceOfKirby> Ok, want me to? [12:20] <TriforceOfKirby> Or do you want to? [12:21] <Randomouscrap98> I'm looking into it [12:21] <Lumage> Clck. [12:21] <TriforceOfKirby> Ok [12:27] <IAmAPersson> it's not working [12:27] <IAmAPersson> :( [12:27] <IAmAPersson> using System; [12:27] <IAmAPersson> [12:27] <IAmAPersson> public class StringParsing [12:27] <IAmAPersson> { [12:27] <IAmAPersson> public static void Main [12:27] <IAmAPersson> { [12:27] <IAmAPersson> Console.WriteLine("Enter a string or a variable, and I will figure out which one it is!"); [12:27] <IAmAPersson> string inp = Console.ReadLine; [12:27] <IAmAPersson> } [12:27] <IAmAPersson> [12:27] <IAmAPersson> private static void TryToParse(string inp) [12:27] <IAmAPersson> { [12:27] <IAmAPersson> int number; [12:27] <IAmAPersson> bool result = Int32.TryParse(inp, out number); [12:27] <IAmAPersson> if (result) [12:27] <IAmAPersson> { [12:27] <IAmAPersson> Console.WriteLine("You entered a variable!"); [12:27] <IAmAPersson> } [12:27] <IAmAPersson> else [12:27] <IAmAPersson> { [12:27] <IAmAPersson> Console.WriteLine("You entered a string"); [12:27] <IAmAPersson> } [12:27] <IAmAPersson> [12:27] <IAmAPersson> Console.ReadKey; [12:27] <IAmAPersson> } [12:27] <IAmAPersson> } [12:28] <IAmAPersson> I'll do it later [12:28] <TriforceOfKirby> Hmm. what are you doing? [12:28] <IAmAPersson> testing for a string or variable [12:29] <IAmAPersson> from user input [12:29] <TriforceOfKirby> Oh ok that makes sense [12:29] <TriforceOfKirby> C# right? [12:29] <IAmAPersson> like if he inputted "43" then it would say he entered a variable [12:29] <IAmAPersson> yes [12:29] <IAmAPersson> and if he did "fdjbalfa" it would say string [12:29] <TriforceOfKirby> ok [12:29] <TriforceOfKirby> and its not working? [12:30] <IAmAPersson> but the console wont stay open after the public static void Main{} [12:30] <IAmAPersson> after I input my number, it closes unexpectedly [12:30] <IAmAPersson> when it's supposed to stay open [12:30] <TriforceOfKirby> so you have anyhting that makes it stay ope? [12:30] <TriforceOfKirby> so* [12:30] <TriforceOfKirby> do* [12:30] <TriforceOfKirby> open* [12:30] <IAmAPersson> lol [12:31] <TriforceOfKirby> typing fail [12:31] <IAmAPersson> should I make [12:31] <IAmAPersson> private static void TryToParse(string inp) [12:31] <IAmAPersson> into [12:31] <IAmAPersson> public static void TryToParse(string inp) [12:31] <GimmeMoreCoinz> you have to have a loop... [12:31] <IAmAPersson> ? [12:31] <GimmeMoreCoinz> do a while loop [12:31] <IAmAPersson> oh [12:31] <IAmAPersson> where [12:31] <GimmeMoreCoinz> do int X=10; [12:31] <GimmeMoreCoinz> while (x==10){} [12:31] <GimmeMoreCoinz> because [12:31] <GimmeMoreCoinz> inside the main [12:31] <TriforceOfKirby> or SYSTEM("PAUSE&gt;NUL") [12:31] <GimmeMoreCoinz> it just closes after all code reaches the exit param [12:31] <GimmeMoreCoinz> system("PAUSE&gt;NULL") is unproffesional [12:32] <GimmeMoreCoinz> use a whlie loop or some other construct [12:32] <GimmeMoreCoinz> hardly anyone in real development uses systempause [12:32] <IAmAPersson> everything inside the code is inside the class StringParsing [12:32] <TriforceOfKirby> Yeah it is, while is probably bettter [12:33] <GimmeMoreCoinz> sorry for the typos the chat lags when I type [12:34] <TriforceOfKirby> Hi [12:34] <TobuKatsu> I am a portrait (doge) [12:34] <IAmAPersson> more errors [12:34] <IAmAPersson> i gtg [12:34] <TriforceOfKirby> bye [12:35] <IAmAPersson> if randomous asks for me, tell him to post it on my message wall, please [12:35] <TriforceOfKirby> Ok [12:35] <IAmAPersson> thanks [12:35] <IAmAPersson> why [12:35] <IAmAPersson> bye* [12:35] <Lumage> Bye [12:35] <TriforceOfKirby> bye [12:35] <Randomouscrap98> Bye [12:35] <IAmAPersson> oh hai [12:35] <IAmAPersson> bye [12:35] <Randomouscrap98> So guys, what should do about the gallery thing? [12:36] <Randomouscrap98> I already sent a message to Wikia, but they're probably not going to do anything [12:36] <SmokedSausage> Probably not [12:36] <TriforceOfKirby> Hmm, I'm not sure [12:36] <SmokedSausage> I really don't know [12:36] <Randomouscrap98> I mean, the gallery DOES make the images look better [12:36] <SmokedSausage> Sorry I can't be of help [12:36] <Randomouscrap98> But there are problems with the gallery as well [12:36] <Randomouscrap98> Don't worry about it! [12:37] <SmokedSausage> Sorry I was away though, You can thank Kirby for that one [12:37] <Randomouscrap98> There are other ways to make the images work better, but they require more knowledge of Wikia [12:37] <Randomouscrap98> And I don't think everyone is willing to do that [12:37] <TriforceOfKirby> Wait why were you away? [12:37] <SmokedSausage> Ball [12:37] <TriforceOfKirby> Oh, lol [12:37] <Randomouscrap98> Who? [12:38] <TriforceOfKirby> Sausage [12:38] <SmokedSausage> Have you tried Kirby's "Ball" Program? [12:38] <Randomouscrap98> Yes [12:38] <SmokedSausage> I Haven't played anything else today [12:39] <TriforceOfKirby> lol, I found it very addicting as well [12:39] <SmokedSausage> Except VVVVVVV Thanks to Randomous [12:39] <SmokedSausage> I <3 Physics [12:40] <Lumage> Turtles. [12:40] <SmokedSausage> Turtles are alright [12:40] <Randomouscrap98> No problem! [12:41] <SmokedSausage> VVVVVVV Is the only reason I switched to windows today [12:41] <SmokedSausage> And I find Linux very good for C develpment btw [12:41] <GimmeMoreCoinz> randomous i"m willing to learn about the wikia api [12:42] <TriforceOfKirby> Yeah I am too [12:42] <GimmeMoreCoinz> I want to branch into web development at some point so this would be a decent start. [12:42] <GimmeMoreCoinz> i mean were programmer.s :3 [12:42] <GimmeMoreCoinz> it's what we do best is solve issues [12:44] <BuGgErHAX> Heyyyyyy [12:44] <TriforceOfKirby> Hi [12:44] <TobuKatsu> Im getting a book on programming for christmas (awesome) [12:44] <TriforceOfKirby> Cool [12:44] <BuGgErHAX> COINZ! The sprites in PSB are on the fritz bro [12:44] <BuGgErHAX> (lol) [12:45] <TobuKatsu> (fast) (disco) (NUKE) (nyancat) (banana) (tails) (sparky) [12:45] <SmokedSausage> Back [12:46] <TriforceOfKirby> Hi [12:46] <SmokedSausage> Hi [12:47] <SmokedSausage> I has Ice cream [12:47] <TriforceOfKirby> lol me too [12:47] <TobuKatsu> Hey sausage [12:47] <SmokedSausage> Hi Tobu [12:48] <TobuKatsu> https://www.youtube.com/watch?v=4GWJZNvjF6w [12:49] <TriforceOfKirby> Hey what would happen if I changed all my "Font Substitutes" in my registry to the same font? [12:51] <TobuKatsu> (NUKE) BROWNIES (NUKE) [12:51] <TobuKatsu> (NUKE) (N64) (NUKE) [12:51] <SmokedSausage> Oh lord not again [12:52] <SmokedSausage> Please don't let it turn into spam [12:52] <TobuKatsu> (spam) [12:52] <SmokedSausage> And I can't answer that question kirby Sorry [12:52] <TriforceOfKirby> Ok [12:52] <Lumage> All the frozen [12:53] <TriforceOfKirby> You can try it if you want, type regedit into the run window to acess the registry [12:54] <SmokedSausage> I'm not using windows though...I have messed around with that though [12:54] <TriforceOfKirby> Ok [12:55] <SmokedSausage> That's when i messed around and installed WinXP SP3 [12:55] <TriforceOfKirby> I changed the MS SHELL DIG font to consolas and now my system font is that [12:55] <SmokedSausage> Trying to install Visual Studio 2010 [12:55] <TobuKatsu> i did [12:55] <TobuKatsu> i have 2010 [12:56] <SmokedSausage> Yeah but To install it on XP It requires SP3 [12:56] <TriforceOfKirby> I'm gonna go play minecraft, see ya [12:56] <SmokedSausage> Bye [12:56] <TriforceOfKirby> Bye [12:56] <Lumage> Bye [12:56] <TobuKatsu> (NUKE) BYE (NUKE) [12:59] <SmokedSausage> Hi everybody! [01:00] <SmokedSausage> Welcome to the Gangban-errr....Party [01:00] <BrianXP7> hi [01:00] <TobuKatsu> (NUKE) BROWNIES (NUKE) [01:01] <BrianXP7> -_- [01:01] <SmokedSausage> No [01:01] <TobuKatsu> (lol) [01:01] <SmokedSausage> lol [01:01] <BrianXP7> coinz? [01:01] <SmokedSausage> She is away [01:01] <BrianXP7> oh [01:01] <BrianXP7> aw... [01:01] <BrianXP7> i gotta go [01:01] <BrianXP7> sorry [01:01] <BrianXP7> phone hacking [01:01] <BrianXP7> :p [01:01] <BrianXP7> bye [01:01] <GimmeMoreCoinz> sorry. i'm away [01:01] <SmokedSausage> Bye? [01:01] <GimmeMoreCoinz> i was helping a friend [01:01] <TobuKatsu> (NUKE) (BANANA) (NUKE) [01:01] <BrianXP7> oh hi [01:02] <SmokedSausage> xD [01:02] <BrianXP7> geneious writing ftw! [01:02] <SmokedSausage> Right when ur about to leave [01:02] <BrianXP7> i gotta go [01:02] <BrianXP7> bye [01:06] <TobuKatsu> (NUKE) (banana) (NUKE) [01:07] <SmokedSausage> Wait a sec... [01:08] <Lumage> You forgot to ask him? [01:08] <Randomouscrap98> OH, I'm sorry! [01:09] <Randomouscrap98> I'm REALLY busy with a whole bunch of stuff! People keep asking me to do things... I haven't even cooked dinner yet, and I was supposed to work on essays and whatnot lol. [01:09] <Lumage> -, '-' ,- [01:09] <SmokedSausage> I'm really sorry Randomous [01:10] <Randomouscrap98> Don't be sorry! [01:10] <SmokedSausage> But [01:10] <SmokedSausage> Bacon [01:10] <SmokedSausage> So Who What When Where Why How? [01:10] <Lumage> I wonder if BrianXP7 knows... I mean, I'm fairly certain he saw the thread. [01:11] <SmokedSausage> which thread? [01:12] <Lumage> Yours. [01:13] <SmokedSausage> Oh, Thanks for the Cleanup page Randomous [01:13] <Randomouscrap98> NP