Posts

branch - How can I get a list of files in a git commit? -

इस सवाल का पहले से ही एक उत्तर है: 23 उत्तर मैंने कुछ फ़ाइलों को प्रतिबद्ध किया है मास्टर पर और कुछ स्थानीय शाखाओं को मास्टर शाखा के साथ विलय कर दिया। मास्टर शाखा पर प्रतिबद्ध फाइलों की सूची कैसे प्राप्त कर सकता हूं? मैं मास्टर शाखा पर प्रतिबद्ध फाइलों की सूची कैसे प्राप्त करूं? git ls-tree की सूची एक पेड़ ऑब्जेक्ट डिफ़ॉल्ट रूप से, यह ट्री ऑब्जेक्ट में संदर्भित प्रत्येक ऑब्जेक्ट की अनुमति, प्रकार, हैश, और संबंधित फ़ाइल नाम सूचीबद्ध करता है, लेकिन आप इसे केवल को प्रिंट करने के लिए - केवल -नाम विकल्प का उपयोग करके बता सकते हैं । git ls-tree --name-only master संपादित करें (धन्यवाद एलेक्स): आप भी शायद चाहते हैं उपशीर्षक (उदाहरण के लिए, आपके प्रतिबद्धता के शीर्ष वृक्ष वस्तु के अंदर "नेस्टेड" पेस्ट ऑब्जेक्ट्स) में recurse करने के लिए -r फ्लैग का उपयोग करें। git ls-tree -r --नाम -मास्टर मास्टर

spring login by social account -

Is it possible to allow users to apply to use their social account in Spring Social? I think users can add their account to social account in the user account, if there is a user who is not registered in the application and we want to allow him to enter the application, then it It is not possible because we made user connection after creating the connection replayer. Do you have the definition of @Bean (name) = "ConnectionFactoryLocator") public Knekshnfinetrloketr Knekshnficrllaoketr () {ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry (); Registry.addConnectionFactory (New FacebookConnectionFactory (facebookId, facebookSecret)); Return Registry; } @Bean public UsersConnectionRepository SocialConnectionRepository () {new SocialConnectionRepository return (data source, UserRepository, connectionFactoryLocator ()); } Where the user stores example is for spring data JPA stores / write to your users in DB to read in the table. Then you can us...

Javascript only when cursor focus within textbox -

Is it possible to run a JavaScript function when cursor focus is in a specific text? I want to do one thing on the keypress of the enter key, however I do not want to place this event listator normally on the page, but only when the cursor contains Textarea I have (id postcontent ) As an example, the function I am using is: function OnEnter () {if (characterCode == 13) {console.log (press "press"); }} Just as a start when I issue Focus ... In my settlement I also have jQuery. div1.onfocus = function onEnter () {if (charactercode == 13) {console .log (press "press"); }}

c# - The operation is not valid for the state of the transaction. Something wrong with TransactionScope -

I have applied the transaction scope in my application. But I got the following error Operation is not valid for transaction status. Here is my code try {using (System.Transactions.TransactionScope scope = new) system. Transnaces. TransactionScope ()) {Update Database 1 (); UpdateDataBase2 (); // This line throws the scope. Complete (); Both databases are on the same server (Server 1) (running MSDTC service). My application is on a different server (Server 2). I googled around and found two posts with the same problem. and I found that there are 2 main reasons for my problem (1) MSDTC service and (2 ) Transaction scope can not be used to open the connection. But when I test the same scenario in the local area it works, the work of the above 2 possible reasons is very good.I do not know what happens when I host them? > Help me.

javascript - Testing Angular Controller As with Jasmine -

I'm new to Jasmine / angular testing and I'm trying to test a controller. The control code is given below (function () {'strict use'; angular.module ('app'). Controller ('action events'), action events CTRL. $ Injection = ['$ log', 'action events']; function action events citation ($ log, action events) {/ * jshint is valid: true * / var vm = this; // getActionEvents (); vm.ActionEvents = [{"Details" : "Second", "Type": 4, "Detroit": "2014-10-17T00: 00: 00", "Hanotified": True, "Status": 0, "User": zero, "id" : 6}, {"Details": "Third notification", "Type": 2, "Date Ridge": "2014-10-18T 00: 00: 00", "Hanotified": True, "Status": 1 , "User": blank, "id": 7}]; vm.init = getActionEvents (); function getActionEvents () {var userId = 1; ActionEvents.get (userId...

nginx - Return html file depending on parameter -

I want the NGN URL to give different HTML based on parameters: url I want to send /var/www/mysite/pages/page1.html for browser file - /var/www/mysyte/pages/page2.html and I want to see the user URL in my browser is it possible? This should work for you (page1.html along with fallback requirement): server {root / var / www / mysite / pages; Place / blog {rewrite ^ (. *) $ / Page $ arg_page.html break; Try_files $ uri / page1.html; }}

php - Matching all strings of the format Names#Age#Gender#City -

I have some strings in the string, such as format name # , or name # or name # age # gender or name # age # gender # city I just want to match that string It satisfies name # age # gender # city # . I want to regex this cron job for the job I will be using in this question Select text_message from incoming_sms where text_message REGEXP '^ \ w + (? : $ \ W +) + $ My regex ^ \ w + (?: $ \ W +) + $ does not seem to work. How can I fix my code name # age # gender # city okay ?. ^ ([^ # \ n] + #) {3} [^ \ n #] + $ Try it out. See the demo.