Posts

Showing posts from April, 2014

c# - How to retain value from a text box on button click from a view, asp.net mvc -

मेरे पास दो दृश्य हैं 1 Add.aspx 2. Change.aspx जोड़ें देखें में एक पाठ बॉक्स नामित मेनू है, जहां मैं डेटा टाइप कर सकता हूं। मेरे पास टेक्स्ट बॉक्स के नीचे एक 'जोड़ें' बटन है, जो अगले दृश्य 'बदलें' 'बदलाव' दृश्य पर पुनर्निर्देशित करता है, जिसमें 'रद्द' नाम का एक बटन होता है, जो क्लिक पृष्ठ पर वापस लिंक पर पुनर्निर्देश करता है। मेरा प्रश्न है , जब मैं 'बदलें' दृश्य से 'रद्द' पर क्लिक करता हूं तो मैं 'मेनू' पाठ बॉक्स में दर्ज किए गए डेटा को कैसे जारी रख सकता हूं? वर्तमान में यह साफ हो जाता है क्या मुझे इसे एक सत्र में सहेजना चाहिए? या क्या कोई अन्य विकल्प है? यदि आप एक वास्तविक रीडायरेक्ट कर रहे हैं, तो आप टेम्पटडाटा का उपयोग कर सकते हैं दृश्यों के बीच में डेटा संग्रहीत करें, जैसे: TempData ["YourData"] = पाठ बॉक्स टेक्स्ट; MSDN पर देखें।

java - Sending MMS in Android -

I am trying to send an MMS using the code sample, but the last step HttpUtils.httpConnection An exception throws: java.lang.RuntimeException : This thread restricts HTTP requests What is the problem is? Please help me. Before the question has been asked, the answer is.

How do you find the factorial of a number in a Bash script? -

शेल स्क्रिप्टिंग में किसी संख्या का फ़ैक्टोरियल कैसे खोजना है? seq -s "*" 1 500 | bc

Python check first and last index of a list -

Assume that the object is the list that contains the objects. I want to see that my current move is on the first or last item for the object list : if_something if first_indexed_element: do_something_else If last_commented_allement: do_another_thing How can this be achieved? I know that I can use the category and counting index, but if it seems unnecessary. prior>

sql - How do I create a Identity starting with a Letter first then numbers after? -

I want to create that data which contains information about my supplier so that it automatically generates its ID For example, Supplier ID I want to make it auto-generated after each other - SID001, SID002. How can I do this with SQL? Ask yourself: What is the cost of doing so? Specifically, what is the need to compare two strings vs compare two numbers? To generate strings from numbers? Then ask yourself, what is the value added to the 'SID 0001' ID instead of 001? Then ask yourself, what displayed is an easy way for each line without a prefix without storing it? (Answer: Yes, with database view).

simulating Touch events in iPhone -

I have an application running in the background This app needs to generate a touch event on a particular XY co-ordination , So that the application running in the forefront behaves because the user actually touches the screen. Is it possible to generate touch events like this? Please help No, iPhone background app is nothing can do.

c++ - Function that returns iterator from a map -

मेरे पास एक नक्शे & lt; K, V & gt; वेरिएबल वाला एक वर्ग है जिसमें इसका मान हो C'tor जैसे: वर्ग फू {map & lt; K, V & gt; मीटर; फू (नक्शा & lt; K, V & gt; और amp; newM): मी (न्यूएम) {} नक्शा & lt; K, V & gt; :: iterator बार () {...}} फ़ंक्शन बार मानचित्र m के माध्यम से दोहराता है, और कुछ तत्वों को कुछ तत्वों को वापस लौटाता है मैं फ़ंक्शन को इस तरह बुला रहा हूं: std :: map & lt; K, V & gt; नक्शा; // भरण मानचित्र फू फू (मानचित्र); मानचित्र & lt; K, V & gt; :: iterator = foo.bar (); मेरा सवाल है, इस समय, क्या यह map के सदस्य को इंगित करता है? या क्या इसे Foo.m पर कॉपी किया गया था और क्या इटरेटर के लिए एक अलग मानचित्र पर अंक? यह नए नक्शे पर इंगित करेगा, जैसा कि आपने मानचित्र को वैल्यूएबल m में क्लास के सीटीओ में कॉपी किया था। इनिशियलाइज़ेशन सूची में m (newM) कथन std :: map वर्ग के कॉपी कन्स्ट्रक्टर का आह्वान करता है और पारित मैप के अलग-अलग तत्वों को नियति का नक्शा में प्रतिलिपि बनाता है मीटर । इसलिए जब ...

silverlight - Render WriteableBitmap in WPF -

I have seen a business status in Silverlight, when a picture is provided with a write-able bitmap render method , The resulting picture is very fast. Of course WPF is not available in the Render method. I used the drawing group to present two images on top of each other (I got a PNG with transparency and standard JPEG). However in that situation the resulting bitmap is not so fast (especially in the case of text). Can you see any reason for this? Have you faced such a problem? Any ideas for solutions? Let me put a PNG with transparency on the JPG image and get an accurate result image. Thanks in advance for the answer! Cheers Have you tried BitmapScalingMode on RenderOptions? This is an attached property that is applicable to most dependentobjects, which do anything with drawing pictures. One example: & lt; Object name = "myObject" RenderOptions.BitmapScalingMode = "HighQuality" ... /> or to do this in codebehind: renderopts .setma...

Why does Fluent NHibernate AutoMappings add an underscore to Id (e.g. Entity_id)? -

