Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

Goalie35

@Goalie35
About
Posts
195
Topics
137
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • My friend's project is stuck between half AngularJS & Angular 4...and they're now completely stuck. Any advice?
    G Goalie35

    I'm just looking for some general advice I can offer my friend who's in a tricky predicament involving a project he hired a software company to develop for him. A few days ago, my friend calls me in a panic to see if I can help resolve an issue he's having. He owns a small business in the medical industry & hired a software company to develop some software for his business. Development started about 9 months ago, using AngularJS. This software company got about halfway through development before their sole developer who was working on the project left & they needed to hire a new developer. For some reason, this new developer informed the software company the entire project needed to be upgraded to Angular 4, and the company agreed to move forward with the upgrade (at this point, I don't know the specifics as to why this was decided). This developer then left the company as well. Fast forward to now & 1 or 2 additional developers who have come and gone, & the application is now a mess & they're telling my friend they're stuck & not sure how to move forward. The trouble seems to be about 10,000 lines of code which was originally written in AngularJS, which contains crucial medical info & very delicate medical rules that cannot be incorrect & the software company's been unable to upgrade this code into Angular 4. So, after speaking with my friend, I've offered to at least speak with the current developer to see his pain points but I'm curious if there's any advice anyone can give as to best handle this situation? They've already developed a great deal in Angular 4, but for some reason, can't upgrade about 10,000 lines of Angular JS code. Do I recommend they revert everything back to AngularJS & redevelop anything they've written in Angular 4, back into AngularJS? Do I say they just need to keep trudging through this code and make it work? Do I simply say they're out of luck? I know this is a very general question but just looking for some general advice or questions I should ask them. I have a call with them today to figure out more details as to what's going on. Thanks in advance.

    The Lounge help javascript question business tutorial

  • Integrating multi-threading into this application. Are there any issues you can see arising from this?
    G Goalie35

    Hello. Sorry in advance for the long post. We currently have a c# console application that pulls medical claims from our client via a web service. Our application doesn't handle multi-threading at the moment. Unfortunately, we've recently been told by the client that we're going to start receiving millions of claims all at once (as opposed to the typical few thousand per day) & after doing the math, we've determined it would take weeks for this application to process that many claims, so we thought introducing multi-threading into the application would help. However, this raised a question of a potential issue: if it's multi-threaded, how do we ensure no claims get lost in the mix and never pulled? Our current process is as follows: 1) We pull an initial list of all claim id's from the client. This is a one-time pull and we store the list. 2) We then read off the next claim from that list & call their web service for the details of that claim. We do this one claim at a time, until we've finished pulling the details of every claim from that list. 3) Before pulling each claim, we store the value of the claim id we're trying to process into a "Last Claim ID Processed" field in our db table, in case there's ever a system crash and we need to pick up later with the claim id where we left off with. This way, our application just basically says "ok, I see there was a failure last time we ran. Lets start off with claim id#12345 rather than starting from the very beginning of the list" 4) Finally, we store that claim info in our database and move onto the next claim. The bulk of our time is at step #2, where we process each claim, so this is the piece we want to split into multi-threading. Where we can split this process into about 10 threads and each one can asynchronously read the next claim id from the claim list that we pulled in step #1. Theoretically, that should make our application process claims 10 times faster than it currently is. But my problem is how would each thread know which other claims are already in the midst of being processed? So again, my concern is, how do we ensure no claims get lost in the mix? For example, I'm concerned about the following scenario: 1) Thread #1 reads from the claim list & pulls the next claim. Claim id 10001. Before processing, it stores the value of this claim id into our "Last Claim ID Processed" field in our import summary table, to let us know it's the last claim processed in case of a crash (step #3 above) 2) Thread #2 reads from the list &

    C# help database question csharp tutorial

  • How do you organize your work emails?
    G Goalie35

    Lol. No, I don't have over 11 years of emails in my Inbox, if that's what you were referring to. I'm not THAT bad :) I used to move my Inbox to an archive roughly every 6 months, labeled by the month & year it was archived, to reduce the inbox size (but I did tend to keep nearly all emails, out of fear of losing an email I may needed to reference later). Plus, these 11 years have spanned over several jobs, so I only had about an average of 3 - 4 years of archived emails at any given time.

    The Lounge question lounge workspace

  • How do you organize your work emails?
    G Goalie35

    So, after years of keeping nearly EVERY work email I receive, in my Inbox, I'm trying to now go the route of keeping nothing in my Inbox. All unnecessary mail gets deleted & anything I want to hold onto, gets placed into a folder. I feel my folder setup is a little messy though, & just looking for suggestions to see if there's a better way I can set them up. There are times I need to go back to an old email & need to shuffle through a few folders to find which folder category I filed the email under. I basically have a folder for each dept in my company, & then for my IT dept, I have sub folders setup for each application our department works on & maintains. Plus add'l folders for general IT emails & stuff & another separate one for the ticket requests we have come in from around the company. Anyone have an email folder structure that they like & they're happy with? Thanks

    The Lounge question lounge workspace

  • Recommendations for a programmer transitioning from a college career to corporate?
    G Goalie35

    A friend of mine asked me to speak with a another friend of his, who's going through a difficult financial time right now. He's been working as a programmer for a local college for the past 10 years, but apparently, it doesn't pay very well and he's looking for advice on how to switch to a higher paying, corporate career. I think his biggest problem, is he's been doing this single career, inside a university, his whole life. He doesn't really even know where to begin. I'm going to speak with him tomorrow & I have some personal advice I can offer but was wondering if anyone can offer any additional advice or experiences I can pass over to him? Things like what are the best ways he can land a new programming career? What should he work on improving? Etc. I'm not sure yet which languages he's skilled in but I do know he needs to find a higher paying job sometime between now & the next 9 months (hint hint). With it being a college career though, my "guess", is that he's using Java. I'd appreciate any advice you can offer. He's a great guy whose just terrified about being not able to provide for his family right now, so I'd love to offer any advice I can. Thanks

    The Lounge career java help tutorial question

  • Anyone here own their own software consulting business?
    G Goalie35

    I'm looking for start my own software consulting business & I was hoping to get advice from anyone who's gone down this path. Or even some books or websites you can recommend. A little background on me...I've been developing in most of the popular microsoft technologies for the past 8 years. For the past year, I've been doing some basic consulting for a friend's business on the side & I've found I really love the consulting side over a typical corporate job, so I now want to turn this into a full time business. I'm trying to find advice & info in regards to client pricing, marketing, setup, etc. Does anyone know of any good websites for this or can you recommend any good books? Thanks

    The Lounge sales business question career workspace

  • Creating subobjects within an object?
    G Goalie35

    Ok, I'm sure this is a simple question but how would I create subobjects within an object? I want to create an object that lists the "status" of my application, to determine if it ran ok or not. So I want to have validation code like the following:

    Status status = RunReport();
    if(status.Exception) //boolean
    {
    string exceptionMessage = status.Exception.Message;
    string stackTrace = status.Exception.StackTrace;
    }

    Or....perhaps this:

    Status status = RunReport();
    if(status.Success) //boolean
    {
    //Ran ok. Hooray!!!
    }

    So my question is, how could I setup my "Status" object to have examples like the following: Status.Success (boolean) Status.Exception (boolean) Status.Exception.Message (string) Status.Exception.StackTrace (string) Thanks.

    C# question workspace

  • Where is this c# console application running from??
    G Goalie35

    Our client has a windows 2003 server, which contains a c# console application, which is currently executing once a week, and I need to stop this application from running. The problem is, I don't know where the original developers of this app, scheduled it to run from. Our client severed ties with their prior development company, so we just inherited their work from this yesterday. I've been able to locate the directory where the c# console application is located, but I can't figure out where on this windows server 2003 box, this application is running from. I've checked scheduled tasks as well as windows services, but haven't found any trace of the executable. Any possible suggestions as to where else someone may schedule a c# console application to run on a windows server 2003 box? Thanks.

    C# csharp sysadmin windows-admin debugging help

  • asp.net 4.0: Using jQuery in place of UpdatePanels?
    G Goalie35

    Thanks for the advice. Btw, your site looks very nice. The shopping cart has a very smooth feel to it :)

    ASP.NET javascript question csharp asp-net sysadmin

  • asp.net 4.0: Using jQuery in place of UpdatePanels?
    G Goalie35

    Hello. I'm beginning a new asp.net website (using asp.net 4.0) and I want to try implementing some better coding practices to keep the site's code "cleaner". From what I've read, updatepanel's bring along with them, a lot of unnecessary code, so my 1st plan is to avoid using them entirely. So, I was planning on using only javascript (i.e. jQuery) to handle the same functionality of that of an upatepanel but I'm unsure of how to implement this functionality. In particular, how do I get jQuery to handle the postbacks to the server in order to communicate with asp.net server side controls? Does anyone know of any tutorials on this in asp.net 4.0? I've been able to find older tutorials using asp.net 3.5 (which looks to be quite a bit of javascript code to handle the equivalent of an updatepanel), but wasn't sure if 4.0 implemented any more efficient approaches. Thanks.

    ASP.NET javascript question csharp asp-net sysadmin

  • How to include child property of LINQ to SQL object?
    G Goalie35

    I'm pulling in a sql table via linq to sql called "Employee". There are a total of 11 fields within this Employee table, so my LINQ automatically creates properties such as the following: Employee.Name Employee.Address Employee.Phone etc... I now however, need to add a child property to each of these properties called "Location", but I'm not sure how I would do this. So for example, I would need to use code such as the following: Employee.Name.Location = 1; Employee.Address.Location = 2; Employee.Phone.Location = 3; etc... I know I could set this "Location" up directly within my linq to sql dbml file, however anytime I update my database, my dbml file would be overwritten, so I'd prefer to avoid that. Is there any other way I can setup this "Location" child property? Thanks.

    C# database tutorial csharp linq question

  • Including an additional enum property into an object?
    G Goalie35

    How can I assign an additional "enum" property to a pre-existing object? I'm building a Trophy system for my website where user's can earn trophies for various achievements. I currently have a "Trophy" object which was created for me automatically in Linq when I created my dbml file. Nice and simple so far :) Now however, I want to include an additional property to my "Trophy" object of type enum called "TrophyLevel". For several, long winded reasons, I don't want to include TrophyLevel as a part of the actual "Trophy" object. So, I've tried setting it up in a partial class like the following:

    public partial class Trophy
    {
    public enum TrophyLevel
    {
    Bronze = 1,
    Silver = 2,
    Gold = 3,
    Platinum = 4
    }
    }

    Is this the correct way I should be setting this up, and if so, how do I access it? So, basically, I want to be able to have code like the following: Trophy.TrophyLevel = 1; OR String level = Trophy.TrophyLevel; Am I going about this correctly? Thanks

    C# question csharp linq

  • How to determine if any users are currently viewing website?
    G Goalie35

    Hello. This may or may not be an asp.net question but basically, we have a website & we have a situation where we need to know instantly if any users are viewing the site. I know I can implement some code to create a session when a user visits the site and then log into the database when that user's session has expired (i.e. he's off the site), but even that wouldn't be completely accurate since session objects wait for about 20 minutes of inactivity before expiring. What I need is be able to determine whether any users are on the site currently, not within the last 20 minutes. My other thought was perhaps there's some tools on the server itself that can help me with this (we use Windows Server 2003), but I wasn't sure if this was a possibility. Any ideas on the best way to track this? Thanks.

    ASP.NET question csharp asp-net database sysadmin

  • What does this code segment mean??
    G Goalie35

    I had a class written like this:

    public void Set(string key, T value)
    {
    if(value == null)
    {
    return;
    }
    ...
    }

    I'm using "reSharper" however within my visual studio (for those who don't know, resharper is a great little tool that helps clean up code and suggests better ways of writing it. Highly recomend it) to help clean up my code, and ReSharper suggested I write the first line of the above code in the following manner:

    public void Set(string key, T value) where T : class

    What does this "where T : class" mean? I don't understand what it does. Thanks

    C# csharp visual-studio help question

  • C# OOP Question: Best way to setup these classes?
    G Goalie35

    I'm somewhat new to OOP & having a little trouble setting up some classes. Here's a quick little background on my project: -------------------------------------------- Basically, I need to create some objects for working with excel similar to that of the excel objects within the "Microsoft Office Object Library" (I'm using the ms open xml sdk kit, which seems to require a little more work than the ms object library). In particular, I'm looking to create 3 objects: -Workbook -Worksheet -Range -My Workbook class would contain methods such as "OpenWorkbook" and "Save". -My Worksheet class would contain methods such as "OpenWorksheet", "InsertWorksheet", and "CopyWorksheet". -My Range class would take a range of cells and contain methods for formatting that range such as "FontColor", "FontSize", etc. ----------------------------------------------------- My issue: I need to pass around properties from object to object but unsure on how to do so in the cleanest fashion. For example, within my Workbook class, I declare the following property: public WorkbookPart WbPart { get; set; } I will then need to use this "WbPart" property within my Worksheet class. For example, to insert a new worksheet, I need to use the following: WbPart.AddNewPart(); My question What's the best way to pass around these properties from class to class? Should I create a base class for this or something, and if so, how would I create this base class (I'm unfamiliar with base classes)? Thanks.

    C# tutorial question csharp xml help

  • C# OOP: sub-property?
    G Goalie35

    Ok, this is probably a very basic question, but how would I go about creating the following (bear with me. I'm new to oop): Lets say I'm in the automotive industry and I build a c# class called "Cars". Within this class, I have 2 properties: -Model -Year So I can call them via Cars.Model & Cars.Year via code like this:

    public class Cars
    {
    public string Model { get; set; }
    public string Year { get; set; }
    }

    So far, so good....HOWEVER....now, I want to do a sub-property of Model, called Color. I would want to call it with something like this: Cars.Model.Color = "green"; How would I create this "Color" property so that it becomes a sub-property of "Model"? Thanks

    C# question csharp

  • Any recomendations for a new laptop?
    G Goalie35

    Hey, I'm looking to get a new laptop for developing on. Don't have a ton of money to spare right now (who does these days? ;) ), so I'm trying to find an affordable machine that can still handle the following all open at the same time without much slowdown: -up to 2 instances of vs 2010 -sql server management studio -photoshop cs3 -a few browser windows -ms outlook My desktop machine's pretty powerful, so running all of this at the same time wasn't an issue but I'm curious what you guys think my ballpark specs should be on a laptop to run all of this at once. Thanks.

    The Lounge database sql-server visual-studio adobe sysadmin

  • DbDataReader: Matching fields to order or occurrence?
    G Goalie35

    I have to read an excel file and ensure the columns are in their correct order (the file is created manually and sometimes, columns are inserted in the incorrect order). I'm reading the file via microsoft jet oledb 4.0. I then insert the values into a DbDataReader. I now have to check to see if each column is in it's propper position. So, as of now, I have the following to start with (The data reader field names are based on the column header names of the excel file):

    using (DbDataReader dr = command.ExecuteReader())
    {
    while (dr.Read())
    {
    String col1 = dr["OrderId"];
    }
    }

    But my question is, how do I ensure dr["OrderId"] is the 1st field within the dbDataReader? Thanks

    C# question

  • How to combine 3 different list objects into a single list object?
    G Goalie35

    I have 3 separate lists of objects, all containing the same properties: List teamNorth; List teamSouth; List teamEast; Is there a way to merge these 3 lists into a single list (i.e. "List allReps")? I was able to figure out how to merge 3 lists of the same object but not 3 lists of different objects. For most of my application, it's beneficial to keep these 3 objects separate, however there's one part in which having them merged into a single list object will save me from using lots of repetitive code. Thanks.

    C# tutorial question

  • How to format a datetime to display day of week and date?
    G Goalie35

    Thanks for the help. My solution kept unfortunately having issues using the above formats within my excel report however when I placed a comma in front of the date, it worked fine. String reportDate = "'" + DateTime.Now.ToString("dddd, MMMM d, yyyy"); Thanks.

    C# csharp tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups