Posts

Showing posts from August, 2011

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...

coding style - Is there a particular naming convention for Java methods that throw exceptions? -

I use a prefix such as "pre" to separate exception methods (with the same signature) in those methods Examine to add Is there any such conference? Yes, you name Edit: If you have the same methods that Do not throw / throw, then I get the parse / TryParse pattern ( parse being replaced by the operation). > Dictionary uses & lt; T, K & gt;, TryGetValue , monitor.Try Enter , int.TryParse , etc. etc.). . Edit:

How do I use Zip in Clojure? -

I'm pretty new to the closure zip utility looks interesting, but I can not use it. I tried ;; (DIP Dies (zip / vector-zip data)) (DIP data '[[a * b] + [c * d]] I'm getting java.lang.Exception: There is no such name: ZIP How do you use external libraries? You can confuse two different methods of importing the code. You can do this: User & gt; (Use 'Clojure.zip) Or when you are declaring a namespace in a source file: (ns foo (: clojure) .zip)) The second version is the macro that has been expanded in the past. (ns) outside, (: use "zip") is going to treat : usage Call the function as its parameter and call it from "zip" (i.e. string "zip" ) as a collection and try to use the key see: use in it), which does nothing. clojure.zip has some functions in whose names there is a conflict with things in clojure.core , so you have to do something like that : User & gt; (Use '(Closer [Zi...

ruby on rails - How to use REST to separate model, view and control into two parts -

In the rail, I want to separate the model, look and control in two parts and put them on two separate servers. Can I get it through REST? What should I do? Am I assuming that two different resources coming out of the rail mean ? (Not sure by words) The easiest way would be to create just two separate rail applications - one should be highlighted for each resource, and they will be deployed on different servers, both of them They can also point out on the database if they are necessary, or they are near each one of themselves.

actionscript 3 - Binding combobox with object array? -

How to bind array objects in the combo box in the air app .. I have an array of objects Is it that I need to force the property named in the label field of the limb combo? var objk: Array = objkparent.children; // This object returns a comboBox.dataProvider = objk; ComboBox.labelField = objk.name; But is not working to force it ...? Are you sure the elements present in the objk array are called a name? I have tried which seems to work. & lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" layout = "full" & gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [[Bindabal] Private Vair Dastets: Array = [{Name: "Arizona", label: "AGED"}, {name: "Tennessee", label: "TN"}, {name: "New York", label : "NY"}]; ]] & Gt; & Lt; / Mx: script & gt; & Lt; Mx: panel layout = "full" heading = "stack overflow" id = "panel" height = "10...

java - How can I get the number of availableProcessors in Ant -

I would like to get the number of processors available with my ant build script (i.e. value runtime). Available Processors () . Is there any existing property in which this value is or do I have to write custom ant function? , a class is easy to write

algorithm - How to create an optimized packing function in python? -

So I have been given the task to create shipping modules for a webshop system. It may be a little high, but I would really like to make one that can find out how to pack a parcel in the most favorable way. By doing this simply by doing programming, it is a field where I have no knowledge - nevertheless! Anyway, I can really give a brief description of the real problem. So when users get stuff on webshops, then X products in their cart probably have different size and weight. So I want to give that list of products in the function and explain how these products should be packaged in parcel. Maximum height of the parcel: 50 Maximum length of the parcel: Maximum height of the parcel: 50 Weight: 20 Every product has loads, length, width and height too. Since parcel and products are basically boxes, I'm guessing it will not be complicated, because there are different ways to insert products within parcel. My goal is not to create the perfect packaging function, but I w...

asp.net 2.0 - Secure Login credential without using SSL -

I am new to SSL, whatever I read and know that its paid digital certificate and the use of SSL in the website After the https: // data transfer is secured at the network level. I do not have much security concerns except the login image and password. There is no way to use logon and password without SSL: https: // There are several authentication schemes Can work safely on plain HTTP The most common of these are supported by all major web browsers and virtually every web programming framework. The bottom portion of the web site's digest is that: Authentication is controlled by the browser rather than the login page on the web site. , Which does not look nearly good, and does not allow you all the adjoining works such as "forgot your password?" We have become accustomed to nowadays. If you have an SSL connection, users who are understandable may feel worried that they are sending their passwords in an insecure manner (even if they are not) because They ...

unit testing - Is it possible to have factory tests in mstest, like in MbUnit? -

The main reason we are using mstest for unit testing in our company is that no free visual studio for MBUnet There is no integration (Test Drenen.Net is not free for companies). Recently, I stumbled upon the need to run a single unit test on two different implementations from my previous experience of the same interface that I know it is easy to do with MbUnit but, How to do it with MSTEst? I insist that I need different results for each interface, so please do not do things like running the same method twice - once the same unit test per interface Method, because doing so results only one result. I know about data-driven solutions and is using it now, but this is an * ac pain in what is an easy way, MbUnit way? Thank you. A great way to do this in addition to using its data-driven test features in Don MSTE Although you do not know, you can try using an abstract base class for your test stability and then make a subclass for each interface to test it. BTW offers fre...

javascript - jQuery upload plugin to work with JSP/Java -

I am trying to complete the following: Upload a file by submitting a form (Entepe: Multipart / Form-Data) to perform a JSP operation that handles the rest (returning some XML data about processing and uploading, including writing files in the disc) So far, I have this plugin: It does not work well for two reasons: It breaks down on Internet Explorer The code is written in half jquery, half the original javascript and your normal plugin is not in the authoring form, which makes it difficult to debug it. I have also seen Uploadify (), but there is a different approach to this that will be needed for back-end changes. Do you know any similar-form-in-hide-iframe plugins that are cleaner / cross-browser compatible? Or the alternative solution which I am missing? Please note that I can not use regular due to specific requirements. Thank you. You can try: Too many Good & amp; Simple

objective c - What's the RIGHT way to draw an image in the upper left corner on a mac? -

I have an NSView in ScrollView and I am trying to draw a picture in it. The problem is that I want the upper left corner of the lock image in the top left corner of the frame, instead of the lower left corner, the scene that I want to do, I need to zoom in and out and rotate. Currently, I have a system where I calculate how much I translate my image based on the size of the image and to make the window shape so that I can see one outside the scrollview There is a need to create additional scenes, so that I can get the size of the window, which does not include decorations, then I can calculate the size of the image based on the size of the image and the size of the window, and that And based, I have to translate into whence the image that can reveal it. My only other idea was to use IFlipped: method, but it ends my image LR which is bad. Is there another way I should do this? If you want 0,0 in the upper-left corner Again, to return -is flipped to return yes is the...

database - How do I show a table's foreign key's in TimesTen? -

How do I show the foreign key of a table in Times Titan? You can use the ordering order on the table. East. Index & lt; Table name & gt ;;

Command-line XML validator for Windows -

I have always found verification against a schema to be an invaluable ward against the thought and involved in the recognition investigation as I want to do a project where I need to submit files often. There is a good CLI integration feature in my text editor, so I am looking for a command line vedic. When I did not get a clear winner through Google, none of these suggestions has been given that my needs fit perfectly: (Sagevin's Through) - does not report line numbers; I do not know where are my errors! - Can not run from the command line? - Need a copy of Visual C? - Can not run from the command line? - Inadequate XSD support * (* Schema I replace groups - inappropriate, but it is external to the project, so I can not change it - Code> xmlstarlet also suffers on legitimate files.) Normally, after solving this problem I leave a search for an existing solution and reach the python-hammer. , But the XML support of Python is extremely poor ... okay ... in...

regex - Tokenizing blocks of code in Python -

I have this string: [a [ab] [cef] d] and I want this kind of list lst [0] = "a" lst [1] = "now" lst [2] = " CEF "My current implementation I do not think there are two recurring functions (one '[' and 'second division'] '') but I'm sure that this list can be done using the understanding or regular expressions. (But I have a sensible level to do this Can not understand). Any thoughts? Actually this is not really a recursive data structure, note that a And d are in separate lists. You are dividing the string just by bracket characters and getting rid of some white space. I'm sure someone can get some cleaner, but if you want to have a one-liner something like you would stop: parse_str = '[ A [ab] [cef] d] 'for lst = [s.strip () s.split (' [\ [\]] ', parse_str if s.strip ()]> gt; & Gt; Lst ['a', 'a b', 'ce f', 'd']

Python Graphing Utility for GUI with Animations -

I'm trying to create a GUI interface in VB to track ... Oh, never. Actually, I want to create a GUI in Python for displaying data, but I think that methylotlib is not meeting my needs. I want to be able to highlight some datapoint, There is more freedom in the text drawn on the screen, there is animation on the data movement and the dropdown menu for the data points. What I have seen, I do not believe that mathematical can do these things better how can my needs be fulfilled? I have not used myself, but it seems to fit some of your requirements by matplotlib More interactive and can be used to create quite interactive applications. Chaco is a Python which is planning to plot tool toolkit, plotting applications at all levels of complexity, with hard-coded data, with simple data intrinsically complex intricacies A multitude of programs and interactive tools. While Chaco creates attractive static plots for publication and presentation, it also works well for inter...

c# - LINQ to SQL: Grouping and limiting a record set -

I am using SQL from SQL and I have a stored procedure that brings back a result set that Looks like: Type field 1 field 2 5 1 1 6 2 0 21 0 0 I hope to do some things with this record set : 1) There are 3 groups of results, which have values ​​in both Field 1 and Field 2, Field 1 has one value, but Field 2 is not, and no field 1 and field 2 is Shu The Price. 2) I'm only interested in a subset of types I have a type of ID that I see (say 5 and 21 for this example). Types of values ​​are stored in an calculation now, but I can take them to the better data type if appropriate. I have found where I can group each group but how limited is the type of type, so I will only bring people back to whom I am interested. Here's what I have: var results = all in the dataContext.sp (.. variable ..) all in the list to all group groups grp1 = (Select from a list where a.field1! = 0 & amp; a.field2! = 0, select a) grp2 = (in the list B in where b.field1 = 0 & amp; amp...

Transferring SQL Jobs from SQL 2005 to SQL 2008 -

Can someone tell me that SQL is the most effective way to move SQL jobs from SQL to SQL 2008 from SQL 2008 . I am currently upgrading my SQL Server 2008. Thanks! You should try it to generate a script that you can run on your new instance. Or try this manually: After selecting the jobs folder press F7 key, it will bring up the summary panel and select the job you get from there and right click -> script

javascript - How do I fix this syntax error? -

कोड है: फ़ंक्शन roundAmount (theDecimal) {var s = "" मैथरेड (द डिक्मलिल * 100) / 100 var I = s.indexOf ('।') अगर (i और एलटी; 0) {रिटर्न एस + ".00"} var t = s.sstring (0, i + 1) + S.substring (i + 1, i + 3) यदि (i + 2 == s.length) t + = "0" return t} त्रुटि के साथ लाइन: यदि (i & lt; 0) रिटर्न s + ".00" त्रुटि है: त्रुटि : अपेक्षित (;) क्या किसी को भी इसे ठीक करने का तरीका पता है? अपनी स्क्रिप्ट के बारे में: ऊपर दी गई स्क्रिप्ट में समस्या यह है कि अंतिम अगर कथन रिटर्न के बाद कुछ ऑपरेशन करता है। आपरेशन के बाद एक अर्ध-बृहदान्त्र की आवश्यकता है। भविष्य में, अच्छे अभ्यास के रूप में, प्रत्येक मान्य स्टेटमेंट के बाद एक अर्ध-बृहदान्त्र डाल देना सुनिश्चित करें इस तरह से यह आपको परेशान नहीं करेगा। प्रत्येक पंक्ति को एक विचार के रूप में सोचें, और "समूह" और "संबंधित" विचारों को एक साथ मिलकर के रूप में घुंघराले ब्रेसिज़। नीचे है एक पूर्ण विचार जो कहते हैं, "मुझे एक परिवर्तनीय दे" ...

C# .NET Linq Memory Cleanup or Leak? -

I have a large 2GB file that has 1.5 million entries for the process. I am running a console application which manipulates some strings then uploads every entry to the database I created a LINQ object and object to a new LinqObject () for each list (loop) when the object is complete When the list reaches 100 objects, I submit it to everyone on the entire list, clear the list, I repeat again. The use of my memory continues to grow as the program runs. Should I do something to keep memory usage? I tried GC.collect. I think I want to use the settlement .. Thank you for looking at the past. When it is working, then it is normal for the memory to be used for programmable resources To save you, you should not try to force the garbage collector to reduce memory usage, instead it will ruin the resources. Contrary to someone's first reaction, high memory usage is not a display problem unless no free memory is left. There is not a slight increase in performance du...

ios - Refreshing Table View Rows -

मेरे पास एक UISegmentedControll है जो टेबल दृश्य में डेटा बदलता है [self.mySexyTableView reloadRowsAtIndexPaths: अद्यतन किए गए पथ के साथरेनएनिमेशन: UITableViewRowAnimationTop]; मान लें कि मैं टैब एक के लिए 5 पंक्तियों को दिखाता हूं, टैब 2 के लिए दो पंक्तियां दिखाता हूं। जब दूसरी टैब पर क्लिक किया जाता है, तो पहले दो पंक्तियों को नए मान मिलते हैं लेकिन 3 से 5 पंक्तियों के लिए एक टैब का पुराना डेटा रहता है। मैं उन्हें कैसे साफ़ कर सकता हूं? चेक आउट करने के लिए यहां एक त्वरित नमूना कोड है: विषय पर, यहां सबसे प्यारे दिए गए तरीकों में से एक: // अगर मैं क्लिक करने के बाद अगले 3 कोशिकाओं को हटाना चाहता हूं - (शून्य) तालिकादृश्य: (UITableView *) तालिकादृश्य ने चयन किया थाअवस्थाएंपैथ: (NSIndexPath *) इंडेक्सपेथ {एनएसएमयूटीएबलएआरआरए * इंडेक्सपैथ्स = [एनएसएमयूटीएबलएरेरे सरणी]; के लिए (int i = indexPath.row + 1; i & lt; indexPath.row + 4; i ++) {{indexPaths addObject: [NSIndexPath indexPathForRow: i इन साइज: 0]]; } [तालिका दृश्य शुरू अद्यतन]; [टेबलदृश्य हटाएँऐटइंडएक्सपैथः...

reflection - Create objective-c class instance by name? -

Is it possible to make an example of a square based on the name? Something like this: NSString * className = @ "car"; Id * p = [create magic class: name: className]; [P turnOnEngine]; I do not know that this is possible in Objective-C, but it seems that it will, ID object = [[NSClassFromString (@" NameofClass ") alloc] init];

java - How do I return a pointer to a user-defined class object using SWIG -

मेरे पास swig द्वारा लिपटे निम्नलिखित कोड है: int क्लस्टर :: myController (नियंत्रक * & Amp; _controller) {_controller = my_controller; वापसी 0; } नियंत्रक के पास एक निजी निर्माता है। ऐसा कुछ करने के लिए सही भर्तियां क्या है नहीं अपवाद? सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग argv []) {नियंत्रक c = null; Int r = dan_cluster.the क्लास्टर ()। MyController (c); Println (r); Println (c.getUUID ()); } यह उपयोगी होगा यदि आप अपवाद को प्राप्त कर रहे हैं, लेकिन मुझे विश्वास नहीं है कि आप जो भी करने की कोशिश कर रहे हैं वह संभव है। सी ++ में आप संदर्भ से एक संकेतक पास कर सकते हैं और फ़ंक्शन में पास किए गए पॉइंटर वैरिएबल में परिवर्तन कर सकते हैं, लेकिन जावा में समतुल्य कुछ नहीं है। आपको जनरेटेड आवरण की जांच करनी चाहिए, लेकिन मेरा अनुमान है कि आपका सी ++ कोड कुछ तरह से लपेटा जा रहा है: int myController (नियंत्रक _ नियंत्रक) {_controller = my_controller; वापसी 0; } ... जो स्पष्ट रूप से आप जो चाहें नहीं करेंगे, जब आप यूयूआईडी () प्राप्त करने का प्रयास करते हैं तो एक N...

