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
M

Monin D

@Monin D
About
Posts
50
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reflection
    M Monin D

    I have a following structure

    App_Code
    MyClass.cs [Company.MyNameSpace.MyClass]
    Bin
    MyLib.dll [Company.MyLibNameSpace.LibraryClass]

    From Company.MyLibNameSpace.LibraryClass I need to create an instance of Company.MyNameSpace.MyClass, but I don't know Class name until execution (it comes from XML configuration), so I use Reflection for it:

    Type type = Type.GetType("Company.MyNameSpace.MyClass")

    The problem is, that when I load a Type from DLL, it doesn't work (type == null), when I do the same from another .cs file in App_Code folder, everything works fine. Is there any work-around to this problem?

    ASP.NET xml help question workspace

  • Shell Extension for context menu
    M Monin D

    I am trying to write a shell extension in C#, which shows an item in right-click context menu in explorer. But all examples which I try contain a lot of code and doesn't show anything (i assume I do something wrong, or don't do some important step :) ) Many examples have static methods:

    [System.Runtime.InteropServices.ComRegisterFunctionAttribute()]
    static void RegisterServer(String str1)

    [System.Runtime.InteropServices.ComUnregisterFunctionAttribute()]
    static void UnregisterServer(String str1)

    Should i call them, or they will be called automatically? Does anyone have any ideas, or maybe knows any libraries/classes for that, where I can just call something like *.RegisterContextMenu(myMenu).. and ready :) ?

    C# csharp linux question

  • Lightnote CMS, what do you think?
    M Monin D

    Yes, of course! There are some built-in extensions for dynamic menus, breadcrumbs and for sitemap.xml (for google). Currently there is no extension for sitemaps in front-end, because CMS is relatively new and it's not much extensions at all. But it's very easy to write them. You can ask me here or through contact form on lightnote.net and I can help you to quick start.

    Linux, Apache, MySQL, PHP question csharp design beta-testing architecture

  • Lightnote CMS, what do you think?
    M Monin D

    Hello, What is your opinion about this CMS? And what features do you think must have a perfect CMS? My goal was to create a CMS with a simple user interface on one side and wide spector of possibilities on another. And to provide delevoper with clean and expendable class architecture, unlimitied layout freedom and easy way to extend. I would very appreciate if you write me some feedback here :) Link: http://lightnote.net[^] Demo: http://demo.lightnote.net/cms/[^] Login: demo Password: demo

    Linux, Apache, MySQL, PHP question csharp design beta-testing architecture

  • summation
    M Monin D

    Thanks to everyone for answers!

    C# csharp javascript php question

  • summation
    M Monin D

    float a = (float)93.3; float b = (float)2.3; float c = a + b; // at this moment c = 95.60001; Why? I meet this strange behavior not only in C#, but also in Javascript, Actionscript and PHP.

    C# csharp javascript php question

  • License question
    M Monin D

    Ok, thank you. By the way found a good list of many different licences, free and non-free: http://www.gnu.org/licenses/license-list.html#SoftwareLicenses[^]

    The Lounge question

  • License question
    M Monin D

    Ok, thank you. I want to forbid redistributing modifications of app. Because I think that if many people work on one app(not in a team in one company), then good architecture of classes will be broken. So I as understand right, if I distribute under GPL app with name "MyCMS", than anyone can download it modify it and redistribute as "SomeonesCMS" for free?

    The Lounge question

  • License question
    M Monin D

    I have wrote Content Managment System (CMS) and want to distribute it for free. I don't want that anyone modify it or redistribute it... Which license I should use? First I've thought of GPL, but as I understand right, it is an open source license. What does exactly open source means? Can others modify it and redistribute (if source codes are open due to technical reasons)?

    The Lounge question

  • Physics in OOP?
    M Monin D

    Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

    The Lounge question game-dev

  • Asp.Net keeping connection to db
    M Monin D

    I am beginner in ASP.Net and have following question: I have a class and inside of this class i load some information from database. It is very slow to connect in each instance of this class to database again.

    class DataNode
    {
    SqlConnection DB;
    public DataNode()
    {
    DB = new SqlConnection("connection string");
    DB.Open();
    }
    public DataNode[] ProcessAllSubNodes()
    {
    // query to get all nodes
    DataNode subNode = new DataNode();
    subNode.GetSomeDataFromDB();
    }
    }

    I have tried following to avoid it: 1) make SqlConnection DB - static. Problem: if many users connect simultaniosly - i get error that datareader already used somewhere else. 2) to store DB instance in HttpContext.Current.Session and reuse it each time. It has helped, but i am not sure that it is ideal way and has no bad effects. I know about caching objects in HttpContext.Cache, but the first time (when there is no cache) it connects to database so often (because my objects are recursive), that database stops responding and i get DB connection timeout exception :(. So if someone knows a good pattern for my problem, please share :) Thanks.

    ASP.NET database help csharp asp-net regex

  • Transparent GIFs
    M Monin D

    Hello, Is there any possiblity in Asp.Net to create transparent gifs without unsafe code? Is it possible to turn on complination with unsafe code in VS Express? I have tried to put in following in my web.config, but it doesn't work :(. <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="1" compilerOptions="/unsafe" /> </compilers> I know that it is possible to put it in machine.config, but on my hosting I am not able to access this file.

    ASP.NET csharp asp-net visual-studio hosting question

  • Sending arguments to running programm
    M Monin D

    Thanks very much for all answers, was very helpful. Did it with messaging, because it was easy and fast :)

    C# linux help question

  • Sending arguments to running programm
    M Monin D

    Hello, I have a program which is always running on user's computer. And I would like to add an item to windows context menu (shell menu), with option to Backup a file (it's not a problem). After user right clicks some file in explorer and then clicks "Backup this file", is it possible to send somehow file path argument to already running program?

    C# linux help question

  • fdisk?
    M Monin D

    lol...when anyone will have a shitty a day..please think about that guy and what did he felt after killing $38 BILLIONS in a few key presses :)) shit happens!

    The Lounge com question

  • Use collection of elements like an indexed array
    M Monin D

    Thanks!

    C# data-structures tutorial question

  • Use collection of elements like an indexed array
    M Monin D

    I want to create my own collection of elements. I do it so:

    public class MyCollectionName : IEnumerable
    {
    List<string> m_Collection = new List<string>();
    // Some methods here

     public int Count
     {
         get { return m\_Collection.Count; }
     }
     
     public IEnumerator GetEnumerator()
     {
          return m\_Collection.GetEnumerator();
     }
    

    }

    Is it possible to use instance of MyCollectionName like array and what should I change in MyCollectionName class for it? for example:

    for(int i = 0; i < myCollectionInstance.Count; i++)
    {
    // And here use my collection as array
    myCollectionInstance[i];
    }

    C# data-structures tutorial question

  • MS Update procedure
    M Monin D

    by me it works in firefox. you should check your privacy settings.

    The Lounge csharp visual-studio com announcement learning

  • Vista not such a big success here.
    M Monin D

    Did anyone checked Vista on 1.6-1.7Ghz machine? I think on most of notebooks Vista will work rather slow. Because, as I think, normal speed for notebook is about 1.6-1.7Ghz ... should I forget about buying Vista? :)

    The Lounge

  • Events
    M Monin D

    Thanks! helped

    C# csharp design 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