Posts

Appcelerator. Twitter auth in webview -

मैं उत्कृष्ट Appcelerator टाइटेनियम में वेबदृश्य का उपयोग करके ट्विटर कनेक्शन करने की कोशिश कर रहा हूं मुझे पता है कि डेविड आर से बाहर एक महान पुस्तकालय है, लेकिन मैं एक पॉपअप का उपयोग नहीं करना चाहता और मुझे लगता है कि मुझे प्रवाह पर अधिक नियंत्रण की आवश्यकता है। मेरा प्रश्न यह है: प्रमाणीकरण प्रवाह के दौरान मुझे ज़रूरत है एक oauth_token प्राप्त करने के लिए जो (मेरी जानकारी में) उपभोक्ता कुंजी और अन्य मूल्यों का एक संयोजन है मैं यह कैसे कर सकता हूँ? मैं इस टोकन को कैसे उत्पन्न कर सकता हूं ताकि मैं प्रक्रिया जारी रख सकूं? मैं जावास्क्रिप्ट का उपयोग कर रहा हूँ। सभी इनपुट के लिए आभारी! यह OAuth 1.0 ऐप के आधार पर एक बहु-कदम प्रक्रिया है, आप विवरण में & lt; & gt; कुछ भी करने से पहले, आपको ट्विटर के साथ एक आवेदन रजिस्टर करने की ज़रूरत होगी और वे आपको एक ट्विटर एपीआई कुंजी और एक उपभोक्ता टोकन (कुंजी और गुप्त) प्रदान करेंगे। अगले चरणों के लिए, OAuthConsumer या कुछ अन्य लाइब्रेरी, लेकिन इन चरणों में से "अनुरोध टोकन" प्राप्त करने के लिए उचित अनुरोध जेनरेट करना...

What interpreted language can i leverage for debugging? -

I talked about developing a programming language. Instead of compiling it, I am considering to understand the meaning. So what I have to do, parse is to create the syntax itself, the AST in the current scripting language and the output source. What I want to know is what I can interpret for debugging? I would like to call a call stack, file / source name and row # to modify the variable on the fly. Which IDE should I use? I like visual studios but I think that does not mean any interpreted languages. Eclipse should use what you want Any interpreted language is supported and you can easily debug with debug perspective. The advantage of the Python language is that all open source are in fact, there is no problem and you can see the source code without problems.

c++ - Qt closing tray icon after application stops -

I have a small problem with the tray icon at the bottom of the windows After my Qt application stop (normal exit) the icon still The system stays in the bar. It disapears only when I move the mouse cursor over it. I tried to hide it in my window disaster but it failed: I tried .setVisible . Any thoughts? Thank you. P.S. I remember that I had the same problem with SWT / Java. I will not hide it in the destroyer. This will potentially be an invalid reference at that point. I will put it where the event is to "exit".

.net - How to set focus to an object(textbox) in main form from another form (C#) -

Whatever problem I know, I should have trouble trying that my textbox is in a group box. I have a mainframe from which I go to any other form. When I come back to the mainfrom, I want to focus a particular object. How is this done? My main form is my code. Private Zero Button 1_Click (Object Sender, EventEurge E) {Form 1 FM = New Form 1 (); Frm.ShowDialog (); } Now that I come back from Form 1 on my main form. Private Zero Button 3_Click (Object Sender, EventArgs e) {this.DialogResult = DialogResult.OK; } I have textbox1 in the microform, except for Form1 and how to focus on TextBox 1 while entering the mainframe. I have textBox1.Focus (); and tried this. ActctControl = this.textBox1; Under load , show , active and enter the event still did not work Tried to make a public law and called it under the exit button of Form 1. like this. In the main form, public zero text Box1Focus () {textBox1.Focus (); } and then in Form 1, Private Zero Button 3_Click ...

file locking in php -

I had a newcomer (next door teenager) Write some php code to track some usage on my web site I'm not familiar with php, so I'm asking about concurrent file access. My original app (on Windows), sometimes kills the URL and puts some data in which my PHP script. The original application does not check returned data. $ fh = fopen ($ updateFile, 'a') or die ("can not open file"); FILIT ($ FH, $ IP); FILIT ($ FH, ','); FILIT ($ FH, $ date); FILIT ($ FH, ','); FILIT ($ FAH, FETलोड (',', $ _GET)); FILIT ($ FH, "\ r \ n"); Fclose ($ fh); This is a low traffic site, and data is not important. But what if two users try to bump and try to add a line in two example script files? Is there any hidden file locking in PHP? Is at least safe with code locking and never returning control to my user? Can the file be corrupted? If I have a file script above, then delete the file every month, what happens if another example of the scr...

Control rails application from Iphone's cucumber -

I am using franc to test the features of my iPhone app. The iPhone app is synchronizing the data with app rail and I want to cover the synchronization process with acceptance tests. I want to be able to use standard ruby ​​commands to manage the data of my rail app, for example, to create a table of products in the rail app, and then I can see that it becomes synchronized on the iPhone. (Or frank), then I have the product from the tests of my iPhone. Can I use fund_by_name ("product name")? I ended hacking this together: Paste this into frank / features / support I'm not a great rail developer. Someone might just clean it but it works for our purposes.

c# - Base classing a synchronous controller into an async controller to hide complexity -

वर्ग MyBaseController: AsyncController {// ...} वर्ग SimpleController: MyBaseController {सार्वजनिक ActionResult MySyncAction () {} } मैं हमेशा को एक काम करना है, OperationX () । यह सभी मेरे अनुरोधों के लिए एक लंबे समय से चलने वाला अभियान है यह कई चीजों पर आधारित मूल्यों को अलग करता है, लेकिन यह एक तकनीकी विवरण है। मैं एक एएसआईएनसी फैशन में ऐसा करना चाहता हूं, और फिर नियमित तरीके से नियंत्रक की क्रिया विधि को बुलाता हूं। हमारे पास सरल कंट्रोलर दुनिया में कोड का एक टन है, और हमारे पास सैकड़ों नियंत्रक और रूट आदि हैं, इसलिए यह सभी कोड को एएससीएन में कनवर्ट नहीं करना है। क्सीसिटन, इसलिए यह है कि मैं माइबस कंट्रोलर के मायसेंकएक्शन में आ रही किसी कार्रवाई को रोकता हूं और फिर MyBaseController के एसिंक क्रिया हमेशा को दबाता हूं, और उसके बाद केवल बेसकंट्रोलर में एसिंक कार्रवाई के पूरा होने पर, तब मैं सिंपलर कंट्रोलर के MySyncAction को कॉल करता हूं। क्या यह संभव है, सबसे अच्छा तरीका क्या है? यदि आप केवल SimpleController के MySyncAction कॉल करना चाहते हैं BaseController ...