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
E

Eduard Keilholz

@Eduard Keilholz
About
Posts
509
Topics
49
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Picking persons in a group algorithm
    E Eduard Keilholz

    Hey guys! Recently I posted this question "Picking entities from a group[^]" on the codeproject. I was advised to move it to this forum because some of you clever ones may have a way to go. My problem is that I have a group of n people (in my example I said 8 but let's say a minimum of four). I want each person in the group to point to a different person in the group. This means no person can point to himself. Also if a person points to some person in the group, no other person in the group can point to the same person. So everyone in the group must point to a person, and everyone in the group is pointed at. I also want the process to be random. For now I've already done this by creating a generic list of 'allowed' persons, pick a random person from the list, remove that person from the list and so on. Now here comes the difficult part.. I also want to be able to configure impossible combinations. Like Person A cannot point to Person B and Person B cannot point to Person A. This makes the process way more difficult. I'd like to have the ability to test whether a certain configuration is possible and to only pick between these possible 'combination sets'. My solution now, is a trial on error method. I start a large loop and start to random picking just like above. I generate a list of possibilities and pick one of the possibilities. If the list of possibilities happens to be empty, that means I ran into an impossible 'combination set' and start the entire process again. If the picking fails a certain number of times, I assume the configuration is impossible. As you understand my solution for now isn't ideal, 'cause there's no way to check whether a configuration is possible and if my picking routine tells me the configuration is not possible you're not actually sure the config is not possible. I think I got my problem explained well as my English is fairly good but way from perfect. Hope you guys can point me in a good direction. Thanks! Eduard

    .: I love it when a plan comes together :.

    Algorithms help com algorithms tutorial question

  • References packages in a solution
    E Eduard Keilholz

    I can do that :) Thanks!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Article Writing question database sql-server visual-studio com

  • References packages in a solution
    E Eduard Keilholz

    Hey there! Today I wrote an article on CP : Storing binary data in SQL Server using EF[^] You can download a zip file containing a solution. Projects in the solution however, reference a couple of NuGet packages. I didn't include those packages because the zip file would be way too large. I guess downloaders of the source file will then receive errors because the referenced package files are not available. How can I solve this? Thanks a bunch!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Article Writing question database sql-server visual-studio com

  • Uploading article resources problem
    E Eduard Keilholz

    Hey! I'm writing an article as we speak and I want to add a couple of images and a VS.NET solution, but uploading files failes. I checked file sizes and dimensions of the images but still.. Any ideas?

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Article Writing csharp visual-studio help question

  • New look
    E Eduard Keilholz

    I think it looks great! Very clear to read. No unnecessary information, just straight to the point. Like!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    The Lounge discussion

  • Adding images to a Tip / Trick
    E Eduard Keilholz

    Excellent! Thanks for your reply! Eduard

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Site Bugs / Suggestions help tutorial question

  • Adding images to a Tip / Trick
    E Eduard Keilholz

    Hey guys! First, I want to thank you for the way this website is maintained, keep up the good work! I just want to suggest, that adding images to a tip or trick may help to make the tip or trick more readable or understandable. Maybe it's usefull to add such a feature and for example limit the amount of images to three or so? Thanks! Eduard

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Site Bugs / Suggestions help tutorial question

  • Privileges required for reading available databases (MS SQL Server)
    E Eduard Keilholz

    Hey friends, I have serveral usergroups in AD and I want each group to have read / write acces to one or more databases in SQL Server. I know how to set the privileges so that each database is accessable by the correct usergroup and not for all other groups, but I don't know how to set permissions required to query SQL Server which databases are accessable for the user currently logged on. I'm using integrated security. Anyone?

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin security tutorial

  • Create a silent setup with Visual Studio 2010
    E Eduard Keilholz

    Yes I Know that, as you read my question, the problem is that when the setup is running in 'silent mode', my software is not installed. It seems you have to have some kind of GUI in order to accept the UAC message. My question is if there is any way to get the setup going with automatic acceptance of the UAC message or something. I understand there is no way to get rid of the UAC message, but maybe there is some kind of parameter accepting the UAC message (/q /uac=accept or something)...

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    C# question csharp visual-studio sysadmin windows-admin

  • Create a silent setup with Visual Studio 2010
    E Eduard Keilholz

    Hey guys, I've created an application which I want to install on a server (Windows Server 2008 R2). I want the setup to run unattended and since the setup is being started from a Windows Service I cannot have any GUI components. Thus in fact, I want a silent setup. The MSI is here already. Executing is from a command prompt with the /? parameter, gives me a dialog window with all possible parameters. If I choose the /silent parameter, the software is not installed. If I choose the /passive parameter (unattended) Windows Server 2008 shows me a security box 'Do you want to allow the following program from an unknown publisher to make changed to this computer'. How can I create a MSI file which fully supports silent installs on Windows Server 2008 (and Windows 7) ? Thanks guys, Eduard

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    C# question csharp visual-studio sysadmin windows-admin

  • Async Exception with WCF - Silverlight
    E Eduard Keilholz

    You may want to take a peek at the log of your webservice which probably shows an error. The .: I love it when a plan comes together :. http://www.zonderpunt.nl

    WCF and WF wcf help csharp html wpf

  • Setup and File association
    E Eduard Keilholz

    I found the solution ( this[^] message explains more) Thanks for your reply!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    C# question workspace

  • Setup and File association
    E Eduard Keilholz

    The solution is to change the verb of the file association's action to openas in stead of open. The openas verb makes your software appear in the 'Open With' context menu, but doesn't change the default file association which is exactly what I wanted. Thanks for your reply!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    C# question workspace

  • Setup and File association
    E Eduard Keilholz

    Hey guys! In my setup project, I want my software to appear in the [Open With] context menu for a certain file extension, however if I do so, the file association makes my software the default file association in Windows for that particular extension. I Do want windows to associate my software with the file extension, but I don't want my setup to change the default association for that file extension. Is that possible?

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    C# question workspace

  • Maintain max x records
    E Eduard Keilholz

    Cool, i'll take a peak, thanks a lot!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin question

  • Maintain max x records
    E Eduard Keilholz

    Thanks David! I don't need to guarantee a max number of records. This[^] post explains what I want my software to do

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin question

  • Maintain max x records
    E Eduard Keilholz

    Hey! I have 8 servers which I want to report their performance. I use performance counters to aquire system information. Depending on the counter's category and name, I want to counter to store it's value every second, or (if less important) with a lower interval (say a minute). I want to keep the 100 latest inserted records per performance counter to report the machine's performance. Since some counters store their value each second the database table may grow rapidly. I expect about 160 performance counters running at the same time measuring performance of 8 different servers. So there's no need to guarantee a max number of records, I can select the latest x records when reporting and a job may clean up the 'old' data. I also may want to switch to keeping the latest 1000 records or something but I don't know about that yet. I think the job is the best performing solution for this... Thanks guys!

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin question

  • Maintain max x records
    E Eduard Keilholz

    That's more like the reply I was looking for. I didn't know if the sp would perform if the cleanup is integrated. A job it is, thanks! ;)

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin question

  • Maintain max x records
    E Eduard Keilholz

    Thanks for the reply, but my question was not how to accomplish the removal but wether my solution using a stored procedure was OK.

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin question

  • Maintain max x records
    E Eduard Keilholz

    Hey guys, I have a SQL Server database in which I want to store history data for a couple of object. However, I don't want the table to keep 'old' data. Therefore I want to have a maximum amount of x (in my case 100) records. Since I have 5 objects available the max numer of records in my table cannot be larger than 500. The way I accomplish this, is to insert records using a stored procedure. The stored procedure checks the amount of records available for that object. If the amount is larger than 99 it removes (recordamount - 99) records. Then the stored procedure inserts the new value. Is there a neater way to accomplish this? Thanks a lot! Eduard

    .: I love it when a plan comes together :. http://www.zonderpunt.nl

    Database database sql-server sysadmin 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