Posts

Showing posts from April, 2013

What is the JSF behaviour, if you bind the same backing bean property to two input fields in the same form? -

Is a defined behavior in JSF, if two input fields are bound for the same session, then scanning the backing bean property has given. Here is my code snippet & lt; H: form id = "myForm" & gt; & Lt; H: Input Text id = "field1" value = "# {The bankingBanHeproperty}" /> & Lt; H: Input Text id = "field2" value = "# {The bankingBanHeproperty}" /> & Lt; H: command button id = "release button" verb = "# {the backingban.odgroup}" /> & Lt; / H: form & gt; My question: If field 1 and field 2 get different values, then what will be the effect of Bean property? Is this also allowed? I know that this is a raw scenario. My motivation is, we have HTMLunit tests running for our application. In our JSF application we want to use a cool ajaxified custom component. It works very well with the htmlunit, so my idea was, I just put in a hidden area which is connected to the same property u

c++ - how do i write an overload operator>> function of class string? -

वर्ग स्ट्रिंग {सार्वजनिक: दोस्त इस्ट्रीम & amp; ऑपरेटर & gt; & gt; (इस्ट्रीम एंड है, स्ट्रिंग एंड स्ट्रिंग); निजी: चार * एम_डेटा; }; Int main () {string str; freopen ( "in.txt", "आर", stdin); जबकि (cin & gt; & gt; str) {cout & lt; & LT; Str & lt; & LT; endl; } वापसी 0; } इनटैट की सामग्री हैं: asdfsfgfdgdfg अधिभार समारोह में, मैं < कोड> is.get () उन चेरेटर को एक-एक करके पढ़ने के लिए, लेकिन जब प्रोग्राम खत्म होता है तो चक्र बाहर निकलता है, इसका मतलब है कि काऊट नहीं चलेगा। दूसरी ओर, मैं इसके बजाय getchar () कोशिश करता हूं, लेकिन यह सर्कल से बाहर नहीं निकल सकता। प्रश्न: क्या इस फ़ंक्शन के प्रति मेरे विचार में कोई गलत है? या पूरा करने का एक और बेहतर तरीका है Thx:) ======================================== ================================================= नया संपादित करें: यहां मेरा कोड: @ आर्टम बार्जर कोड विवरण #include & lt; iostream & gt; नेमस्पेस स्ट्र {वर्ग स्ट्रिंग {सार्वजनिक: स्ट्रिंग (): कश्म

jquery - FF javascript woes -

ज़ूम। AddEventListener ('पर क्लिक करें', फ़ंक्शन) {$ (दस्तावेज़) .ready (function () { $ ("# ड्रैग करने योग्य")। खींचने योग्य ({रोकथाम: '# इमग कॉन्टैनेयर', स्क्रॉल: झूठी});});}); मुझे पहले कोड समझाया ज़ूम एक हैन्डलर / बटन है जिस पर क्लिक करने पर मैं एक छवि ऑब्जेक्ट को खींच रहा हूं। उपरोक्त कोड क्रोम के साथ ठीक काम करता है लेकिन एफएफ त्रुटियों को ढूंढ रहा है मुझे फायरबग उद्धरण दें: [अपवाद ... "पर्याप्त तर्क नहीं" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" स्थान: "जेएस फ्रेम :: http: // localhost / slide / script जेएस :: बेनामी :: रेखा 69 "डेटा: नहीं] [इस त्रुटि को तोड़ें] ज़ूम। AddEventListener ('क्लिक करें', फ़ंक्शन ... '#imgContainer', scroll: false});});}); मुझे क्रोम में ठीक काम करने के लिए मिल रहा है लेकिन फ़ायरफ़ॉक्स में मैं बटन पर क्लिक नहीं कर सकता Pls मेरी मदद करो ... मोज़िला दस्तावेजों की जांच करें फ़ंक्शन कॉल में आपको एक तीसरा पैरामीटर जोड़ना होगा। बस झूठी मूल्य जोड़ने का

uitableview - didSelectRowAtIndexPath not working on sdk 3.0 -

I was working on an app in SDK 2.x and everything was working fine, but now I SDK 3.0 Why is this happening to anyone? / div> Say: "You can control that the table is in the editing mode, besides, with the iPhone OS 3.0 initially, you can control whether the cells are selectable when editing Mode. Select the property. " So if things have changed from 2.2.1 to 3.0 possibly you have set the option to set.

datagridview - DataGridViewRow -

I have a datagroup view in which the user can delete and enter the rows manually. The initial DataGrid view brings data from the database and populates the grid. I have to understand all the lines manually added (which are not brought from the database) Is there a flag to check that the rows are repeated in the datagrid witch when adding a new line to the current line ? Please Why do not you add another datacule and check the status column When the user manually adds a new row, update the datacom with a Boolean value.

clickonce - How do I control what appears in the the 'Application Files...' dialog in Visual Studio 2008? -

I'm using click on Visual Studio 2008 SP1 for a little while. But I recently changed my Dev environment and my .csproj file has now lost the list of files that I need. No longer in the 'Applications Files ...' dialog Has anyone seen this issue before? Thank you in advance, January In your source control system, you can use the old CSPOs Seeing the list can repair - in particular, & lt; PublishFile & gt; Entries, such as (for a trivial test): & lt; Item group & gt; & Lt; Include PublishFile = "TextFile1.txt" & gt; & Lt; Visible & gt; False & lt; / Viewable & gt; & Lt; Groups & gt; & Lt; / Groups & gt; & Lt; TargetPath & gt; & Lt; / TargetPath & gt; & Lt; PublishState & gt; Include & lt; / PublishState & gt; & Lt; IncludeHash & gt; This is true & lt; / IncludeHash & gt; & Lt; FileType & gt; File & lt; / File-type & gt; & L

.net - Remote debugging with visual studio and WinDbg server -

It is possible to use WinDBG as a server (rather than Visual Studio Remote Debugger) and it uses Visual Studio Can the connect? /p> No, it is not possible that WinDbg and Visual Studio use separate protocols for remote debugging, which are not compatible Are there. I am more familiar with the protocol of the video studio which is based on RPC + COM. I am less familiar with WinDbg but I believe this is a low protocol, generally you only have to open a TCP port for Vandibi .

string - Are there particular cases where native text manipulation is more desirable than regex? -

Is there a specific case where the original text manipulation is more desirable than regex? Particularly pure? Note: Regex appears to be an extremely emotional subject, so I'm upset to ask such a question. This question is not inviting personal / business ideas on regex , the form of solution language basic commands (including the use of the underlying code using regex) in the specific circumstances only, including its use And why not. / P> Also, keep in mind that desirable means can be demonstrated, this can mean code-readability; This does not mean, because there are advantages and limitations for each solution to a problem. If this is a duplicate, then I have searched SO for a similar question. when you can simply with the original text manipulation Usually better (easy to read and better to perform) not to use Regex. Personal rule of thumb: If it is difficult or it is lengthy to "manual" and the performance advantage is negligible, then not. Ot

arrays - Converting hash to string in Ruby -

Assume that we have a hash: flash = {} flash [ Error] = "This is an error." Flash [: info] = "This is a notification." I would like to convert it to string: "div class = 'error' & gt; This is an error. & Lt; / div & Gt; & lt; div class = 'info' & gt; This is a notification ". In a nice liner;) I found something like this: flash.to_a.collect {| Item | "& Lt; div class = '# {item} [0]}" gtc: # {item [1]} This solves my problem but maybe in the hashtable class Made a good solution? is included so that you can use it: Flash.collect {| K, v | "& Lt; div class = '# {k}' & gt; # {v} & lt; / div & gt; } .join

Standard Set Smilies/Smileys/Emoticons -

I'm wondering if there is a set of standard emoticons that I can use with a set of open source icons too. As the table :) - & gt; Smile.gif etc. This page can help you: details In German but it does not matter.

How to Map Two Tables To One Class in Fluent NHibernate -

I have a problem with fluent nhiberbate mapping for two tables on a table. I have the following database schema: table dbo.LocationName (LocationId INT primary key, languageand INT primary key, name VARCHAR (200)) table dbo.Language ( LanguageEnd INT Primary key, Locale CHAR (5)) and and want to define the following classes: Public class locale {public virtual int location ID {Get; Private set; } Public Virtual Ent Language (Received; Private set; } Public Virtual String {get} Set; } Public Virtual String Locale {get; Set; }} Here is my mapping class: public localized namemap () {withTable ("LocationName"); UseCompositeId (). With KayProperty (x = & gt; x.LanguageId) CapeProtti (x = & gt; x.LocationId); Map (x = & x; x.Name); Together ("Language", Lang = & gt; {Columns with lang.With ("LanguageEnd"); lang.Map (x => x.Locale);}); } The problem is that the local area mapping is from the second table, and especially

