how to track pinterest pin events - pinterest

I am working on a site which is similar to this page- http://fab.com/feed/
Here, i need to track when a user clicks the pin button.I found that Pinterest havnt got any API's til now and while searching i got some codes which will track the clicks on pin button on my site.But this will not be an exact solution as user can click the button and then close the iframe which pops out without actually pinning the content.So can any one here helps me out?

The only solution we figured out was listening to the click event on pinit button and assuming user added it to pinterest if they clicked on the button. Pinterest is not quite ready with a callback mechanism for pin. They do have a roadmap to build this feature.
sources: I developed fab.com/feed ;)

I had the exact same problem a while ago and found a way to do it rather nicely. However, because the solution is not as straightforward as it should be, I wrote an article about it, which you can find here.
Hope that helps!

Related

How can I code a Xamarin.Forms splash screen with a left right swipe?

I have seen some applications that start up with a splash screen with a next button that when click makes another page roll in from the right. On those pages is usually a next or back button that lets a user go back to the first screen or proceed to the next.
I've not seen anything in the Xamarin examples on how to do this.
Would appreciate if someone could provide an example or give me some suggestions as to how I can do this.
Thanks
What you're looking for is CarouselView. It doesn't come bundled with the stable Xamarin.Forms installation so you'll have to download it separately or add through NuGet.
Here's the NuGet and the GitHub repository.
With the CarouselView, you can have multiple "pages" in the style of splash screen/onboarding screens that are popular these days.
Here's an article on how to use the control: https://blog.xamarin.com/flip-through-items-with-xamarin-forms-carouselview/
Edit: On another thought, I'd probably use the CarouselView implementation by GitHub user alexrainman. It has more features, is better tested and more mature.

If Steam can map the guide button on the Xbox 360 controller why can't I

I want to map the Xbox Guide button on the Xbox 360 controller.
I've been searching for a possible solution for some time now and from the looks of my google results it seems that the only way to do so is by using a custom driver.
However, I tried using Steam Big Picture mode today and was surprised to see that Valve has managed to achieve this to open the Steam Overlay. So how come I can't find any information on how to do this? Does anyone have any idea of how they've done it?
I've thought of possible solutions, aside from a custom driver, and I wonder if you could read the raw data from the controller? The button must send a signal so it should be possible detect when it's pressed, right?
Any help is much appreciated.
To mark as answered: #luke answered this in the comments with:
Assuming you are using XInput, it appears that use of the Guide button
is undocumented. However, people have figured out that it apparently
sets bit 0x0400 in the button bit flag. More information.

WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored

You all know the Windows Phone backstack right. If you go through some apps, tap the Home key after starting each app. Now tap and hold the Backkey to see the Backstack. You can now see some small images of your apps, and can pick which one to go to right.
Question:
Is it possible to intercept before the backstack image is created? I have tried to blur my page in various events (include OnNavigatingFrom) to no avail.
My guess is some other event (probably something we don't have access to) is triggered and a bitmap is created, because when you use the Backstack to navigate you can just see a slight transition from the saved image to a real page IMO.
Does anyone know if its possible to intercept or manipulate these images on the backstack?
Example screenshot from WP emulator of the Backstack thumbnails
Following my comment, I've just tried this:
Set a breakpoint anywhere in the code
Start the app with the debugger attached, then let it reach the breakpoint
While the execution is stopped by the debugger, long press on the back button
The task switching UI is displayed even though the managed code execution is stopped
From there, I think we can safely conclude that the task switching and the thumbnail are handled entirely by native code. Therefore, there's nothing you can do.
I recently wrote a blogpost in which I discuss the ways I tried to hide data from the application snapshot. (You can read it here: http://corstianboerman.com/trying-to-hide-crucial-data-from-an-application-snapshot/)
The outcome: You just can't hide it.

Implementing shake to go home Functionality

In my application client had a requirement that. When the user shakes the phone he/she should navigate in to the home page. So writing the shake event handler in each page seems bit difficult. Is there any way present to handle this event in a single page like app.xaml, if any one go through similar situation and found a solution please help me too for achieving the functionality
For shake detection you should use accelerometer like described in this article. For presenting it to all pages, you could use
RootFrame
property in your app.xaml.cs and call it's Navigate property when the shake is detected.

Terminating a Share Picker app on load complete

I've implemented a Share Picker Extender (which lets you share a photo from the Pictures hub to your app via a special token), and would like to close the app once the user has clicked on the button to upload the photo, as the built-in Facebook app does.
I'm aware of the many questions re terminating apps - I'm just wondering if I'm missing something for Share Picker Extenders ... Telling the user "Now press the back button" seems pretty ugly, but perhaps it is the only (certification worthy) way. If you've implemented a Share Picker extender, what have you done?
I wasn't able to figure out a good way to handle this either. I detect that users have gone back to my first page and say "Click here to go to our main app" and "Click back to go pack to Pictures". And if they click the first one, Navigate("MainPage.xaml");. You have to make sure you don't accidentally prevent them from leaving. I asked this question awhile ago in this thread and got no response.

Resources