templates - Is this a good way to use controllers and views in CodeIgniter? -

What's the best way to use controllers / ideas? Know about creating my pages? function index () {$ this-> Load-> Library ('carbineer'); $ This- & gt; Load-> View ('include / head'); $ This- & gt; Load-> Scene ('include / house'); $ This- & gt; Load-> View ('top'); $ This- & gt; Load-> Scene ('special'); $ This- & gt; Load-> View ('eventslist'); $ This- & gt; Load-> Scene ('footer'); } Create the function () {$ this-> Load-> See ('include / head'); $ This- & gt; Load-> View ('top'); $ This- & gt; Load-> View ('Page'); $ This- & gt; Load-> View ('dynamicstuff'); $ This- & gt; Load-> Scene ('footer'); } I'm semi-templing like this, and it works fine to get the outline of the site, but is this the best way to make the app? I'm working in Codeigner for about a week, and I'm new to PHP. ...

c# - Is there an easy way to add (#) to a filename when you find a duplicate filename? -

I am outputting files in C # and wanting to save the file by adding brackets and a number to the same name: / P> FooBar.xml FooBar (1) .xml FooBar (2) .xml ... FooBar (N) .xml Is there any easy way to do this In .NET? And is a special name for (#) ? You only have to manually count and file name manipulation (proxy) code is filthy, But this is the basic algorithm. Convert it to your needs. var filenameFormat = "FooBar {0} .xml"; Var filename = string.Format (filenameFormat, ""); Int i = 1; While (file example (filename)) filename = string.Format (filenameFormat, "(" + (i ++) + ")"); File name back; If you can participate with it, then you can always attack the datetime. Now you do this for the temporary files anyway in your preferred format.

