background preloader

Sinatra

Sinatra

Overview Pashua - Carsten Blüm: Mac Development Download Version: 0.9.5 (01/19/2014) 1.29 MB Mac OS X 10.6 or higher Processor: Intel Pashua is a tool for creating native Aqua dialog windows from programming languages that have none or only limi­ted support for graphic user inter­faces on Mac OS X. Currently, it supports Apple­Script, Perl, PHP, Python, Groovy, Rexx, Ruby, shell scripts and Tcl—and if your favourite language is not included in this list: writing the glue code for communicating with Pashua is pretty simple. The GUI elements which can be used for such dialogs include text in­put fields (single-line and multi-line), check­boxes, radio­buttons, combo boxes, popup menus, open panels or buttons. Moreover, it's possible to embed images or PDFs. Any data submitted from the dialog will be passed on to the calling script, which can (of course) use it for anything. Screenshot An example Pashua dialog on Mac OS X 10.7 Three example windows on an older version of Mac OS X To define the dialog window, Pashua uses a very simple syntax.

A Brief Introduction to REST You may or may not be aware that there is debate going on about the “right” way to implement heterogeneous application-to-application communication: While the current mainstream clearly focuses on web services based on SOAP, WSDL and the WS-* specification universe, a small, but very vocal minority claims there’s a better way: REST, short for REpresentational State Transfer. In this article, I will try to provide a pragmatic introduction to REST and RESTful HTTP application integration without digressing into this debate. I will go into more detail while explaining those aspects that, in my experience, cause the most discussion when someone is exposed to this approach for the first time. Key REST principles Most introductions to REST start with the formal definition and background. Give every “thing” an ID I’m using the term “thing” here instead of the formally correct “resource” because this is such a simple principle that it shouldn’t be hidden behind terminology. Link things together

Diem Content Management Framework | Diem CMF CMS for symfony How to paginate, sort and search a table with Ajax and Rails · d Introduction and warnings Important warning : unfortunately, I don't have the opportunity to work on Rails anymore these days. So some points in this tutorial may be a bit outdated for the most recent versions of the framework. In this tutorial, we will try to use Ajax with Rails in order to display a table of items with several functionalities : pagination (split the table on several pages)sorting (table ordering by one of its column)searching (selecting items to be displayed with a query) A live demonstration of this application is available at : This is a very common task in web application development. The code which follows is highly inspired from several Rails wiki pages, in particular How to make a real-time search box with the Ajax helpers, and How to paginate with Ajax. Now, the warnings. In any case, don't hesitate to send me your feedbacks at the following address : Application installation and configuration Requirements Files Database $ rake db:migrate

Representational State Transfer (REST) Resource Guide This SearchSOA.com learning guide will delve into the basics of representational state transfer (REST), its progress in various app dev tooling platforms and its uses inside of a service-oriented architecture (SOA). REST has now moved from a bleeding edge developmental style to one with widespread vendor and open source support. Whether you are a developer, architect, manager or executive, RESTful Web services are likely to become a common occurrence in your applications portfolio. REST Basics REST Tooling Support REST and SOA SearchSOA.com Tutorials Fielding describes REST as an architectural style that leverages the modern Web, adding "REST emphasizes scalability of component interactions, generality of interfaces, independent deployment of components, and intermediary components to reduce interaction latency, enforce security, and encapsulate legacy systems." Delving into the definition of REST , a basic use case for it would be an online publisher making available syndicated content.

JRDS Mongoid REST Anti-Patterns When people start trying out REST, they usually start looking around for examples – and not only find a lot of examples that claim to be “RESTful”, or are labeled as a “REST API”, but also dig up a lot of discussions about why a specific service that claims to do REST actually fails to do so. Why does this happen? HTTP is nothing new, but it has been applied in a wide variety of ways. Some of them were in line with the ideas the Web’s designers had in mind, but many were not. Applying REST principles to your HTTP applications, whether you build them for human consumption, for use by another program, or both, means that you do the exact opposite: You try to use the Web “correctly”, or if you object to the idea that one is “right” and one is “wrong”: in a RESTful way. For many, this is indeed a very new approach. As with any new approach, it helps to be aware of some common patterns. Let’s start with a quick list of anti-patterns I’ve managed to come up with:

awk.info » Awk.info Part 1: Introduction to Jersey--a Standard, Open Source REST Implementation By Julien Dubois, June 2010 Introduction This article is part 1 of a four-part series. In part 2 of this series, we will look at JQuery, a popular JavaScript framework. Note: This article was written and tested using NetBeans IDE 6.8. REST and Jersey REST is an architectural style defined by Roy T. It is beyond the scope of this article to describe REST in detail, but to summarize, the idea is that clients and servers communicate by sending and receiving representations of resources. An HTTP GET request to receive a resource An HTTP POST request to create a new resource This might look fairly low-level to a Java developer. REST is just an architectural style, not a technology. There have been several implementations of this standard. Building the Sample Application Quickly with NetBeans and JavaServer Faces We are going to build the sample application step by step, but if you want to take a look at the final application, you can download its source code here. Testing the REST Application

Related: