Posts

Showing posts from June, 2012

design time - Can the Visual Studio properties editor reference a property to component in another form (or class)? -

Being a Delphi developer is going on .net I TDataModule & However, to be available TForm, I can not find a way to form a reference to another component from another component on another form (or component) class on a form. I understand the technical difference under this issue. Delphi Component architecture is based on component-streaming (resource serialization), but .NET form is actually a code generator. If this is not possible; I wonder, generally, do UI designers have common ingredients in one place? Is it always to be implemented in code? A little more specific for what I am trying to accomplish; I am using DevExpress XtraGrid for more than one example of the grid in the context of the usual "ExternalRepository" how can the grid in different forms refer to an example similar to ExternalRepository? Establishing this property through code is completely eliminating grid design time capabilities. Is there any tricks here? Answers DevExpress Forum Answere

c++ - COM automation using tlb file -

Please refer to the newbie for windows environment and com programming. I have to automate an application (aka) access. The daughter exposes himself as a com server and provides the CANoe.h, CANoe_i.c, and the CANoe.tlb file. To reach the object, no one can specify the C ++ client to write. Also, please specify how to use the code contained in the TLB file from C ++. Import the type libraries into your C ++ project in Visual Studio and use the defined objects as Too many built in support. For example, you can use the #import directive: #import "CANoe.tlb" this It will import type of library, and converts it to headers to files and implementation files - this will also implement the implementation files due to the implementation of your project and the header files to be included, so it's a lot of magic The stuff is fine. After that, you type many types for smart pointer rappers for types and objects that are defined in the type libraries. For exampl

iphone - Not able to compare range.length to an integer -

I am developing an app on iPhone I use a NSRange object in my code I am here. If (range.length == 0) {something} When I print the value of the range.lumber on the console, it writes 0. This means that my condition condition is valid. But it does not ever enter the loop to do something. Any clue what I am doing wrong? Thanks AJ NSRanguage is a defined structure that: / P> Type-Apex structure _NSRange {NSUIN location; Length of NSUINTER; } NSRange; If (myRange.length == 0) is not true, then the length of your range is not the comparison is correct, your Find out more about the problem using Debugger to see what's really going on and when.

encoding - What causes my XML to break? -