IEnumerable<T> in C# -

I am trying to compile the following code, but I am getting errors in VS 2008. Can anyone tell me where I am wrong? using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Namespace dummy {The natural number of the public class • Quality: IEnumerable & lt; Int & gt; {Public INNamator & lt; Int & gt; GetEnumerator () {for (int i = 1; i & lt; = 1000; i ++) yield yields i; } IEnumerator IEnumerable.GetEnumerator () {for (int i = 1; i & lt; = 1000; i ++) yield returns i; }} Class Program {Static Wide Men (String [] ARGs) {foreach (new natural securities (IT) in the console). Limit (I); }}}} Well, the first compiler error I found is that it complains To do that: To use the common type 'System.Collections.Generic.IEnumerator', arguments of type '1' are required This line is on line 16, it's the one: > > the cursor after the IEnumerator on r , and Ctrl + (d) T-key), press Ctrl +, you ...

jquery - How well does JavaScript scale? -

I was working on this carousel thing, using it. It works very well with some images, using Mootools. However when I added 70 photos (around 30k each) then it stopped working well. Spending some time poking around in the code of iCarousel it looked very nice and stable. So it started thinking to me: Does the script (which is overflow: hidden div), animates the devices in Moto, Firefox on Ubuntu, or can not handle javascript too much? If so, how much is it? I think it's hard to say, but it would be really good to know that Javascript will be sluggish and useless, before it's preferably developed. In addition to other answers, I will tell you with a hard experience which combines DOM elements in the browser like the canvas tag Direct drawings are actually really slow compared to APIs. In the bridge between JavaScript and DOM, there is not only too much overhead, but also every feature changes in the browser. There are ways around something like this, such as ensuri...

