130 Posted Topics
Am having some difficulty, I had some code that had a static helper method in C#, and now I am looking to port it to vb, but unfortunately vb doesn't seem to have a yield return operator. How do most vb developers do this, and why is there no yield … | |
Re: No! do not let the vampires take over the world! JK | |
So, a few times I have typed in some specific searches into google, and ultimately come up with some really spooky coming back to me from google. I don't really want to share what I was searching for, it's highly specific however, and it smacks of past experiences I have … | |
Re: It seems you are missing a few tags... What you will find in software dev- is that things are often organized into toolchains, and you can mix'n match. For instance if you know python, you're going to pretty much work on a lot of OS/script specific stuff, you'll probably also … | |
![]() | Re: If it compiles into a dll you can just include it in the project as a reference. I actually think you have to have it as a dll, but I could be wrong. If it is a dll, it's essentially a compiled software library. |
Re: Really guys you don't need to hide your strings very often. Encryption is meant to hide **data at rest**, not something meant to run in a program on strings which are typically used for prompts. Ultimately if somebody is in a position to reverse your exe, then even if you … | |
Re: Don't know if anybody mentioned this, but you could probably break some parts out into other source code files. Classes generally live in their own code file. | |
Re: Break only breaks you out of one nested looping structure. So on the inside loop if you break, the inner loop will cease, and the outter loop will continue execution. | |
Re: Never done it before, but could bayesian filtering do something like this for you? Basically you count the occurrences of tokens in a sentence and based on that you have a strong probability that two questions are or are not the same, or similar. You would probably need to make … | |
Re: <Directed twoard experienced devlopers questions> Perhaps it would be useful to determine which processes actually exist on a windows device by default? Win 7, Win 10, etc? Does anyone know where to find such information? It would be trivial really to examine the processes of a system via C# and … | |
Re: I have a few observations. From what I have heard the US population is probably shrinking a little bit due to the baby boomer thing. So most programmers these days are actually senior level people. If you take a look at the job market in most places you will quickly … | |
Re: High BS tolerances. jk. It does strike me however that most of the things you guys are suggesting are soft skills, as opposed to actually knowing the code. I would think not knowing the tools would be a red flag for any employer who needs something done. ![]() | |
Re: If I have any that I have left unanswered they typically are unanswered, or not answered adequately, but I haven't checked in a while. I guess everybody should check more often. Honestly I had set up a work account for this site here, and that one will never be used … | |
Re: I don't know exactly what's wrong without viewing **MORE CODE**, but it should be fairly straight-forward to point you in the right direction regaurdless. Here is an example that should be more or less correct and should steer you twoard building a tostring method that fits your needs. This looks … | |
Re: A cool program for sure, but I always submit to the observation I have read in a practical crypto book, "Don't roll your own encryption" I don't know much about this crypto standard, but when people roll their own encryption they tend to make mistakes regaurdless of how well they … | |
Re: Yeah, that's just an accumulating loop, it's pretty simple really. You don't have whitespace in the right places so the foreach loop doesn't look intuitive, but you should have no trouble understanding this. The two statements below the foreach loop in your pseudo code would essentially be in brackets in … | |
Hey I have a question, how many people actually use telerik? Does anybody have experience with it, and what are your opinions on it? To me it is just another third party library that nobody knows, but I want an opinion on it from actual seasoned developers. I have worked … | |
Re: Arrays don't overload tostring() as far as I am aware in any language. They probably should but they don't. You have to loop through the array in order to print out the array. If they do overload, it is just info about hash, and name, etc, not the actual content. | |
Say hypothetically you had a reader which did something like this... //testing reader, automatically parses strings and converts to the custom type via attributes! using ( FlatFileReader<MyCustomClass> reader = new FlatFileReader<MyCustomClass>(config) ) { MyCustomClass custom; while ( (custom = reader.ReadLine()) != null ) { Console.WriteLine(custom.ToString()); } } Would this actually … | |
Re: Program calls declaration_list(), declaration_list() calls declaration(), which prints something and returns, then declaration_list() calls declaration_list(), it's self again, which proceeds to call declaration(), then we go back to execute the last line of declaration_list() again... Trace through it a line at a time, essentially declaration_list() calls it's self once an … | |
Re: I wrote an excel program a while back, If I remember correctly the workspace cell bounds should be uniform regaurdless of whether the cell has data in it or not, or at least that is usually the case. So you should get a well defined box around your data. What … | |
I recently lost a job, pretty much because my previous employer expected miracles from an entry level coder. I was tasked with reading years worth of code developed in a sloppy manner (by another coder) in a production environment where I quite literally could not debug without disrupting somebody. There … | |
Re: Changing all the methods names to a single pattern/name is actually a good idea. If you do that, and you have access to the classes of Airports, Products, and Persons you can modify them to all inherit from an interface, and therefore do what you want to do, make a … | |
So, I have heard about code porting, basically where you take existing code from one language, and translate it to another language. What I want to know is how does this process work? Are there automated tools for preforming this type of thing, or is it always a manual process? … | |
Re: Yes, don't create multiple threads on the same topic. What I would do is look into a packet sniffing library like libnet, or pcap, etc. The wireshark one would be best probably. You may need to learn how to do C-calls from C# in order to get stuff working, but … | |
Re: Visual Basic is harder to read than C#... Sorry about the dig VB coders, but you know what I am referring to, Dim'ing variables instead of simply declairing "int num = 14;", and all those nasty do, end if, end loop, etc. Sometimes I use them in comments even in … | |
Re: I can't find the C# forum! Where's the link? I don't want to browse all languages, just the ones I am interested in... | |
Re: Unless you learn how to do Arp Cache poisoning... ;) Don't know if there is any windows specific Arp Cache poisoning software available for you though, I think most of the time it only runs on linux because the hackers prefer them, linux doesn't necissarily need antivirus, on windows AV … | |
So I was thinking, what is the best software for reading xml comments embedded in source code(C#)? Are there alternatives, or is sandcastle the only one? If there are alternatives, which one is the easiest to use, and which ones are free? | |
Re: I am glad deceptikon touched on security through obscurity. While reading through a crypto book I heard about the concept as well. As it is described in the crypto book, no crypography should rely on the algorithim being secret, but instead it should rely on the keys being secret, and … | |
Re: Lots of people use Remote Desktop Protocol programs to access another computer via another. Some of the programs support dragging and dropping files between desktops (not folders, zip it first). The only thing with these is that you have to deliberately turn the service on on the computer you are … | |
Re: I remember this example! Frustrated the hell out of me too back in the day! Am thinking to myself would probably be easy now, to just make an array of chars, and a single for loop starting at the right side, the end of the array, switching values to asterisks … | |
Re: Sending the code along with the app may, or may not be an issue. HTML, CSS, and JavaScript are all transmitted to the client, where the source can be read quite easily. Are you worried about the backend being copied by competitors? If you have sensitive business backend code, then … | |
Re: I thought nobody would ever need a loop like this, but I am happy to be mistaken... This is 'parallel', so you will have to remove the thread pool call, but you should be able to derive something useful from this. /*Author: overwraith*/ using System; using System.Collections.Generic; using System.Linq; using … | |
Re: I can't find the code for Combinations, but you appear to have a lot of data coming out of that class. If I was you I would review the code, and see if perhaps I could convert combinations, or something else into an IEnumerable, aka a state machine. Use Yield … | |
Re: I don't see why the number of download threads are limited, unless you have users using the threads or something, then it would be more of a matter of limiting them to n threads in the API. Just Curious, why the limitation? Is it a user thing or something? Are … | |
So I just got an entry level job at a company, and I have been given a business application to tweak and improve. I have a senior, and more experienced programmer overseeing me, but I have found what I consider to be a bad practice in the company application. I … | |
Re: > the advantages that C# as a general purpose programing lang > > originally created JavaScript, they were going to call it Live > > release of Java in order to jump on the hype train. While so > > iginally created JavaScript, they were going to call it LiveScript, … | |
Re: There are probably a few things in play here. First, you got to know that there is a hierearchy of resources on computers, resources which are available in excess are at the top of the chart, and resources at the bottom of the chart are slow. Typically in books this … | |
Re: It's kind of one of those situations where LINQ would solve it nicely, but the code for either LINQ or just regular loops would be approximately the same amount of code. I don't think there are any other ways of implementing specific functionality like this in the .NET framework, no … | |
Re: Essentially anything that you provide to customers will essentially be prone to reverse engineering, if this is what you are asking. There are techniques for making the reverse engineering process more difficult, like obfuscation, encryption, etc. These techniques make it more difficult, but not impossible to reverse engineer. You should … | |
So I am having trouble connecting to an Oracle XE 11g database in visual studio. The Ultimate aim here is to make a webpage I can run on my local machine and send sql to on my local net. From looking around it seems other people have had this problem, … | |
Re: I took a class once where we wrote our own personal heading class for our assignments, it included information such as the developer name, the date the program was run, etc. Information included the following; First name, last name, assignment, //could probably just use a creative naming convention and reflection … | |
Hello, I am thinking about doing a matrix RREF function, am still in the research stage, but I thought I should post a bug I have been having. The following code doesn't work. What I am trying to do is orderby the array index [0], and then by [i...] etc. … | |
Re: It looks like you aren't returning anything in the ToString method right now, if you don't return something it will error out. Also, the SetGrade method does not have a return type specified. Should be "public float SetGrade(float score)". | |
Re: I think it's an improvement, even with the slight overhead introduced. This could make other methods like an RREF function easier to code (it's been a while, I actually don't remember how to do row reduced echilon form, so I don't know). You could probably make this a little more … | |
So I was recently working on a string program where the strings were easily megabytes long, and I ran into problems with there being out of memory exceptions etc. So I said to myself, this would be a perfect problem which lazy execution solves. Here is a split function that … | |
Re: I am going to take the hints from everybody else in the forum, and not give away homework answers, but I coded something like this in C# just now, and noticed that the multithreaded searching algorithims worked better for only massive strings, like in a 45 MB text file. Anything … | |
Re: I am reading a book right now, called "C# in depth" (3rd ed.), the author mentions contravarience, and covarience in places, but I am not finished yet, so I don't know if the author addresses this problem directly. The author's name is John Skeet, I think he actually has a … | |
So the other day I was just experamenting with some code, just for fun, and I ran into some difficulties. So I suppose my question is why the following code does not write to the original bigints array. I am sure I am doing something dumb, but please bear with … |
The End.