Posts

Spring.NET with NHibernate and quartz transaction (global transaction manager) -

I want to use Global Transaction Manager at my service level. For example. Namasthan assembly name. Call.seva Implementation {public class demosva {public zero demo} {save (model); // This is the nHibernate transaction SchedulerManager.GetInstance.save (id); // it is related to quartz}}} What should I do? If I used the TransactionScope () then it is giving me an error because NHibernateTransaction can not I & lt; Object id = "transactionManager" type = "Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate33" & gt; Have used. & Lt; Property Name = "DbProvider" ref = "DbProvider" /> & Lt; Asset Name = "Session Failure" Ref = "NHibernateSessionFactory" /> & Lt; / Object & gt; Edit : Then I used two transaction managers in the Spring config file: & lt; Object id = "transactionManager" type = "Spring.Data.NHibernate.HibernateTransacti...

java - Why does this md5 not match -

इस सवाल का पहले से ही एक उत्तर है: 23 उत्तर मैंने हाल ही में कुछ करना शुरू कर दिया अपाचे डाइजेस्ट यूथल्स के साथ एन्क्रिप्शन मैं बस प्राधिकरण के लिए एमडी 5 हैश का उपयोग करना चाहता हूं, लेकिन मैं इस विषय में एक पूर्ण शुरुआत कर रहा हूं और सामान्य रूप से जावा में वास्तव में अनुभव नहीं किया है। इस लाइब्रेरी के एपीआई ने मुझे एमडी 5, एमडी 5 एचएक्स के तरीके प्रदान किए। अगर मैं इन परिणामों का गलत परिणाम नहीं हूं तो हेक्सस्ट्रिंग के रूप में आउटपुट में भिन्नता है (मुझे यह भी यकीन नहीं है कि इसका क्या मतलब है) और नियमित बाइट्स। स्ट्रिंग बी 1 = डाइजेस्ट यूटील्स। एमडी 5 हेक्स ( "कुछ स्ट्रिंग"); स्ट्रिंग बी 2 = डाइजेस्ट यूथिल। एमडी 5 हेक्स ("कुछ स्ट्रिंग"); परिणाम 83beb8c4fa4596c8f7b565d390f494e2 & amp; 83beb8c4fa4596c8f7b565d390f494e2 लेकिन == परिणामों के साथ झूठी में परिणाम यदि (b1 == b2) {System.out.println ("मिलान") } मैं बहुत उलझन में हूँ और मुझे इस विषय के आसपास एक परिचय (स्रोत के लिए जावा!) क्योंकि == नहीं है कि कैसे स्ट्रिंग...

ios - How to authenticate UIViewController for Facebook API -

Actually if I use the code given below in the rep where I have added Facebook login button provided by Facebook SDK If it was started, then it works (enters successful and print out details). The representative class that I create and use the button is called "log-in visual controller": NSError * error) {if (error!) {// success! NSLog (@ "user information:% @", result) Include your code to handle results here; } And {nslog (@ "unsuccessful"); // An error occurred, we need to see the error // see: https://developers.facebook.com/docs/ios/errors}}]; However when I try to use it in another view controller named Profile View, it works (regardless of the active session) regardless of the session! So my wild guess is that I need a way to prove this scene so that I can access the user's information to Facebook? Please do I am doing wrong? Thanks alottt! ps How do I use this to check that the user is already logged in, so it should go to the profi...

How to find the First Character starting in SQL Server 2008 -

घोषणा @ इनपुट NVARCHAR (MAX) = 'प्रक्रिया परीक्षण करें' DECLARE @ SearhString NVARCHAR (MAX) = 'प्रक्रिया 1- मुझे स्ट्रिंग प्रक्रिया के बाद शुरू होने वाले अगले अक्षर की लंबाई ढूंढना है 2- इसके बाद मैं यह जांचना चाहता हूं कि क्या डीबो स्ट्रिंग निर्दिष्ट लंबाई में उस लम्बाई के बाद मौजूद है। मान लीजिए कि पहला अक्षर टेस्ट 14 स्थिति से शुरू होने पर स्ट्रिंग प्रक्रिया , इसलिए मुझे इसका उपयोग करना होगा DECLARE @ स्ट्रिंग varchar (20) = SUBSTRING (@ इनपुट, 21, 10) @ स्ट्रिंग इंडेक्स BIGINT = CHARINDEX (' dbo। ', @String) @FirstCharacterIndex BIGINT घोषित करें (यह पहला अक्षर का सूचक होगा) यदि @ स्ट्रिंग में स्ट्रिंग dbo नहीं है, तो सामान MySchema टेस्ट से पहले। कृपया सुझाव दें। UPDATE मैंने अपनी खोज को अपडेट कर लिया है आयन 22 @ इंडेक्स + @ फॉर्टेक्टर इंडेक्स + 9 @ इंडैक्स = 8 @FirstCharacterIndex = 4 का परिणाम है (रिक्त स्थान के लिए 3 गिनतीएं और चौथे को पहले वर्ण के लिए है) 9 = स्ट्रिंग के प्रक्रिया प्रयास करें नीचे यह एसक्यूएल...

optimization - stream multiprocessor, core per streamprocessor in cuda -

विभिन्न प्रकार के nvidia ग्राफिक कार्ड के साथ, इसमें अलग-अलग स्ट्रीम मल्टीप्रोसेसर और प्रत्येक प्रोसेसर के साथ अलग-अलग संख्या है प्रत्येक स्ट्रीम प्रोसेसर में कोर। डिवाइस की क्षमता के अनुसार धागे ब्लॉक को एक ही प्रोसेसर को 32 वार्प्स के ब्लॉक या 16 वार्प्स के 2 ब्लॉकों के समान सौंपा गया है। लेकिन मैं प्रत्येक स्ट्रीम प्रोसेसर में कोर की संख्या को समझ नहीं सका प्रत्येक स्ट्रीम प्रोसेसर में बड़ी संख्या वाले कोर वाले उपकरण का महत्व क्या है मुझे लगता है कि बेहतर अनुकूलन के लिए हमें डिवाइस गुणों का बेहतर उपयोग करने की आवश्यकता है धारा प्रोसेसर के बारे में डिवाइस में सीयूडीए प्रोग्राम किस तरह से बहती है और हर स्ट्रीम प्रोसेसर को कोर में? प्रत्येक स्ट्रीम प्रोसेसर में बड़ी संख्या वाले कोर वाले डिवाइस का क्या महत्व है ??? प्रति एसओ के कोर की संख्या लगभग कितने का अनुवाद करती है ताने निर्देश किसी भी घड़ी चक्र में संसाधित किए जा सकते हैं। एक एकल ताना अनुदेश किसी भी घड़ी चक्र में संसाधित किया जा सकता है लेकिन निर्देश को पूरा करने के लिए 32 कोर की आवश्यकता होती है (और इसे प...

c# - Changing connection string from SQL Server to windows authentication -

/ P> name = "GCDataContext" connectionString = "data source = 111.78.152.64; initial catalog = gc; user id = s; password = xxxx; reliable connection connection = false; continue security information = true; multiple nonactive Resetset = True "ProvisionName =" System.Data SQL Client "/> Change in (not working) Can anyone help me on this? Integrated Security = True is for Windows authentication, but the connection is not established. /p> ASP.NET applications do not impersonate by default. As a result, when they use Windows authentication to connect to SQL Server, they use the process identification of web applications. With this approach, your front-end web application has authenticated and authorized its users and then uses a trusted identity to access the database. Database relies on the identity of the application and relies on an application to properly validate and authorize callers. To connect to SQL Server...

java - Moving files between folders based on file name -

I tried some code to run some priority files from one folder to another (i.e. file with the first name Should be transferred first) string option 1 = "ww document"; String option 2 = "OEM-document"; ArrayList & LT; File & gt; InsertOrder1 = New ArrayList & lt; File & gt; (); ArrayList & LT; File & gt; InsertOrder2 = New ArrayList & lt; File & gt; (); ArrayList & LT; File & gt; InsertOrder3 = New ArrayList & lt; File & gt; (); String bassdire = "d: \\ vignesh \\ levfoulder"; String destDir = "D: \\ vignesh \\ leftfolder \\ testFolder"; File initialization = new file (basedear); (For File File: Forward: Initial Location.List Files ()) {String Filename = FileTomoveGetname (); If (fileToMove.getName () ends (".jar")) {if (fileName.contains (choice1)) {insertOrder1.add (fileToMove); } And if (fileName.contains (choice2)) {insertOrder2.add (fileToMove); } And {insertOrder3.add (fileToMove...