api

Design patterns illustrated by Java SE/EE APIs?

Possible Duplicate: Examples of GoF Design Patterns Currently studying patterns stuff, and this one lacks concrete examples. Would you help me to fill missing cells in a table illustrating design patterns with concrete examples from Java 6 SE/EE APIs? In the end I'll update this table with your contributions. Thanks. ...

GPX Parser for Java?

Hi are there some Java API for parsing GPX files? I need to parse many GPX files into our own data structure (our own database). Thx 4 help Buju ...

Anybody knows any well-tested service that has opensourced its API?

I have a dataset and I want to create an API (RESTful web service) around it. However, I don't want to start from scratch as I believe this has been done zillions of times already. Does anybody know any well-tested service that has opensourced its API? I see that people normally release a reference implementation for their clients (like...

Is JSONP only meant be used for completely public APIs?

Hi, I've developed an API with WCF Data Services which exposes my website user's data. The data hosted there belongs to each user and is not public, so the API is secured with API keys which are unique to each client and http header or GET parameter based authentication. Now I am wondering if I should enable JSONP on my API. It seems ...

Getting the count of mentions using google API

Hello Friends, I am working on a project that has a requirement of getting the count of mentions on it in google.But as I tweaked inside google search API,I am not able to get the same.It generally helps to add search to your site. Please throw me some light on how to go about this. Thanks in advance! ...

facebook tab fbml and dynamic content

Per the new profile/fan page tab rule that eliminates the iFrame option, is there a way to dynamically generate content for a given tab? I've seen methods that wrap a canvas app (but requires a user to click to load content), but I want to show updated content thats managed on my servers. I thought you could also update the FBML using th...

Change the colour of bubbles in Google visualization motion chart

Hi all I there a way where by I can define the colours of bubbles in a motion chart provided by Google visualization API ? I do not want to use the default colour scheme. Thank you in advance. ...

Sending byte array to printer directly

Hi, My service converts report into a byte array and passes to client(wpf app) using the following code: byte[] bytes = renderer.ServerReport.Render("PDF", deviceInfo, out mimeType, out encoding, out extension, out streamids, out warnings); where renderer is an instance of Microsoft.Reporting.Webforms.ReportViewer. There is a problem...

thematic map: mouseover

i am generating a chart map like this: &chtm=usa">http://chart.apis.google.com/chart?chs=440x220&cht=t&chco=CBD122&chld=US&chd=s:&chtm=usa does anyone know if there is a feature to do something on mouseover? like have each state turn a different color on mouse over? ...

Using Delete call through API in PHP

Hello, We have a wiki that was designed by a 3rd party developer. The problem we have had is that users' who have been made "inactive" still show up in searches. The work around to stop user from being seen is removing properties associated with that user. To access the user properties, we would make a call to api passing a url encoded...

Accessing Twitter Without User Interaction

I'm writing some scripts for my boss that reads a specific user's tweets over the course of a week, and then dumps them into a formatted Tumblr post. Because he wants this done automated, I'm using cron to run the scripts periodically, but this is not the point of the post. My question is, since the move to OAuth by the Twitter API, is ...

api to use for calculating distance between two addressess. (except google api)

what api is the easiest to use in calculating the distance between two addresses using roads not the straight line distance. i would like to use a different api than googles since i heard their api is not for paid apps. i would like the api to be easy to implement and would appreciate if that api offered some sample code. ...

Is there any reason to use Win32 API (in C or C++) over .NET?

I'm finishing my summer job where I write graphical software for our baggage scanners. Everything is done in .NET or MFC, with plain C++ for hardware communication (I don't do any of the hardware stuff). I sometimes resorted to Win32 API calls such as SendMessage to improve performance of a form or control. I've had only a year's worth o...

Impersonation in asp.net not shared with com object.

So I have an ASP DOT NET web service which needs to impersonate Windows Authenticated users. This web service calls into a Com Api to perform database operations. It seems like the Impersonation does not persist into the Com Api. Is this because the Com DLL is loaded into its own memory space and treated as a separate process? Also what...

Is there a way to authenticate both Gmail Oauth and Google Contacts API AuthSub at one time?

I can access a users gmail account using oauth, and i can access a users contacts and their contact groups through google contacts API (which uses AuthSub). For my application i need both of these, is there a way i can authenticate both at once, so that i don't require users to go through two separate authentication sessions? Or is ther...

How can i get a user's gmail contact groups using gmail oauth? (not Contacts API)

Is there a way i can get access to a user's contact groups using the Gmail oAuth alone? I know it is possible to do using the google contacts API, but i am already using the gmail oAuth so i dont want the user to have to authenticate contacts api separately. ...

How to display, fetched data from API, in the html page?

I have an html page. Here, I am using tabview of Yahoo API. That is : <div id="demo" class="yui-navset"> <ul class="yui-nav"> <li class="selected"><a href="#tab1" onclick="TopStories()"><em>Top Stories</em></a></li> <li><a href="#tab2" onclick="FinanceNews()"><em>Finance</em></a></li> <li><a href="#tab3" oncl...

How to pop up a Window in onClick event of a link (<a>) in HTML ?

I just have a link : <tr><td align="center" height="10%"><a href="https://login.yahoo.com/config/login_verify2?.intl=in&amp;.src=ym"&gt;Mail&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt; while clicking on it, it will shift to the pave http://login.yahoo.com, but I want the page open in a frame that pops up on this page & the inner display is target...

Tools for monitoring API requests and responses?

I'm new to working with APIs. We're integrating Fedex into our Rails app. So we're sending API requests and receiving responses from them. For testing purposes, I would like to see the code of what we're sending out and receiving. I'm not sure how to do this. What tools do you use for testing to view API requests and responses? T...

400 bad request from twilio's REST API using twilio-ruby

I'm trying to get started with Twilio's REST API using the rubygem twilio-ruby, and I've hit a snag. Here's my code: h = {:From => "123-123-1234", :To => "123-123-1234", :Body => "hey"} account = Twilio::RestAccount.new(ACCOUNT_SID, ACCOUNT_TOKEN) resp = account.request("/#{API_VERSION}/Accounts/#{ACCOUNT_SID}/SMS/Messages", 'POST', h) ...