oracle10g - Relation between Oracle session and connection pool -

Let me explain the set up first. We have an Oracle server running on 2GB RAM machine. In DB example the init parameter is set to "session" 160. We have applications posted on WebSpace 6.1. Connection pool setting is 50 minimum and maximum 150. When we run load tests on 40 users (using concurrently, jMeter), then everything goes fine. But when we increase the followers to increase above 60, then the Oracle throws and the exception is that it is out of the sessions. We examined the application for leak of any connection but no one found So what does this mean that 40's concurrency can take this setup? Is Oracle Session / Process The Only Way To Get High Concurrency? How do the DB sessions and connections relate to connection pools? In my sense, connections can not be more than sessions and therefore setting the message connection pool more than session does not really make any difference. Is it true? View it on Google Books This shows the difference bet

encapsulation - Is there a way to make a value accessible only to the parent of a nested class VB.NET? -

According to the general, OOP paradigm, I think of encapsulation are basically says: < Li> If a member is private, then only he can be accessed by the class. If a member is safe, then he can only be reached to the base class and any derivative classes. A member is public, it can be accessed by anyone. If I have a nested class, I have to be accessible to those who can declare a property is nested within the class and the parent class? For example: Public Class ContainerClass Public Class NestedClass Integrated Protected Meant '& lt; - It's what I'm thinking of 'myDbl as the protected double' & lt; - is that what I'm thinking about 'Sub New () Myint = 1 myDbl = 1.0 End Sub End Class Private myNestedObject' function illegal 'public sub GrowNestedObject (ByVal multiple integer as New NestedClass) myNestedObject.myInt * = multiplier myNestedObject.myDbl * = multiplier other end sub end class in this example, I no longer ha

c# - Password Recovery without sending password via email -

Then, I'm playing with asp: PasswordRecovery and I know that in fact I Do not like it, for several reasons: 1) Alice's password can also be reset without access to Alice's email. A security question for password reset reduces it, but does not really satisfy me. 2) Alice's new password is sent to him in Clarext. I would like to send him a special link to my page (for example, a page like example.com/recovery.aspx?P=lfaj0831uefjc), which will allow him to change his password. I think I can do this by creating some type of table of expiry of password recovery pages and asking those pages to reset those pages. Either way these pages can also change user passwords behind the scenes (such as resetting the manual manually and then using the password of the new password to change the password, since the old password can not be changed without a password) . I am sure that others have come before this problem, and this kind of solution kills me as a little hackney, is

sql - How build a SELECT statement with dates disconsidering time? -

मेरे पास इस तरह एक चयन कथन वाला साइट है: SELECT * MyTable से WHERE MyDate & gt; = GETDATE () माइंडेट फ़ील्ड में 6/24/2009 9:00:00 पूर्वाह्न के साथ मेरे पास एक रिकॉर्ड है। जब उपयोगकर्ता इस पृष्ठ को 6/24/2009 में 9: 00:00 पूर्वाह्न से पहले, इस रिकॉर्ड को दिखाया गया है। लेकिन जब उपयोगकर्ता इस पेज को 6/24/2009 में देखता है, लेकिन 9: 00 बजे के बाद, का चयन इस रिकॉर्ड को नहीं मिलता है। मैं इस चयन कथन का समय कैसे बिगाड़ सकता हूँ धन्यवाद। क्या आप वास्तव में 12:00 बजे मतलब है? यह दोपहर है, आधी रात नहीं है लगता है जैसे आप वास्तव में इस तरह से कुछ और चाहते हैं: से चुनें SELECT * MyTable कहां से (फर्श (डाली (फ्लोट के रूप में माईडेट)) 1 दिन के रूप में) & gt; Getdate () इसे देखें:

How do you use global variables or constant values in Ruby? -

मेरे पास ऐसा प्रोग्राम है जो दिखता है: $ offset = Point.new (100 , 200); Def खींचना (बिंदु) pointNew = $ offset + बिंदु; आकर्षित एबसोल्यूट (पॉइंट) एंड ड्रॉ (प्वाइंट। नया (3, 4)); $ ऑफसेट का उपयोग थोड़ा अजीब लगता है। सी में, अगर मैं किसी फ़ंक्शन के बाहर कुछ परिभाषित करता हूं, तो यह स्वचालित वैरिएबल स्वचालित रूप से रूबी में यह क्यों $ offset होना चाहिए, लेकिन ऑफसेट नहीं हो सकता और अब भी वैश्विक हो सकता है? यदि यह ऑफसेट है, तो यह एक स्थानीय है? लेकिन जहां स्थानीय, क्योंकि यह बहुत ज्यादा वैश्विक लगता है। क्या कोड को ऊपर लिखना बेहतर तरीके हैं? $ ऑफसेट का उपयोग पहली बार में थोड़ी बदसूरत लग सकता है। अपडेट: मैं इसे वर्ग परिभाषा के अंदर ऑफ़सेट रख सकता हूं, लेकिन क्या अगर दो या कई वर्गों को इस स्थिरता का उपयोग करने की आवश्यकता है? इस मामले में मुझे अब भी $ ऑफसेट एक को परिभाषित करने की आवश्यकता है आप को समझने की बात रूबी में है सब कुछ एक वस्तु है यह देखते हुए कि, यदि आप अपने कोड को मॉड्यूल या कक्षा में परिभाषित नहीं करते हैं, तो रूबी इसे ऑब्जेक्ट क्लास के

search - How to pass textbox value into query string in asp.net mvc -

