api

Private viewers using the YouTube API

Has anyone been able to set who can view a private video on YouTube using the API? ...

Twitter API from

I have created a page on my site where users can post directly to their twitter accounts using a form on my site. I am using curl to send the data. However, when they post something it says it was posted "from API" I would like to change that to my sitename/link. I read something about doing it through OAUTH but I do not want my users to...

Does anybody know a tool or C# API that compares two different fulltexts and display and highlight the differences and render in HTML??

Does anybody know a tool or C# API that compares two different full texts and display and highlight the differences and render in HTML?? I should be bale to give two sets of text to the tool or API and it should return me with the highlighted difference. for eg. first set of full text is "this is test text for the difference highlight...

Writing the interface to a web service API

I'm beginning to design a web-based API and the very first issue—how will users interact with it—left me at a loss. This is an API that is only going to be used by other folks within our company and will be used by people who have some programming knowledge, so there's a good bit of leeway in all respects, and it needn't be simple enoug...

Django - How to get only 2 object for a combination of fields with a queryset

If I have Model.objects.all() I want to get only one object for any content_object=foo, object_id=N. How can I do that? Say I am ordering by -datetime. If I can get only one object in the queryset for any content_type=foo, object_id=N ... it should be the latest.. How to specify that I only want 1 object for any combination of cont...

Django-queryset get one object per field=foo

I have a basic FK to user, call it owner class Baz(models.Model): owner = models.ForeignKeyField(User) .... .... Now, with a queryset of Baz's, is there something that I can chain that will give me only one Baz per owner? ...

Make an app wirelessly connect to an Xbox 360 (ala Connect360, Rivet, Vuze)

Programs like Connect360, Rivet, and Vuze can wirelessly connect to an Xbox 360 and share videos and pictures on your Mac with it. How do they do this? The simplest answer would be that Microsoft offers some sort of API, but I haven't been able to find one. Furthermore, the programs I listed have wildly different feature sets, and Micro...

google talk java api support voice chat

I Have to write a google talk client & now I want to write voice chat for this . I'm using smack api from ignite realtime . I've tried the smack jingle that is based on standard jingle but it won't work with google talk . VoiceClearly offers a free Java API for Google Talk that support voice and chat , but it doesn't release this API sou...

How to get Linux distribution name and version?

In Windows I read the registry key SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName to get the full name and version of the OS. But in Linux, the code struct utsname ver; uname(&ver); retVal = ver.sysname; returns the string linux, not Ubuntu 9.04. How can I get the Linux distribution name and version? ...

Can this API be improved?

In our CORE library we offer this class as a 20,000 line abstraction. Can you see anything wrong with the way this is designed? Note1: This class has a SharpZipLib backing. Note2: SharpZipLib is approximately 20K lines. public static class Compression { public static Byte[] CompressBytes(Byte[] input); public static Byte[] C...

Facebook API - "All my likes" query

Is it possible to retrieve all the posts, user ever 'liked'? FQL? API? I could not find a way. FB gurus out there, your help would be appreciated. ...

What is the difference between a Java API and a library?

I know that an API is called a set of functions used to call something, and a library is a collection of classes, but what is actually API in package like Java.lang? I can connect to a class like System without using any API here, so why we say as J2SE API rather than J2SE packages? ...

Any standard guide for Ruby WIN32OLE API?

Hello all, I searched a lot on this but haven't yet got any standard or rather systematic guide for Win32Ole in Ruby. Ruby on windows by David is very good but I need a complete, systematic standard tutorial for WIN32OLE ruby APIs. Please suggest! Thanks Pradyumna ...

Show new "3D style" pan control only in Google Maps

Hello, Is there a way to only show the "3D" style panning control in Google maps, i.e. don't show the zoom controls. Regards, Jonathan ...

.Net CMS with API to expose content

I am looking for a .Net CMS that allows me to expose pages/articles that are created in the CMS to other applications without querying the CMS database. Preferably this would be done through an API and by exposing them through a custom secured webservice. I know Sitefinity can do this. Do you know if Umbraco DotNetNuke can do th...

Yahoo Movies API Documentation

I'm trying to use the new unpublished Yahoo Movies API, but can't find any documentation, official or unofficial, about it. Does anyone know if any documentation exists for this? sample API call: http://new.api.movies.yahoo.com/v2/listMovies?title=Transformers EDIT: The API can no longer be accessed. I'm not sure what Yahoo's plans ar...

Get a list of Friends of a Friend on facebook

Hi, I've recently stared looking into the Facebook API and am trying to workout how to retrieve the list of friends of another user (in this case the user is someone I'm friends with). So far I've only worked out how to find out the friends of a person who I am also friends with. However the Friends Wheel application can do it as you ...

Find latest file name in C

Would like to fopen() the latest file in a directory (with naming scheme file1.txt, file2.txt, file3.txt, etc.) Is there an API function in Visual Studio for this? If not, is it a good idea to read in all the .txt file names and sort to get the one I need? Is there a better algorithm I could be pointed to? Thanks. ...

How to change the language of 'Google News' regarding the GSnewsBar object (Ajax API)?

The following deals with GSnewsBar object of the Goolge-Ajax search API which is explained here: http://www.google.com/uds/solutions/newsbar/reference.html There are some parameters which allow to change the layout of the news. But there is no example of how to set the news language. Currently I always get news in English but my aim i...

drupal redirecting api

I want to redirect this the request for "homebox/1" to "homebox/1/[uid]" if a logged in user tries to access it. I do not care about annonymous users at this point yet. This is the code I put into the top page-homebox.tpl.php: if(!is_numeric(arg(2))){ global $user; if($user->uid){ if(count($_GET) > 1){ $get = array(); foreach($_GE...