c# - How to use my CustomControl with javascript inside a gridview inside an update panel? -

I'm having trouble when I want to add my custom control to a gridview and an updatePanel. The Javascript function is never added to the page even if I type it directly inside the render content method. UpdatePanel GridView EditItem CustomControl [ToolboxData ("& lt; {0}: Test Controll Runat (Public Domain)> Public Class Test Control: WebConnect {Safe Override Zero OnInit (EventArgs e) {base.OnInit (e); string script = "& lt; SCRIPT ty pay = \" text / javascript \ "& gt; \ n" + "function show_" + ClientID + "() {alerts ('toto' );} "+" & Lt; / SCRIPT & gt; \ n "; if (Page.ClientScript.IsClientScriptBlockRegistered (" show_ "+ ClientID)) Page.ClientScript.RegisterClientScriptBlock (Page.GetType ()," show_ "+ ClientID , Script);} Protected Override Zero RenderContents {HtmlTextWriter Writer} {author.WriteLine ("& lt; a href = \" javascript: show_ "+ ...

wcf - Geneva Server STS -

My requirement is a given claims to a user, they know about the company, for example say user 1: company For Publisher is the Product Manager for 1 but the same user is the only editor for Company B. It can be obtained through the Geneva server, or override classes require additional code to be written. In my opinion it is the dependent party that the identity depends on the roles associated with a token on the basis of which Does. Although you can decide on the basis of the rules, the individual depends on the information provided by the dependent parties and the support store, depending on the information as a claim. Now the information you are supporting (AD, LDAP, SQL, whatever) is a design decision at your end, how do you represent that information? You may also want to try to exploit the transformational language of claims in Beta 2. Where is the store to support your claim and why do you want to go to this route?

seo - Restrict robot access for (specific) query string (parameter) values? -

Using robot.txt Is it possible to restrict robot access to (specific) query string (parameter) values? i.e. http://www.url.com/default.aspx#allow http://www.url.com/default.aspx?id=6 # Blank http: //www.url.com/default.aspx?id=7 #disallow User-agent: * Disclaimer: /default.aspx?id=7 # Decline reject: /default.aspx?id=9 # Reject reject: /default.aspx?id=33 #disclaimer etc ... You only need to specify the URL which is disapproved. Everything else is allowed by default.

javascript - jQuery/XML: synchronizing data and representations using DOM-Mutation-Events -