Still another novice with ASP.NET MVC! Everything I want to do is for a search text box on my page, if I type something and click on the search, then the URL must be in the end to redirection, such as stack overflow, / I "text" name = "query" /> & Lt; A href = "???" Class = "searchButton" & gt; Search & lt; / A & gt; I have a function in this type of controller, public functioning search (string query) {} < P> Here's the route, route. Map route ("search", "search", new {controller = "post", action = "search"}); Any interval can fill here :). Any comment appreciated. Wrap it with form tag, set it to "GET", use input type ( Instead of 'A' tags), submit form 'submit' (instead of query 'A'), name text input as query (already done), parameter (already done) Accept the query as a string, Update the call process, ViewData.Mode

c# - List of WMIEvent classes -

Recently I am learning about WMI and WQL. I got a list of Win32 classes (from MSDN) that I can query, but I am not able to locate the list of event classes (this should be a subset of the list of Win32 classes) Is this none of this list Is there a list or any kind of cheat sheet? I am asking this question with curiosity. Examples for example category - Win32_ProcessStartTrace C # and System.Management : Here is the way to list the WMI event classes in the root \ cimv2 namespace with the system; Using System.Management; Class program {static zero main () {string query = @ "Select from Meta_Class' where __This Isa '__Event'"; Management object explorer explorer = new management object search (query); Foreach (Manager in Object BrowserBeachCimv2Class.Get ()) {Console.WriteLine (cimv2Class.ClassPath.ClassName); }}} root \ cimv2 is the default WMI namespace so that you do not use the ManagementScope example WQL query to ManagementObjectSearch

jQuery lightbox Gallery -

Is there a jQuery plug-in with a standard plugin? In the "Lightbox" window, I want to show the current image and the rest as a thumbnail (left, bottom, etc.) in the same "lightbox" window. - Firefox, Safari, Chrome, Opera, Internet Explorer 6, 7, 8, 9, 10 JQuery Lightweight, customizable Lightbox Plugin for jQuery.

c++ - DebugBreak not breaking -

I am writing a class in C ++ which I can not debug using F5. "Which will implement it. In the past, I have used the __debbreck () and when I got a window which was telling me that the exception was chosen to debug. Recently I updated in Windows 7 and it was working for a while. Today, when I have shown a regular dialog instead of debugging a piece of my code that tells me that VSTestHost has stopped working and has enabled me to debug the application, then I There is a separate dialogue which I am sending. For Microsoft for data. Does anyone know how can I fix this problem so I can debug my code? Finally I found the reason for the problem: this is a Vista / Win7 reason: Open Action Center Control Goto Action Center Settings Goto Problem Reporting Settings Select "Every time there is a problem, to solve me Ask before checking " Although this is more of IT solution / question, I am suffering from this problem all day and want to share A. soluti

javascript - Removing unwanted characters from textbox with JQuery -

How would I want to get some input, is that how to type some characters from the text box (or Textera) with JQuery I have code in C #, but I am unable to translate it into javascript javascript. My problem is that I do not know how to get the value from a text box as a character array which I can do again through the loop and compare it against a given unwanted characters. By the way, "away" I came to JQuery: $ ("input [type = text], textarea"). Change (function () {// code here}); This is my code for C #: (int i = 0; i & lt; charArray.Length; i ++) {current = CharArray [i]; If ((current == 0x 9) || (current == 0xA) || (current == 0xD) || ((current> gt = = 0x20) & amp; amp; amp; amp; amp; (current & Lt; = 0xD7FF)) || ((current> gt; = 0xE000) & amp; amp; amp; amp; current (& lt; = 0xFFFD)) _validXML.Append (current); } Back _validXML.ToString (). TrimEnd ((four) 32, (four) 160); Update: I went with a combination of the follo

internationalization - Silverlight - Paramterised resource values for Internationalisation -

I am running into a problem that does not have any sensible / customizable solutions that I am happy with. Silverlight and Internationalization - a swamp in creating I have a set of resources files that have a translated string. In a simple case, I can declare language resources and bind them. Content of a value within the strongly typed resources is fine - many examples of this have been revealed. A less simple matter is that the parameters of the string can be, so I have to put a value in the string to display it, which can be a data binding in itself. A more complex scenario is a string with several parameters. You can argue that VM should provide this capability, but I am unhappy because UX breaks the split between designer and developer, for which the developer has an asset / method on VM Requires UI implementation, which requires UI. With more information on this, custom tooltip is formally declaratory and adds better explanations with values ​​from datacontext. Exp

iPhone video screen capture for the 3GS -

With the advent of the iPhone 3GS video capability - does anyone know that if Apple has bundled the ability to capture the device Screen as a video? Note: I know that this question has already been asked about pre-handset versions, but I'm specifically asking about 3GS where this functionality Update: Until I hear otherwise, I have to admit that this is not possible. No you can not.

Java: Where can I find advanced file manipulation source/libraries? -

I'm writing arbitrary byte array (fake bias signatures of 32 bytes) in arbitrary files, and overwrite me one The specific file needs to be offset in the file My specific question is: Is this a source code / library that I can use to do this special work? I have also found this problem with the Python file manipulation. I am looking at a set of tasks that can kill a line, cut / copy / paste, etc. My assumptions are that these are very common tasks, and I could not find it in Java API nor in my Google searches. / P> Sorry for not doing RTFM well; I have not received any information, and now I am looking for a while. Maybe you are looking for something like a standard Java Java class. It reads and writes offset as well as byte arrays.

asp.net - How do you set handler mapping to a directory in IIS 6.0? -

I have IIS 7.0 on my development machine and IIS 6.0 on my server. On my development machine, I was able to set a handler map on a directory inside my viewer / viewHtml and I mapped it on ASP.NET. In my global.asax I check the request sent to asp.net / viewHtml / and I serve the appropriate HTML file (HTML version of the doctor, power point or Excel file) located outside this application virtual directory. I am doing it this way because all files are protected, we did not want to keep these files in the database due to scalability, and I have to hide the path of these files on the server. In IIS 7.0, all this does work out how I really like it. Although I can not configure my IIS 6.0 server to map all requests to ASP.NET in that directory. Any thoughts? Thanks guys? I have installed a web application using the same configuration that you are using and I Getting 404 I do not know why it works in IIS 7, but what I had to do to fix it. Create a class that enforces the system.

javascript - Dynamically created radio inputs don't check in IE7 -

I came across a strange IE-specific error. It appears that when documents create radio inputs with .createElement, the resulting widgets do not respond to clicks when you click on them, they are grayed out for each other, but they are not checked in FF3 Expected works, but not IE 7. Any idea what's going on? & lt; Html & gt; & Lt; Body & gt; & Lt; Form & gt; & Lt; Div id = "foo" & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; Script & gt; Var foo = document.getElementById ('foo'); Var t = document.createElement ('Input'); T.type = 'radio'; T. Name = 'idiot'; Var f = document.createElement ('Input'); F.type = 'radio'; F.name = 'Fool'; Foo.appendChild (t); Foo.appendChild (f); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt; For any reason, by creating radio buttons in this way, does not work . A solution that seem

android - How to start activity with a bitmap attached? -

मुझे यह कोड है: आशय इरादा = नया आशय (); intent.setAction (Intent.ACTION_SEND); startActivity (आशय); जो एंड्रॉइड पर मैसेजिंग ऐप को सफलतापूर्वक लॉन्च करता है। लेकिन इरादा शुरू करते समय मैं कैसे एक बिटमैप ऑब्जेक्ट संलग्न कर सकता / सकती हूं? मैंने पढ़ा है , मुझे क्या जरूरत है, इस तरह की एक्स्ट्रा एग्रोम की कोठरी वस्तु: intent2.putExtra (Intent.EXTRA_STREAM, _uri); लेकिन मेरे मामले में, मेरे पास बिटमैप ऑब्जेक्ट का एक संदर्भ है, एक बिटमैप के यूआरआई नहीं । कृपया मुझे बताइए कि मैं एक बिटमैप ऑब्जेक्ट संलग्न करने के लिए क्या कर सकता हूं? धन्यवाद। यह अन्य प्रश्न देखें:

