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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

CodingYoshi

@CodingYoshi
About
Posts
326
Topics
111
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error Logging
    C CodingYoshi

    I am using Log4net as I have mentioned. How can I turn off debugging log? Please note one of the things I am trying to do is providing different error messages to users based on whether the product is in qa or production. In qa the user will be qa. In production it will be, obviously, a regular user.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# help question beta-testing regex tutorial

  • Error Logging
    C CodingYoshi

    Point taken! I was looking for more ideas from everyone else and assumed my idea was not the best approach. Can you provide some ideas about how you handle such? I am using Log4Net if that matters. I am pretty sure I am not the first to come across this.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# help question beta-testing regex tutorial

  • Error Logging
    C CodingYoshi

    I was wondering what you do when you are logging errors and providing error messages during dev, qa, uat and then production. For example, for qa I provide a message to include a guid with their ticket. I provide them the guid. I then use this guid to look up the error message in the log and see what the issue was. The error messages will change once it goes to production as it will not make sense to ask users to include the guid with their ticket. You simply tell them something went wrong or if they can fix it, tell them what they can do. The question is: What is the best practice to use to change error reporting based on qa, uat and production phases? Here are some ideas I have: 1. I can read from config file for the phase and provide errors accordingly 2. I can have a preprocessor directive defined for each phase

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# help question beta-testing regex tutorial

  • Url changes but page stays on the same page
    C CodingYoshi

    I have a site with a page whose url is like: http://localhost:2324/Page2 When the back button of browser is pressed the url changes to http://localhost:2324/Page1 However, the browser still shows contents of page2. Obviously if I press refresh then the browser refreshes the page. Any ideas?

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    ASP.NET regex question

  • ASP.NET MVC 3
    C CodingYoshi

    I have a site with these views: Categories > Products for Category X > Product Details for Product X > Confirmation Page The first view has a bunch of categories and each has a link such as below: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 When users click this it will show the 2nd view's page 1 with 10 products (paging). I am passing totalCount since I already know it in the first view and I don't want the server to have to get it again and I cannot store it in sessions or cookies. Requirements are: Users should be able to email this url and someone else should be able to copy paste and it should work. The Products for Category X page will have 10 products and each product will have a link for more details. The link will be like below: http://localhost:39532/Product/Info?productId=0f0c1207-e002-4430-ae10-2ee533516b2f&CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&addedToShoppingCart=False Users can click this link to view further details, add/remove to shopping cart based on the value. The questions I have are: When the user adds the product to shopping list it will go to a confirmation page where they can view shopping cart or continue browsing. If they click continue browsing it should go to the product list page they were on which in this case is: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 But how will the confirmation page know this info? Do I need to pass it into the ProductController.ProductDetail action which will then pass it to Confirmation.Confirm action? Now my actions will have parameters which are only to be passed onto some other view. Let me know if my question does not make sense.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    ASP.NET asp-net question csharp sysadmin business

  • User management
    C CodingYoshi

    We have many custom asp.net applications which need user management (login, authentication, lost password, add or delete users, update profile etc.), logging (actions, search logs, connection problems etc.), content approval and content upload. Each application is duplicating the above functionality and I want to get rid of the duplicated effort. My question is: Can I create 1 custom asp.net application which will use the WSS at the back end to handle most of the above? So basically I will create a web user interface and use the sharepoint sdk and database to do the aforementioned. Or do you have some other suggestion? CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    SharePoint question csharp asp-net sharepoint database

  • mvc 3 views
    C CodingYoshi

    I am building an mvc 3 web application. The home page will have a search text box, linkA and linkB. When the user enters text into the search textbox it will search and display results. I am confused on whether the Search action will be in homecontroller and if I want to display the results on another page then what should I do within this action method.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    ASP.NET asp-net regex architecture

  • Any standard for documenting design available?
    C CodingYoshi

    Visual Studio class diagram, Rational Rose, UML diagramming tool...not sure if that is what you are after

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    Design and Architecture tutorial question design architecture learning

  • Fetching response from a different web server
    C CodingYoshi

    I need to write a web application which will post to a specific url, get the response from the url and then analyze the response and put it into a json object and send back to client. We have a mobile application which hits a url. The code within this url is written in Python. It uses Google app engine calls to send a request to a third party, gets the response, packages the response into a json object and returns it to the mobile application. I have not python knowledge and I want to write the whole thing in C#. Is this possible? Any other suggestions? The third party has no web service or any other exposed api.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    ASP.NET json csharp python sysadmin regex

  • Debugging django ap with winge ide
    C CodingYoshi

    I am new to python, django and wing ide. I come from .net. I need to debug a django web app and I am not sure where the entry point is so I can start debugging right from the beginning. Please advise. Does the app have to be in the mysites folder i configured during the configuring django? Or it can be anywhere? I have __init__, main, manage, settings, settings_local and urls files in the initial directory of this app. Thanks,

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    Linux, Apache, MySQL, PHP python csharp visual-studio debugging regex

  • thread safety
    C CodingYoshi

    First don't use string literals as a locking mechanism. Basically it doesn't work the way you think it does Please elaborate and explain

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# regex

  • thread safety
    C CodingYoshi

    Great and thanks for the explanation, definitely clears things up. I know how threads work but the part which confused me was the static part.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# regex

  • thread safety
    C CodingYoshi

    Ok so lock (this) means lock the calling object for the duration of the code block. lock(a) means lock a for the duration of the code block which means other threads still have access to the object just not a, am i right?

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# regex

  • thread safety
    C CodingYoshi

    What if the method is changing a data member which is also used in another method? I guess it will be locked for that method as well, right? But why a static variable? I looked at the class and looks like it is only used for this purpose CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# regex

  • thread safety
    C CodingYoshi

    I saw this code

    public class MyClass
    {
    protected static string a = "a";
    public void DoStuff()
    {
    lock (a)
    {
    // Do things
    }
    }
    }

    why not

    public class MyClass
    {
    public void DoStuff()
    {
    lock (this)
    {
    // Do things
    }
    }
    }

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# regex

  • MSMQ
    C CodingYoshi

    I understand, however, how can the message survive if the system crashes before being inserted into a queue? I guess once it is inserted, only afterwards it can survive. I studied the code more and looks like nServiceBus is used as well. Any idea why nServiceBus is used? I did some research and I am starting to think nServiceBus is similar to WCF but has differences. Also nServiceBus is built using MSMQ so why are the messages being inserted into queues again if nServiceBus is taking care of that? CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# data-structures regex question discussion

  • MSMQ
    C CodingYoshi

    I am fixing a tcp listening application which is accepting messages on a port. Once the message arrives it is sent to a queue using MSMQ. The message is then received from the queue and put into another queue. So it goes like so: Message arrives > Message is sent to queue (Q1) > Message is received from queue (Q1) > Message is sent to another queue (Q2) The same application is doing all this. I am not sure why this has been implemented this way. The idea is to accept messages in format x, convert them to format y and send it to another application. I understand the above might be unclear but I am still analyzing the code. I am starting to think the implementer did not understand the concept and use of message queues really well. What do you think? CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# data-structures regex question discussion

  • Running a command on remote pc
    C CodingYoshi

    I need to do the following on many remote pcs: 1. Check if a file exists and delete it. 2. Run a cmd command on remote pc which will create the file. 3. Read the file. I am using C# and to run the command line on remote pcs I am starting a process and using psexec. It works but problem is that it is very slow. Any alternatives? I am really desperate and need to get this project going.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# csharp regex help question

  • Invoking a cmd command on remote machine
    C CodingYoshi

    I need to read a file from over 200 pcs on our network using a C# application. This file might not exist so creating it is an easy process--just running a command from the command line on remote pc. I found a tool called psexec which allows running commands on remote pcs: I simply use this tool and run the command. However, it takes very long and I have to keep checking if the file exists. If I run the command on the remote pc right at the remote pc then it is instantaneous. Is there a better alternative? I simply need to do the following: 1. Check if a file exists and delete it. 2. Recreate the file by running the command on remote pc. 3. Read the file. I am sure others have had to do this before.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# csharp sysadmin regex question

  • Enumerator
    C CodingYoshi

    Thanks! That is exactly what I am looking for. I will give that a try and let you know if it works; although, it looks as it should.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    C# sales regex
  • Login

  • Don't have an account? Register

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