background preloader

Application programming interface

Application programming interface
In computer programming, an application programming interface (API) specifies how some software components should interact with each other. Detailed explanation[edit] API in procedural languages[edit] In most procedural languages, an API specifies a set of functions or routines that accomplish a specific task or are allowed to interact with a specific software component. This specification is presented in a human readable format in paper books, or in electronic formats like ebooks or as man pages. For example, the math API on Unix systems is a specification on how to use the mathematical functions included in the math library. The Unix command man 3 sqrt presents the signature of the function sqrt in the form: SYNOPSIS #include <math.h> double sqrt(double X); float sqrtf(float X); DESCRIPTION sqrt computes the positive square root of the argument. ... $ perldoc -f sqrt sqrt EXPR sqrt #Return the square root of EXPR. API in object-oriented languages[edit] API libraries and frameworks[edit] Related:  API EconomyLooseLeaf FrontEnd Lib

Creating 2D Action Games with the Game API Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud. Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs Technologies Contact Us About Oracle Cloud Events Top Actions News Key Topics Oracle Integrated Cloud Applications & Platform Services Free Your Data and the Apps Will Follow? This guest post comes from Mark O’Neill, CTO of Vordel, which sells products to manage cloud computing, including a cloud service broker. APIs represent such an important technology trend, that new business models can develop on top of them, sometimes called “The API economy”. The API economy encompasses API developers, the businesses providing the APIs, the businesses hosting APIs, and app developers. Sample screenshot from API Management product showing list of potential security policies APIs thrive on data. Screenshot of interface monitoring multiple gateways managing APIs ensuring compliance with SLAs and protection of the APIs Engine of the API Economy Let’s take a look at the drivers influencing the growth of the API economy. The Organization is now the Platform This new paradigm shift driven by APIs has also impacted at board room level. An API Gateway provides a Governance layer to manage APIs Both comments and pings are currently closed.