vb.net - Custom Checkbox list control Error in asp.net. "startIndex cannot be larger than length of string" -

I'm creating a custom checkbox control to add a div after each box in a checkboxlist. The class is down Importing Systems Web. UI. WebControls Importing Systems Component MODEL Importing System Globilization Public Class Michekbox List Checkbox enforces checkboxeslink in the Inbox. IREAPT Infosource Protected Override Subordinate Item (ByVal Item Type List Type, By Behal Replate Index Integer, ByVal repeatInfo as RepeatInfo, ByVal Author HtmlTextWriter) Writer.WriteBeginTag (" as input ") writer.WriteAttribute (" type "," box ") writer.WriteAttribute (" name ", UniqueID) writer.WriteAttribute (" ID ", (ClientID & amp;" _ ") + repeatIndex.ToString ( NumberFormatInfo.Invariant Info)) writer.WriteAttribute ("value", item (repeatIndex) .Value) Dim attrs as System.Web.UI.AttributeCollection = item (repeatIndex). String (key in each key attrs.Keys writer.WriteAttribute, attrs (key)) Next attributes for as wr

c++ - How do I determine a maximum time needed for TCP socket to die due to intermediate network disconnect? -

I have a program in C ++, which is running on Ubuntu 7.04, using the standard socket API, Which opens a socket on a server. My system stays behind the router That's my program can be worthless (waiting for the user) I have to figure out how long it can take to get a socket error, once When the program starts, the router stops on the net. ). The router is disconnected from the internet, and then my program tries to communicate on that socket. Obviously it is not known quickly, because TCP is very efficient in keeping a socket alive under adverse network conditions. This gives TCP many times the opportunity to try again, in many ways, eventually it finally leaves it I can give to the QA Group (and the customer) that any kind of ' The worst situation 'needs to be installed so that they can check that my code goes into a proper offline state. (For reference, my program is part of a payment on the pump system for gas stations, and the server system that authorizes pay

overiding NumberFormat in .net application cultureInfo -

I have one in many different languages. NET application is available. I originally loads the file in system culture (containing doubles), but I always apply the numbers and implement the US culture format (using commas as a comma, using duration as the decimal separator) Want to do I tried to override the culture culture but it does not seem to work, is there any way to deal with this? culture end information. The specific purpose of continuing the data in a continuous format For the UI, if you really want to consider all formatting as US-style, you can: Application.CurrentCulture = new CultureInfo ("en-US"); Note that you will need to set up Culture at each thread.

Best bignum library to solve Project Euler problems in C++? -

I'm still a student, and I'm getting Project Euler a lot of fun. Sometimes the calculation is needed for the question which is bigger than the primitive types, I know that you can apply it, but I am very lazy to do this, So I tried some libraries, : Very good performance, but it only provides a big float, to check the probability that it is an integer, very good to accept input , But to provide output Compiles like Nda, and Visual C ++ magic with the 2008 Express. :: A small one, but many parts again require engineering. Very simple to use, but very limited power, and is very slow compared to others, only bigger integers. :: The most beautiful one I've tried so far, just include some files and you have incredible power / simplicity like compiling magic in Visual C ++ 2008 Express. It's fast, because it provides fixed-length numbers. It is created using C ++ metaprogramming. The only disadvantage is that this number is not arbitrary in length in run-time, bu

c# - Splitting Comma Separated Values (CSV) -

How to isolate the CSV file in C? And how to display it? I am using the Microsoft.VisualBasic.FileIO namespace. A C # project I'm working on is complicated like embedded commas or fields in quotes etc. It gives a string [] and can be used to parse any structured text file in addition to the CSV files.

activex - Remote Machine Scan -

I'm making a part of a web-application, to scan a remote user's machine for viruses Enabled / malware, before they can continue to use web-application ... something like McAfee on-demand scan. I'm assuming that ActiveX will be the way to go (because all on-demand scanners are active X-based of antivirus companies). I am a little bit stuck on how to solve this problem. I hope that I will not have to scratch some scratch. Do anyone have any ideas? Is it possible to integrate some previously available components in my code to do this? Let me know if you need more information. Regards, Sonal. short answer: just do not do that. Long answer: I will seriously re-evaluate your requirements here is compulsory for compelling virus scans properly from the webapp, and does not provide any real purpose from the webpage's perspective. The entire point of the web is that it is a user initiated request, and is run in a sandbox. For the sake of comparing access to t

Is data binding in javafx only possible during variable declaration? -

In view of javafx tutorials and samples, bindings are always created during the varibale announcements: < Code> def y = tie x; or def address = address {street: Bind Marystreet; }; But what do I have to do, if I have an invisible object - and therefore do not declare it - and want to pair one of its properties. In my case, I have a SVGAD I am loading with FxLL loader and then want to pair SVGPP in one variable. How can I get it? var data = true; Var fxdContent = FXDLoader.load ("{__DIR __} plan.fxz"); Var sc = fxdContent.lookup ("SC0013") SVGpath; Sc.visible = Tie data; // It does not work You can use a switched trigger such as That var fxdContent = FXDLoader.load ("{__DIR __} plan.fxz"); Var sc = fxdContent.lookup ("SC0013") SVGpath; Var data = true change on {sc.visible = data; } You may also be able to: deaf data = bind sc. Visible with inversion; This will give you twin updates between two variables.

How to programmatically convert SVG to PDF on Windows? -

I am trying to convert program to SVG into PDF documents on one server. What are my options for doing this on Windows? I have seen the link for links, and, but I'm not sure they can be easily automated to convert to a Windows server. P> (Basic binary, open source) You have more control over Will give With Inkscape, you can use the command line parameter (--export-pdf IIRC) to convert the UI without firing.

Django: what does "load" do (in a template file)? -

as "very normal" load search: What Is the purpose of "load" and what does it do in this particular case? - a template file, base_weblog.html, {% load weblog%} {% render_month_links}} What Naming conventions used for some work "load"? Like names of folders and / or files and / or class names? "Where is the documentation for the load" and you can expand? Description: Through direct download URL for example. Part folder structure (a file are not extensions folder): django_website Apps accounts aggregator blog urls.py models.py class entry (model. Model) Templetetets weblog .py Contact Docs templates base_weblog.html aggregator blog Antry_arciv html entry_archive_year.html month_links_snippet.html Entry_archive_month.html entry_detail.html entry_snippet.html entry_archive_day.html comments Contact Docs feed Flatfailen Flatpej registration < P> : Load a custom template tag set. I Notice for more informatio

java - hibernate restrictions and/or order -

Small questions about restrictions and restrictions. And If I do something like this: ... Criteria = Criterion A; Criteria = Restrictions. And (criteria, criteria B); Criteria = Restrictions These (criteria, criteria C); Criterion = Restrictions And (criteria, criteria D); It will be treated as: (A and B) or (C & D) (after mathematical conventions) < / Pre> or it will be treated in this order that the restriction has been added: ((A and B) or C) and D) Please also add any type of reference ... ((a and b) or c) and d) you can < Code> criteria = restriction