Highly used by unused automapings To map it Public Virtual Int ID {get; Set; } /*...snip..*/ Public virtual mapmarks icon map mark {get; Set; }} for this create table [attraction] ([id] [int] identity (1,1) no NULL, [MapMarkerIconId] [Integer] zero) with this: at cfg = Fluently.Configure (). Database (MsSqlConfiguration.MsSql2005.ConnectionString (connectionstring). DefaultSchema ("xxx") .mappings (m => {m.AutoMappings .Add (AutoMap.AssemblyOf & lt; partner & gt; () where (n => n.Namespace == "xxx.Core .Domain ") .meter .FluentMappings.Conventions.Add (PrimaryKey.Name.Is (X =>" ID "), DefaultLazy.Always (), ForeignKey.EndsWith (" ID "))}). Exposure configuration (C => c.SetProperty (Environment.ReleaseConnections, "on_close")) .xposeConfiguration (c => c.SetProperty (Environment.ProxyFactoryFactoryClass, typeof (ProxyFactoryFactory) .ssemblyQualifiedName)) .BuildConfiguration (); Why get me...

wpf - Converter stops filter working -

I'm trying to display the file name in a listbox, taken from a special directory. They are stored in an ObservableCollection of FileInfo Object: Public supervision & lt; FileInfo & gt; Project Files {Get (empty (selected folder == empty); DirectoryInfo D = New Directory Info (SelectedFolder); if (! D.Extists) returns empty; New Observe Collection & lt; FileInfo & gt; (d.EnumerateFiles ( Return "* .xsi")}}} When a text is entered or a text box has changed in "FilesFilterBy" I applied a filter on the listbox, called Is: Private Zero FilterFiles_TextChanged (Object Sender, TextChangedEventArgs e) {ICollectionView View = Archive Source.GetDefaultView (ProjectFiles); see.filters = new new & amp; object> (IsTextInFilename);} public bool isTextInFilename (object item) {string file name = path.GetFileNameWithoutExtension (as fileInfo) .Name item Returns (filename. ToLower (). Includes (File Byte Text. Taylor ());} At the same time,...

objective c - Alternative to NSCollectionView in pre-OSX10.5, Cocotron? -

NSCollectionView was introduced in OS X 10.5, and has not yet been implemented in Cocotron is. I am trying to implement a small app that will allow to create well-packed data files for an online service, which will then be uploaded by an administrator in a more specific way , The user will make the input and output data by pulling the combination of combinations on the window, dragging the input and output files. Currently the idea is that the user leaves a file, by filename it has come to know what it is in input or output filename (by default, input), and for input and output The icon and file name are added to a visual collection view, then the second file gets over the "Other" icon. However, NSCollectionView does not appear in pre-10.5, and most of my users do not have Mac so I will have to provide a quote-built version . Not only this; I still can not fully understand KVC / KVO, and in fact I should understand what my code does, therefore, I need an opti...

Contextual menu shortcut in Netbeans -

Is there a way in Netbeans to display relevant menus with the keyboard? I have tried Shift + F10 and next to the key without success to the right keyboard key, but I can open it by clicking on the right button. Saludos Shift + F10 is officially in Netbeans 6.9. If this is not working for you, go to "Tools" - "Options" - "Keymap" and check which "Shortcut" popup is assigned

asp.net - Is the MVC Controller Layer the ideal place for error handling? -

This appears to me, because almost all exception handlers are given the downstream of routing requests, A controller will be thrown in or downstream from some controller upstream to a controller, which is just what happened in the controller. P> controller actions are an ideal place for most error handling but not all of them. The view is not provided until after performing your administrator task. So for example if you pass the view to a view modal that is more than a simple data container and gives an exception, while the scene is being presented (not an unusual scenario). You can not hold it in your controller action. Here's a tool that you can use to get an exception outside the controller

c# - How to implement an image or pdf viewer? -

For the purpose of learning, I would like to know how to implement an image (and / or) PDF viewer themselves. I am interested in general approach to implementing this way. I have already read about different formats on pure (tiff / pdf), so I came to know that these files are in special format, where I want to see a headline where Footer and where image information is (in decrypted form). Because I think that such a viewer works as a STH. Open the file Reading different file information (headers, footers, etc.) "Translate" pixel positions I should know, how to get the pixel position (in the case of a TIFF file) How to make it as a control? Where should I place the pixels? If I make a mistake, feel free to correct me, because ATMs do not really have any ideas and everything is just speculation. Inno PS: I would prefer a solution in C #, but if it is in any other language, then it is okay, too. The platform must be Microsoft Windows (First of all). ...

tortoisesvn - How to automate property setting in SVN? -

My dissection is a pre-commit hook in the repository for which all the files have a SVN property I'm setting this property to make each additional files and folders in a 2-step commitment to manually. How to automate it? See section TortoiseSVN documentation. You can either configure each customer locally as explained earlier by Josh, or optionally put the configuration in the repository with tsvn: autoprops property Later only TortoiseSVN works for customers. The command-line client does not support the server-side configuration of autoprops. There are some changes related to this, e.g. And.

web applications - How to test a site for low bandwidth? -

I am developing a web application for mobile browsers, most of the development is done with local machines (Local Apache) And I want to test how it behaves in low bandwidth and even high latency environments. I do not have to use Apache because there are very few server side things for this time. Do you know any good tools? You want to try. Update: @SamSaffron has posted a cool essence: to inject 300 MMSC in the network stack #! / Bin / sh ipfw -q -f flush ipfw ipfw add pipe 1 in pipe 2 Add ipipee pipe 1 config bw 512 kbt / s queue 30 delay 150 mpfw pipe 2 config bw 2 mbt / s queue 10 delay 150 mspf -m add anyone Also

c# - godaddy sql executor with .net -

Most of you may already know that Christians do not have any plugins, which are hosted directly on their database Connecting directly to the database to be made, to run an SQL statement, the server wants Godeadi that developers enter their SQL Management Interface and run the query, which is a time-consuming process and more personally me. Confirms that the interface is not as strong with the limited season and please correct me if I'm wrong. So, I want to create a small screen in the text area and want to control one button to execute the SQL statement typed in the text field. I am planning to implement this data using this data reader object. But my question is, how to read field names (not value) for the purpose title from the reader? Or I know that there is a better implementation to fulfill my work. Thank you, Krishna. Why not just fold one?

operating system - How does a Windows Kernel mode Driver, access paged memory? -

1) A usermode process has its own "address reference", which maps a user-mode virtual address to unique archive The physical page frame, i.e., means meaning of a particular virtual address change switches from Windows XP scheduler threads to another. Changing a part of the "switching threads" is to change the page table so they can see the incoming thread process context. _ 2) A Windows kernel-mode driver is implemented in "arbitrary thread reference". A driver can create a system thread and works in the context ... but I am talking about the situation when no system thread is created. driver "ExAllocatePoolWithTag" (memory in volatile storage). _ 3) So how does the driver use paged memory without any reference ? As seen in point 1, page memes are delivered through Page Tables, which are "context special". When the driver runs in some other thread context ... i.e. page table entries thread indicates the relevant...

c# - Visual Studio gone bonkers: 'The directory name is invalid' error when trying to compile -

For some very strange reason, my visual studio 2008, when trying to compile the C # project, Executable in executable directory with the same name, at least it seems that error message means. After compiling on any of my projects, CSC.exe reports the following compiler error: Output file 'D: \ Projects \ Examples \ StringBinder WeastString \ Ob \ Release \ StringBuilderVsString.exe '-' The name of the directory is invalid ' When I obj \ release or obj \ debug Looks like all intermediate resources, like stringbilder VsString.pdb are written correctly in that directory. There is no place in the directory or there is an error when running csc.exe from the command prompt. When running the Process Monitor, I see success only for the files accessed by csc.exe and I do not see any query or written form in those places that does not exist Any thoughts are welcome to face it. Resolve! Thanks for the input, I found a solution in between because it is rare...

How do you read in multiple .txt files into R? -