Anonymous function Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus in 1936 (prior to electronic computers), in which all functions are anonymous. In several programming languages, anonymous functions are introduced using the keyword lambda, and anonymous functions are often referred to as lambda functions. Uses[edit] Sorting[edit] When attempting to sort in a non-standard way it may be easier to contain the comparison logic as an anonymous function instead of creating a named function. Consider sorting a list of strings by length of the string: a = ['house', 'car', 'bike'] a.sort(lambda x,y: cmp(len(x), len(y)))print(a)['car', 'bike', 'house'] The anonymous function in this example is the lambda expression: The anonymous function accepts two arguments, x and y, and returns the comparison between them using the built-in function cmp(). a = [10, 'number', 11.2] a.sort(lambda x,y: cmp(x. Closures[edit] def comp(threshold): return lambda x: x < threshold Map[edit]

List of Java APIs Official APIs[edit] Java Platform, Standard Edition (Java SE)[edit] Java Platform, Enterprise Edition (Java EE)[edit] Bundled APIs (part of standard download)[edit] Optional APIs (downloaded separately)[edit] Java Platform, Micro Edition (Java ME)[edit] Unofficial APIs (Released by third parties)[edit] This list is very incomplete, as the number of APIs available for the Java platform is overwhelming. Rich Client Platforms Office_compliant libraries Apache POI Compression LZMA SDK, the Java implementation of the SDK used by the popular 7-Zip file archive software (available here) Game engines Real-time libraries Javolution Windowing libraries Standard Widget Toolkit (SWT) Physics Libraries JBox2DJBullet Notes[edit] See also[edit]

The API is Dead! Long Live the API! A funny thing happened as I was noodling on this ZapFlash. I was all set to put the nail in the Application Programming Interface (API) coffin, continuing the discussion of just how awful Remote Procedure Call (RPC) interfaces are, and how we should avoid them at all costs. But then I ran across the “explosion of APIs” meme at ProgrammableWeb and elsewhere. Maybe I’m just nitpicking. Programmable Interfaces: The Never-ending Story The real reason that APIs get under my skin is the “P” – “programmable,” as in programmatic. The problem with such imperative programming in any distributed environment, of course, is that there is no end of problems that can arise between here and there. Here’s the rub: functional programming is nothing more than RPC, with all the tight coupling issues that come along for the ride. Functional programming is declarative in the sense that a remote procedure acts as a black box. REST to the Rescue? Enter REST. “RESTful” Equals “Web-friendly” In fact, Yahoo!

JavaScript Garden Although JavaScript deals fine with the syntax of two matching curly braces for blocks, it does not support block scope; hence, all that is left in the language is function scope. function test() { // a scope for(var i = 0; i < 10; i++) { // not a scope // count } console.log(i); // 10} There are also no distinct namespaces in JavaScript, which means that everything gets defined in one globally shared namespace. Each time a variable is referenced, JavaScript will traverse upwards through all the scopes until it finds it. The Bane of Global Variables // script Afoo = '42'; // script Bvar foo = '42' The above two scripts do not have the same effect. Again, that is not at all the same effect: not using var can have major implications. // global scopevar foo = 42;function test() { // local scope foo = 21;}test();foo; // 21 Leaving out the var statement inside the function test will override the value of foo. // global scopevar items = [/* some list */];for(var i = 0; i < 10; i++) { subLoop();}

Collaborative Methods: Share API Java Library I hope you guys are having fun playing with our APIs. To make things a bit easier, here is a Java library that you can use that takes care of all the nasty authentication and XML formatting bits. It could also be of use as reference for those of you developing libraries in other languages. There are a few dependencies: commons httpclient, logging, codec, and json.jar. Coming soon, the ActionScript library. The Internet of Things Will Generate Terabytes of Data | @ThingsExpo #IoT The Internet of Things Will Generate Terabytes of Data. What Will We Do with All of It? By Elle Wood In less than 5 years, "the Internet of Things will transform the data center," says Gartner. Data mining for faster interactions between a smart object and its userFirst, it is important to understand what data mining really means. Second, let's consider "real-time." IoT is changing how we analyze dataTo keep up with the IoT boom, we need to make sense of person-to-smart-object interactions as fast as possible so we can learn, adjust, and continue to add value to our connected lives. Gaining actionable insights from dataWith all of the connected cars, houses, watches, health monitoring devices, trackers, etc., there will be an unfathomable amount of data on the table. Just looking at all of the data being generated from one application can be overwhelming. Being in IoT is a race, not a marathon! The post The Internet Of Things Will Generate Terabytes Of Data.

filter.js – Client side search filtering using JSON and jQuery Speed for search result filtering is critical. Its fine for site users to wait for some time (maybe a few seconds) to load the search results but after that filtering better be fast otherwise people lose interest. To give a simple example of how things are not user friendly is if you go to or Its frankly appalling! For every click and every selection, the entire page refreshes. Though its good for showing Ad impressions (which I hate) when browsing an e-commerce site, the usability is lost. On the other hand, have a look at or and it tells a different story. We did client-side search filtering in a couple of portals we built and realized that we should generalize this. Some key features are: Category and sub-category based filteringSlider based filteringTrigger on any HTML element.Date filtering (in process) To use filter.js is simple. There are dependencies on how to render HTML components. Defining the search criteria and the JSON objects Update1

Help: Media Write API: Java Example - Upload Video In this topic, you will learn how to use an HTML page to upload a video to your media library using Java and the Media Write API. A servlet class handles the HTML form page, taking the video name, description, and file, and passes them into the create_video method. Note that the solution presented below depends on 3rd party libraries. By downloading and examining the example code, you will learn how to programmatically upload video with Java and the Media Write API and customize the application as needed. Before you begin The sample consists of two files: The file, which defines a servlet class that takes input from a form and passes it to the Write API create_video method. To follow the code in this topic, you should be familiar with Java servlets and form handling. In this topic, you will learn about: The UploadVideo servlet class The servlet class accepts the form submission and reformats the data into a JSON-RPC call to the Write API. /* STEP 1. For further help

EMC-Windstream Partnering to Drive Cloud Solutions at @CloudExpo | #IoT #API #Microservices In their general session at 16th Cloud Expo, Michael Piccininni, Global Account Manager - Cloud SP at EMC Corporation, and Mike Dietze, Regional Director at Windstream Hosted Solutions, reviewed next generation cloud services, including the Windstream-EMC Tier Storage solutions, and discussed how to increase efficiencies, improve service delivery and enhance corporate cloud solution development. Download Slide Deck: ▸ Here Speaker BiosMichael Piccininni is Global Account Manager - Cloud SP at EMC Corporation. He has been engaged in the technology industry for more than 15 years in business development and management roles. Mike Dietze is the Regional Director for Windstream Hosted Solutions where he manages a that team focuses on building cloud-based solutions for Windstream's customers. Cloud, Big Data, and the 'Internet of Things' Are you ready to put your data in the cloud? What is the future of security in the cloud? Does Docker quickly advance the development of an IoT application?

Data Visualization Libraries Based on D3.JS - Mike McDearmon There are a lot of ways to visualize data on the Web (with more emerging every day), but the flexibility, versatility, and energized development community surrounding D3.js makes it a great option to explore. The following list of D3 plugins, extensions, and applications below is by no means comprehensive, but oughta be enough to keep you busy for a while. If you’re just getting your feet wet with D3.js, here are some great learning resources to get you acclimated:D3 for mere mortals: Great introductory lessons for those starting from scratch.Try D3 Now: Another great resource for learning about core D3 concepts.Data-Driven Documents (paper): An academic article by Mike Bostock with loads of footnotes.Learning D3, Scott Becker: A quick and effective tutorial series to get yourself up and running.Dashing D3: A very thorough tutorial series covering a LOT more than just D3.Interactive Data Visualization for the Web is a fantastic book by Scott Murray.

What The Internet of Things Is Not | @ThingsExpo #API #IoT | Mobile IoT What The Internet of Things Is Notby John Mueller Some time ago, I wrote an article entitled, "What is the Internet of Things?" It sought to help put the Internet of Things (IoT) into perspective and helped describe a dream about what the IoT could eventually become. Avoiding the Hype ProductsSome companies see IoT as a means for making all of us excessively lazy and they're willing to provide the products to help us go there. Of course, the question is where real products will come into play. environmental conditions, including things like freezer temperatures. Connecting Diverse ProductsSome people have gotten the idea that IoT is all about connecting disparate devices together in some manner - that somehow it will be possible to use a single app to control every aspect of a home, business, or industrial setting. Hubs: Each vendor seems to use a proprietary hub so that you need one hub for each product type. Groups like the