design - Who decides how an application UI looks? -

In some software companies, which should be responsible for UI design: User Designer The manager boss depends on the size of the company. I do not mean color and images only in UI design, but the layout of the control, count, size, style, text user can be seen. In a small company, the answer is "whatever is good" some of our finest graphics is a technical author There was a nature for graphic design which were designed by. Suppose someone does not have the perfect job title for a creative job - innate talent takes care of the job on any given day!

c# - Semi-transparent panel background -

I have a panel that sits at the top of the control that renders the video I have control over the panel , Etc.), which should be completely opaque. Now, it is possible to create a transparent panel background, overriding the CreateParams property. However, how do I create a panel with a semi-transparent background (~ 50% opacity), while keeping the button completely opaque? I am using .NET 2.0. Finally it turns out that it is not really possible, establishing transparency on the panel is very much in WinForms. nonsense. The work I used to do was to present the controls on the given surface manually, and to change the alpha values ​​in a proper way.

c# - Using partial classes -

In case of memory, performance etc., there is an overhead using partial classes? If we can partly identify the class that the class was partial or the reflector was not used No They are compiled for the same IL as they were not partial. It's a purely compile-time-CLR does not even know that they were sometimes partial. Note that has been introduced in C # 3, the method is not emitted in IL, as long as it does not apply to any one file. Both calls and announcements are taken away by the compiler. It is possible that this will slow down the compiler a susceptible part of the millisecond, of course :)

StateServer deployment in windows server 2003 -

हमने वेब अनुप्रयोग में सत्र StateServer अवधारणा को लागू किया है। स्थानीय पीसी (विंडोज एक्सपी) में इसका कामकाज ठीक है। उसी तरह का निर्माण हम विंडोज़ सर्वर 2003 में तैनात किए गए हैं। ये निर्माण लगातार काम नहीं कर रहा है कोई भी कृपया हमें बताएं। tcpip = SampleStateServer सेट करने का प्रयास करें: 42424 "स्थानीयहोस्ट: 42424 या 127.0.0.1:42424 < P> यदि आप एक वेब सर्वर को अपने सत्र सर्वर में बदल रहे हैं तो आपको यह सुनिश्चित करने की आवश्यकता है कि आपके पास सेवा सक्षम और चल रही है ... मैं कुछ खोजने की कोशिश कर रहा हूं जहां से सत्र सेवाओं को संस्थापित / सक्षम करने में आपकी मदद होगी ... < / P> आउट-ऑफ-प्रोसेस मोड .नेट एसडीके के साथ शामिल एक विंडोज़ एनटी सेवा है: एएसपीस्टेट। यह विंडोज सर्विस है जो एएसपी.नेट का इस्तेमाल आउट-ऑफ इस राज्य प्रबंधक का उपयोग करने के लिए, आपको पहले सेवा शुरू करने की आवश्यकता है। सेवा शुरू करने के लिए, एक कमांड प्रॉम्प्ट खोलें और टाइप करें: net start aspstate < / कोड>

CharSequence VS String in Java? -

Programming in Android, most text values ​​are likely to be in inversion . P> Why is this? What is the benefit of this, and what are the main effects of using Charasupta above the string? What are the main differences, and when using them, and what issues are expected of each other while using them? , so that you can use strings and do not worry. Android is trying to be just helpful by allowing you to specify other extreme boundaries such as stringbuffers.

asp.net - Automatically logging into and out of FBA SharePoint site -

We have found a WSS 3.0 site which is using form based authentication (FBA). We want to set up the site so that some users can be logged in automatically, then get the login screen, and I am not the best way to do this. Actually, I have already created an HTTP module that handles logging. More specifically, I have created an alternate login page, and when that page hits it logs it as the desired user, but this keeps logging the user after closing the browser, I start the browser, go to the alternate login page, my html module code gets triggered and logs as a desired user, then I close the browser When I try to go to the site, the standard login page of the site is left because I am previously logged in as a user in the form of a site. I think my question may come down, I'm sure I'm logging off? Is there a way to do it with HTTP modules / handlers or do I want to do something in the world? Ax? make a fool of me I had been set on the cookie parameter my FormsAuthent

php - regex and $_GET -

I am creating a small site for a friend, non-friendly, so that can make the page easier I think I'll just include everything in index.php. So she can only leave a page in a folder called / page / and it has been done. index.php if (preg_match ('/ [a-zA-Z] /', $ _GET ['page'] )) {$ Page = 'pages /' $ GET ['page'] 'Php'; If ($ page) {$ page included; } Else {exit; }} Other {include ('pages / home.php'); } Is it safe enough? I only allow AZ characters. I mean this is not a big site like Google, but I'm just an amateur, so I'm asking people to make sure :) What do you think is? You can use ctype_alnum ($ _ GET [ "Page"]);

java - Struts 1 not user-friendly with the browser back button: any solutions? -

I have found a Java website that uses struts 1. If the Brokers' back button is currently pressed in mid-way through a visit then the 'webpage has expired' error. By my limited understanding, it seems to be a flaw in the design of the string - each page is a form. Is there any way to solve the problem anyway, or is the only way to migrate to different MVC frameworks (Struts 2, SpringMVC)? This is not a strat problem, in fact it is obvious that the person who created it Does not believe in, and instead acts directly in a page in response to submitting a form. You forward this code to redirect = "true" for your action: & lt; Action ... & gt; & Lt; Forwarded name = "success" reference = "true" path = "/ module / index." Redirect = "true" /> & Lt; / Action & gt; See for more information.

iphone - ASIHTTPRequest: Receive delegates from several requests within a network queue -

I use ASINetworkQueue to send two requests, which are in queue. My problem is that when a request Fails / fails to receive notifications. Code: [networkQueue cancelAllOperations]; [NetworkQU set showoutcure progress: yes]; [NetworkCastuploadProgress Progressiveness: Self. Progress Indicator]; [Network qi set deliaget: self]; [NetworkQueue Setquudedfishfish selector: @Selector (QEDDuff)]; NSURL * urlAttachment = [NSURL URLWithString: @ "http: //localhost/test1.xml"]]; ASIFormDataRequest * requestFile = [[ASIFormDataRequest alloc] initWithURL: urlAttachment] autorelease]; [RequestFile setFile: filePath forKey: @ "Attachments [Test]"]; [RequestFile SetDifffileTracker: @Selector (test1WentWrong)]; [RequestFile SetDefinitionsSchell: @Selector (test1done)]; [NetworkCover add operation: request file]; // queue is an NSOperationQueue NSURL * url = [NSURL URLWithString: @ "http: //localhost/test2.xml"]]; ASIFormDataRequest * Request = [[[ASIFormDataRequest

mysql - Complex WHERE clauses using the PHP Doctrine ORM -

