api

Using Outlook API to get to a specific folder

Hi Everybody, I'm trying to write some C# code to get to a specific folder in an Outlook mailbox. I have the following code: Outlook.Application oApp = new Outlook.Application(); Outlook.NameSpace oNS = oApp.GetNamespace("mapi"); Outlook.Recipient oRecip = oNS.CreateRecipient("AccountNameHere"); oRecip.Resolve(); if (oRecip.Resolved) {...

How do you set up an API key system for your website?

Let say that I have a website with some information that could be access externally. Those information need to be only change byt the respected client. Example: Google Analytic or WordPress API key. How can I create a system that work like that (no matter the programming language)? ...

How to extract files from Windows Vista Complete PC Backup?

Is there a program or API I can code against to extract individual files from a Windows Vista Complete PC Backup image? I like the idea of having a complete image to restore from, but hate the idea that I have to make two backups, one for restoring individual files, and one for restoring my computer in the event of a catastrophic failur...

Google Authentication API: How to get the user's gmail address

Hi, I've been studying the Google authentication API (AuthSub)...My question is, how do I get the user's account information (at least his Gmail address) after the authentication has passed? Because currently, all I get back from the authentication process is a token granting me access to which ever Google service I have specified in ...

Totally removing obsolete members - when?

When developing an API for some software product/service, many times revisions are made and existing members (properties/methods) are marked as obsolete just because they might already be used by some client and removing them would introduce breaking changes. My question is, how long do you wait before you totally remove such a member? W...

Text message receiving API - UK and USA

Looking for a cheap way of receiving text messages by HTTP POST or other easy way. I want it to be standard rate dedicated number (no keyword). I've looked at http://totext.net/ and it looks good for a UK number. Any other recommendations? Also, any recommendations for a US number? ...

Python sockets suddenly timing out?

I came back today to an old script I had for logging into Gmail via SSL. The script worked fine last time I ran it (several months ago) but now it dies immediately with: <urlopen error The read operation timed out> If I set the timeout (no matter how long), it dies even more immediately with: <urlopen error The connect operation time...

What Python GUI APIs Are Out There?

Simple question: What Python GUI API's are out there and what are the advantages of any given API? I'm not looking for a religious war here, I'm just wanting to get a good handle on all that is out there in terms of Python GUI APIs. ...

C++ API for returning sequences in a generic way

If I am writing a library and I have a function that needs to return a sequence of values, I could do something like: std::vector<int> get_sequence(); However, this requires the library user to use the std::vector<> container rather than allowing them to use whatever container they want to use. In addition, it can add an extra copy o...

What's the best API you've ever used?

Just curious, what's the best API that anyones ever used & what was the development process that led to that API being so good? (Or was it something else) Open source, proprietary, whatever code you've come into contact with. ...

Which Java API would you recommend for dealing with Bluetooth?

Can you recommend a Java API to use with a desktop application (i.e. J2SE not J2ME) that will, perhaps, work with the underlying operating system's Bluetooth stack to give access to Bluetooth functionality and devices? ...

csv api for java

Hi everyone, Can anyone recommend a simple API that will allow me to use read a csv input file, do some simple transformations, and then write it. A quick google has found http://flatpack.sourceforge.net/ which looks promising. I just wanted to check what others are using before I couple myself to this api. thanks, David. ...

Why aren't Java Collections remove methods generic?

Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remove(E o); Then, when you accidentally try to remove (for example) Set<String> instead of each individual String from a Collection<String>, it would be a compile time error instead of a debugging problem later. ...

How can I lookup data about a book from its barcode number?

I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book... at a minimum, title, author, year published, and either the Dewey Decimal or Library of C...

How can I programatically manage iptables rules on the fly?

I need to query existing rules, as well as being able to easily add and delete rules. I haven't found any APIs for doing this, is there something that I'm missing? The closest I've come to a solution is using iptables-save | iptables-xml for querying, and manually calling the iptables command itself to add/delete rules. Another solution...

curses API

Where can I find a complete reference of the ncurses C API? ...

Custom role based Web Service access

Our CMS implements its own role based access control for content management and what not, much like all the other CMSs out there ;) I've recently been playing around with the idea of trying to implement an extension of this access control into our web service api, with the eventual idea of choosing which users have access to what method...

How do I get access to Castle Windsor's Fluent Interfaces API?

I've been having tons of problems getting the non-xml configuration for Castle Windsor set up working properly. In the meantime I've seen more and more people giving advice via the Windsor Container fluent interface. I've been Gooogling about for the last day and I cannot find this API anywhere. I am talking about the key .Register() ...

EPiServer Development

Aside from Episerver.com What other websites do people who develop using EPiServer use as development resources!? Been using coderesort.com but I find that it lacks examples of how to do stuff. Many thanks, J ...

Is there a way to have class variables with setter/getter like virtual variables?

I am embedding Ruby into my C project and want to load several files that define a class inherited from my own parent class. Each inherited class needs to set some variables on initialization and I don't want to have two different variables for Ruby and C. Is there a way to define a class variable that has an own custom setter/getter or...