api

C#: Marshalling a "pointer to an int array" from a SendMessage() lParam

I'm trying to subclass an unmanaged statusbar window from my managed COM server using a class inherited from NativeWindow, and am running into a wall trying to make sense of how to properly marshal the contents of an lParam. http://msdn.microsoft.com/en-us/library/bb760757%28VS.85%29.aspx says that the contents of this lParam is of type...

How would one use IDecorationContext api from Eclipse JFace

Is there an example out there for using IDecorationContext for label decorations? By the looks of it, IDecorationContext class seems to provide some sort of contextual decoration support, but for the life of me, I can not find any sample code using this feature... Has anybody actually used decoration context feature and if so, what use...

Google AJAX Language API with Chinese language

Hey guys! Does anyone know if there is support for Chinese pinyin? I get the results here with correct Chinese pinyin (see "Show romanization" link). Thank you. ...

How can I generate a .torrent in Java?

I want to generate a .torrent file in Java, but I don't want a big API that does anything like scraping trackers, seeding, etc. This is just for a client that generates meta data. What lightweight solutions exist? I am only generating a .torrent of a single .zip file. Thanks! ...

How to extract Twitter username from Search API via PHP

The Twitter Search api returns results in ATOM/XML format which look like this: <author> <name>username (Friendly Name)</name> <uri>http://twitter.com/username&lt;/uri&gt; </author> In my PHP I can get the name field as a variable, so it would look like this: $names = "username (Friendly Name)" But I want to use PHP to extract ...

Detailed Valgrind internals documentation

I'm thinking of making a D interface to Valgrind's client request API. By mucking around in the header files and de-compiling stuff, I could eventually figure out what it's doing but I'm wondering if their is a authoritative document on how things work? (BTW I already found this document but it doesn't have enough info) What I'm looking...

Delete user programatically in dotnetnuke

Hi all, I'm using DNN 5.x;I want to delete an user from C# code. The code I tested is: UserInfo objUserInfo = DotNetNuke.Entities.Users.UserController.GetUser(0, userid, false); UserController.DeleteUser(ref objUserInfo, false, false); Howver, the correponding record remains in tables: aspnet_users, aspnet_membership, users. What sho...

Control SVN users with PHP Subversion API?

Is it possible to create/delete/modify SVN users with the SVN PHP API? Thank you. ...

what do the words platform and api exactly mean?

i've bought a book "learning the java SE 6 platform". i wonder what the word platform really means. cause isn't it just a bunch of classes that i can use. the JDK 1.6 node in Netbeans under Libraries. And what is API? isn´t it the same thing as platform. But doesnt library mean the same thing..a bunch of classes with some superclasses a...

yt:quota too many recent calls - Youtube API help

Hi, I am using youtube api to get contents from a youtube account (with just user feed...without user authentication) on our website. Since yesterday morning, we keep getting "yt:quotatoo_many_recent_calls". It started off as randomn occurance, but very soon, we get this error 100% of the time. Our site is currently down because of this....

Platform/API for applications (games) to do trading and auctions between players/users.

Are there any products/services that let games developers provide real-time trading and/or auction services to their users/players. E.g. Let the developer define what assets can be traded and the end-user application interacts with the service. I'm looking for anything from platforms as complex as real-life trading systems through to a...

Facebook App Login

Hello Community, I downloaded the API from Facebook and tried to login with it. I get an loop which try to authentificate me all the time ( link text ) How can I login with facebook without getting this loop? ( I finally want to get my notifications and messages an i want to post something. ) Greets Dom ...

Possible to tie Google API Key with a Google Apps account?

I am trying to get an API key for Google AJAX Feed API's. However, it will only let me login with my Gmail (Google account), and I don't see any way to login with the Google Apps account here. Couldn't find anything related on Google or Lycos. So is it possible to tie the AJAX Feed API key (which I believe will let me access other APIs ...

An API which allows users to connect directly to the database

I've worked with many APIs and it's never usually an easy task. Messing about with POST requests and then trying to handle the XML is a pain. And I thought wouldn't it be easier for both user and developer if they could just directly interact with the database. Is it possible to create a user which API users would connect to then assign...

Uploading images to Imgur.com using C#.

Hi dudes! I just recieve my unique developer API key from Imgur and I'm aching to start cracking on this baby. First a simple test to kick things off. How can I upload an image using C#? I found this using Python: #!/usr/bin/python import pycurl c = pycurl.Curl() values = [ ("key", "YOUR_API_KEY"), ("image", (c.F...

Google Maps API v3: Group markers?

I'm using Google Maps with API v3. I will add many markers, now got question, is there posibility to group markers? For example, by city? I'm using a small snippet to creating sidebar with markers buttons. Here's the code: /** * map */ var mapOpts = { mapOpts: new google.maps.LatLng(60.28527,24.84864), mapTypeId: google.maps.MapT...

How would this method be in C#? [From VisualBasic.Net]

Here's the snippet: Function Encode(ByVal dec As String) As String Dim bt() As Byte ReDim bt(dec.Length) bt = System.Text.Encoding.ASCII.GetBytes(dec) Dim enc As String enc = System.Convert.ToBase64String(bt) Return enc End Function I'm trying to make an program that sends a...

How to upload images using an API Key that gives you permission to upload? [Python source code included]

The documentation of the API shows source code on how to accomplish this in Python: #!/usr/bin/python import pycurl c = pycurl.Curl() values = [ ("key", "YOUR_API_KEY"), ("image", (c.FORM_FILE, "file.png"))] # OR: ("image", "http://example.com/example.jpg"))] c.setopt(c.URL, "http://imgur.com/api/upload.xml") ...

File Upload to HTTP server from iPhone application. Server side C# API method.

Could someone please tell me/link me to how I could create a method similar to those posted below: http://www.vimeo.com/api/docs/upload http://www.flickr.com/services/api/upload.api.html (I am providing the links as I'm not sure how to articulate this question without them!) I'm using C# ASP.NET. IIS 6. I have an existing web server wit...

Free Barcode API for .NET

Is there a decent free API/component for printing barcodes in C#? ...