I am using PHP principle ORM to build my own questions. However, I could not understand how to write the following WHERE clause using DQL (Dictine Choir Language): WHERE name = 'ABC' AND (category1 = 'X' OR category2 = ' X 'or Category 3 =' X ') and Price & gt; 10 How can I specify where the brackets go? What do I currently have in my PHP code: - & gt; Where ('name =?', 'ABC') - & gt; And where ('Category1 =' ',' X ') -> or where (' class2 =? ',' X ') -> or where (' class3 =? ',' X ') - gt; And where ('price & gt ;?', 10) but it produces something like WHERE name = 'ABC' and Category 1 = 'X' or Category 2 = 'X' or Category 3 = 'X' and value & gt; 10 Due to the order of operation, the desired result does not return. Besides, "where", "and" where ", and" plus anywhere &

Why doesn't C# support local static variables like C does? -

क्यों नहीं सी # स्थानीय स्थिर चर जैसे सी है? मुझे लगता है कि !! आप एक प्रतिनिधि का उपयोग करके इसे अनुकरण कर सकते हैं ... यहां मेरा नमूना कोड है: सार्वजनिक फ़ंक्शन & lt; int & gt; वृद्धि () {int num = 0; नया फ़नक वापस जाएं & lt; int & gt; (() = & gt; {num num ++;}); } आप इसे इस तरह से कॉल कर सकते हैं: फ़ंक्शन & lt; int & gt; Inc = वृद्धि (); इंक ();

java - How to get the URL of the captured image? -

I launch an activity to capture a photo from the camera: intent I = new intent (Android.provider.MediaStore.ACTION_IMAGE_CAPTURE, blank); I.putext ("return-data" is true); StartActivityForResult (i, PICK_FROM_CAMERA); Can you please tell me how to get the Capture Image URI? You will do the following to get the picture taken from the camera < Pre> // Call to start call ActivateFor-Result (New Intent ("Android Media. IMAGE_CAPTURE"), PICK_FROM_CAMERA); Override public zero at @activityResult (int request code, INC results, result data) {if (requestcode == PICK_FROM_CAMERA) {Ury uri = data.getData (); // Set image image image via Yuri_previewImage.setImageURI (Yuri); }}

sql server - T-SQL User defined function overloading? -

I understand that the T-SQL object is not oriented. I have to write a set of functions that mimics the overloading method in C #. Is the function overloading supported in any way in T-SQL? If there is a hack to do this, then is it recommended? No, there is no way I recommend you repeat the requirement again, as "apple looks like orange" is often difficult, and suspicious value.

Transclude a category in MediaWiki -

I'm not sure that it is possible in mediawiki. I have several categories, each contain few pages. If you open a category page, you will see the content of that category which is usually included in these three parts: A user defined text (which can be edited using the edit link ). All subcategories related to this category. All pages linked to this category My goal is to create a page that consists of at least part # 3 of several categories, a page that shows me all the page names that are related to many categories of my choice. , Are classified on the basis of their category. My first method was to use the standard transceiver syntax of MediaWiki: Category A contains these pages: {{:: Category: A}} Category B contains these pages : {{:: class} B}} The pages in category C are: {{:: category}} ... ... Unfortunately, this is only part of the # 1 part of the category : The name of the user defined text page was not present in the list. My second idea was to kee

Where can I find sample automata and turing machines? -

I'm studying for an automated test which is one that is based on jflap. The problem is that we do not have too much documentation and sample SWAMAA, which I have found on Zlap and are insufficient to prepare for the upcoming test. Where can I find more? Any other resource would also be useful with sample tearing machines shown as graphs with the transition. "The problem of solving problems in automata, language and complexity" is a great textbook for anything related to ... In addition to other things in this title, you can find a bunch of examples of DFA / NFA / PDA / TM for all types of things, and they teach you many techniques to make them. EDIT: This is the first link you are talking about "ethical NPDA" and "deterministic NPDA". I am writing this edit to fulfill my will to condemn such exceptions and oxymoron :)

diskspace - How to find how much disk space is left using Java? -

जावा का उपयोग करके कितना डिस्क स्थान छोड़ दिया जाए? बस फ़ाइल वर्ग को देखें। यह 1.6 में नई सुविधाओं में से एक है। इन नए तरीकों में यह भी शामिल है: सार्वजनिक लंबे समय तक प्राप्त करेंस्पेस () < Li> सार्वजनिक लंबे समय तक फ्रिस्पेस () सार्वजनिक लंबे समय तक उपयोग की जाने वाली स्पेस () यदि आप फिर भी 1.5 का उपयोग कर रहे हैं, तो आप पुस्तकालय और इसके का उपयोग कर सकते हैं

sharepoint - Install a custom ASPX file as part of a ListTemplate definition -

I am using VSeWSS 1.3 to create a custom list definition for "custom" . P> & lt; Element id = "8924acef-84ef-4584-ade4-e3eaeb8df345" xmlns = "http://schemas.microsoft.com/sharepoint/" & gt; & Lt; "Type" Itgen.gif "/> & Lt; Custom Action ID = "Mylist. Print" location = "Microsoft SharePoint Standard Menu" group ID = "Actionman" title = "Print Myitm" Details = "Print empty copies of this form." Registration Type = "List" ControlAssang = "Mileist, Version = 1.0.0.0, Culture = Neutral, Public Key Token = D6A1316a726 BCD, Processor Arcterrator = MSIL" Control Class = "MyList. Print Action Menu" / & gt; & Lt; Module name = "ActionPages" Url = "" & gt; & Lt; File Url = "PrintForm.aspx" type = "Bhottable" path = "MyListDefinition \ PrintForm.aspx" /> & Lt; / Module &

sql server - SQL Query for information *not* in database -

I have a large list of an email address, and I need to determine that Which of those is not already in my database Can I create a query that will tell me this information? I am using SQL Server 2000 , if it needs no standard extension To create a temporary table, load the e-mail address in the temporary table and then do not do a query such as the e-mail address Select temp_table where there is no e-mail address (select email address from the table) You can extend it with INSERT

c# - Column width of a DataGrid in a Windows Mobile Application -

I have a problem adjusting the width of a column of the datagrid. I had posted the answer, but I solved it can not do. I am using a list of objects as a data source in this simple example, I have just created a smart device application, and just added a datagrace. Then my code is: public form 1 () {InitializeComponent (); & Lt; Prueba & gt; Lista = new list & lt; Prueba & gt; (); Lista.Add (New Prueba ("uno", "Doctor")); Lista.Add (New Prueba ("Three", "Dog")); DataGrid1.DataSource = List; DataGridTableStyle Table Style = New DataGridTableTable (); Table style.mapnamename = list Gettype () ToString (); DataGridTextBoxColumn TBCName = New DataGridTextBoxColumn (); TBC name With = 4000; TbcName.MappingName = "UNO"; TbcName.HeaderText = "UNO"; TableStyle.GridColumnStyles.Add (tbcName); DataGrid1.TableStyles.Clear (); DataGrid1.TableStyles.Add (tableStyle); }} Public square Prueba {public string UNO {get;

java - Can generic XML by parsed as nicely as simple XML in Groovy? -

Given a good, simple XML structure, XmlSlurper () allows me to read values ​​about it very easily Could. def xml = " gt; Title> gt; groovy & lt; / title & gt; & lt; / head & gt; Gt; & lt; / html & gt; Def html = new XMLSler (). ParseText (xml) println html.head.title Is this normal tree navigation made possible for generic (type-based, etc.) XML. Ideally, in the snippet of code below, I would like to run the values ​​with my name attribute, but instead, I have to search all this: Gt ; Xxml & lt; / Str & gt; Gt; & Gt; & Lt; / Lst> & Lt; / Doc & gt; DTP doc = new XMLSler (). Parsext (genxml) printline doc.list.fund {this. @name == "head"}. @name == "title"} Is there any way to do this: println doc.head.title < There are head and title attributes. There are disturbances and parsers: You can do this: println "$ {doc.lst.str [0]} $ { Doc.lst.str [0]. @ Name} "println

How to access the powershell v2 ctp3 assembies from c# -

I know that system. Management. Automation. Dll assembly has been put into GAC, version 6.1.6949.0, which I know is CTPP assembly when I browse for it, to add it as reference from VS 2008 TS in C #, it is not visible Let anyone know how I can add it. Concerning scope_creep Console application from a Visual Studio, I right on the reference Click on the Browse tab, click Add Reference, and Navigate C: \ Program Files \ Reference Assemblies \ Microsoft \ WindowsPower Shell \ v1.0 I then clicked on the system. Management. Automation. Dll clicked on the OK button, and it added the context of my project. Valid, it is probably not CTP3 DLL, but you get this idea. Make sure that in your context there is a reference copy of the desired DLL except GAC.

is jquery a problem for large scale sites? -

There may be jquery problems for large-scale sites in relation to something like Facebook, where a large number of visits to the site Does the site have a large amount of content? Why would this be a problem? JQuery is just an abstract of Javascript High scalability issues are on server side or bandwidth related, once the client has jquery cached (or heck can be done by Google) there should be no problem.

sql - Need help with Join -

So I'm trying to create a simple platform. This list of topics is either the date of the topic in descending order (if any No answer) or in the latest reply. Here is the DB structure: topic id, subject, date, poster mail id, topic_id, message, date, poster The forum will contain an HTML table with the following headers: topics | Last post | Answer: What will be the query or questions to produce such a structure? I was thinking that it would include a cross join, but not sure ... thanks in advance. Of course you can do a query for this, but I will give you the subject table field 'replies 'And' last post ', then update them on every new post. It can actually increase the speed of your database, not now, but at the time when you have thousands of topics.

php - How do I write Routing Chains for a Subdomain in Zend Framework in a routing INI file? -

I am trying to create a subdomain, using the Z Router, and then under each sub-domain, such as Subdomain .com / section / I'm making another route and then trying to sort it into the subdomain path. But I do not know how I have read all the documents and have read all the forums, but I have to find out this on my own. So far, my attempts just gives me this error: Catchable were passed Fatal Error: Argument 2 :: addRoute (Zend_Controller_Router_Rewrite) interface must implement Zend_Controller_Router_Route_Interface, null, see it / Var is defined in the / local / line 155 zend / library / zend / controller / router / rewrite.php and line 93 in /var/local/zend/library/Zend/Controller/Router/Rewrite.php < / P> with the following code: routes.b2b.type = "Zend_Controller_Router_Route_Hostname" routes.b2b.route = "sales.sitename.com" routes.b2b .defaults.module = b2b routes.b2b .defaults.controller = Suggestion A routes.b2b.defaults.action = index ro

c++ - Linux and clipboard -

After selecting the copies of the buffer in Linux, after the text, we can click and paste the button between the mouse. I think there is a special buffer for this, I want to use it. Programming Language: C ++ Your Library: Qt Thanks. There is just one more correct answer than Paul Dixon, which answers your needs: / P > QClipboard * clipboard = QApplication :: clipboard (); CastString Selected Text = Clipboard-> Text (QClipboard :: Selection);

c - getopt does not parse optional arguments to parameters -

In C, getopt_long does not parse the optional argument in the command line parameter parameter. When I run the program, alternative logic is not recognized as an example run below. $ ./pm --praise John kudos to John $ ./respond --blame John suck you! $ / Tomorrow - Blame you suck! Here is the test code. #include & lt; Stdio.h & gt; # Include & lt; Getopt.h & gt; Int main (int argc, char ** argv) {int getopt_ret, option_index; Static structure options long_options [] = {{"compliment", required_community, 0, 'p'}, {"fault", optional_gram, 0, 'b'}, {0, 0}}; While (1) {getopt_ret = getopt_long (argc, argv, "p: b ::", tall_paction, and option_index); If break (getopt_ret == -1); Switch (getopt_ret) {case: break; Case 'P': printf ("value% s \ n", optarg); break; Case 'B': printf ("You suck"); If (optarg) printf (",% s! \ N", optarg); Other printf ("! \ N", optg

How can I convert a Perl regex with named groups to Python? -

I am trying to change the following Pearl regex which is found in the Perl module, a Python 2.5.4 regex To parse a filename #parl> V5.10 re = & gt; '^ (? (& Lt; name & gt; *) [\ / s ._-] *.?) (& Lt; openb & gt; \ [?] (& Lt; weather & gt; \ d { 1,2} ?? (? & Lt; episode & gt; \ d {1,2}) (: - (: \ k & lt; weather & gt; x)) [x \ /]? (? & LT; endep & gt; \ d {1,2}) (? (? Lt; openb & gt;)]] (?: [\ S ._-] * (? & Lt; epname & gt; [^ I would like to use named groups as well, and I know that regex extensions are different for named groups in Python, but I have syntax I am not 100% sure. This is what I have tried: # Python (not working) r = re.compile (r '^ ( ? :(? P & lt; name & Gt;.?) [\ / \ S ._-] *)? (? P & LT; openb & gt; \ [] (P & LT;; weather & gt; \ d {1,2})? [ X \ /] (P & LT;; Case & gt; \ d {1,2})? (:-(?: KP & LT; Weather & gt; X) (P & LT; endep & gt; D

winapi - (Win Api) Check if an external application window is on the taskbar -

I would like to know whether it is possible to know that there is a window in the external application that is visible on the taskbar. I have a program that sometimes shows an error message and it appears on the taskbar, if I "turn off" the message, it will disappear, but what I have seen is still present. So the only way to know this is to see that window and "clickable" in this way is to check whether it is showing on the taskbar or not. How can I do this? First Use Spy ++ (Shipped with Visual Studio) Class name, window name, and windows hierarchy sign: When the error message is on the screen, press SPEAK + +, ALT + F3, then press Alt + D, then error message window Drug the explorer tool on, then press OK. If the window is top -Livel (i.e. its guardian is desktop) then use it. If the window is not the top level (i.e. his parents have some other window) then first use FindWindow to search the main window, then to find that error message window (poss

How to know if asp.net 3.5 sp1 and asp.net mvc are installed in the server? -

जब मैं उपयोग करता हूं: System.Environment.Version इसका नतीजा "2.0.50727.3053" है मुझे पता है कि 3.5 संगत है और आईआईएस में 2.0 के रूप में पहचाने जाते हैं, ब्ला ब्ला ... मैं जानना चाहता हूं सटीक .NET संस्करण स्थापित किया गया है और अगर अन्य संसाधन स्थापित किए गए हैं, जैसे एएसपी.नेट एमवीसी आदि। समस्या यह है कि वेबसाइट साझा होस्टिंग में स्थापित है, इसलिए मैं तकनीकी सहायता के लिए उस रिवालिस से पूछ सकता हूं, लेकिन अगर मैं प्रोग्रामैटिक रूप से जानता हूं, इसके कहीं बेहतर। सादर नहीं निश्चित है लेकिन ऐसा कुछ करने की कोशिश करें: bool mvcInstalled = true; {System.Reflection.Assembly.ReflectionOnlyLoad ("System.Web.Mvc, संस्करण = 1.0.0.0, संस्कृति = तटस्थ, PublicKeyToken = 31BF3856AD364E35") का प्रयास करें; } पकड़ () {mvcInstalled = false; } नवीनीकृत: यह जानने के लिए कि क्या। 3.5 3.5 SP1 स्थापित है System.Web.Abstractions विधानसभा के लिए जांच < / div>

Parallel algorithm design -

I am trying to figure out what is the best practice while designing the algorithm parallel to the data distribution model. What can be the pros and cons against the cyclical distribution vs. the block distribution of the data distribution in the memory. Any help would be appreciated. "post-text" itemprop = "text"> Quinn's "MPI and OpenM with Parallel Programming in C" provides lots of examples of different ways of distributing data in parallel programming There is even a decision-tree which relies on your needs to help you find out which approach is most convenient.

c# - Making a sub directory with a folder structure from part of a path -

यदि मेरे पास एक रास्ता है, तो ऐसा है: c: \ windows \ system32 \ Inetsrv \ abc.exe और मैं एक ड्राइव / पथ के तहत एक फ़ोल्डर बनाना चाहते हैं जैसे कि Z: \ Stuff \ < / Blockquote> मैं एक उप निर्देशिका कैसे बना सकता हूं और चयन कर सकता हूं कि क्या मैं खिड़कियों से सब कुछ चाहता हूं, सिस्टम 32, या इनसेटआर के बाद? BTW मुझे पता है DirectoryInfo को CreateSubDirectory () । धन्यवाद आप System.IO.Directory.CreateDirectory (पथ) का उपयोग कर सकते हैं। यह निर्देशिकाइन्फो के विपरीत एक स्थिर विधि है, जहां आपको कॉल करने के लिए एक डायरेक्टरी का आवेश होना चाहिए। इसके बाद आप सभी फाइलों और सबडिरेक्टरीज की प्रतिलिपि बनाने के लिए Xcopy या Robocopy का उपयोग कर सकते हैं।

Is there a possible solution to make the coding process scalable? -

Something similar in each of our programs, which is a waste of time and mind. < Has anyone ever thought of such a question? The goal is: / P> When we do coding, we only do new, say, this part is not the same as any part of the previous one. If there is a good solution, then it will be a great relief for many programmers! Yes, I thought and think about every single day - the solution is not simple but it is attainable : Always try to keep the common things in your code in retry artifacts. This is the solution, but it does not happen with accident - it is a daily effort.

javascript - How to convert a Title to a URL slug in jQuery? -

I am working on an app in CodeIgniter, and I am trying to create a field on a form, By default, the URL slug What I want to do, breaks punctuation, converts it to lowercase, and changes the space with hyphens, so for example, Shane's Rib Shake will become a sans-rib-flick. Even what I have so far lowercase was easy, but the replacement does not work at all, and I do not have any idea of ​​removing the punctuation marks: $ ("# restaurant_name"). Keyp (function () {var text = $ (this) .val (); Text = Text.toLowerCase (); Text = Text.replace ('/ \ s / g', '-'); $ ("# Restaurant_Slug ") Val (text);}); I do not know where the word 'Slug' came from, but here we go here. : function convert slogan (text) {return text .toLowerCase () .replace (/ / g, '-') .replace (/ [^ \ w -] + / g, '' ); } The first position will change the hyphen to an empty space, in the second place will not remove an alphanumeric, underscore, o

cross platform - Finding the window at a point on screen in java -

Is there a cross-platform approach to detect windows on a certain point on the screen? If not, what would be the similar function to get WindowsPoint for linux (X11?) And OS X? The swing has the functionality to identify the component at some point. What do you have to do?

javascript - ASP.NET MVC Rich Text Editor -

लक्ष्य इस विकी प्रविष्टि का लक्ष्य उपलब्ध रिच टेक्स्ट एडिटर्स की व्यापक सूची बनाना है गल ... पारंपरिक वेबसाइटें पारम्परिक रूप से हम किसी भी चीज का मतलब है जो एस्प.net सर्वर नियंत्रण और व्यूस्टेट के साथ नहीं है। ओपन सोर्स और वाणिज्यिक विकल्प दोनों चर्चा के लिए व्यवहार्य हैं। यह विकी क्यों मुझे बिट्स और उपयोगकर्ता प्रतिक्रिया के टुकड़े मिले हैं जिस पर संपादक लोग पसंद करते हैं, लेकिन बहुत से इनपुट में कमी है उपलब्ध समाधानों में बराबर तुलना। मानदंड संपादकों की तुलना निम्न मानदंडों से की जानी चाहिए: (यदि लोग अधिक मापदंडों का सुझाव देते हैं तो मैं उन्हें जोड़ने के लिए खुश हो सकता हूं) मूल्य ब्राउज़र समर्थित अन्य चौखटे पर निर्भरता समर्थन स्तर / डेवलपर समुदाय उपस्थिति संख्या & amp; ; संपादकीय दृश्य उपस्थिति उत्पन्न सामग्री की गुणवत्ता (पीओएसएच / एक्सएचटीएमएल) ज्ञात बग या अनुपलब्ध कार्यक्षमता ज्ञात quirks / सामान्य शिकायतों कृपया निम्न शामिल करें: संपादक का नाम संस्करण की समीक्षा की गई संपादक के होमपेज पर एक लिंक लंबित वैध नहीं है क्य

.net - How to set a base class internal field -

Im एक वर्ग (DirectoryServices.AccountManagement.Principal) को विस्तारित कर रहा है और मुझे बेस क्लास में फ़ील्ड के लिए एक मान असाइन करने की आवश्यकता है, लेकिन इसकी चिह्नित आंतरिक क्या मैं मान सेट करने के लिए प्रतिबिंब का उपयोग कर सकता हूँ? यह कैसे किया जाएगा? मैंने यह पाया: आधार। गेटटाइप ()। GetProperty ("अनारक्षित")। सेट वैली (??, झूठी); लेकिन यह सुनिश्चित नहीं है कि यह कैसे मुख्य प्रधान वस्तु देना है कोई भी मार्गदर्शन बहुत सराहा गया है। यह के लिए ??

SSIS location -

एसएसआईआईएस पैकेज एसएसआईएस पैकेज कहाँ कहता है? मैं Visual Studio 2005 के साथ संयोजन में SQL Server 2005 का उपयोग करता हूं। इसलिए डिफ़ॉल्ट रूप से मेरी सभी SSIS परियोजनाएं C: \ Documents and Settings \ santosh \ मेरे दस्तावेज़ \ विज़ुअल स्टूडियो 2005 \ प्रोजेक्ट्स मुझे बताएं कि क्या आपके पास एक अलग वातावरण में आपका SQL सर्वर सेट अप है या यदि आपने अपने विज़ुअल स्टूडियो विकल्पों में बदलाव किए हैं। यदि आप उपर्युक्त स्थान पर अपनी परियोजनाओं को न खोजते हैं, दृश्य स्टूडियो में उपकरण> विकल्प में परिभाषित डिफ़ॉल्ट प्रोजेक्ट पथ को देखें। इसे मदद करनी चाहिए