Posts

c++ - Staff Web Service Framework -

How does the C ++ employee have Web service infrastructure compared to other people? I can not answer your question in all the details, but for now I can use C + + Looking for SOA / web service frameworks GSOP - My Favorites (All OpenSource and Platform Free - Orders Not Ordered) Currently: Proven, Large documents, many support still maintained - every 3-6 months is released Contra: WSDL / Client Generators are not free Programming and embedding in the current app is not so easy Looks more like C ++ Apache A Sis / C ++ - Professionals: Proven, already in use in large projects (almost) good Document Up to date, maintenance is ensured by Apache Foundation Better / Good API Contra: heavy weight SDK / too much functionality for me It is not easy to implement / many things Employee - As fast as professionals and Very short footprint Easy and fast to integrate Contra: Future Very early state Party support only in Cy...

nhibernate - Change to lazy loading at runtime -

I'm using nibernate which does not load the parental class in a lazy way and I have several child-to-many children The class that I want to run to run lazy or not rather in the run time. I am using .hbm.xml mapping and I tried to change the set of "lazy" assets after loading the assemblies, is it possible? I think the best (only) way is to set lazy = false and then use your HQL " / asger

c# - 1 end point multiple servicecontracts - wcf? -

I created a service that allows the client to search for user information. This is an interface that has emerged as ISearchUsers. I used this article as a basis but it is of no use: not sure that it is the way to go Now I want to create and disclose ICTUSUSSER An interface and I have assumed that I had to make a new endpoint, the original HT binding, and used the above article. This is part of my config: & lt; Services & gt; & Lt; Service transaction support = "Service.Service1Behavior" name = "Service.SearchService" & gt; & Lt; Clear /> & Lt; Endpoint binding = "basicHttpBinding" binding configuration = "WsHttpMtomBinding" contract = "Service.ISearchService" listenUriMode = "clear" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "mex" bindin...

.net - NHibernate Component not-null property when being inserted -

Any component assigned to any child's property will be set to zero when recovering from the database. I do not think this is just an additional test to see if the component is null or not. But when I try to update that object with that null component or to include that data, I get an error: "How to make a blank or transient [full property name] how to make NHibernate I pass through a null, but it will not accept myself. Is there a mapping option, I am missing to override it or do I set a value to the component before updating Tax Do not enter or enter in the database? Thanks If all the properties are zero The component is when you type it is a common practice. When you use an auto-property with a public setter, you may have a problem like this If you have this: public virtual MyComponent MyComponentObject {get; set;} You have to do this instead: private MyComponent _myComponent; public virtual MyCompo Nent MyComponentObject {get {if (referenced (e...

cocoa - Algorithm For Generating Unique Colors -

I'm looking for an algorithm that will generate a series of colors so that the color can possibly be distributed (so they can easily Will not be mixed). I have several objects that have an ID that are counted as 1. I would like to represent each of these, a different, beautiful colorful, color that won could not be easily confused with its neighbors, although the colors should not necessarily be random. Every time I input the same ID, I would like to get the same color. Is it possible to have less appropriate boundaries with the elements? A quick and easy solution is to store an array of color values ​​using only the item's ID; It assumes that you have a relatively low color color, and you are certain that you will not go up a certain number. If you want to create colors rather than using a list, there is a trick to make them a consistent and decent format so that they can use HSB. Pre-define a brightness and saturation, then base the value of color with some funct...

c++ - Why STL algorithm find() doesn't work on maps? -

Is there any explanation why () does not work for the algorithm map and use the map for it? This works on the map, but you need to compare the map: Value_type (which is std :: pair and lt; const map :: key_type, map :: mapped_type & gt; ), not the main type. Because map.find takes a key and returns a key / value pair repeater.

process - How to troubleshoot PHP processes -

I created a script in PHP for a small shop that did some things. Start a DB connection, and ask DB twice. Request for PayPal PDT with Read / Write sessions, parse results with fsockopen () Save DB command After some testing, the server stopped loading Support I know that 20 PHP procedures were running (which was the limit) for some reason, they are not shutting down properly User PID% CPU% MEM VSZ RSS TTV State Start Time Command Bubseu 970 0.0 0.1 23836 8708? S 15:46 0:00 /usr/local/bin/php5.cgi index.php Bobisse 1574 0.0 0.1 23836 8708? S 15:47 0:00 /usr/local/bin/php5.cgi index.php Bobsize 2328 0.0 0.1 23840 8708? S 15:47 0:00 / URL / LOC / Bean / FP5 CCI Index.FP Bobisue 4031 0.0 0.1 23836 8704? S 15:49 0:00 / URL / LOC / Bean / FP 05 cc Index. FP Bobbişseu 7112 0.0 0.1 23836 8708? S 15:51 0:00 / url / lock / bean / fp 05.cgi index.php ... 1) To see how the problem can lie, How can I get rid of? 2) How can I ensure that startups will end properly? Thanks Rich You...