api

Screen brightness in J2ME.

Do you know of any means for changing the screen brightness in J2ME. That is using a vendor-specific API, like Samsung's, etc. Thanks! ...

PHP api stucture, databases and error handling

Hi guys i have a theory question to do with PHP and creating an API... The API i am planning on creating will sit in front of a database and will be used to validate data and execute actions within a pre-set method avoiding people amending data directly.. Now my question is what is the best method to structure the API.. Is there a n...

BlackBerry: How to use PersistableRIMKeyStore?

Hi! I need to securely store private user data so it can persist across my app starts as well as device resets. This will be a String I guess about 1000 chars at maximum. I was told I can use RIM KeyStore API for this. Well, I spent hours googling out any gide on RIM KeyStore API usage. JDE samples do not contain anything useful on t...

Twitter stream api with agents in F#

Hello, From Don Syme blog (http://blogs.msdn.com/b/dsyme/archive/2010/01/10/async-and-parallel-design-patterns-in-f-reporting-progress-with-events-plus-twitter-sample.aspx) I tried to implement a twitter stream listener. My goal is to follow the guidance of the twitter api documentation which says "that tweets should often be saved or q...

Adding Shipping To E-Commerce Application

I recently built an ecommerce application which resides in Joomla (our CMS), uses a database back-end for product catalog / order tracking and is fully integrated with Authorize.Net (http://www.authorize.net) for processing payments. Obviously the missing piece of the puzzle is a shipping method. Our shipping needs are fairly simple, ...

Google Maps - displaying a default feature using FeatureData

The question I have is about Google Maps "FeatureData". I have got it working really well, so that when I click on the markers on my KML based map, the information pops up in a separate DIV. What I would like to do is display something in the DIV which currently starts it's life empty until I click a marker. Have any of you done this be...

How should I create a REST API using Rails 3.0?

I can't seem to find much information on the web about the different approaches to building a REST API in Rails; so I kinda have two questions: Can someone point me to some articles that show the pros/cons of the different approaches? Would you please share your thoughts on the pros/cons of the following approaches?   Proposed Appro...

What public APIs are provided by Governments to the public?

I stumbled across NOAA's SOAP Service and it got me thinking. What other eGovernment services are provided to Business and the general public by Governments? I know the United States has a lot APIs, but what about other governments like the European Union. I am interested in not just SOAP but any Remote Procedure Call (RPC) service ...

Does Facebook API video-upload work only with OAuth v1?

I cannot get video upload to work with OAuth 2 access-token. The request always fails to even connect (timeout). http://developers.facebook.com/docs/reference/rest/video.upload With almost identical code, I have successfully uploaded photos. The only video-upload example code I can find uses OAuth 1.x. Does video not yet support OAuth...

Should Mutex's lock/unlock functions be "const" ?

Hello, I am maintaining a library that contains a Mutex class. I cannot decide if the lock() and unlock() functions exposed by this class should be const or not. I looked for similar code on the Web, and could find both implementations. First implementation, lock() and unlock() are not const. It means someone who uses the Mutex class i...

Which API f.lux is using for changing the screen color temperature?

For study reasons i need to change the color temperature of some monitors. Basically the same what f.lux does. The problem is, i have know idea how its done. It seems so there is know Win32 API or COM API in Windows for doing this. Maybe Flux is using DirectX? Most likely its using direct the API from different graphic cards. Grate...

Facebook Connect Confusion...

Yes, I've read the developer documentation and even went through a few tutorials... but I'm still not totally clear on what I can do with Facebook Connect. What I am guissing is that I can either have a user sign up and create an account on MY website, or the user can sign in with Facebook Connect and I can store their profile informati...

Sync Outlook with an iPhone app (

Hello to everyone! I was wondering if thee is an API for outlook that enables to sync an iPhone app with Outlook over WiFi (computer and iPhone on the same network). I need to sync information like calendar events and tasks. Thanks ...

Magento Dropshipping - How to automate catalog updates?

Hi, I am new to Magento and impressed by the MVC framework that powers it, making module development a well thought out solution. I am strong CakePHP developer. I am working on a project that uses a dropshipper for the physical products. As a result, every day at 4am a feed needs to be parsed and the products / categories modified, plu...

Who framed the org.osgi.framework.* interfaces?

I understand that OSGI is just a specification and they don't event mandate that implementation be in Java. Then who/which guys have framed the "org.osgi.framework.x" packages. For e.g. where does the BundleContext.java class come from? Has this API provided by OSGIALliance itself? Note that I understand that the implementation of thes...

getting Uncaught SoapFault exception when using soap client

Hello, PHP Version: 5.3.3 I'm using the SOAP extension to pull data from a web api. Below you can see my connection details. When it gets to line 3 I get an error: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.global1.autotask.net/atservices/1.2/atws.wsdl' : failed to load ...

Is there a way to create an immutable (read-only) XDocument?

I have an API that returns XElement-s, and I want the document behind those XElement-s to be immutable (read-only). I need it for: 1) Not to give devs an ability to change it accidentally :) 2) Improving performance - creating a copy of an XDocument might be a performance "heavy" operation in some cases. It doesn't seem to possible to ...

Help me with posting with Net::HTTP

I am using a third-party API (Spreadshirt's API) and in order to perform a basket creation, I need to send an xml through a POST request. I am trying to do this with the available Net::HTTP functions and this is how I am doing it def get_session @time = Time.now.to_i * 1000 #get the current time as integer @sha1 = Digest::SH...

Cross platform alternative to GDI+?

I'm looking for an API that works similarly to GDI+. I need to be able to fill paths, with a solid, gradient etc fill. I found the AGG library but I don't like its loose design. I like creating a Graphics object and having it append to my screen bitmap or off screen bitmap. Are their libraries that function this way and are cross platfor...

Facebook API, Canvas app in iFrame, Javascript API, Broken in IE8?

I tried to look for help in the FB forums for this, but they really are not much help there. My app is set up as an iframe app, but the same behavior happens if the app is set up as an fbml app and the page below is loaded through a fb:iframe. The same behavior exists regardless of what advanced settings are used. The same behavior ex...