I am using R which visualizes some data. There are a few hundred files in a directory and I want to load it in one table, in one shot. Any help? Edit: Listing files is not a problem. But I'm having trouble going from the list to the content I have tried some code from, but I get a bug with this part: all.the.data & lt; - lapply (all.the.files, txt, header = TRUE) is saying: error in match.fun (FUN): object 'txt' not found Any snippet of code that will explain this problem. You can try: filelist = list.files (pattern = ". * .txt") # header datalist = lapply (filelist, function (x) read.table (x, header = T) combines the values ​​separated by tabs) # Exclude the same header / column for all the files, data = Do.call ("rbind", dentist )

extjs - Ext JS 3.1.0 RESTful Store DELETE in IE 7 throws exception -

एक शांत स्टोर का उपयोग करते समय हटाए जाने के आदेश एक त्रुटि (ext17 बेस-डीबग की रेखा 1717 त्रुटि: अमान्य तर्क) फेंक रहा है जब यह DELETE AJAX अनुरोध करने की कोशिश करता है विशेष रूप से त्रुटि ext-base में asyncRequest विधि में होती है जब o.conn.send (postData || null); कहा जाता है। मैंने एक मानक अजाक्स अनुरोध बनाया और उसी URL के साथ DELETE विधि का उपयोग किया और यह ठीक काम किया। स्टोर में सभी अन्य क्रियाएं (बनाएँ, पढ़ें और अपडेट) ठीक काम करती हैं। EXT JS उदाहरण रेस्तुफ स्टोर एक त्रुटि भी डालता है जो यहां स्थित है: ऐसा लगता है:

user interface - Netbeans file tab features -

In the Visual Studio I used two characteristics very much: Copy the full path and Open Folder . Update: There is a feature request in Netbence Bugzilla since 2009-09-01 (not mine): If you want to copy the full path you must go to the" Projects "or" files "tree, select the file, right click the mouse -> Properties and" All Files "value copy out. I do not think there's a built-in solution for "open folder". A plug-in is present which you want exaclty Copy the path to the action - Copy the full path of the file / folder of the selected node in the clipboard. Explore the OS file explorer (such as Windows Explorer or Finder or Contractor or Nautilus), explore the Exchange or with the path to the folder of the selected node selected in it. . It seems that this plug-in is no longer maintained, but I have tried Netbeans 6.9.1 and it is working. It also supports "Shell On Path".

ios - Fonts not displaying in Interface Builder -

