api

What are some good technologies in ASP.NET for providing APIs to your clients?

I've been looking into WCF services. Is there anything out there that is built on top of WCF that is able to provide APIs in different formats (SOAP, REST XML, REST Name Value Pair, PIPE-DELIMITED, CSV, etc...?) ...

How to write modern Windows software in C++?

Hello everyone, I am very interested in how modern Windows software is written in C++ nowadays? I asked my friend who had worked on Windows software and he told that last things he worked with were MFC and then WTL. He said that MFC is no longer anything modern but WTL is still used but he didn't know much more. He also said that WTL wa...

How has Windows API changed in the last 10 years?

Hello everyone I am interested in how Windows API has changed in the last 10 years since Windows 98 and Windows 2000? What interesting API calls have been added that you know? Also do people still write anything in API? I am now learning everything I can about Windows programming and I am really curious about this. Because books don't ...

How do I hook into other programs in Windows?

Can anyone explain how does one program hook into and modify behavior of other programs in Windows? How is it even possible? Don't windows programs protect themselves from other programs going into their memory, etc? (I don't know the internals how it works so I just said "into their memory" -- I bet it's more complex than that.) Also...

What kind of API should I use to elevate user privilege to super-user in a Mac OS X?

I want to elevate my app's privilege to super-user. Installer app supports this by displaying this dialog. How can I show this dialog to elevate privilege? PS. I'm making a kind of packet sniffer application on Mac OS X. I'm using pcap lib. (which is part of tcpdump) ...

Would like to see example "HTML Snippet" from Google Adsense API

Google Adsnse has an API that you can use (if you qualify) to generate Adsense ads on your site. The core feature is the function generateAdCode that returns "an HTML snippet that can be dropped into an HTML page for the page to start receiving Google Ads." Try as hard as I could, I couldn't find a basic example of what that returned "...

Google image api, how to get more than 8 results per search

Hi all. I'm using google image api, i've set large result set, now it retrieves 8 images. What should i do in order to get more images at once? more than 8 images Thank you ...

Google AJAX Search API onclick of image

I want to use the Google AJAX Search API to let users choose an image from the web to use as a background in my website. However, I can't find how to change the result images so that it doesn't open a new window with the image anymore, but it runs my javascript code to use the image as background. ...

How do I make an extention for PSPad?

I have used PSPad alot and I would like to make an extension for PSPad, but I don't know how to do it. I cannot find anywhere an API documentation to make the extensions. Can someone please help me? ...

Is this valid JSON markup?

Hello. I am attempting to get some information from a russian shipping website. Being a n00b to JSON/Jquery/Internets I am stuck getting the data into json format. Following the company's API, I go to the URL: http://emspost.ru/api/rest/?callback=json&method=ems.calculate&from=city--abakan&to=city--anadyr&weight=1 Thi...

How to play with the CloudApp API in CURL?

I am trying to play with the CloudApp API with CURL and it keeps giving me the redirect message, and I don't think I'm initializing it right. The docs are at http://support.getcloudapp.com/faqs/developers/api and my request currently looks like: curl -G --digest -u [email protected]:[censored] -H "Content-Type: application/json" ht...

How to write and read files in/from Hadoop HDFS using Ruby?

Is there a way to work with HDFS Api using Ruby? As I can understand there is no multilanguage file Api and the only way is to use native Java Api. I tried using JRuby but this solution is to unstable and not very native. Also I looked at HDFS Thrift Api but it's not complete and also lacks many features (like writing to indexed files). ...

PHP Regex for IP to Location API

How would I use Regex to get the information on a IP to Location API This is the API http://ipinfodb.com/ip_query.php?ip=74.125.45.100 I would need to get the Country Name, Region/State, and City. I tried this: $ip = $_SERVER["REMOTE_ADDR"]; $contents = @file_get_contents('http://ipinfodb.com/ip_query.php?ip=' . $ip . ''); $pattern ...

How to "star" a URL in Google search programatically

I inevitably end up bookmarking a lot of sites because I think they might be useful in the future. Then two days later I have no idea what the bookmarks point to. What I would like to do is instead star these bookmarks in google. That way when I do a similar search they will be shown at the top of the list, and I don't have a massive li...

Is it possible to use Avro with Hadoop 0.20?

I'm interested in using Avro to save and read files from Hadoop HDFS and I saw some Jira's in Hadoop issue tracker regarding implementing support for Avro but there were no examples how to enable Avro support in Hadoop. Also I'm not completely sure that current 0.20 has support for Avro because some Jira's were closed for 0.21. Is it pos...

bit.ly API use issues (shorten,lookup,and clicks)

Hi, as part of my time is'nt dediacted to PHP dev, I'm having an issue wich is probably easy to solve, but having absolutely no logs (PHP logs, browser firebug logs...) I'm pretty stuck. Here's my code; as I'm testing stuff, it's pretty raw. The index.php file : <script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/...

Facebook Graph API - Get Event that a Page have created

How can i get all the Events a Page have created? I've tried the following: https://graph.facebook.com/PAGEID/events But i don't get any data back. Can someone help me? Thanks in advance ...

Platform Independent Tool for Creating API Documentation / Proposal

What tools exist for developing platform indepedent API Documentation? I'm in the process of designing a proposed API, and want to write documentation in a structured and easily editable way. A lot of the answers I've seen have basically been "Use built in language specific documentation tools", but since I'm designing the API from a 't...

How to unit test your API?

I'm at the point where I need to write unit tests for a REST API written using CakePHP 1.3. The API supports GET, POST and PUT requests for querying and manipulating data. Is there any established way to test the correct input/output of an API simulating an HTTP request, using fixtures? I do not want to run actual POST/PUT requests agai...

How to create nested boolean query with lucene API (a AND (b OR c))?

I have an indexed object with three fields (userId, title, description). I want to find all objects of a specific user where the title OR the description contains a given keyword. I have something like this (but that's obviously wrong): WildcardQuery nameQuery = new WildcardQuery(new Term("name", filter.getSearch())); WildcardQuery des...