I am creating a web application that modifies jQuery to represent the data and uses HTML. There may be several representations in a document related to a data node. Users can create them dynamically For example, the data will be represented and can be modified in the table. In addition, the user has the opinion of expanding the "Quick-Overview-Panel" to access specific data. If a user-control triggers an event => the data must be modified => the need to refresh the same data related to other user-control. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Synchronize & lt; / Title & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {// data $ .ajax ({url: "./data/config.xml", cache: incorrect, async: false, success: i...

database - asp.net mvc tutorial project -

I'm having trouble getting the code to work with "Pro ASP.NET MVC Framework". I am on page 96 for those who have already worked through this book. When I run the code, I get the following: System.Data.SqlClient.SqlException was rejected by user code message Message = "Invalid object name 'products'." Source = "Net SqlClient Data Provider." Error = 2146232060 Class = 16 LineNumber = 1 Number = 208 Process = "" Server = "\\ SQLEXPRESSADV" State = 1 StackTrace:. System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception on System.Data.SqlClient.SqlConnection.OnError (System.Data.SqlClient.TdsParser, Boolean brake connection) SqlException exception, Boolean brake connection) System.Data. System.Data on System.Data.SqlClient.SqlDataReader.get_MetaData () on SqlClient.TdsParser.Run (RunBehavior Run Behavior), SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParser...

caching - Will proxies cache HTTP Responses when authentication is provided? -

Considering a URI in which caching is properly configured. If two users request that the same URIs provide two different credentials, whether the proxy cache user + URI, or the URI will respond, or not at all? The response will only be used for other users if cache-control response The header contains the public instructions. In addition, the proxy should not be cached in response to an authorized request. Read all the details.

Sql server DELETE and WITH clause -

I need to create a SQL statement to delete from a certain statement that matches the second selection statement. We remove in Teratata from Table 1 (col1, col2) (select table2 from col1, col2) While more than 1 column is not allowed in the WHERE..IN section in SQL Server, I thought I could use these segments: with tempTable ( Col1, col2) (Table 2, select 2 table from col2) with table 1 where table1.col1 = tempTable.col1 and table1.col2 = TempTable.col2 What kind of use with DELETE section? Is there any other way? It should do this: Delete Table 1 to Table 1 TempTable t2.Col1 = t1.Col1 and t2.Col2 = t1.Col2 on T1 internal teams

c# - Working with GUIDs and Entity Framework -

Highlights that you can not use the server side build GUID with the structure of the unit but, I want to The generation of Gwaid should be handled at the DAL level of the database API (i.e., when the constructor of an entity is called, I want to start the unit ID on a new GUID). My plan is to write a small device to create a group of code files of partial class of entities. I have one way of doing this, the question is: Am I out of my mind to do this way or should I do it the way I should? My problem is, when the edmx file has been updated, I do not want to edit a bunch of code files, I will only run one tool which is necessary. Again, is my head straight? OK if you see partial organs, the unit framework is generated by default, a default constructor Does not happen. Doing this will work well in a different partial classroom: public partial class customer {public customer () {_ID = Guid.NewGuid (); }} So there is probably no such reason as you are planning. You m...

html - Compatibility issues with IE7? -

Image
I am working on a site and IE 7 / Firefox (working) versus IE7 (not working) I am on issues of compatibility with) Anyone can take a look at the following CSS and screenshots and tell me why my site is broken in IE 7 and what can I do to fix it? The site in question stays here: and my CSS part for that view #landingMainContainer {padding-left: 10px; Margin: 0 auto; Text align: center; Min height: 400px; Width: 960px; }. Landingtop {width: 100%; Minute-height: 400px; Background: URL ('/ content / images / bg_grey1_v2' '') no-repeat; }. Landingtoinfo {padding-top: 10px; Text-align: left; Width: 50%; Padding-left: 15px; }. LandingToolfix Text {padding-left: 20px; Padded-top: 20px; Swim left; Color: # 000000; Font-size: 20px; } .landingTopInfoTextTitle {font-size: 26px; Text-align: left; Padding-left: 40px; Cushion Top: 10px; Clear: left; Color: # 209202; } .landingTopInfoTextContents {font-size: 12px; Padding-left: 40px; Cushion Top: 10px; Clear: left; Color: # ...

html - Unknown INPUT tag attribute: CURSOR TRANSMIT -

I have found ASP classic application built in Visual Studio 6.0, I believe. An INPUT attribute does not quite recognize the text tag in a form with attributes: & lt; INPUT TYPE = "TEXT" NAME = "OPERATOR_CODE" SIZE = "12" MAXLENGTH = "12" Transit Cursor & gt; What is the transceiver cursor attribute and what does it do? If it is only in one place, then I can probably chalk it to a typo. And cursor and rendering in any large browser will not affect

.net - What UML diagrams do you create for ASP.NET applications? -

I work as a senior deve in a mid-sized company and work on the development of projects which Large size (> 1 year minimum). Most of the architects believe that the time involved in creating a UML diagram is not justified (although we are always pictorial for all projects of ERD and all informal flowchart types) I have reduced the UML diagrams Looking to make less, the projects I work on, based on my quick research, it seems that the following are: To create a logical model - Object To create a physical model - component, class, sequence, activity for database model - ERD How do you make UML diagram in your company? Does MS Vissio have the ability to create all the diagrams? UML diagrams Is selected based on the type of application being developed? # 1 Do you become a UML diagram in your company Are they? We use the entire set of diagrams defined by UML, we use heavily in the diagram of the case of use, class diagrams, sequence diagrams and state machi...

.net 2.0 - What Determines the Encoding used in Xml Serialization? -