मेरे पास निम्न XML कोड है। & lt; firstname & gt; & Lt; डिफ़ॉल्ट लंबाई = "6" & gt; ओर्विन & lt; / default & gt; & LT; लघु & gt; Örwin & lt; / लघु & gt; & LT; कम & gt; Örwin & lt; / कम & gt; & LT; कम से कम & gt;। & Lt; / कम से कम & gt; & Lt; / firstname & gt; क्यों "कम से कम" नोड ब्रेक की सामग्री है? यह थकाऊ के बजाय एक सरल "ओ" होना चाहिए। एक्सएमएल यूटीएफ -8 एन्कोडेड है और उस नोड के आउटपुट को प्रोसेस करने वाला फ़ंक्शन "लघु" और "कम" की सामग्री लिखता है जहां "ओ" स्पष्ट रूप से दिखाई दे रहा है। मेरा अनुमान है कि XML नहीं है ठीक से यूटीएफ -8 एन्कोडेड कृपया कच्चे फ़ाइल में & lt; shortest & gt; तत्व के भीतर बाइट को दिखाएं ... मुझे संदेह है कि आप पाएंगे कि वे वैध रूप से एन्कोडेड वर्ण नहीं हैं। यदि आप एक छोटा लेकिन पूर्ण प्रोग्राम दिखा सकते हैं जो इस XML को वैध इनपुट से उत्पन्न करता है, तो यह बहुत उपयोगी होगा। (अधिमानतः यह कह रहा

sql - MySQL select into outfile /tmp no output -

I can not find the following code to generate any output MySQL user "All" grant level, writeable / tmp , The query returns a result set. mysql> Test_table WHERE condition = Select 'test' from field - & gt; Output '/tmp/test.csv' - & gt; Inherent field ',' - & gt; OK, affected by 1 line (0.00 seconds) mysql & gt; [1] + mysql has been stopped [Root @ web 1 ~] # cat /tmp/test.csv cat: '' - & gt; '/tmp/test.csv' is not a file or directory ending with LINES Do I see a different output from MySQL in case of failure? Can I confirm more than the result "1 row affected"? The files generated by the Outfile Clause are created on the MySQL server host. Please make sure that you are considering the mysql server host, because it appears that you are on a client host that probably does not host mysql server. Look at the About About Outfile section for documentation. / P>

.net - What are the main advantages of switching to DLR for my scripting language? -

I have written a DSL using Anther to generate a laser and parser from my grammar file. Parser generates an abstract syntax tree that contains various nodes (eg function nodes) which I can calculate. In the code of the function nodes, I take into account the compulsive-function names and parameter types to match the function's library. I have some simple caching here to optimize the function (if I call A + B with two ATT then next time I have a strong chance of using plus operator, it will be with 2 ints). Recently I am reading about DLRR and it seems that this type of scripting language is designed to be included in the implementation. In the first blush it does not look like it does for me as it generates parser or laser, but it seems that it helps in other parts of the implementation. I was wondering what would be the main benefit of switching to using DLR. If you apply careful binding, DLR will give you a very powerful caching system - maybe you The more optical optim

Using a global (dumb) error page for all ASP.NET MVC errors? -

I have set up and configured ELMAH to log all my errors on an ASP.NET MVC project. . It will be used by a small group of users who do not need to know too much, whenever any type error (404, invalidity, Y2K ... anything!) I Just want to show a general default error view with our helpdesk to call and tighten instructions. ELMAH is up and running, I have posted to make sure that our Helpdesk staff is in receipt of my global error page to diagnose errors and to show log / my problem as needed. I am using the solution that ELMAH and [HandleError] play well together. Web.config is set to: & lt; CustomErrors mode = "on" /> If I am using a LINQ error (no element in the sequence), then I have shown my good, normal error view from / shared / Error.aspx, but If I try to reach those 404 then I get a normal ASP.Net Server error in the '/' application was not found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could b

c# - How can I create a subdomain in asp.net? -

How do I create a subdomain in an asp.net c # application? I am working with an ASP.NET portal that portal should be able to create subdomains on runtime. For that subdomain, the feet should also be the same as the main domain. There are some handfuls here part of the work portions. It seems like the requirement that these are all on runtime, I am sure many web hosting providers are deep in these sets of problems and are probably the custom solutions. DNS : You will need to open an API on DNS host. If this is a LAN environment, then you have to check your DNS provider whether they have an API exposed. (I.e. Windows Server or whatever your network operating system is) If this is a public facing site that needs access to the internet, you will need to get those APIs from the DNS registrar. Are subdomains permanent? IIS : You have to set up wildcard mapping, (i.e. * .mydomain.net). When an HTTP request arrives, logic within the ASP.Net page can determine the subdomain you a

unit testing - How should I Test a Genetic Algorithm -

I have created quite a few genetic algorithms; They work (they quickly find a suitable solution) but now I have come to know what is a way of writing TDD method one (which relies heavily on random numbers)? To more generally put questions, how do you test a non-deterministic method / function. Here's what I thought: Use a specific seed. If I make a mistake in code in the first place but help in finding bugs during refactoring, then I do not get help. Use the known list of numbers as above, but I could follow the code by hand (which would be very tedious). Use a constant number at least I know what to expect. It would be good to ensure that a dice always reads 6 when randomflot (0,1) always returns 1. Try to exclude the maximum non-determinative code as possible, GA, which seems silly because its purpose is root. Very good books links will also be appreciated on the test. I think the only way to test continuous logic is Correct input , ... or each

Objective C creating custom arrays -

In other languages, I can create a square, then use this which is used in the price of the class such as the square To define the prices of a price [] in a display class to make the chain of ;? In Objective-C, I can not do this work, how do you do it? Price class is the inheritor of NSObject, can I use NSMutableArray? You have a square value, and it then inherits you from NSObject, then an array of them is an NSArray Or NSMutableArray. You can also store them in a single array, or an STL vector, though memorymanagement sematics may be difficult in those cases. In the case of NSArray / NSMutableArray, a proprietary reference on the array takes the object, you can continue it after adding it to the array, and it will remain in memory until this array (and all other locations On) Code may take:. NSMutableArray * a = [NSMutableArray array]; [An add object: [price price]]; // and / or [an add object: [[[value aloch] int] autores]; // and / or value * p = [[value aloch]

sql server - sql composite key with identity -

Is it possible to make a composite key in SQL 2000 as such: event_id id2 ADF & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1 ADF & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 2 ADF & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 3 Cfg & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1 Cfg & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 2 & nbsp; Edf & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1 / where id2 restarts count on every change of event_id I need

Installer question: "Program Files" or "Program Files (x86)"? -

I am installing a .NET (C #) application which is 100% managed code. The installer (InnoSetup) always wants to install the "x64 x64" program in Vista x64, which I believe because the installer itself is only 32 bit (Please correct me if I am wrong) These are my questions: < Ol> Does being in the x86 folder affect my application in all the way back and forth, which I do not know about? I agree that my application will still be run as a perfect x64 application, even though it is in the x86 folder, is this correct? Will the installer put the application in the "Program Files" folder? Thank you! Probably not in that (x86) folder due to this in older applications It is easy to find (if necessary) because they give it reference of the environmental variable. Yes, unless your EXE is marked as "any CPU", it should be compiled as 64 bits. It would be obvious that this is 64 bits.

ssl certificate - SSL cert for billing module -

I am writing a billing module for startup, I am working on it. This is my first time buying SSL certificates I only need a certificate for a domain do I need all? I plan to get an authorize.net compatible merchant account and did not know if they would need a deluxe or premium certificate? I am pushing this business forward, so I am trying to do this on cheaper. For some reasons, various certificates sold through attractive business of certification authorities take different price tags. Thank you If you can accept your clients that the self-signed certificate is actually So, the most noticeable CA has given the "assurance" to the customers coming to your web site. However, users want more than that. The GoDaddy standard certificate provides domain verification is recognized by the GoDaddy browser, and will tell your client that yes, we have issued this certificate, and if you use the same certificate If you see the website, then there will be an error in verif

jquery livequery not fixing autosuggest? -

I have an automatic suggestion feature enabled in the search products section of the Order Item section: Here's the problem, when I add new search product areas (green button under order item title), auto suggest plugin is not working in new areas. I read some articles, I thought automatic suggestions would fix this problem, but not fixing. Any ideas why? Auto-suggestions: $ ("# PRODUCTNAME"). Autocomplete ("orders.cs.asp? Process = list product", {select first: incorrect}); $ ("# PRODUCTNAME") Results (Tasks (Events, Data, Formatted) {if (Data) $ ("# PRICE"). Html (Data [1]); $ ("# ID") .HTML [2]); $ ("# UNITPRICE") Html (data [1]); $ ("# PRODUCTID") Html (data [2]);}); Adding new fields $ ('# addProduct'). Livequery ('click', function (event) {$ ('# OrderProducts') .append (' & lt; div class = "column width 50"> input type = "hidden" id =

php - XSL:T Benchmarking -

आप निम्न XSL: T प्रक्रिया को बेंचमार्किंग कैसे करेंगे? परीक्षण पर्यावरण: एक लिनक्स सर्वर एपाचे, पीएचपी, और आईएसएसएल चल रहा है जो कि हमारे नेटवर्क के पीछे ही दिखता है: (यह बाहरी रूप से नहीं है, इसलिए इसे दूर तक पहुंचा नहीं जा सकता है)। नोट: मैंने एबी (अपाचे बेंचमार्क) का उपयोग करने पर विचार किया है, लेकिन मैं लिनक्स वातावरण में उपलब्ध किसी भी चीज के लिए खुला हूं। यहां एक उदाहरण है: पीएचपी स्रोतों से डेटा में खींचती है, एक्सएमएल बनाता है, जो एक एक्सएसएल: टी के माध्यम से भेजता है, जो एक्सएचटीएमएल का उत्पादन करता है। I प्रोसेसर और मेमोरी उपयोग की तुलना में रुचि रखते हैं: php सीधे एक ही एक्सएचटीएमटी उत्पन्न करता है। एक एकल php-> xml-> xsl: t-> xhtml अनुवाद। / Li> समवर्ती अनुवाद जैसे php-> xml-> xsl: t-> xml-> xsl: t-> xhtml मैं भी बेंचमार्क ऑप्लोड कैशिंग, आउटपुट संप्रेषण , और शायद कुछ पीपी एक्सेलेरेटर्स, इसलिए आप जिस विधियों का प्रयोग करेंगे, इन मामलों को भी अच्छी तरह से संभालना पर्याप्त लचीला होना चाहिए। मुझे भी इसी तरह के किसी भी ज्ञात ब

asp.net - Convert/Export C# datalist control/(html page) as a pdf -

I want to create a button option that takes the whole dentist and converts it into a PDF file. As someone has done in asp.net? Please you can show an example or direct me, thank God speed You can try to develop your solution by using a very simple PDF library for .net

html - Possible to fill a table cell with a bg color? -

I have a table cell which is not completely filled with text, so BG color does not cover the entire cell. I still want to have a full table cell filled with the same color without using a background color on the whole table. Is it possible to fill the entire color without using the background color in full color? You can & lt; Td> You can assign a class to the element and then assign a BG color by using the CSS background-color property for that category.

ASP.NET Health Monitoring configuration, valid values for the "eventName" attribute -

What are the valid values ​​for eventName attribute when configuring health monitoring? & lt; System.web & gt; ... & lt; Health Monitoring Enabled = "True" Heartbeat = "0" & ​​gt; & Lt; Providers & gt; & Lt; Name = "exampleMailWebEventProvider" type = "System.Web.Management.SimpleMailWebEventProvider" = "error@example.com" = "email@example.com" buffer = "wrong" topic permit = "[exception]" /> & Lt; / Providers & gt; & Lt; Rules & gt; & Lt; Name add = "Testing Mail Event Provider" eventName = "All Event" Provider = "Example Mailware Break" Profile = "Default" minInstances = "1" maxLimit = "infinite" minInterval = "00:01:00" custom = "" /> & Lt; / Rules & gt; & Lt; / HealthMonitoring & gt; My Google-fu (and MSDN) have failed me, and I did not get a l

regex - Replace multiple instances in a string in perl -

I have a case of the following use, the input exists in the file: Line1: A.A. BC CC DDE I with this 1 2 3 4 5 Output line 1: 1 2 3 4 5 In a regular expression in Perl, I can do this I was trying it But there was countless my @ arr1 = ("AA", "BB", "CC", "DD", "EE"); Open f2, $ file; My $ count = 0; While (& lt; F2 & gt;) {my $ str = $ _; $ Str = ~ s / $ arr [$ count] / $ count + 1 / g; Print to File} Close (F2); This does not do any idea If I right By way of thinking, you want to change each word with each number (increment from 1 after each word). Here's the program with trial: #! Use / usr / bin / perl strict; Use warnings; Test :: Use more qw (no_plan); Instead of sub {my $ str = shift; My $ count = 1; $ Str = ~ s / \ w + / $ count ++ / ge; Return $ str; } (Replacement ('aa aa dd ee'), '1 2 3 4'); (Substitution ('ABCDE'), '1 2 3 4 5');

flash - is there any way to acess swf embeded in html page from air application? [my air application loads the html page via html loader] -

Is there no way to get FIP ​​to be embedded in HPL with an AC application? [My air application loads html page via html loader] have you written swf ? You will use Flash.external.ExternalInterface to communicate with swf via javascript.

python - Splitting a string @ once using different seps -

datetime = '0000-00-00 00: 00: 00'.split (' - ') अभी यह सिर्फ हाफ़ेन पर विभाजन करता है, लेकिन क्या इस स्ट्रिंग को दोनों -'एस और '' में विभाजित करना संभव है? वर्ष, महीनों, दिन = the_string.split ('-') = "पाठ" ) दिन, समय = दिन.split ('') समय = समय.split (':') या यह, जो आपके डेटा को बेहतर फिट बैठता है। < कोड> दिनांक, समय = the_string.split ('') साल, महीनों, दिनों = तिथि। स्रोत ('-') घंटे, मिनट, सेकंड = समय.split (":") < / div>

tsql - MS SQL server casting without exception -

Is there any "convert" function in MS SQL server that allows to type the type securely (throwing exceptions Without) I want something like "tryParsse" in C #Lang, but as the SQL statement. More detailed, I need to leave zero or some other of the following statement, but throw exceptions. Select P> P> This will make non-numerics default to 0 and no other statement will be required: Select when ISGLEERIC (myvarcharcolumn) = 1 then convert (float, replace ( The REPLACE () function call is used to convert a comma to a period. In some cultures, the decimal separator (e.g., instead of "1.25" "1,25"), but when That your server does not set any one of these as the default culture, will return ISLDERIC (1), but convert it to an error; does mean that your Strings should not use commas as thousands of isolation, but in most cases, a comma for a decimal placeholder is more likely to be a decimal placeholder. LTRIM (RTRIM ())

asp.net mvc - exceptions to trace.axd -

I do not find useful descriptions about tracing at asp.net, so I'm asking here - how do I send an exception to the controller (or see) to trace.axd, but nothing? To trace information only in trace.axd, the web. Enable tracing in config, set pageOutput = false, and do not enable tracing on specific pages. You must use trace to send the trace info to trace. Write down when you take exception.

c# - Getting image names from DLL as a List? -

I created a DLL to encode my images and after that I get the image name from DLL as a list Want to Before posting this post, I went about it and I saw an example below. Public Stable List & lt; String & gt; GetImageList () {List & lt; String & gt; ImageList; system. reflection. Assembly BOAUIRSources = System.Reflection.Assembly.GetExecutingAssembly (); String [] resource = BOAUIRSources.GetManifestResourceNames (); Return Resources List & lt; String & gt; (); } This code is accessing just the image names that the action property is created Because of the "embedded resource" access to WPF, the creation of my images is the type of "resource" Should be defined as. How can I list the image names, which is defined as the formation of the work resource, from the DLL? Try it (taken from book - Chris Saras, Programming WPF by Ian Griffith) public static list & lt; String & gt; GetImageList () {System.Reflection.Assembly as

firefox - XUL - textbox problem -

I am writing a Firefox extension when a user highlights and clicks on the selected text on a webpage, the extension Captures text and displays it in a text box (axle window). The textbox shows the correct presentation (such as line breaks, spaces, * li tags). But the problem occurs when I try to store the text box value in a variable. Line breaks have gone. var selText = document.getElementById ("txtboxSelectedText"). value; // Can anyone help? Thank you very much. Is this a real textbox or rich text editor such as TinyEye or OpenYissivig? In a real textbox, there are linebacks in Rich Text Editors, they are actually IFrame with HTML content ... which looks like a line break, actually a & lt; Br / & gt; tag For this reason I suspect that you can not get the li tag (and their respective bullet points) in the normal textbox

Display same file successive pages on Emacs split screen -

I did before, years ago, so I know that the answer is from there. However, Google Space Names are highly polluted due to location collisions, especially new user guides. This is what I want to do in Amax 21: Split the screen on the given screen File buffer (CX3). As I get the page through the first screen (CV), the next page of the file is automatically displayed on the second. To be clear, the next line on the left screen should be the first row on the right screen after the last line on the right screen. Any help? you scroll -all-mode scroll -All-mode wants interactive compiled lisp function in `scroll-all.l`. (Scroll-all-mode and optional AGG) toggle scroll-all minor modes Scroll with ARG - otherwise if the office is positive, then turn on all the modest modes. When scroll-mode is on, scrolling commands entered in a window are applied to all visible windows in the same frame Set windows properly, and then Scroll-all-mode , and scroll all the windows at once

Linq to sql truncating string returned by Stored Procedure -

I have asked this question before but I have no answers. Maybe I was not very clear, give me some more details. I have an SP that gives a long string here is the DBML file code [function (name = "dbo.spX")] Public IsingleResult & lt; SpXResult & gt; SpX ([parameter (dbtv = "ver variable (8000)") string straight) {IExecuteResult result = this.ExecuteMethodCall (this, (MethodInfo) (MethodInfo.GetCurrentMethod ()), str); Return ((IslingleSalt & lt; spXResult & gt;) (returning result.)); } and spXResult class here public partial square spXResult {private string _XML_F52E2B61_18A1_11d1_B105_00805F49916B; PublicSpexResult () {} [column (name = "[XML_F52E2B61-18A1-11d1-B105-00805F49916B]", storage = "_Xml_F52E2B61_18A1_11d1_B105_00805F49916B", dbiped = "newtext", update check = updatecack never)] public string XML_F52E2B61_18A1_11d1_B105_00805F49916B {Return it. _XML_F52E2B61_18A1_11d1_B105_00805F49916B; } Set {i

WPF ExceptionValidationRule not showing in the Validation.Errors Collection -

I'm throwing an ApplicationException if the FirstName value is empty or empty and I'm trying to display the error message in the text block The error is a part of the theme but it always shows "Exception has been put on the target's call" public string first name {set {back _firstName;} {set (if String.ISNLORITTE (Value) new application exhaustion Es ( "Frstnem can not be null or empty!"); _firstName = value; OnPropertyChanged ("First"); }} & Lt; Style x: key = "text box style" target type = "text box" & gt; & Lt; Setter Property = "Validation. Error Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate & gt; & Lt; Dockpanel Last Childfill = "True" & gt; & Lt; TextBlock DockPanel.Dock = "Right" Foreground = "Orange" FontSize = "12pt" Text = "{Binding element name = MyAdorner, path = AdornedElement. (Validation.E

c# - How can I invoke a WCF operation without HTTP container? -

I have an environment in which I can not add another HT container (whether service host, IIS, etc.), but I It still requires a process SOAP request (displayed as a string) with a WCF web service I was hoping to write a simple wrapping method (C #) such as: string processing smsmessage (String rick); In that method, I will create a system manually. ServiceModel.Channel. An XML reader with the message example that is running on the input string. I was hoping to avoid writing a manual dispatcher by creating a Channel Dispatch which resulted in the Message Instance was processed, but it seems that Channel Dispatches are connected to a special service host, I do not have anything in my environment if I Open ports are required. Is there some dispatching code that I can call to complete it without a hosting container? Think everything is happening on the same machine, then using binding is probably your most Good bet.

perl - In XS, how do I get a variables address from its name? -

In XS, how do I change a string that holds a variable name in its name, I want to do something like the following Perl code: our $ var = 1; Print $ {$ Main: {var}}; In this, it says: If you know the name of a scalar variable, you can get an indicator in your SV using the following: SV * get_sv ("package :: varname", FALSE);

.net - What's the difference between an SQL transaction at the stored procedure level and one at the SqlConnection level? -

कहें कि MSSQL सर्वर पर एक संग्रहीत कार्यविधि एक BEGIN हस्तांतरण / कॉममिट ट्रांस्ज़ाक्शन का उपयोग करते हुए एसक्यूएल लेनदेन का उपयोग करता है, कैसे क्या यह शुरुआत और एक से ADO.NET का उपयोग करके SqlConnection.BeginTransaction () ? एडीओ। नेट के लिए, इसमें कोई अंतर नहीं है यह एमएसडीएन में परस्पर रूप से कहा गया है, जहां एसक्यूएल ट्रांन्सैक्शन ऑब्जेक्ट के लिए कमेट विधि को "विफल होने पर कहा जाता है यदि लेनदेन पहले से ही सर्वर पर वापस लाया गया है।" इसके अलावा, एसक्यूएल सर्वर प्रोफाइलर "एसईटी ट्रांसलेशन इंस्ट्रक्शन लेवल रीड कमिटेड ; BEGIN TRAN "जैसे ही आप निष्पादित करते हैं। कनेक्शन पर पहले से व्यवहार। एडीओ (नहीं .नेट) के लिए, हालांकि, यह नहीं है। वह अच्छे परिदृश्यों के साथ प्रभावी रूप से, नेस्टेड लेनदेन (क्लाइंट के अंदर सर्वर ट्रांस्ड नेस्टेड) ​​के लिए इस्तेमाल किया जाता था। इसके बावजूद कि मैंने बहुत कुछ इस्तेमाल किया है, मैं इस बात को परिभाषित नहीं कर सकता कि उस मामले में "ग्राहक लेनदेन" क्या था।

ASP.Net on Linux -

I want to use asp.net on Linux due to licensing problems and costs. Can you compare its performance? We have coded some asp net applications and have worked well on the Windows server, can we move to Linux + Apache + Mon without any change? Framework version 2.0 You may be interested in this question: < P> More frequently asked questions on Mono on ASP.NET:

php - document object confusion -

में file1.php , मैं file2.php को < / P> & lt; फ़ॉर्म क्रिया = "file2.php" विधि = "पोस्ट" & gt; फ़ाइल 2 में, मैं file1 से HTML तत्वों तक पहुंचना चाहता हूं, लेकिन उनके दस्तावेज़ ऑब्जेक्ट अलग हैं। मैं file1 के तत्वों को file2 से कैसे प्राप्त कर सकता हूं? ठीक है बल्कि जावास्क्रिप्ट का उपयोग करके आप PHP के फ़ंक्शन के माध्यम से जिस चीज़ की ज़रूरत है उसे एक्सेस कर सकते हैं ताकि आपके पास तत्व नाम और पासवर्ड हो इनके साथ इन तक पहुंच सकता है: $ _ POST ['नाम']; $ _POST [ 'पासवर्ड']; तो file2.php के लिए ऐसा कुछ: & lt;? Php if (array_key_exists ('submit', $ _POST)) {$ username = $ _POST [ 'नाम']; $ पासवर्ड = $ _POST ['पासवर्ड']; गूंज ("हैलो $ उपयोगकर्ता नाम, आपका पासवर्ड $ पासवर्ड है"); }? & Gt; यह file1.php की धारणा पर दिखता है: & lt; form action = "file2.php" method = "post" & gt; उपयोगकर्ता नाम: & lt; इनपुट प्रकार = "टेक्स्ट" नाम = &q

sql - Prevent users from creating Schedules for jobs -

I have to restrict development users from creating new programs for SQL Agent jobs. They should be able to create a job and choose one of the available programs, but should not be able to create a new schedule. I have a bunch of developers who create SSIS packages, which need to schedule business hours. I am now faced with doing this, or someone should risk the possibility of determining a major task during my tenure and slowing the DEV server. Is this possible? You also welcome an alternate solution. Thanks, Raj I have just found a way out. at spny_schedule & lt; USER & gt; Is there any other complexity? Raj

ruby on rails - Is it possible to build a web-based chat client without a socket-based framework? -

I've heard that web-based chat clients use networking frameworks such as twisted framework . But would it be possible to build a web-based chat client without the networking framework - using the AJAX only connection? I want to create a session-based one-to-one web chat client that ends the session, to indicate that when the chat is finished. Can only Ajax be used in the railways and without networking structure? What is the effect of using a networking framework and what effect does it have on my app? Apart from this, any general recommendation for this project will be appreciated. If I understand you correctly, then you want customers to be connected to the server. And through the server, AJAX has to send each other a message to each other. It is possible, there are two approaches to doing this. The easiest way is that the customer chooses every few seconds to check for new messages posted in every second. The return is that the messages are not delivered imme

.net - Are there advantages to dividing application databases by usage pattern? -

I am working on an application that has two different audiences and as such there are two different types of data. On the side there is too much read / under-written meta data. In these tables, a relatively low line will be counted and most of the applications will be read on the other side. On the other side of the application is very close to high-writing / low-read behavioral data. There will be a lot of velocity on many figures and inserts here. This part of the application will read some data from Meta, but nothing will be written back on that side. There will be no need to have an RI between these two buckets of tables. My question is this: Does it make sense to create two different types of different types of these different types? Information? What are the advantages and disadvantages of both methods? If it matters, then it is built using SQL Server 2008 Back-End. I recommend taking the time to ensure that the design is in such a separation in future Do not int

dom - How can jQuery show different items based on a variable -

I want to create a navigation bar that CNA is used on every page is the same style in most NAV items, though There is a partial difference in NAV items related to the current page. I want to be able to read a meta tag and use jQuery to display the correct style. I have pasted my code below - it does not seem to work: & lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Meta name = "page-name" content = "about" /> & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; Link href = "frame_styles.css" rel = "stylesheet" type = "text / css" /> & Lt; Script type = "text /

Is there a database like this? -

Background: OK, so I guess what I think is an object database though , (Obviously some) object databases I've seen are simple persistence layers, and not fully developed DBMSs. I do not know what I am looking for, even an object database is also considered, so in order to point me in the right direction, really any help would be greatly appreciated. I do not want to describe what I see to describe two pages, so I will clarify my point using an example. Let's say I have a "blog post" object that I have to store. Something similar, in pseudocode: class blogpost title: string body: string author: user tags: list & lt; String & gt; Note: From the list & lt; Comment & gt; (Assume that comment has its own orbit.) Now, in a relational database, author one User.id , and tags and comments Using a different table to store many or many relationships-what I want for many relationships is a database engine that does the following: Store

Creating container usercontrol with design time support in WPF? -

Do I want to create a container usercontrol in WPF with design time support? How can i do If you want a container user control with design time support, then you have other content inside the content control Create content controls to host user controls. You can highlight the content control as a public property and then assign it to any other user control created in this property to display within the content control. The time will be supported by your parents' control or design of any child's user control by default because they all have user controls.

NHibernate: Query filtering on a list of values using criteria -

I'm trying to filter by using a list of prices using the Criteria API. I suspect that this is not possible, I'm just asking for sure here. class Entity {int id {get; Set; } IiLIT & lt; Guid & gt; Guides {Get; Set; }} Mapping: & lt; Class name = "entity" & gt; & Lt; Id ... & gt; & Lt; / Id & gt; & Lt; Bag name = "Goods" table = "Entity_grids" & gt; & Lt; Major column = "entity_fk" /> & Lt; Element column = "good" /> & Lt; / Bag & gt; & Lt; / Square & gt; It is believed that I have a list of guides (in fact this is another subquery) I want to filter all the units where at least one grid is in the list of grids . The SQL looks like this: Select from Selection * and insertion entry Entity_Guids e.g. E.D. = Such as NTTK where with. Gadu in (subquiri) with benchmark API, it seems impossible. Icricetia query = session. Seat seriatia (typef

Converting VB.NET code to VBScript -

I have this snippet of VB.NET code that I want to convert to VBScript. It basically starts Microsoft Word, displays the Open Dialog and the mail merged into the selected document. Any help would be highly appreciated. dim = o.missing object = System.Reflection.Missing.Value dim oEndOfDoc object = "\\ endofdoc" object as in the form of dim oFalse = false 'Start Word and create a new document Word._Application dim oDoc Word._Document oWord = new Word.Application () oWord.Visible = true as "show box Word.Dialog = oWord.Dialogs (Word.WdWordDialog.wdDialogFileOpen) dlg as dim dlgType system As the dim, oWord dim. Type = GetType (Word.Dialog) 'dialog set property box name dlgType.InvokeMember ( "name" is not Reflection.BindingFlags.SetProperty or Reflection.BindingFlags.Public or Reflection.BindingFlags.Instance, some, dlg, New Object () {"C: \ Documents and Settings \ My Documents \ MailMerge \"}, System.Globalization.CultureInfo.InvariantCu

seo - Isapi Rewrite 301 redirect resolves as 404 - circular reference? -

I am trying to use IIS Isapi Rewrite to do the following ... I need SEO friendly URL (quietly) as converted to this kind of application friendly URL: RewriteRule ^ / seo-friendly-url / /test/index.cfm [I, L] is quite easy. But I need the pre-indexed URL (for example) to be redirected to 3rd SEO Friendly Word. Such as: Riwret rules ^ / test / index. Cfm / SEO-friendly-url / [I, R = 301] Each of these things OK in isolation but when I have my /ini-friend-url / my browser address bar in my .i file, but I'm working on 404. (Yes / test / index. CM is definitely exists!) I know it looks like a circular reference, but the first rule only writes again the URL between the IIS and Application - There is no redirect, so I do not want to re-write Isapi for the second time. Or am I wrong about this? I've enabled logging on Isapi rewrite and I see the following: Actitiffltrprkr Sf_antiaiaifaijiariarpiarsi_acaadiaraaroaroariariar New URL '/ SEO-friendly URL /

c++ - What is the difference between pointer and array in the following context? -

#include & lt; cstring & gt; Int main () {char * pName = new char [10]; चार डमी [] = "डमी"; Strcpy (पीनाम = 0, डमी); // यह कैसे से अलग है - & gt; यह स्ट्रक्पी (pName [0], डमी); // यह एक ... - & gt; त्रुटि C2664: 'strcpy': // पैरामीटर 1 // को 'चार' से 'चार *'} एक चरित्र) pName का एक शॉर्टकट है & amp; पी नाम [ 0] (आपकी सरणी के पहले तत्व के लिए एक सूचक) इसका कारण है कि आपको अपनी त्रुटि मिल रही है क्योंकि स्ट्रक्पी को एक वर्ण (चार *) के लिए एक संकेतक की उम्मीद है, और कोई मान नहीं है (जो कि पीएननाम [0] है)

php - error reporting on specific folders -

There is a way to set the error_reporting (E_ALL); Instead of specifying it for each specific directory in a specific directory? I would like to turn on error reporting for my beta. Just add this line: php_value error_reporting 6143 or for older PHP versions: php_value error_reporting 2047 Note that you can use contents (like E_ALL) From: Note: PHP PHP Constants Using, like in httpd.conf, it will not have any useful meaning, so in such cases the integer values ​​are necessary. And since the error levels will be added over time, the maximum value (for E_ALL) will change. So consider using a larger value to replace all the bit areas in place of E_ALL with a numeric value such as 2147483647 in the future.

c# - System.Net (HttpWebRequest) tracing without using files or app.config? -

I want to capture, but not all, HTTP WebRCC traffic in my application for debugging purposes by this IIS Hosted is a web service. I have read that it works very well, but I do not want to direct trace a file due to possible permissions problems, data sensitivity, etc. on the file system. I would like to capture some of the storage that I can see later or encrypt and email preferably, there will not be any changes in the app.config file. I tried the following, but obviously I'm missing a step to tie TextWriterTraceListener in SystemWind. How Can I Capture System.Net Traffic in My StringWriter? stringwriters SW = new stringwriters (); TextDrintress Listener Mary Listener = New Text Worker Tres Lisener (SH); Trace.Listeners.Add (myListener); HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.microsoft.com"); HttpWebResponse resp = (HttpWebResponse) req.GetResponse (); Stream s = resp.getResponseStream (); Byte [] buf = new byte [4096]; While (s.Rea

sql - Improving scalability of the modified preorder tree traversal algorithm -

I was thinking about algorithm for storing trees within a flat table (like SQL). I dislike about a standard property that you need to touch the nodes (average) N / 2 (everything above the left or right point of the point) to insert the node. The deployment I have seen relies on sequentially numbered values. It leaves no room for updates. It is bad for concurrency and scaling. Imagine that you have a root in the world in which there are user groups for each account in a large system, it is huge, at this point you will have to store tree subsets on different servers. To add one node to the lower part of the tree, half of all nodes are bad. Here is the idea that I was thinking. Actually leave the room for inserts and split on each level. Here is an example with N maximum = 64 (this will usually be MAX_INT of your DB) 0:64 ________. Here, a node has been added to the left half of the tree, here ________ / 1:31 32:63 / \ / 2:14 15-30 33:47 48:62 0:64 ________ | ________

diagram - When is the StoreGeneratedPattern attribute added to a property in the ssdl? (Entity Framework) -

When I create a new diagram and "database update model", the StoreGeneratedPattern attribute is added to some primary key properties Goes, but not all of them Does the designer have to decide whether to add it or not? I found out that this was because my database was not consistent It seems that any primary key The attribute in an identity column is

rotation - How can I get log4j to delete old rotating log files? -

How do I get log4j to delete old rotating log files? I know that I can set automatic jobs (cron for Unix and scheduled work for Windows), but I want to cross it on the platform, and I want to do it in the log configuration of our application instead of the different code in the OS , As part of our application. Specialized Scripting Languages ​​Our applications have not been written in OS scripting languages, and I do not want to do this part of them. The Rolling FilePacker does this require you to set maxBackupIndex to the highest value for the backup file.

VBScript: Using WScript.Shell to Execute a Command Line Program That Accesses Active Directory -

I am trying to execute a .NET (3.5) command line program from inside a VBScript file which is two main Talks: Connects to an Active Directory that is on the same domain, the script is hosted to get an attribute value as the server. I use AD command first argument that is a username. Duties have made DTO using Attribute Value and the second command line argument which is then used in the WCF service call. When I explicitly run the application, everything works, Active Directory is used, the attribute is retrieved and the WCF service is called with the correct result (As verified by looking at the database). (Edit: I apologize, too.) When I run the script, it seems that I myself Can not use Active Directory in the NET code (MyProgram app) VBScript code: objShell set objShell = WScript.CreateObject ("WScript.Shell") objResult = objShell.Run ("MyProgram" and "name" and "0" ", 1, true) Does the WScript.Shell object require

c# - Keeping track of changes I make by copying project folders -

I am making a beginning so that if I have a term for what I am doing, I do not know how to find out . If I have been asked earlier then forgive me. So what do I do here Before I make a big code change, I make a copy of the project folder and for example it says "project v6". Then if I'm actually messing up and find a way to undo it, then I just go back to the previous folder. This is working well for me, but sometimes I forget to do it and take it back in two steps. Is this an easy way to do this now? There are many source control tools, which keeps track of all this stuff, (using Wikipedia link) , Which tells each one with more detail.) Once you use them, it can be done more easily. Whatever you have done on one server in both, maybe you're your own machine). But you can store your code elsewhere (so that you do not lose everything, if your hard disk fails or something like this). This is a good example. Git - To work hard, but very powerful (more is use

Stored procedures not called in Entity framework using asp.net MVC -

I am trying to use the process mapping feature stored in the unit framework for updating and deleting functions. For whatever reason processes are not being called, they are mapped correctly, and it is believed that what I have to do is call SaveChanges (); is in my controller to execute. When using as a reference, what will I change about it? To edit the part of the controller, is it to use the stored procedure? Tutorial Code: // gET: / home / edit / edit 5 public functioning (int id) {var contact edit = (c to _entities. ContactSet where c.Id == ID select c) .FirstOrDefault (); See return (contactToEdit); } // // Post: / home / edit / 5 [accept wirbes (httpv.bbs.post)] edit public action result (contact contact) {if (! ModelState.ISIIIDID) return see (); Try {var originalContact = (c to _entities.ContactSet), select c.Id == contactToEdit.Id c) .FirstOrDefault (); _entities.ApplyPropertyChanges (basic dialogue.AntityKey.EntitySetName, contactToEdit); _entities.SaveChanges

c++ - How to take a pointer to a template function specialized on a string? -

I was trying to use a set of filter function to run the appropriate periodic, based on string input. I tried using the templates to create a function for common cases, but when I try to consolidate a particular function (in a structure, in the actual application), an indicator, I'm not "type type" Error Distributed example from a Visual C ++ 8 'console application' template & lt; Const char * C & gt; Const char * f (zero) {Return C; } Const char * (* g) (zero) = f> "Hi" & gt; Int _tmain (int argc, _TCHAR * argv []) {return g (); } this fails with error error 1 error C2440: 'start': 'const char * (__ cdecl *) not changed from It can be done (zero) on the main return value, there is an error for it, but it is not that the 'return character' The string is prohibited by the ISO standard as template-value parameter.

java - How to add greater than/less than to Hibernate filters -

How can you add more or less than the situation on the hibernate filter specified in the hbm.xml file? I am trying to add a filter to limit the collection to a specific date range: & lt; Filter name = "limitTalksByDateRange" condition = "talkstart & gt; =: tstart and talkstart Unfortunately, it breaks XML parsing, I've tried backslash-escaping, "ge" and "take" and even "middle: turrets and: stars" Which is used in Hibernation is mentioned in the document. Nobody is doing any work, and if I can get a document that specifically depicts legitimate operators in the filter situation, then I will be devastated. Have you tried: & gt; Instead of and and & amp; Gt; and & amp; Lt; Code> & lt; . In addition to this, I had observed that there was no ' : ' on the boundary variable, so it might: Or this: & lt; Filters name = "limitTalksByDateRange" condition = &qu

Dumping blob rows to files from MySQL -

I have a table with some thousand rows in it, which has some integer columns and a blank column. I want to dump each row as my file, which contains the content block and the integer being used to name the file. This session is so fast and dirty. Okay one obstacle is that I do not have any tools installed in this environment, so that I am a part of God's cost, despite what I do. Edit: I ended up using C # from another box. It only downloaded the given code in the answer given below and took about the same amount. In general discussion, using CLSQL, something similar (untested, not MySQL) ) Currently installed): (requires' clsql) (clsql-mysql is required) (clsql: connect (host db user password port): database type: mysql ) (Clsql: do-some ("col1 col2 blob") (col1, col2 blob) "blobtable to col1, col2, select blob") (with-open-file (outfile (format zero "~ a- ~ a "Col1 col2): direction: output: element-type 'byte' (write sequen

iphone - GPS application with CLCorelocation -

I am developing a GPS application in which I need to track device / iPhone speed. I'm using CLCorelocation API to locate the referral code provided by me the apple. My problem is that LocationManager does not update current latitude and longitude, so I'm unable to speed up the device / iPhone as well as calculating distance. Any kind of suggestion / code will be highly appreciated Please suggest that I can do something with the mapkit framework introduced in SDK 3.0. Check Apple. CLLocationManagerDelegate method By implementing locationManager: doneUpdateToLocation: fromLocation : You can get latitude and longitude updates from your CLLocationManager . Also, since you want to check the speed of the device, you might want to set up distanceFilter and the desired qualification your From CLLocationManager to kCLDistanceFilterNone and kCLLocationAccuracyBest respectively. If you can get a copy, then one chapter (# 1 4) is dedicated to using CoreLoca

.net - With WSS, is it possible to customize the Admin? -

I'm thinking of implementing WSS, but I need full control over the admin interface, as far as I'm feeling And navigation Is this possible? You can definitely write and do this. If you do not have much experience with SharePoint development, but ASP.net knows, I recommend reading Ted Patison and Daniel Larson. It is well written and has some great information about how to plug in the SharePoint user interface and add such functionality.

c++ - How Program Becomes a Process. How OS makes Program a process -

I wanted to know how the OS actually makes a program in the process of what steps the OS program is a process Attached to create. I mean how a program is created in a process, a program has been added to the ORL kernel data streak before making a process thanks in advance. Every operating system is going to do it in a different way. However, it usually happens in a modern operating system in the following steps: New address space was created Load program image on a consent sheet This may include an image, or a dependency. execution "context" setup the stack approved by the "main" function by a logical thread of execution, Ul> I'm shining on dirty little details, but this is a basic observation.

nunit - ExpectedException in jUnit? -

Is NUINt's expected expiation or estront equivalent.Thank you & lt;> jUnit? Junior 4: @Test (expected = org.dom4j .DocumentException.class) should be zero () {getFile (zero); } Junior 3: zero test styleTroxation (try {try {getFile (null); Failed ("expected exception document exception"); } Hold (DocumentException E) {}}

c# - Repeater pagination with checkboxes issue -

I have a repeater that displays data from the database, each item contains a checkbox that is "erased" Used for "mark" etc. (There is no object in the database for the checkbox!). Because I use pagination (at data access and presentation level), there is no way to preserve checkbox values ​​between page movements. How can I solve this issue? The way I have solved it in the past, to put a handler on the checkbox, whatever AJAX server Returns to the so that it can store the status of the check box when it is toggle. This information is stored in the user's session. During paging, I check the state for every checkbox and set it properly because the page is presented. Any work depending on the status of the checkboxes uses information from the session. Once the action has been completed, I remove the state from the session. You also need to find out how you want to manage it in relation to page navigation.

javascript - using the jquery validation plugin, how can I add a regex validation on a textbox? -

I am using jquery validation plugin: How do I add a regex check on a particular Can the text box? I want to check to make sure the input is alphanumeric. Define a new verification function, and use it in the rules of the field that you want to validate Are: $ (function () {$ .validator.addMethod ("loginRegex", function (value, element) {return.optional (element)} / ^ [a-z0-9 Valid: $ (i.e.EST);}, "Username must contain only letters, numbers, or dashes."); $ ("# Signupform") Validate ({Rules: {"Login": {Required: true, login rijx: true}}}, message: {"login": {Required: "You have a login name Must Rg "Login RegEx:" Log format is not valid "}}}})}};

php - Why does "<image_link>" show up in my database table field without being inserted? -

I have just uploaded the images using my API and I am trying to save the image path that I I want to get back from the images. $ mgr-> Setup URL ('http://www.imageshack.us/index.php'); $ FileImagePath = $ row ['cr_path']; Repeat $ fileImagePath '& Lt; Br> & Lt; Br> & # 39; & # 39; $ Res = $ mgr- & gt; Upload ($ line ['cr_path'], 'image / jpeg', 'avaojo'); $ NewImagePath = Explosion ('', $ res); $ ShackPath = trim ($ new image path [6]); Echo '& gt; & Gt; & Gt; ' $ Shackpath '& Lt; & Lt; & Lt; '; // Output & gt; & Gt; & Gt; Http: //img194.imageshack.us/img194/5038/9444679.jpg< & Lt; & Lt; $ Sql ​​= "Update Avatar SET image_path = '$ shackpath' Where avatar_id =". $ Line ['cr_id']; However, when I view my MySQL database, it will be & lt; Image_link & gt; & Lt; / Image_link & gt; The URL with t

asp.net mvc - jQuery not working with Html.ActionLink? -

I know that this is strange, but I am using asp.net mvc, i have real views on 2 scenes Simple jQuery One view is the home page and the other is an item detail page. This page has been opened using the Action link on the home page, jquery is not at all on the item details page. $ (function ('expelled!'); $ ('# Contact'). Hover (function () {$ ('# ConDetails'). AddClass ("gifback ");});}); When this jQuery is put on the home page, the warning box shows, but not on the details page. Am I doing something stupid here I could not think of a reason why it is not being cautious in that page Is there any jquery javascript referenced, unless removed in the details page?

java - Looking for feedback on a use of the Adapter pattern -

There is a fixed price type class in our domain model in a project that has a lot of numbers. public class BigValueType {Private Phu Foo; Private times; Private falcon falcon; // ...} We have realized that we want to "focus" in many different, some more special classes, which only have some subsets of this class's features. It seems that we want to do something like "different ideas" of this data. Public Sector Specialization A {Private Phu Foo; Private falcon falcon; // ...} public class specialization B {private times; Private falcon falcon; // ...} Private class specialization C {Private Phu Fu; Private times; // ...} However, the purpose of this domain model is to be general, and is not specific to this project during the future projects will include project-specific extensions, but The normal domain model will be excluded from these extensions. If we just define a bunch of classes, then it is likely that other projects using the domain model