When I am preparing my iPad app, several fonts will not be displayed in the interface builder for some fonts. Unfortunately, my iPad has not yet been distributed, so I can not tell that it is a problem for a long time, but it definitely keeps it through the simulator. The fonts in the question are listed on different websites as is compatible with the iPad, but the SDK 4.0.1 is still confusing. For example, the haler text is applied to a font designed on the label, which displays the latest iPad view using the default font. If I click to edit the text then it is displayed in the correct font. I have tried it on some Mac. This is a problem because I have to send my client Need to send pixel right layout for your backend team: ( Any ideas ?! What might be interesting to others: A bug / non-standard fonts and interfaces The known issue with the builder on the XCode 3.x with the built-in custom fonts usually needs to be set up (via the UIFont FontWithName ...) program. Y...

c++ cli - double::TryParse Issue -

I'm having a weird problem ... when I change a text box-> text to double, I get a number Why is it 99999999991 if there was a zero text box? Here is my example code: number is equal to 0; If (! Double: TryParse (mTheText-> Text, theNumber)) {return false; } Note that at the beginning zero is set twice and later called tryparse .99999999991 is set to be. I use this exact code elsewhere and it works fine What's going on here? Thank you. Did you replace the number with 0.0 0 ?

sqlite - sqlite3-ruby compilation and sqlite3 packaging for a rails app -

We are currently attempting to package sqlite3 and sqlite3-ruby with an application that is open source (Ruby / Rail based). I would like to package sqlite3-ruby for Windows, Linux and Mac if I'm evaluating. My thoughts were, to download sqlite3-integration, compile everything at sqlite3-ruby platform and then on each. Here are my questions / current problems: 1) located at: Install SQLite3, Enable option SQLITE_ENABLE_COLUMN_METADATA Where should I put this? In the makefile? Any hint or example would really be useful! 2) Sqlite3-ruby compilation with current sqlite3 - sqlite3-ruby sqlite.h , unfortunately seems to search for current sqlite3 only sqlite3. H ; Download integration from sqlite.org > compile a custom dior install.rb (line 11) to: Unless the system ("ruby extconf .rb - with-sqlite-dir = / my / Custom_dir ") Any hints or very welcome help! Again: windows You can use windows connected to binary gems only.

IIS Load Balancing and ASP.Net -

Actually, I have 3 servers where 1 of them works as load balancing servers. In my ASPX page, I want to add an HTML comment to show the IP address of the server selected by load balancer or even the host name. I give SERVER_NAME but this only gives the domain URL. So, is there a way to programming this in ASP.NET? Thanks! How about the system? environment. Markname

asp.net - Fix Special Characters in String -

I have found a program that briefly reads values ​​from a SQL database and writes them in a tab-delimited text file is . The issue is that some values ​​in the database are special characters (tm, dash, alipsis etc.), when the text file is written, the formatting is lost and they are junk "one" ¢ or â € "Etc." When the value is seen in the instant window, before it is written on the txt file, everything looks fine. My guess is that it is an encoding issue but, I am not sure How to move forward, where to see or what to see Is this ASCII or UTF-8? If this is one of those people, then how can I fix this before writing it in a text file. Here's how I create a text file (where feedStr is a stringbilder) objReader = new streamer (file path) objReader.Write (feedStr) objReader.Close ( ) The default encoding for StreamWriter is UTF8 (without the bit sequence symbol). Your result file is fine, the question is, what do you open it later? If you open it ...

global - The good, the bad, and the ugly of lexical $_ in Perl 5.10+ -

Starting in Perl 5.10, it is now possible that the reference variable $ _ , either explicit By form my $ _; In the creation of or given / when . Did anybody get good use of Likhax $ _ ? Does it make any composition simple / safe / fast? What about the situations that make it more complicated? Did Likhax $ _ start any bug in your code? (Since the control structures that write $ _ are used in the inbound version, it can change the behavior of the code if it contains a sub-routine call (due to lack of dynamic area) Finally, I want to create a list that explains that when $ _ is used as a word, globally, Or when it does not matter. NB: As of perl5-5.24 these are experimental features. $ _ The thing is the new _ prototype symbol. This allows you to specify a subtitle so that it can take a scalar Or if no one has been provided, it will receive $ _ . subfoo {my $ arg = @_ ? Change: Do stuff with $ _; # $$ I write Awareness I: sub foo (_) {my $ ...

reporting services - "Select All" with SSRS 2008 Parameters -

I want to load a value available from a query (or whatever) and "Allow Multiple Values" Want to When I do this, the list starts with "Select All". This is great, but in my case it is not acceptable that there is no way to default the "Select All" parameter. This special report will have 8 alternative parameters, and if Hetelli has to choose "select all" several times, it is hardly optional. Therefore, I make my own ".. All options" and make the code to accept it. I can default to that, but then the user sees: (select all) .. all it looks non-commercial I have Knocked on and the answer to this problem does not appear. Is there any way to press (select all) or what do I need? any idea? In fact, the answer is that you have to set your available values ​​and default value to the same dataset and fields If you do this, then SSR automatically selects every option in the list. This is not very good, but it works. Occasio...

pyyaml - yaml property value -

I am using yaml file to store attribute and value. But some values ​​need to be added to the current date. Then how do I enter values ​​in the yaml file, so that the yaml parser can automatically identify and replace with the current date I am using pyaml and python Pamal does not automatically replace anything eg just use a custom string eg After parsing $ {now} and yaml file, replace it with the current date. For example, value.replace ("$ {now}", datetime.date.today (). Isoformat ()) where value reads a sting from the input file

class - PHP - Using a constant's value to reference a data member -

I am continuously trying to access a class object's data member. I was wondering if it is possible with a syntax that I am using? When I try to do this in the following script, I get this error: Parse error: Syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM Class certificate {const balance = 'certificate_'; Public work __construct () {}} class ticket {public $ cert_balance = null; Public function __ composition () {$ this- & gt; Cert_balance = 'Not a chance'; Copy $ this- & gt; Cert_balance. "& Lt; br / & gt;"; }} $ Cert = new certificate (); $ Ticket = new ticket (); // It should be equal to the next code line: $ ticket-> Cert_balance = 'good'; $ Ticket- & gt; $ Cert :: BALANCE = 'OK!'; You need to separate expressions with braces as well as PHP 5.3 First, you need to refer to continuity by the class name, such as: $ ticket-> {CERTIFICATE :: BALANCE} = 'GOOD!'; It says As PHP 5.3.0,...

c - How do I retrieve an error string from WSAGetLastError()? -

I'm sending some socket code from Linux to Windows. In linux, I convert strayer () to an incorrect code in a human-readable string. The MSDN documentation shows the same string for each error code returned from WSAGetLastError () , but I do not see anything about how to regain those stars. > Post text "itemprop =" text "> The document says that you can use the text version of the error message to get the text version. You get the FORMAT_MESSAGE_FROM_SYSTEM dwFlags parameter and pass the error code as dwMessage parameter.

vb.net - option strict question -

Late binding is not allowed and likewise we want it. Whether our program is running or not on a LAN or on the Internet, we have to slow down an object as one of the two objects. We use that ... if someone is running on LAN or Internet, then use the statement to find out. When we declare our object in the statement ... then we have declared that we can not use the wrong scope and the object. When we declare it as the 'object' type and if we use a direct seam ... then statement, we get late binding error. How can we stop this option without dire consequences? / P> I have not used vb.net - so consider the source but do you have any other type of Can not declare each type as a sub-class, and is there a super class type as the declared type of your object?

avfoundation - Need hints for using iPhone SDK's AVMutableVideoComposition -

AVFoundation फ्रेमवर्क AVMutableVideoComposition वर्ग प्रदान करता है (AVVideoComposition के परिवर्तनीय संस्करण)। ऐसा लगता है कि आप CoreAnimations को सीधे इस क्लास के एक उदाहरण के लिए एक वीडियो बनाने के लिए प्रस्तुत कर सकते हैं, लेकिन मुझे नहीं पता कि संरचना को किसी फ़ाइल में कैसे सहेजना है या इसके साथ कैसे काम करना है, वास्तव में एक UIViewController से बुलाया निम्नलिखित कोड रचना और एनीमेशन बनाने के लिए काम करने के लिए प्रतीत होता है लेकिन, फिर, ठीक है, मैं संरचना के साथ काम करने के तरीके के रूप में स्टम्प्ड हूं। कोई भी मदद या मार्गदर्शन काफी सराहना की जाती है। स्थिर AVMutableVideoComposition * videoComposition = शून्य; - (शून्य) एनीमेशनएडसटॉप: (सीएएनिमेशन *) एनीमेशन समाप्त हो गया है: (BOOL) फ्लैग {// वीडियो के साथ कुछ करेंसंयोजन यहाँ ... इसे किसी फ़ाइल में कैसे सहेजना है? एनएसएलॉग (@ "वीडियो कॉमपोज़शन:% @", वीडियो कॉमपोजीशन); [वीडियो कॉम्प्रेशन रिलीज़]; VideoComposition = शून्य; } - (IBAction) बनाओडिओ कॉमपोज़शन: (आईडी) प्रेषक {AVVideoCompositionCoreAnimationTool * vide...

mysql - How can I "display more" in a list? -

Items sorted by date, like the next 15 values ​​in the table? It looks like you need to see the LIMIT clause: DESC LIMIT 0, 15; dated by order from / p> SELECT * FROM items To display the next 15 items, just replace 0 to LIMIT section 15 ... then again 30 ... again 45 ... and so on. It is said to mark the page.

How do I reference a specific class type in C#? -

Is it possible to get a class / type reference / indicator and it is possible to get it from a particular base class? I am writing a client library that requires conversation with the server to use an algorithm for use for communication. I want to be able to choose a subset of algorithms to use the library, I can not be fixed on the set which I initially provide (i.e. not set in any kind of factory category). Ideally this will be done by passing a few general "algorithm" subtypes in a list of sections. I have seen the "type" object, but I have to check all the types of things, is there any way of doing this to the compiler for me? What do I want "type and algorithm"; But can not I get anything like that or is there a completely different way to do this? An example of what I have thought so far: Public class algorithms {public static abstract name; } Public class client {public MyLib (type [] algorithm) {m_algorithms = algorithm; // ... get the...

ruby - Can anybody translate this PHP code into Rails -

I have a hard time translating this php code into Rail. $ doc = new DOMDocument (); $ Doctor & gt; LoadXML (in $); / * Shuffle through XML and store data points in the $ list array / $ params = $ doc- & gt; GetElementsByTagName ("Ultimate"); Forex Currency ($ param as the ultimate $) {$ names = $ param- & gt; GetElementsByTagName ("name"); $ Name = $ name- & gt; Items (0) - & gt; Nodeville; $ Value = $ param- & gt; GetElementsByTagName ("value"); $ Value = $ value- & gt; Items (0) - & gt; Node vela; $ List [$ name] = "'" .mysql_escape_string ($ value). "'"; } There is not much in this question with Rail, Ruby + Dome. You can take a look at Ruby and Rail Document for XML Parser.

Adobe flex layout redraw -

This is a very basic question but I could not understand. When my application opens for the first time (ex: layout = & lt; 1,2,3,4>) my Flex application obtains some parameters from the URL layout (1,2,3, 4) Based on the price, I have to change the layout. Although the problem is that the application has already been drawn (the layout has been initialized) until it reaches the control of the URL where it reads the values ​​of the URL. I was thinking that when I read the values ​​from the URL, how can I reproduce it? Some things like Refresh Or what is a better view of my problem? Thank you I'm not sure that this is the right approach but I It now works great.

asp.net mvc - edmx populating mdf? -

When I am creating a database from the model in the 'ADMX' file, it asks for a data source and creates a SQL file and the data Adds source to source.config If I select sqlserver as source, then it works fine and I can either use existing database or create a new one and use tables It gets populated and ready for its use making possible To that SQL populate a new MDF file in any way? - -------------------------------------- ----------- - Unit Designer DDL script for SQL Server 2005, 2008, and Azure - --------------------- - --------------------------- Date Created: 08/25/2010 10:41:33 - generated from ADMX file: C: \ test \ Test.edmx - --------------------------------------- ------ ----- SET QUOTED_IDENTIFIER closed; Go [Examination]; Go if SCHEMA_ID (N'dbo ') is NULL EXECUTE (N'CREATE SCHEMA [DBO]'); Geo ... Works fine against sqlserver, but do not I know that when I connect to Scalaxap and a local MDF file in Project Dye Populate? Do I have to...

Function overriding with argument inheritance -

I have a general item list class, to create a more specific list that uses it as a base class, Some .. Referee class item-badge {} referee class item one: itembase {} Ref Class Maddist summary {public: Add virtual zero (item box ^ P); } Ref class item list A: Madlist (public: Add virtual zeros (alcoholia ^ P) override; // This does not work :(} I want to control adding. accepted pattern base class method protected Creating: Ref Class Item Box {ref} Category Item: Item: Item Buzz {} Ref Slash Item Element Essentials {Protected: Virtual Zero addInternal (Item Box ^ P);} Ref Class Item List A: Radial {Public: Virtual Zero Addition (Item A ^ P) {addInternal (p);}} Here's a better solution for using generic. Note that how do we force the normal parameter T to ItemBase , implement it For that this collection should only be used with ItemBase or its subclasses. Referred The class item item {}; Ref class item: public itembase {}; generic & lt; Class T ...

python - Is there a way to force lxml to parse Unicode strings that specify an encoding in a tag? -

I have an XML file that specifies an encoding, and I want to convert it to Unicode for Unicode (Memory For reasons I can not store it as a string). I later pass it to LXML but it denies the encoding specified in the file and parsing it as a Unicode, and it raises an exception. How can I force LXL to parse the document? This behavior seems very restrictive. You can not parse the Unicode string and can declare an encoding declaration in the string. Therefore, either you make it an encoded string (as you can not apparently store it as a string, you will have to re-sign it before parsing it. Or you can use it as a tree in the form of Unicode You can serial yourself with Limbal: etree.tostring (tree, encoding = Unicode) , without XML declaration. You can re-purge the result with etree.fromunicode View Edit: Apparently, you can not control the Unicode string already, and how it can be controlled. You have to encode it again, and it will have to provide parsers with encoding w...

Put files (css, html, js, images) per feature in one place in Rails 3? -

Whenever I add a new feature (for example I've downloaded something), I want to add all files (CSS, HTML, JS, Image) in one place. It will be a new feature in Symphony 2.0, which they call the bundle system. Everything will be in its own folder, it will be great to add new features so that you do not mix all the CSS, JS, image files with each other. Instead, there should be every feature. And it would also be nice to remove these features. Then you know that all the files are in one place and they do not need to look in your application. Example. Instead ... Image / Fader. Img Cart 1. IMG Cart 2 Img javascript / pdf.js Cart.JS Stylesheets / FARIDC Cart_man CSS Cart_subcss You ... It should be done this way ... enterprise / fader / fader.img Fader.css fader.js cart / cart 1.img cart2.img cart.js cart_main.css cart_sub.css Is there any way to do this in Rail 3? Of course, you can treat them just like a plugin - a set of files in a plugin Creating is very eas...

java - Generation of code based on the table meta data -

Is there any free tool that can generate data entry and listing screens for database tables based on metadata? Desired Features: Dropdowns for reference data Ability to customize label names, showing / hiding the specific columns of a table, column order etc. Operation on the listing screen (modify, delete, activate, deactivate, etc.) Import data from CSV file. Ability to add custom verification before saving / modifying data in DB Exclude Assume Beliefs. Option to choose the technology stack E, G, (to be in Struts 2, Spring, Hibernation) or (Straits 1, EJB, DAO Pattern) etc. The database for Oracle named APEX Is a tool that can edit and edit scenes starting with DB structure. This is an indicator: but apx its technology stack and does not generate code, this is an accessory framework for handling Oracle DB data. is.

c++ - check if user input a float to a int var? -

I have an integer; And using cin, but how do user input a float check or give me the solution to this problem? > There is no easy way to do this & gt; & Gt; Operator is not really intended for interacting with humans, who can enter the wrong thing, you will have to read the input as a string and then use it as a string-like function, or a code rolled by your hand Have to check. Here's the outline of an approach using Streetsol: #include & lt; Iostream & gt; #include & lt; String & gt; # Include & lt; Cstdlib & gt; using namespace std; Bool GetInt (istream & amp; int) {string line; If (Getline (is, line)) {return false; } Four * AP; N = Strict (line c_st (), and amp; app, 10); Return * AP == 0; } Int main () {int n; While (1) {cout & lt; & Lt; "Enter an int:"; If (GetInt (cin, n)) {cout & lt; & Lt; "Integer" & lt; & Lt; Endl; } And {cout & lt; & Lt; "Not an integer" & ...

dependency injection - Java EE 6: Switching to CDI - Best resources -

I have a small and full Java EE6 application in my hand. Using traditional annotation: @Resource , @EJB , @Sington , @ PostConstruct , @PreDestroy , @ParistentensContax , @ManagedBean , @ManagedProperty , @RequestScope , @ application scope , ... I would like to evaluate whether to present CDI and dependency injection, Bean life cycle management, etc. Question: Does anybody know about a good article, example or manual that changes the traditional Java EE6 annotation to the CDI? Does anyone know about a good article, example or manual, to which traditional Java EE6 annotations Changes in the CDI? Not much about "change", but very good resource IMO: series - by Reza Rahman On Dzone Series - series by Nickelus Carlsson > Related Questions

php - Does the Auto Assign Role Module not work with Custom form registrations? -

I have a custom user registration form: register using somepath / hook form. I set the auto assign roll by path for "/ somepath / register" and it does not seem that I do not specify the role I want. Does self-employed only work with content profiles and does not register to change hook form? I think it depends on how you have changed the form and how to include the user registration form . Do you put the value directly into the database, or do you call user_save ()? This can also depend on the URL of your form, because I am looking at AutoConsole. Module that can be ARG (0) == 'admin' from anywhere, which can prevent the automatic assignment process from being executed.

What is Foreign JMS provider? What is the typical role of Weblogic in a JMS application? -

Currently I'm working on a JMS application. But I use plain JMS API and property files for configuration. My application is running in Weblogic and connects to my client's MQ Series server. Recently I came to know that I can use Weblogic for JLM configuration. Please explain What is "foreign JMS provider"? Is weblogic also a JMS server or a foreign JMS provider or both? Weblogic JMS server is fully compatible with all JMS spec elements such as connectionfinor and location Provides compliant with. On this JMS server, you can connect and send messages to the client's messaging server through the configured destination. In addition to using Weblogic, the JMS server provides many features like message retrieval in case of failure, setting up message quota, and increasing the JMS server to track errors Monitoring A JMS provider in foreign weblogic used to define weblogic JMS other than JMS implementation the word is. An example is the IBM MQ ...

c# - How do I do set the Authorization header of a GoogleLogin request using the new WCF REST HttpClient API -

I use the new HTTP client class, part of the WCF REST starter kit, to certify Google's map data service I am doing I've got my client login authentication token, but I'm not sure how to get this instruction: get authorization: GoogleLogin auth = "authorization_token" / P> and work it in this code: var auth = [myAuthToken] var http = new http client ("http://maps.google. Com / maps / feed / map / [myUserName] / full "); Http.DefaultHeaders.Authorization = Microsoft.Http.Headers.Credential.CreateBasic ("GoogleLogin", "auth =" + auth); Var response = http.Get (); : "Authorization of GET request is required to pass HTTP header, an AuthSub or GoogleLogin token." I have a token, I do not know how to properly make the HTTP header of that authorization through the API. Does anybody help? Instead of using the CreateBasic static method, you can pass only the full authorization header to the credential class Man...

Check serverlist offline / online PHP -

I try to create a script to see if my server is online or offline: of So this script works, but how can I do a script which can see more than one IP address? Greetings, Matthias $ server = array ("server1" , "Server2"); Foreach (as server $ server) {// as before}}

ms access - Jet 4.0 connection problem with c# windows application -

I have a win. I am developing a Net application that runs continuously in the server machine. Each Connected Database is already in use by some other application locally installed. My application is transmitted successfully from all databases, when the client machine is constantly alive. But if one of my customers goes down the machine (says the system or the network) and reboots, then the app can not connect to that specific database, however accessible by network. Even I tried to restart my application program to reset the connection again. "Disk or network error" or > "Unspecified error" "Your application can not be started. The workgroup information file is unavailable or opened exclusively by another user. has gone." Anyone? Yes Actually, I code the code for every database associated with the application I am using a stable object with the following piece. DbProviderFactory Factory; DBC connection connection; ...

How can I autoplay a video using the new embed code style for Youtube? -

How do I run an option using a video? I add url and amp; Tried autoplay = 1, which worked with the old style, but it does not work. For example, the embed link is but does not work Can anyone tell me how to do this? Thank you I think if you have video autoload in the "& amp; Together"? "URL Your URL will be: http://www.youtube.com/embed/JW5meKfy3fY?autoplay=1 It looks like Google It should have been available, but I understand more than using a "?" "Amp;".

canceling timers during weblogic shutdown -

I have an ER project that runs on weblogic I have some timers in my application And when I reorganize my EAR project, I want to cancel them. I have tried to use the steno, but I can not access my web module classes in the stage listener. How can I do this work? Thank you in advance I created this servlet that implements ServletContextListener Start the timer with the introduction method, and turn it off in the context.

Unique IDs over database globally using Entity Framework -

I have to have a unique object ID on the whole database Does the EF have any underlying feature? Or maybe there are some practices / patterns? Thanks in advance. 1) Create a table to store the last id (int, bintint) (identifier domain) 2) Add stored procedure to retrieve the next ID (int, bilint). 3) You 4) Use this ID in your ID as the primary ID - > If you If the GUID ... uses EF (4), then this feature has the feature to do. But with CLUSTERED INDEX as a primary key, there is a bad solution for many entry of the GUID course.

php - nested foreach with iterator interface -

& lt ;? विदेशी मुद्रा ($ इस- & gt; मापदंड के रूप में $ कुंजी = & gt; $ मान):? & Gt; & Lt; li & gt; & lt;? = $ This- & gt; आवास लिंक ($ this- & gt; मापदंड, $ कुंजी)? & Gt; & lt; / li & gt; के & lt ;? एंडफोरेक? & Gt; यह कोड अप्रत्याशित परिणाम देते हैं, क्योंकि केवल एक लिंक दिखाई दे रहा है लेकिन इन वस्तुओं में दो चीजें हैं-> मानदंड। मैंने समस्या के कारणों की खोज की समारोह में रहने वाली लिंक एक और विदेशी मुद्रा लूप है जो एक ही मानदंड ऑब्जेक्ट पर काम करता है foreach ($ कुंजी = $ मान = & gt; $ value) {$ params [$ key] = $ value; } $ this-> मापदंड और $ मापदंड एक ही वस्तु है जो php इटरेटर इंटरफ़ेस लागू करता है क्या इस कोड को काम करने का कोई आसान तरीका है या क्या पीएचपी इटरेटर इंटरफ़ेस के साथ वेश्याभ्यास के नतीजे संभव नहीं हैं? ठीक है, दूसरा विदेशी मुद्रा कॉल करने जा रहा है $ iterator-> reset () से पहले चल रहा है इसलिए जब द्वितीय foreach इटरेटर के अंत तक पहुंचता है, तो आंतरिक सूचक पहले से ही सरणी के अंत ...

c++ - Registry and file system change identification -

To know the changes in the registry and file system, there is a coding method in C ++ file after installing the software The changes to the system and the registry file will need to be found. The file systemvatcher is in c # to recognize file system changes, however, I need to implement both in both Registry and Files in C ++. You can RegNotifyChangeKeyValue () to monitor registry keys Use, see. For files you use ReadDirectoryChangesW () , see.

Is it possible to use java.lang.instrument.Instrumentation in JUnit tests? -

Is it possible to use java.lang.instrument.Instrumentation in JUnit tests? I am using Moncaroon to simulate a servlet and want to measure the size of the items stored in the session. Yes, this is possible, but not very straightforward. The problem with using java.lang.instrument.Instrumentation is that you will always need to use a JVM agent, a good introduction to JVM agents is available. However, because your unit test is also run in a JVM, you can specify the agent as a JVM logic. A memory reporting is available on JVM agents that you want to pack, and are ready for packaging. You can make it with Maven or Ant, to use it, you make it and then when you start the Unit Test or Unit Test suite, pass the following as a jvm argument: -zavgent: & lt; Path to & gt; Within the unit tests, you can instantiate the memory meter and use it: memory meter = new memory meter () ; Meter.measure (object); Meter.measureDeep (object); Meter.countChildren (object);

detect barcode scanner from web browser -

In the Java AE web application, I need to read data from the barcode scanner (user connected to the machine - client side), Display the data in the textbox and return the code back to the server. I think I have to understand how to do it. Is it possible to detect if the scanner is connected / turned on and if not, then display a warning in the web page that the scanner is not connected? (Using some active x control or some other method) When I did this, from the scanner Input Why do you need to locate the scanner?

c# - Custom test names for test methods in Visual Studio 2010 -

I want to know that someone has found a solution to write the name of a human-readable method test, so non- Take a test list with tech and understand what they are going to be doing, and, for example, the programmer will not need to use "non-tech-boy-friendly naming conventions" such as "who Also-whatever 2-how many 3_DoesHelloWorldTest "now ...?

Problem with MPEG2/MP4 video Demux -

I have been working with Directshow for a while. I am working with the code (GMFBridge), and I have recently started working with mp4demux. I noticed that it does a great job to cover many compressed types, but there are some types I work with that it still can not demax. I am writing to ask about these people. I have a sample of an XDCAM-EX file here, which uses an MP3 container, using the trial version of a commercial demuxer, I could see that in the demoder video output I have What is the stream, and I found it to be an MPEG 2. The format is MPEG2VideoInfo, both format types and subtypes are MPEG2Video and, what I think is the main difference, compression 'mpg2' is the problem that mp4demux finds the audio stream and outputs it as PCM, but this video The stream is not found. I am new to filter development, so I can be wrong on this, but after stopping some code I did not find any reference to 'mpg2' compression. To compare one, I did another tested MP4 file, ...

silverlight - Prism regions not displaying registered views -

I am using PRISM in the Silverlight 4 application. I have a problem where the registered views in some areas are not displayed. When I load a module at the startup, I register some ideas in the fields as follows: Regional Manager RegisterWeviath Region ("Myregean 1", TypeF (IMISubvi1) ); Regional Manager. Registrar Visual Policy ("Myregan 2", Typef (IMISUB VV2)); I have a view to implement an interface called IMyView, where xaml has two content controls with defined areas in a grid like this: & lt; ContentControl Area: Regional Manager. Regeneration name = "Myregean 1" horizontal conference alignment = "statch" vertical content alignment = "stitch" grid. Rows = "0" grid. Rowspan = "1" /> & Lt; Content Control Area: Regional Manager Regeneration = "Myregean 2" horizontal conference alignment = "statch" vertical content alignment = "stitch" grid. Rau = "1...

Install certificates on client when consuming a WCF service with WSHttpBinding, Certificate Authentication and Message Security? -

"itemprop =" text "> I have created a WCF service that should be consumed outside of my domain, then I have the certificate authentication and the message With the decision to use WSHttpBinding security. I have created a self-signed certificate named "Test and Dave Root Authority" using Mekrt and signed two certificates using the same tools I like this with makecert -n PE "CN = WcfServiceServer" I -sr LocalMachine single SHA1 -sky Exchange -eku Lk3k6klk5k5k7k3kl-in "Test and Dev root Authority" -ss -is My -ir LocalMachine -sp "Microsoft RSA Schannel Cryptographic Provider" -sy 12 WcfServiceServer.cer makecert PE- n "CN = WcfServiceClient" -ss my -sr LocalMachine single SHA1 -sky Exchange -eku Lk3k6klk5k5k7k3kl-in "Test and Dev Root Authority Microsoft RSA SChannel Cryptographic Provider" -sy 12 WcfServiceClient.cer on your PC with MMC I added paper 3 certificates to trust people and "I -ir Lo...

jQuery selector -

How can I select and add a square to the previous and next tags. & lt; Div class = "sub" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; A & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; B & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; C & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; D & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; E & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; F & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; G & lt; / A & gt; & Lt; / Li ...

how to send/echo x (specific) number of messages in a shell script per sec -

How can I send a specific number, 1000, message (resonance) per second in a file through a shell script? That is, I want to resonate in 1000 (like "hi") per second (tmp) file. Echo "Hi" >> TMP Best you can do: While:; While I [= i-lt 1000]; Do echo hi & gt; & Gt; Tmp i = $ ((i + 1)) Sleep done In fact, the time to execute the commands in the interior, while the loop is not taken into account, so it is a little less The message will be written per second.

C# logic to implement foreach loop when check box is checked -

I have a check box in a Windows application called "Sustainable" when the user checks it and clicks the "Process" button , Then the application list will process all the items in the box. However, if the user does not check this box, then it will only process the first one in the list. In my procedure method, I want to write a condition to check the check box and executing the forehead loop is otherwise to execute the first item. This is my code private zeros btnProcess_Clicl () {bool bDone = false; While (! Beadon) {load list (;); // This will load the list from database in the list if (listbox.items.Count> 0) {ProcessList (); } If (! ChkBox.Checked) bDone = true; }} I have applied the foreach loop to process the list in ProcachList () method. To avoid the LoadList () method to execute anyway, any Is not the way if the user checks the checkbox continuously? Do something like this if (chkBox.Checked) process list (); Other process (); Typ...

java - How can I start and stop a jar file using another jar file? -

I want to start and stop a jar file via another jar file or java class. I am able to start a jar file via this command: runtime run = runtime.gettime (); Process process = run.exec ("java -jar setvalue.jar"); The process begins and works fine. But I can not find how I can stop that process from other Java class / jar file. I want to run the setvalue.jar file as a background process. And it is able to start and stop that other Java file and jar file is using. Does anyone have an idea how can I do this? One option will be in your setvalue.jar program, while creating threads running in (true) loop That keeps watching a file at a certain place and whenever this thread finds that file, then it is the system to kill the current JVM. When you want to get out of that program, create one with another Java program in "Linux" with the use of "Touch".

What's the best way to do a lookup table in C? -

I am working on an embedded C project. I have an LCD display and 5x7 dot matrix for each character. I To display a specific character, you have to make a change in 5 bytes, which in turn are correlated with dots. So I need to create some sort of look-up table where I can pass in an ASCII character, and get an array of 5 bytes ... For example, call this function like this, GetDisplayBytes ('A'); `An array like this should be returned ... C [0] = 0x7E: C [1] = 0x90: C [2] = 0x90: c [3] = 0x90: c [4] = 0x7E What would be the best way to do this in C? I will create arrays for those ASCII blocks which you want to use. Information. Something like this: uint8_t displayBytesLetters [] = {0x73, 0x90, 0x90, 0x90, 0x73, // 'A'. . . }; Uint8_t displayBytesDigits [] = {0x12, 0x15, 0x25, 0x58, 0x80, // '0'. . }; Then your GetDisplayBytes () is something like this: uint8_t * GetDisplayBytes (char c) {if (isdigit (c) )) Returns and displaysbettes [5...

webkit - CSS selector to apply rules to an element if before another element -

I am looking for a way to implement elements in a different way, depending on the That's what happens next. For example, with this HTML: & lt; Ul & gt; & Lt; Li & gt; & Lt; Span class = "title" & gt; Some title & lt; / Span & gt; & Lt; Span class = "subtitle" & gt; With some subtitles & lt; / Span & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Span class = "title" & gt; Only one title & lt; / Span & gt; & Lt; / Li & gt; & Lt; / Ul & gt; I want to apply different rules for .title , whether it depends on weather or not .subtitle The closest I can understand is that the adjacent brother selector .title + .subtitle {/ * rule * /} But this applies to .subtitle rules for elements that are before .title . Instead, I want to apply the rule with .title elements with the .subtitle element. Note: This is not important, it is widely supported...

On Linux, why does the destructor run twice on shared instance of global variable in C++? -

On Linux I have generated some C ++ code from a static library that defines global variables. An example of this global variable is shared between two shared libraries, which refers to its symbol. When the process is closed and the static ending phase is run, I see that the destroyer is run twice at this shared frequency! Probably every time the library is unloaded. This question is closely related to the other. I recently seen here: Does anyone know the theoretical interpretation behind this behavior? If you take a nude indicator and put it in smart pointer (twice), then Will be destroyed twice, once for every container refractor, falling from zero. So, if you pass a nude pointer in both libraries, then it can do it, each person puts it in a shared indicator object and destroys each of them. If you can see the stack backatas during dtor, then it should be shown happening in both libraries.

.net - Unable to initialize the runtime due to low memory conditions -

मेरे पास एक विज़ुअल स्टूडियो 2008 सी # प्रोजेक्ट है। यहां काम करता है: यह WinXP और Win7 पर डीबग मोड में त्रुटियों के बिना चलाता है। यह WinXP और Win7 पर रिलीज़ मोड में त्रुटियों के बिना संकलित करता है। सेटअप प्रोजेक्ट WinXP और Win7 पर कोई त्रुटियों के साथ बनाता है और स्थापित करता है। इंस्टॉल किए गए एप्लिकेशन WinXP पर कोई त्रुटि नहीं चलेंगे। काम नहीं: परियोजना Win7 के तहत रिलीज़ मोड में नहीं चलती त्रुटि इस तरह दिखती है: MessageBox.Show ("कम स्मृति परिस्थितियों के कारण रनटाइम को प्रारंभ करने में असमर्थ।", "एपीस्यूइट.एक्सए - .NET फ्रेमवर्क आरंभिक त्रुटि", संदेश बॉक्सबूटन्स.ओके, MessageBoxIcon.Error); मेरे पास मेरे कोड की पहली पंक्ति पर एक ब्रेक पॉइंट सेट है (स्थिर शून्य मुख्य (स्ट्रिंग [] एजीआर)), लेकिन इससे पहले कि मैं उपरोक्त त्रुटि प्राप्त नहीं करता हूं। मैं एक रिलीज संस्करण को संकलित कर सकता हूं, एक सेटअप बना सकता हूं, और एप्लिकेशन इंस्टॉल कर सकता हूं। इंस्टॉल किए गए आवेदन, हालांकि, Win7 पर नहीं चलता है। यह बेकार संदेश है: ...

ruby on rails - Is there a nice way to share your cucumber features with your clients? -

I love cucumber, my clients also like it. As far as I know currently there is a good way of sharing your features with our customers' TextMate or NetBean bundles in our nerds that give us good syntax highlighting - not so much to my clients . What I like is hosted on features.myclientsapp.com This will be a well marked sequence of well organized applications. Perhaps with a coverage% coverage as a bonus, the steps that are being passed will ideally come out as a rack engine. If I'm gaining Greedy-GIT integration to see version control, and there is a way to ask customers for feedback. Does anyone know anything that can do this? Why do people need other strategies to share files with their customers / users? I am working on this and that's what I came up with. It is a lesser known feature that cucumber can be output in beautiful HTML. I am doing this work as part of a big task list designated which runs with the rake doc: features and the readme for all ...

tfs - How do I merge text in visual studio 2010? -

To present it I am an MACS refugee on the coast of Visual Studio 2010 and I am certain that I am working against the equipment I am here. Can someone please tell me in the right direction? My problem is that the MyProject.csproj file is placed under version control using TFS and my colleagues have made several changes which are now available in my version Do not meet with There is no problem, I can just merge changes and fix things. But I can not, or I do not know how. In comparison to the VS, the comparison tool kills me, it will not let me choose the differences to like and like me. What would I like to do, just merge into AMACS, kill the file and hit it with El Maro (EFT), R (ight), B (Oath) and any time with it. I do not understand why there are some changes that are accepted by default, that I can not change. I think what this is doing is identifying the changes that I have made in the documents of the ancestors and forcing them to provide me with the option to merge the c...

c++ - Format(line wrapping) constructor initializer list in Eclipse CDT -

I now tried to find a solution for 30 minutes and no one found the code style in the CDT I am trying, so it gives me: MyClass :: MyClass (): var1 (1), var2 (2), var3 (3) {} MyClass :: MyClass (): var1 (1), var2 (2), var3 (3) {} instead of / code> / Pre > But I could not find any option to do this. The only 'initial list' option I can find is actually for arrays and therefore is not useful for me. My question is, am I losing the right place? Is there a plug-in that makes better C ++ code better than CDT? @Eric provides manual solutions, but to make this setting automatic, you have to modify the module assumption is required. Click on: Window -> Preferences Go to: C / C ++ -> Code Style -> Formatter Here, the first thing you need to do is create a new profile tab: Line wrapping Go to: Function declarations -> Constructor initial list below, you have to set: Line wrapping 'S policy: Wrap all the elements, eac...

Why does stack overflow throw no error in Visual C++? -

In Microsoft Visual C ++ 2010, I have created a program that causes a stack overflow from the mass. When I run the program using "Start debugging", I get an error when the stack overflows. When I run it without "debugging start", no error is thrown away and the program silently terminates That it has been successfully completed. Is anyone telling me what's going on? Do not make any other compilers errors on stack overflow? (I thought it would be the right place to ask a question about stack overflow.) C ++ will not be able to hold hands as a managed environment Stack overflow means undefined behavior.