I am currently serialing an object using XMLSerializer, and the resulting XML starts: & lt ;? XML version = "1.0" encoding = "UTF-16"? & Gt; How do I get rid of, because in this special case I do not need it (I will only use serialized string to daserize later with my code, so I am also trying to do it as fast as we are doing tons of these serialization. So the question is, can I trust this signature I can always say that (? Can I delete the first 39 characters of the string as a result, and then can I add that exact string back to deserializing?) Or something that can be encoded Be different, for example? Thanks Answer your question that code That's what you have not shown to us - how you did the serialization. You might be able to serialize the stringw Sector for Stringbilder. The NTS string UTF-16. If you make a serial for a string, you have no choice but to get UTF -16 encoding. In other situations, the encoding is determined b...

javascript - Way to check whether TinyMCE is active in WordPress -

I am working on a plugin, when TinyEEE is in use as a visual editor, then to include the text The TinyMeE command uses the body content editing field at present, it just works by running the command. If this works, TinyMCE is active and if not, then I have custom JS to work with the HTML Editor. My question, though: there is no way to check whether TinyMCE is active or not just the command is running and failing if it fails? And ... I answered the question for me, conditionally you want to test for: is_tinyMCE_active = false; If (typef (tnmeie)! = "Undefined") {If (tinmieactive editor == faucet} TNMEEactive editor .Isaid (=!) = {Tinymccap = true; }} The trick is that tinyMCE.activeEditor returns zero when TinyMCE is not activated when you switch back to the HTML editor mode when it is not executed You can use the isHidden () method to make sure. This is poorly documented on the TinyMCE website forums.

ruby on rails - Accessing a Plugin from a Rake Task -

How do I use the bundle-fu plugin from this rack function? I have tried everything and everything seems to work. Note: assets_javascript & amp; assets_css There are two arrays of those files that are removed from the central location to maintain this rack work and are sluggish to see. desc "Cached CSS / JS File" function: asset_cache_generate = & gt; : The Environment says' Caching Javascript & amp; Thanks in advance for your help! - Tom The post-text "itemprop =" text "> method bundle is mixed in the ActionView, so that you can call it only with a Temple instance. / P> Unfortunately, you can not add it to a custom category nor use it in a rake function because it depends on many rail template assistants / resources (ConSat, Flash ...) . See to create this task, it will be very difficult to reproduce them all.

ruby - Is sleep() a good idea for the main loop of a job-scheduling app -

I am writing a job-scheduling app in Ruby for my work (primarily on different protocols at different protocols To move files using) My main loop looks like this: While true # some code to start the proper job sleep CONFIG ["Interval"] It's acting like a charm, but I'm not sure it's enough. With protected because running CPU-intensive software can run on a server. Is there any other way to do the same thing, or sleep () is safe enough in my case? The use of sleep for quick and dirty things is fine but for those things which are slightly stronger Or reliability is required. I suggest sleep is bad :) The problem with sleep is that thread (I'm assuming Windows here ...) is actually sleeping - the scheduler thread will not work, some of the sleep gap passes Until the time. During this time the thread will not wake up anything. This means that it can not be canceled, or can wake up to take action on any kind of event. Of course, this process c...

unit testing - Moq Invocation was not performed on the mock -

Trying to understand the use of VerifySet etc ... but as long as I do an alternate solution, I Can not get to work. Public Interface IProduct {int id {get; Set; } String name {get; Set; }} Public Zero Can_do_something () {var newProduct = new fake & lt; IProduct & gt; (); NewProduct.SetupGet (P => PIID). Returns (1); NewProduct.SetupGet (P => P. name). Returns ("Joe"); // it fails !! That's why I did not bring it a new product. VerifySet (p = & gt; p.Name, Times.AtLeastOnce ()); // If I do this then this new product works. Object .name = "joe"; NewProduct.VerifySet (P => P. names, times.) Once the attit (); } Can anyone explain how to use VerifySet and VerifyGet on the property? I am confused. Before you verify, you need to perform an action specific unit test paradigm with counterfeit goods: Pre> public zero can_do_something () {// adjust newproduct = new mock & lt; IProduct & gt; (); NewProduct.Setu...

php - What is the difference between bindParam and bindValue? -

क्या अंतर है और? उत्तर के लिए दस्तावेज़ीकरण में है: PDOStatement :: bindValue () के विपरीत, वेरिएबल एक संदर्भ के रूप में बाध्य है और इसका केवल मूल्यांकन किया जाएगा PDOStatement :: execute () को समय कहा जाता है। और पैरामीटर मार्करों के लिए PHP चर बाइंड करने के लिए PDOStatement :: bindParam () को कॉल करें: बाउंड चर इनपुट के रूप में अपना मान देते हैं और आउटपुट मान प्राप्त करते हैं , यदि कोई है, तो उनके संबंधित पैरामीटर मार्करों

php and mysql script timeout with no errors? -

Below is my code, it's a script that I need to run just 1 time to update a new MySQL table I have 60,000 users and added 268 rows and added, it showed no errors or nothing, it was not yet left and I do not know why? & lt; Php require_once "../config/functions.inc.php"; // Get users $ sql = 'Select * from friend_login'; $ Result = executable ($ sql); ($ Line = mysql_fetch_assoc ($ result)) {// states in accordance with RAND () range from $ sql = 'SELECT * to order 1); $ State = getSecillegalRsult ($ sql); Convert // latitude and long $ geo = get_geo ($ state); $ Lat = $ geo ['latitude']; $ Long = $ geo ['longitude']; // Enter in place / Long time log in table $ insert = "buddy_position (user_id, latitude,` tall`) values ​​('$ line [auto_id]', '$ lat', '$ long') "; ExecuteQuery (insert $); Echo 'update with user' $ State '& lt; BR & gt; UserID = '. $ Line [auto_id] '& Lt...

python - Activate a virtualenv via fabric as deploy user -

I want to run my clothes script locally, which in turn, log in to my server, user Switch to Deploy, Activate Projects. VirtualAnv, which will replace the project, and release the GIT bridge. def git_pull (): sudo ('su deploy') # I need to switch to Virtualenwin run here ('Git pull') Actually, the VirtualWrapper uses the workon command, which will keep the source of the active file and the postactivate file in the project folder. In this case, it seems that the clothes run from within the shell, the control gives up to the fabric, so I can not use the built-in bash source in the source $ ~ / .virtualenv / myvenv / bin / activate> Someone has given an example and explanation how they did it? Now, what can I do, which is a kundi, but works perfectly well * (This use assumes that you are using VirtualWeaver - which you should be - but you can easily mention the 'substituted' source at the place that you have mentioned, if not): def work (): wor...

TCPL 5.9.9 (C++): Where would it make sense to use a name in its own initializer? -

This is a question from the most recent version of Strawstrup's "C + Programming Language". I have been thinking this in my head for the last few days. The only thing I can come up with (and maybe this is wrong) is something like this: int * f (int n) {int * a = And a - n * sizeof (int *); Return; } My intention is to get some top address on the stack. Does this make any sense? Does anyone else have any other answer? Remember, this is in chapter 5 (signs, arrays, and structures), so in the book nothing should be included later in the book. Only one (difficult) fair case I know that when you point a point on the object to your constructor For example, say you have a cyclic link list node: class node {public: node (Next node *): Next (Next) {} Private: Node * next; }; And you want to create a single-element cyclic list on the stack. You can: node n (& amp; n); Some other examples that are not really practical (i do not think why you need t...

.net - How to map foreign key attribute tables to a business entity -

I have a table in the database that I am mapped to a main unit class. There are several columns in the table that hold foreign key values ​​in other specialty tables. How do I map them to business categories? Can I create a new class for each specialty table and keep the primary class as assets? If the relation between the main table and the attribute table 1: 1 is concerned, then one or only one; I have the attribute table (tables) in the attribute table for the records given in the main table. If the connection between the main table and the attribute table is 1: n, I would have a different class (perhaps nested in the main unit category) for each attribute table next to the main unit square then each attribute table Will be a property, which will be list & lt; AttributeType & gt; (since there may be several records in the attribute table for the given record in the main table)

c++ - string::size_type instead of int -

const std :: string :: size_type cols = greet.size () + पैड * 2 + 2; क्यों string :: size_type ? int काम करने के लिए माना जाता है! यह संख्या रखता है! एक छोटी संख्या भी है जैसा कि हस्ताक्षरित चार करता है। लेकिन इन प्रकारों में से कोई भी किसी भी स्ट्रिंग के आकार का प्रतिनिधित्व करने के लिए पर्याप्त होने की गारंटी नहीं है। स्ट्रिंग :: size_type की गारंटी देता है कि बस। यह एक ऐसा प्रकार है जो स्ट्रिंग के आकार का प्रतिनिधित्व करने के लिए काफी बड़ा है, चाहे वह स्ट्रिंग कितना बड़ा हो। 64-बिट प्लेटफॉर्म पर विचार करने के लिए यह क्यों आवश्यक है, इसका एक सरल उदाहरण के लिए। आम तौर पर एक इंट उन पर 32 बिट है, लेकिन आपके पास स्मृति के 2 ^ 32 बाइट्स से अधिक है। इसलिए यदि (हस्ताक्षरित) int का उपयोग किया गया था, तो आप स्ट्रिंग्स को बड़ा बनाने में असमर्थ होंगे 2 ^ 31 वर्ण Size_type हालांकि उन प्लेटफार्मों पर एक 64-बिट मान होगा, इसलिए यह किसी समस्या के बिना बड़ी तार का प्रतिनिधित्व कर सकता है।

perl - How can I integrate Moose into Komodo? -

My favorite Pearl IDE on OS X and XP I recently started coding using new projects is. Has anyone found a way to teach the comodo how to "identify" the characteristic and methodology of the mousse? I like watching Como's Moose Support in "Code Browser / Code Explorer". I'm looking for support forum for activation, which is the language of Komodo's own composition , Called , is used to describe syntax highlighting and other rules for codeod support for "user-defined" programming languages. / P> There is also a ludite ... and some "compile and installation" instructions I think the question is now: Has worked for a Moose-UDL / Luddite extension?

c++11 - Determine compile-time existence of include files in C++ -

I am trying to write some portable C ++ library codes which will initially depend on Boost. Regions, and then TR1 support compilers, and eventually things for the C ++ 0x specification are transferred from std :: tr1 namespace to STD. Here are some pseudo codes that I have to do with the preprocessor: if (exists (regex)) // Check whether I am #include & lt; Regex & gt; {#include & lt; Regex & gt; // per TR1 if (is_namespace (std :: tr1)) // Are we on TR1 or C ++ 0x? Using {Std :: tr1 :: regex; } Else {std :: regex; }} And // {# include & lt; Boost / regex.hpp & gt; Boost :: using regex; } Valid, that everyone should be in the preprocessor instructions, but if I knew how to complete it that I would not be asking here. You can not do this without the relation of a third party before Preprocessing generally, things like autoconf can be used to complete it with the #define instructions Another header works by generating a file that shows the e...

c# - Http session issue -

I met the strange session issue. I have developed a web site that uses the session to track user specific information to determine if a particular user is allowed to access a portion of the web site. I am using VSTS 2008 + .NET 3.5 + C # to develop ASP.NET web site. In my design, when I sign in, if no session ID is available, then users will be asked to input their username and password (if pass passwords check, available session ID given Will go); If session ID is available, it means that the user's site management is permitted and authenticated, then all the functions of the site manager are accessed by the user - that is, all login users have permission to use Site Manager. The problem is such a problem, I'm using a new IE window because I have not signed in earlier, and I use my credentials Then I enter (IE not closed) to enter the address bar of the same IE window, Google apprears, to enter Paste address in the same IE window, I wonder if I'm not asking ...

tsql - Why is ROW_NUMBER() not recognized in SQL Server 2008? -

क्यों ROW_NUMBER () एसक्यूएल सर्वर 2008 में फ़ंक्शन नाम के रूप में मान्यता प्राप्त नहीं है? मैं कोशिश करता हूं SELECT ROW_NUMBER () AS पंक्ति, मेन जीओ से Lname और मुझे यह त्रुटि मिलती है: संदेश 195, स्तर 15, राज्य 10, पंक्ति 1 'ROW_NUMBER' एक मान्यताप्राप्त फ़ंक्शन नाम नहीं है। आप गलत सिंटैक्स का उपयोग करते हुए दिखाई देते हैं। यहां एडवर्ड्स वर्क्स डेटाबेस का उपयोग करने वाला एक उदाहरण है। चुनें (नाम से आदेश) ओवर, पंक्ति चुनें, मानव संसाधनों का नाम। विभाग

sql - Trying out PostgreSQL/Postgres ( I'm a common MySQL User ) - recommend any references, any gotchas? -

I'm not really looking for the original SQL Guide, but only for a few specific postgresql. And I run my own server so that the latest version (8.2 I believe?) Is not a problem. Important Things: If you can (as You are starting, and owning a server - you can) Use the latest release version (at this time 8.4) Make sure the autocavacum is running in postgresql.conf If you have problems - The fastest way to get help is usually the IRC network to join # postgresql on freenode.net and ask there There are some things Not that in MySQL, and PostgreSQL (no change for example) - usually if it is nothing in PostgreSQL good reason and / or action. Try to use the psql client You can feel better with PGDmin / PPPDDAM, but actually helping in finding psql while searching for help (especially on IRC). You may want to subscribe to one of the 2 postgrasskal planets (why not ask 2 of them :)): In subscribing to postgreski related lists too May be help - You can find their li...

locking - How do I do an exclusive checkout in SVN? -

I'm exploring a way to create a specific checkout from SVN. Is there a way to automatically lock a file when it is being checked out? If a user performs a unique checkout, and then another user checkouts in the same file, how can I generate some type of notification or other user How can I create an instant message? File Thank you, Oeded If I understand your follow up posts, then I think that you really want to be sure That locks about people address I'm imagining a case where user A and B have already tested a JPEG user A now lock it , And you want to make sure that the user knows b so that he can do jpg editing and time and Wasted efforts If this is correct, then I recommend two things: First and foremost communication (not very technical, but very powerful when used continuously); Second, you can take a look at the svn for post-lock repository hook. Post Lock goes after the hook: One or more routes are locked. This is usually used to send...

javascript - Why is mouseleave triggering -

I am trying to develop my own accordion / sliding menu. (As a side question, are any good people who can easily be adapted / skinned?) I feel that when I "internal" since it is "internal", my The mouse definitely did not leave #mainnav . My test page without that annoying test warning $ ("#manNew"). Mouseleave (function () {warning ("mouseleave # manneave");}); More complete sources: $ (function () {$ ("# mainnav> li & gt; ; A "). Hover (mouseover); $ (" #manNew "). Mouseleave (function () {alert (" mouselev = MANENV ");}}}}); Function mouse over () {$ (this) .next ("ul"). SlideDown ("sharp", function () {$ ("li: is (a)> one", this). Hover (mouseover);}); } #mainnav, #mainnav ul {list-style: none; Padding: 0; Margin: 0; Background: #bbb; } #mainnav ul {display: none; Margin: 5px 10px; } #mainnav a {display: block; Padding: 5px 10px; Margin: 2px 0; Backg...

PHP: Equivalent of include using eval -

यदि कोड एक जैसा है, तो इसमें अंतर है: शामिल करें 'बाहरी.php'; और eval ('? & Gt;। File_get_contents (' external.php ')।' & Lt;? Php '); क्या अंतर है? क्या किसी को पता है? मुझे पता है कि दोनों अलग हैं क्योंकि शामिल ठीक काम करता है और eval एक त्रुटि देता है जब मैं मूल रूप से सवाल पूछा, मुझे यकीन नहीं था कि क्या यह सभी कोड पर त्रुटि है या सिर्फ मेरा (और क्योंकि कोड eval ed था, यह पता लगाना बहुत मुश्किल था कि त्रुटि क्या है मतलब)। हालांकि, जवाब की खोज करने के बाद, यह पता चला है कि आपको त्रुटि मिलती है या नहीं, कोड पर external.php पर निर्भर नहीं होती है, लेकिन यह आपके php सेटिंग्स पर निर्भर करता है ( short_open_tag कुछ और शोध के बाद मुझे पता चला कि खुद क्या गलत था समस्या यह है कि & lt;? Php एक "शॉर्ट ओपनिंग टैग" है और ऐसा केवल तभी होता है जब short_open_tag को 1 पर सेट किया जाता है (php.ini या कुछ में) एक ही प्रभाव के लिए) सही पूर्ण टैग ? Php है, जिसमें दूसरी पी के बाद एक स्थान है। इस तरह के शामिल क...

c# 2.0 - Cannot Transfer request to Desired ASP.NET Error Page -

In the Page_load () section, I have valid inputs & amp; If they are invalid, then I transfer the request on a custom error page. While doing this, ThreadAbortaxation is thrown away which is caught by my catch block but asp.net has moved the request of the unknown exception page. What am I doing wrong? When I move the error to the error page, I do not want to have a thread appointment. I Example: Secure Zero Page_load (Object Sender, EventArgues E) {Try (if string.isnorOtherActivity (szProductName) ) {// Product name has not been given. Therefore slang process further. Server.Transfer (Constants.ERROR_WRONG_INPUTS_ASPX); } Else {// do something .....}} hold (exception ex) {}} As an alternative solution, I now use it: feedback. Redirect (static. ERROR_WRONG_INPUTS_ASPX, incorrect); Instead of the server. Transfers i. E. I allow the process to continue in the background which is required, I check for validity & amp; So execute the remaining code only. My proble...

subsonic3 - Why am I getting arbirary exceptions when using Subsonic 3 -

I have a few questions about subsonic 3: Does anyone have it Have used in projects? Why do I get primary key exceptions when I reach the tables? Why are I getting the arbitrary reference reference exception when using the subsonic? If you are not using the primary key, then the ActiveRecord template is not going I work for you. Not a bug - It's kind of complaining that your car does not drive in the sideways. This feature is not on the list.

c - char array vs. char pointer -

While retrieving data through a socket, I have found that: four buffers [4] ]; Memeset (buffer, 0, 4); Recv (socket, buffer, 4, 0); I got mesgx "mesg" I added, with some random characters added. If I use char * method = (char *) malloc (4); Memeset (buffer, 0, 4); Recv (socket, buffer, 4, 0); Instead, I get mesg , so there is no random thing related to my string. I came to know that if I use four [5] instead it works well, but I really do not understand why malloc (4) actually allocates 5 bytes, the fifth one NUL? call maulok (4) actually divides only four bytes The only coincidence was that the next byte became a NULL in memory, which shut down your string for you. In the situation where you allocated four buffers [4] on the stack, the next byte was in the form of a 'x' some other stuff Afterwards, your string still continues until it found the next NUL byte The socket function only works with the bytes, and do not consider th...