Posts

ruby on rails - Facebook authentication over API -

I have a ruby ​​on the tracks that currently supports Facebook Authentication with devise / omniauth. An iOS client is being created which also requires the support of Facebook Authentication My question is to get the user's email out of a ubiquitous callback How do I access the access token server? I understand Omniauth provides some middleware that callback on a Facebook writes an ath hash in which all information is requested.env ['omniauth.auth'] : The flow with an IOS client is a little different, I think: User agrees to use the app. Client app post access_token rail API. Railway app confirms use of token with Facebook and retrieves users' details. This is step 4 that I'm not sure how to do Basically once I have a token, I manually How do I get an auth hash when I am not in the universal callback? Thanks for any help. Div> Try using the gem "" Example: @ graph = Koala :: Facebook :: API.N. (oauth_access_token) pr...

javascript - how to hyperlink in tab menus from another page into tabs -

I am creating a page adpost.php and in this page I have created various sections like tab tabs, tab 2 and tab 3 I'm creating 3 tabs menu with I use form submit in all tabs, so I am creating a new page index.php and in this page I am creating three buttons and I want to link these buttons to adpost.php in tab like That's when I click on the second button in hyperlink on adpost.php in tab 2. Pls help & lt; Div id = "form-link" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; An id = "business" href = "freeaddpost.php # tab2" & gt; Promote your business for free & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "buy-sell-ad.php" & gt; Free Buy / Sell Anything & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "job-service.php" & gt; Submit Free & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul &...

virtual machine - How VM Name is resolved over the LAN Network? -

I hosted a test-vm named VM (Red Hat Linux) on my desktop machine (Windows) a static IP address But I do not have any DNS entry for this static IP address. Without an entry in the client's host file, I am surprised that the Ping Test - VM is the answer. How is this possible? How does test-vm work on other machines on our LAN network without entering DNS for Test-VM? Regards, Adil Khalil Post Text "itemprop =" text "> I think you are using a vmware client in your Windows desktop. In this situation, the hostname is connected to your vmware virtual DNS. With your pinged broadcasts in the network, your VMware virtual DNS is forwarding ping to your VM client.

java - open excel sheet using hssfworkbook -

I am opening an Excel sheet with 3 tabs, and I am writing in 2 tabs The links are clicked in the form For further explanation, add 3 links form to me, cancel, modify and clicking on a certain link will download the Excel sheet, which is the data in the related tab, the rest 2 tab will have empty data. But every time a tab is clicked on which link is being opened (data is being written in the right tab), which can confuse the end customer. How can I ensure that a special tab should be opened in which the data is written. Thanksgiving or use XssfWorkBook.setActiveSheet Index) where index is the index of sheet. it should work. And after doing this, make sure you also need to do the writing work to make the changes permanent.

sql - mysql delete with cross table lookup -

एसक्यूएल लिंग से हटाएं, यूज़र यू कहां S.id = 195 और u.id = s.uid और u.sessionCheck = 'd986a074c7549c566bfed1d4ad7ca491' त्रुटि # 1064 - आपके SQL सिंटैक्स में एक त्रुटि है; पास के मैनुअल का उपयोग करने वाले मैनुअल को चेक करें, जो आपके पास सही सिंटैक्स के पास है, यूज़र्स यू कहां एस.आईडी = 195 और यू.आईडी = एस.यूआईडी और यू। सेशन चेक = 'डी 9 86 ए 074 सी 0 9 4' लाइन 1 पर है। > तो स्पष्ट रूप से त्रुटि हटाने में शामिल होने के साथ है मैं सर्वर संस्करण: 5.6.16 - MySQL समुदाय सर्वर (जीपीएल) का उपयोग कर रहा हूं P> हटाएं s / * यह उल्लेख करना भूल गया कि आप इन 2 * .id = s.uid WHERE s.id = 195 और u.sessionCheck = 'd986a074c7549c566bfed1d4ad7ca491'

ios - How to show loading spinner between two screens -

I have an app with two UITableViewControllers by clicking on a cell in the first table view Get data from the server and then moves the user to another table view. When the user clicks, I am loading the data from the server and then shows the second table view. So in between is a fraction of a second interval because the data is loading from the server. I would like to immediately show the "loading" spinner when the user clicks on a cell in the first table controller and the "loading" spinner disappears when the data is received from the server. This is what I am currently doing: Class First Controller & lt; UITableViewController ... def tableView (Tableview, Selection RowToundPath: IndexPath) initAFNetworkingClient Colors.fetch (AFMotion :: Client, Data itself [indexPath.row] ["id"]) Data | Self.navigationController.pushViewController (SecondController.alloc.initWithData (Data, Self Data [indexPath.row]), Animated: True ... End End ... ...

symfony - Ember App Kit + RESTAdapter + PHP - PUT request fails -

I am using amber app kit and amber data to communicate with the server, so far everything works great I have been able to create the model and retrieve data using the REAtadapter I have implemented the JSON API using Symfony2. But now when I want to save the edited data on the server and when I call the saved method () on the model, it sends an option request to the server but XMLHttpRequest can not load. Method PUT is not allowed by entry-control-permission-methods I know that you can not send PUT requests from the browser to another domain and I'm not saying how to do this My question is how can I use Amber App Kit and its features and service and front app on the same domain? When I start grunting using Amber App Kit then this port starts from 8000 and my Apache is working on the port which is working on the port 80. As I can copy + Amber App Kit's generated results, if there is a better solution by using Apache as Apache, I keep on spinning. Maybe it'...