SomethingToChatWith
-
Posts
448 -
Joined
-
Last visited
Posts posted by SomethingToChatWith
-
-
You dont need two topics on the same issue jbohaj.
-
Probably in the next episode.
-
Ok with the way I was writing it I would've had a gigantic function or 5-6 functions and no support for ()'s. I think I'll stick with the code from the link than. Now to convert it to C# since I've gotten into that as well lately...
Update: somethings up with the function. I had a whole bunch of not delcared errors until I imported System.Math but I still got one more error for the single line using "m_Primatives". Its not declared ovbiously. I wonder what its there for or if theres another namespace I need imported.
C# definetly does have an advantage over VB, paticuarly that being of size of the compiled assembly. On a few test apps I've thrown together the C# versions were only half the size of the vb ones. Anyone know why that is if its all supposed to compile to MSIL anyway?
-
Ovbiously it is since he uses BT4 on it just about every other episode...
-
Never mind, found the solution:
Lists[] NewLists;
NewLists = new Lists[2];
OR
Lists[] NewLists = new Lists[2];
Declaration of the array without a size won't give me errors.
Hope this helps someone else :)
-
So i'm taking on C# as my second programming language and its been pretty fun so far. Having experience in VB has helped a lot, so much so I think everything I know about C# I've learned in the last week or so, but...
C#'s not as easy to transfer to as I thought. I'm doing a fun little console application that creates two string collections that reference a single array (one for names and one for colors), assigns the string values, and than finally outputs each person's favorite color to the console. I did it first in VB and its working fine:
Module Module1PublicStructureLists'Holds a list of stringsDimItemsListAsSystem.Collections.Generic.List(OfString)EndStructurePublicSubMain()'Create an reference to the Lists structureDimNewLists(1)AsLists'Create two new instances to the List structure and two new'instances of System.Collections.Generic Lists for the ItemsList'member of Lists.NewLists(0) =NewLists'List of namesNewLists(1) =NewLists'List of colorsNewLists(0).ItemsList =NewSystem.Collections.Generic.List(OfString)NewLists(1).ItemsList =NewSystem.Collections.Generic.List(OfString)'Assign the names to the first list. Assign the favorite colors of'each person to the second.NewLists(0).ItemsList.Add("Jim")NewLists(1).ItemsList.Add("Blue")NewLists(0).ItemsList.Add("Jack")NewLists(1).ItemsList.Add("Black")'Output what color each person likes.Console.WriteLine(NewLists(0).ItemsList(0) &" likes "& NewLists(1).ItemsList(0))Console.Write(NewLists(0).ItemsList(1) &" likes "& NewLists(1).ItemsList(1))Console.Read()'So I can see the output when debuggingEndSubSo basically when I run the app, I get two lines:
Jim likes Blue
Jack likes Black
I seem to be having trouble with C# array declarations of a custom type (in my case a structure). Anyone know what I'm doing wrong here? C# version:
using System;namespace ConsoleApplication2
{
classProgram{publicstructLists{//Holds a list of stringspublicList<String> ItemsList;}staticvoidMain(){//Create two references to the Lists structure//Error: "; expected"Lists[2] NewLists;//Rest of program appears to have been written correctly?...//Create two new instances to the List structure and two new//instances of System.Collections.Generic Lists for the ItemsList//member of Lists.NewLists[0] =newLists();NewLists[1] =newLists();NewLists[0].ItemsList =newList<String>();NewLists[1].ItemsList =newList<String>();//Assign the names to the first list. Assign the favorite colors of//each person to the second.NewLists[0].ItemsList.Add("Jim");NewLists[1].ItemsList.Add("Blue");NewLists[0].ItemsList.Add("Jack");NewLists[1].ItemsList.Add("Black");//Output what color each person likes.Console.WriteLine(NewLists[0].ItemsList[0] +" likes "+ NewLists[1].ItemsList[0]);Console.Write(NewLists[0].ItemsList[1] +" likes "+ NewLists[1].ItemsList[1]);Console.Read();//So I can see the output when debugging}} -
"betpro.de" is paypal? lol...
-
I feel like apples saying "hey come break into my customer's computers"...
Word gets out of this to Apple I'm sure Apples going to patch it so enjoy while you can everyone.
-
I always wondered what the support... account was for
-
Well I set 1024 for the vertical alignment and it would fit, assuming none of the addons were there. With the addons I still cant fit it all on the screen.
-
Ok I did a little searching on the topic. Autoplay/autoruns not going away, its just that they've changed its behavior. See here under the section entitled: "Improvements to AutoPlay".
Basically to sum it up here, unless whats been inserted is optical media you well still get an autorun/autoplay prompt, but only the installed default actions of the system well be displayed to you. Unfortunately, they're keeping it the way it is for optical media due to user habit of expecting the installer for their software or their dvd to start playing immediately when they insert a disc into their systems.
Regardless its still exciting to know you wont haft to worry about somebody's latest usb infection unless these u3 drives and what have you become more popular. They already are I suppose, but its going to only get worse. Really we need to start training users to manually find the installers on thier discs or launch thier favorites movies with the programs they want to play them in, so MS can put an end to autorun/autoplay for good regardless of what type of storage device it is.
-
Nice, thanks for sharing...
Kinda scary when you think about it though. No tools required. Just turn on the computer and its ready for owning lol
-
Concentrate on Windows 7/Sever 08 (I think they've got the cert for 08 now). Skip Vista alll together. With the negativity Vistas been getting I doubt any company's going to be upgrading to Vista. Assuming they don't f-up Windows 7's release most well probably be upgrading from XP to Windows 7 in the coming years.
-
Well by accident I came across Dotfuscator. I'm wondering how good it actually is... anyone? I found out that they actually install it along side VS for all versions except the express so sure enough it showed up in my tools menu in VS. Registered the community edition (here comes the spam :( ). Supposedly all a beginner needs to do is to select the input tab, import the assembly they want to use, select the build tab, and hit build according to thier help file, but when I attempt to build I get a brief flash of status at the bottom of the screen and nothing but empty directories (see attachment).
Its canceling the build for no reason. I've changed the output directory and even specified a temp directory. Nothing appears on the output tab. I can't figure out whats going on here and getting really frustrated having had to register. Anyone know what I'm doing wrong?
Update: Expanded the details pane at the bottom after setting build output to verbose (see second attachment). Apparently its requiring a VS file or version I don't have, but I don't see how that can be. I'm using VS Pro 2008.
-
Can't even fit it on my screen...
Same here, even with a 32 inch on fullscreen ;)
-
Episode 5x12
in Hak5
Great little stegonography app there. At first I wasnt all that impressed but to figure out that stuff is compressed and can be encrypted... went and got it :)
Its a shame though, cause it doesnt appear as if the project well be going for much longer. The last version was like 0.5.1 or something released back in 2003, but hey, you can get the source code and tweak it to you're liking... at least for the moment anyway. Get it while you can everyone, cause knowing SF it might not be there in a few months.
-
Wow... time for the FF developers to consider sub-menus or start removing the least used features from the context menu.
-
Don't think so... just make sure you don't have the newest wii menu installed or else it won't work.
-
Ok update for those that may be interested. Its not done because I've been really busy. For my app for at least the moment anyway I ended up putting in a button that simply launches windows calculator. But once it is it'll be here...
-
Episode 5x11
in Hak5
Great episode. And thanks for explaining RAID 50. Can't wait to see how you actually set one up :)
-
If you already got a media center pc for the living room its worthless unless you like the game offerings, though backing up your games is cool, but like drop said you haft to flash the xbox with special firmware to play the copied discs. After seeing in the hak5 ep that you could backup your games to an sd card it doesn't compare to the wii's possibilities.
-
Check out systeminfo /?
Have your app save the output to a file and than have it post the contents of the file onto something say like a textbox on your application's form for viewing. The last bit or similars required cause the console well just open and immediately close after systeminfo is done and you won't see anything. There's various other system information gathering commands. Look at the batch files the usb hacks here use.
-
Its not the answer, specially when the real bad stuff blocks out the infected systems internet connection. Than what?
Physical access scanning from outisde the compromised OS, forever.
-
Episode 5x11
in Hak5
Ok, we went from the average episode feeback thread to an OS debate, great stuff guys
Anyway, I havent seen the ep yet but I'm sure it'll be great as usual. I was wondering when we'd see the enterprise virtualzation segments Matt, great job on those :)
How to shut down Computer on Ethernet
in Everything Else
Posted
Yeah, it was here
digips response from that thread was: