57 Discussion / Question Topics

Remove Filter
Member Avatar for overwraith

How do I start a MonoDevelop software program as a system service on Windows, Linux, and Mac? Windows appears to not have a system service setting. I have a WCF service that essentially runs from command line. Even if I have to run from command line, I will need to …

Member Avatar for RabidDog5150
1
2K
Member Avatar for overwraith

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for overwraith

This may sound wierd, or easy, I just don't have a statistics background. How do I alter the statistical value of an array of emmitted random numbers? I am completely capable of using ranges, or creating an algorithim, I just need pseudo code or a brief description to guide me …

Member Avatar for overwraith
0
754
Member Avatar for overwraith

I would like to be able to open a port on windows programatically. I don't care whether is power shell, or something else, but I would like it to be a script that I can simply run as I install a software program. I have no experience in this area, …

Member Avatar for rproffitt
0
958
Member Avatar for overwraith

I started working on a windows forms authentication project, which uses nhibernate, and has some management pages for managing user settings, such as resetting user password. This forms based authentication uses session state in order to save the user's authentication information. I will be using a special authentication attribute in …

Member Avatar for rproffitt
0
742
Member Avatar for overwraith

This is surprisingly difficult. Consider it a snippet. Deletes all tables from a sql server schema. Useful for those times on your dev machine where you need to tear down all the cruft that has built up on your server due to refactoring of object relationally mapped tables. --Author: Cameron …

Member Avatar for overwraith
1
483
Member Avatar for overwraith

I had a cool idea concerning threading in C#. I was reading a book called "CLR via C#" and it was discussing threading, and how people should seldom use actual thread objects, and instead should use the thread pooling services. The reason being they spool up worker threads for you …

Member Avatar for rproffitt
0
351
Member Avatar for overwraith

Ok, So I have an instance of **Windows Server 2012 R2** installed to a virtual machine on my local development PC with **IIS** . The idea being I need to practice and learn about how to deploy sites to web servers. I have tinkered around with some of the settings, …

Member Avatar for Mark_82
0
544
Member Avatar for overwraith

I have a bootstrap view which I am trying to get a modal working for. Unfortunately the modal is displaying as part of the page, not invisable. So it is displaying with it's content as part of the page. Here is my code: <!-- Placing excel upload modal here... --> …

Member Avatar for overwraith
0
589
Member Avatar for overwraith

Does anybody know whether System.Data.SqlLite has the capability to do a Change notification callback when one of it's tables is changed? I know that Python can do it by calling the C api, but This is kind of beyond me. I know I have done this before on an oracle …

Member Avatar for overwraith
0
963
Member Avatar for overwraith

I need some help building a bootstrap Angular UI modal. This is what I have so far, but I am pretty sure it is wrong. Any assistance would be good. This actually appears to be doing mostly bootstrap stuff. It was originally jquery, but I figured out the hard way …

Member Avatar for overwraith
0
802
Member Avatar for overwraith

The following is the correct way to do encryption. I thought it useful to post for various reasons, most particular being the necessity for our companies to have good security controls. This is very important. If anybody has any other good snippets feel free to post. The user class is …

Member Avatar for overwraith
0
466
Member Avatar for overwraith

I think the community in general will benefit from this discussion. I have an IT horror story I would like to tell everybody about. Additionally I have discovered some solutions to some IT problems, which may have been faced by others in the community. A few years ago I started …

Member Avatar for rproffitt
0
445
Member Avatar for overwraith

I have a question about the dining philosopher problem. This is not about homework. I seem to have solved it, does it actually relate to anything? Is there any software that actually requires it?

Member Avatar for rproffitt
0
197
Member Avatar for overwraith

I am trying to write some symmetric cryptography for holding an FtpCredential in the database, unfortunately I am having a few problems, one of which is getting back gobbley gook from a crypto decoder. I have trimmed it down to just the bare minimum code. Please look at the SetPassword …

Member Avatar for overwraith
0
283
Member Avatar for overwraith

I am creating a reporting engine, it is kind of novel. **The only question I have is what are some of the wierder scheduling related things you guys have seen for you cyclical computer programs to date**. I am trying to cover as many fringe cases as I can, and …

Member Avatar for rproffitt
0
298
Member Avatar for overwraith

I have a web application I am trying to obfuscate portions of it, but use library mode so that all the public portions of the application should appear with names unchanged so it is accessible to the web. So I am trying to obfuscate some parts and not others. The …

Member Avatar for rproffitt
0
2K
Member Avatar for overwraith

I am creating an application that uses NHibernate, an object relational mapper that is a port of the Java Object relational mapper hibernate. Currently I am trying to represent my entities via hibernate xml files. The application I have right now is throwing an error I am thinking may be …

Member Avatar for stultuske
0
645
Member Avatar for overwraith

The following lines do not work. The bool is always false. I have been having trouble getting danni's site to work so if the reply is too short it's 'cuz I typed in the longer version three times and got errrors. FormsAuthentication.SetAuthCookie(login.EmailAddress, login.RememberMe); bool isauth = User.Identity.IsAuthenticated;

Member Avatar for overwraith
0
314
Member Avatar for overwraith

I have the following error as part of my nhibernate project; **Could not find a setter for property '0' in class 'AdHockey.Models.User'** The following is my model; public class User { /// <summary> /// Unique identifier for group used by program and database layer. /// </summary> public virtual int UserId …

Member Avatar for overwraith
0
2K
Member Avatar for overwraith

Is it possible to make a web page that takes up responsibility for backing up a web applications tables(Oracle DB, and perhaps SQL server I am trying to be multi db supportive)? Essentially I want to create a database backup script that is kicked off by pressing a button on …

Member Avatar for overwraith
0
458
Member Avatar for overwraith

Hey guys, have you ever had an application where it was necessary to stuff a large base 64 string into a ticket tracking application? It's a javascript variable which is being stuffed. I am seeing some strange stuff in one of my work place's web sites. I was wondering if …

Member Avatar for almostbob
0
273
Member Avatar for overwraith

I am trying to build a program for transferring files to an arduino project with an attached sd card. I have some code, it does some interesting stuff, but it's not quite what I want it to do. What I need it to do is to be able to transfer …

Member Avatar for rproffitt
0
825
Member Avatar for overwraith

I was wondering if there were any USB powered web cams for the Raspberry pi that are specifically No-IR. I know about the camera module which plugs directly into the board, I was wondering however if there are any alternatives, usb powered so I could perhaps plug in more than …

Member Avatar for overwraith
0
197
Member Avatar for overwraith

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 …

Member Avatar for ddanbe
0
412
Member Avatar for overwraith

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 …

Member Avatar for IntegratedTweak
0
219
Member Avatar for overwraith

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 …

Member Avatar for overwraith
0
291
Member Avatar for overwraith

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 …

Member Avatar for ddanbe
0
249
Member Avatar for overwraith

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 …

Member Avatar for jwenting
0
578
Member Avatar for overwraith

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? …

Member Avatar for deceptikon
0
256
Member Avatar for overwraith

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?

0
133
Member Avatar for overwraith

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 …

Member Avatar for gusano79
0
162
Member Avatar for overwraith

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, …

Member Avatar for DaveAmour
0
231
Member Avatar for overwraith

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. …

Member Avatar for overwraith
0
161
Member Avatar for overwraith

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 …

Member Avatar for overwraith
0
312
Member Avatar for overwraith

Hi, so this has been bugging me for a while about Danni Web website. I seem to have neglected my email account for a while, and now it is on the bounced email list. How do I get my email off this list, and back in working order. I can't …

Member Avatar for overwraith
0
154
Member Avatar for overwraith

Have any of you ever done big O notation? I found some websites that describe it, but not many professional ones. Are there any books that describe it too?

Member Avatar for sepp2k
0
240
Member Avatar for overwraith

So I am kinda new to developing client and server sockets (protocols), and am developing something just for fun on my own network. This program basically will send all files from a specific folder to a client. So I am wondering if I wanted to send multiple files over one …

Member Avatar for SteveDotNet
0
157
Member Avatar for overwraith

So, I am trying to get a query working that finds a certain flash drive attached to my computer and selects it's DriveInfo object. I am having trouble because on my system when I call the VolumeLabel property of one of my DriveInfo objects it throws an exception (IOException) because …

Member Avatar for overwraith
0
214
Member Avatar for overwraith

So I am working on an old project that uses libnet, actually it is a book example, and I cannot find a version 1.1 or 1.0 of libnet. I am going to somehow have to track the depreciation of certain functions and I have never done something like this before. …

Member Avatar for L7Sqr
0
112
Member Avatar for overwraith

So, I recently wrote a program for a class that involved writing an aggregate class to a file. This particular program had an order object, and each order could have 10 ice cream cones, so a ToString() of the class would look like this: Order Number: 1 Customer #1: Harrington, …

Member Avatar for cgeier
0
206
Member Avatar for overwraith
Member Avatar for overwraith

Is there any difference between returning a pointer to a struct, and returning a struct? Aside from the derefrenceing that is done would they both be working with the same struct? Is there any copying that gets done if it is just a regular return?

Member Avatar for overwraith
0
305
Member Avatar for overwraith

I am relatively new to C#, does anybody have a simple example of how calling C++ from C# would be done? I heard that C# can call other languages.

Member Avatar for Fenrir()
0
79
Member Avatar for overwraith

So, I wrote some code for appending to an array, and I thought to myself, would be cool to make the method more generic using an interface. I keep getting this error though that basically says that the compiler's best overloaded method that can match this is _____, and it …

Member Avatar for overwraith
0
174
Member Avatar for overwraith

I am wondering, when does it become more efficient to pass by value in C#? I was reading this article: http://msdn.microsoft.com/en-us/library/4d43ts61%28v=vs.90%29.aspx The article suggests that passing by reference actually generates overhead when it transferrs the value type to the heap. My C/C++ classes swore by passing by reference as a …

Member Avatar for overwraith
0
267
Member Avatar for overwraith

Hello, am having some trouble with Windows batch variable expansion. Am trying to make a script that will make a list of all currently plugged in drives. I want to omit the system drive, since that one shows up as a blank letter. The following script can be copy+paisted directly …

Member Avatar for overwraith
0
149
Member Avatar for overwraith

How do I create a function that accepts by refrence an array of character pointers? I need to be able to overwrite the contents of an array of character pointers, hence I need a pointer to that array. Here is some of my code, but it is throwing errors, so …

Member Avatar for Unimportant
0
380
Member Avatar for overwraith

Hello, I got some code from: http://stackoverflow.com/questions/1859201/add-seconds-to-a-date this is the code: #include <time.h> #include <stdio.h> int main() { time_t now = time( NULL); struct tm now_tm = *localtime( &now); struct tm then_tm = now_tm; then_tm.tm_sec += 50; // add 50 seconds to the time mktime( &then_tm); // normalize it printf( …

Member Avatar for Unimportant
0
169
Member Avatar for overwraith

I just glued together two codes I found online, and found an interesting result. Some of my flash drives have been appearing twice on the system. Here is what the output looks like: Drive: C:\ Volume Name: Drive: D:\ Volume Name: Drive: E:\ Volume Name: Drive: F:\ Volume Name: Drive: …

Member Avatar for overwraith
0
223

The End.