30670 Slices
  Title Author Publisher Format Buy Remix
Medium 9781565924192

13. Creating Graphics on the Fly

Scott Guelich O'Reilly Media ePub

Throughout this book we have seen many examples of CGI scripts generating dynamic output. However, in almost all cases, the output has been HTML. Certainly this is the most common format your scripts will generate. However, CGI scripts can actually generate any type of format, and in this chapter we will look at how we can dynamically generate images.

Generating images dynamically has many uses. One of the most common is to generate graphs. If you have a data source that is continually changing, such as the results of an online survey, a CGI script can generate a graph that presents a visual snapshot of this data.

There are also times when generating images dynamically makes less sense. It is much less efficient to generate an image dynamically than for your web server to serve the image from an image file. Thus, just because some of these tools allow you to generate really cool graphics dynamically doesnt mean you must use them only in a dynamic context. Unless the images you generate are based upon data that changes, save the image to a static file and serve that instead.

See All Chapters
Medium 9780596510480

7. Understanding Telephony

Jim Van Meggelen O'Reilly Media ePub

Utility is when you have one telephone, luxury is when you have two, opulence is when you have threeand paradise is when you have none.

Were now going to take a break from Asterisk for a chapter or two, because we want to spend some time discussing the technologies with which your Asterisk system will need to interface. In this chapter, we are going to talk about some of the technologies of the traditional telephone networkespecially those that people most commonly want to connect to Asterisk. (Well discuss Voice over IP in the next chapter.)

While tomes could be written about the technologies in use in telecom networks, the material in this chapter was chosen based on our experiences in the community, which helped us to define the specific items that might be most useful. Although this knowledge may not be strictly required in order to configure your Asterisk system, it will be of great benefit when interconnecting to systems (and talking with people) from the world of traditional telecommunications.

See All Chapters
Medium 9780596519360

17. Elements and the Web

Barbara Brundage O'Reilly Media ePub

Printing your photos is great, but it costs money, takes time, and doesn't do much to instantly impress faraway friends with your newfound photo prowess. Fortunately, Elements comes packed with tools that make it easy to email your photos, prepare them for posting on the Web, and even create simple Web galleries. You can also upload your photos to popular Internet sites, either to share with your friends or to sell. This chapter gives you the scoop.

Back in the Web's early days, making your graphic files small was important, because most Internet connections were as slow as snails. Nowadays, file size isn't as crucial; your main obligation when creating graphics for the Web is ensuring they're compatible with the Web browsers people use to view your Web pages. That means you'll probably want to use either of the two most popular image formats, JPEG or GIF, but PNG is also an option:

JPEG (Joint Photographic Experts' Group) is the most popular choice for images with lots of detail and where you need smooth color transitions. Photos are almost always posted on the Web as JPEGs.

See All Chapters
Medium 9781449302641

5. Introduction to Pig Latin

Alan Gates O'Reilly Media ePub

It is time to dig into Pig Latin. This chapter provides you with the basics of Pig Latin, enough to write your first useful scripts. More advanced features of Pig Latin are covered in Chapter6.

Pig Latin is a dataflow language. Each processing step results in a new data set, or relation. In input = load 'data', input is the name of the relation that results from loading the data set data. A relation name is referred to as an alias. Relation names look like variables, but they are not. Once made, an assignment is permanent. It is possible to reuse relation names; for example, this is legitimate:

However, it is not recommended. It looks here as if you are reassigning A, but really you are creating new relations called A, losing track of the old relations called A. Pig is smart enough to keep up, but it still is not a good practice. It leads to confusion when trying to read your programs (which A am I referring to?) and when reading error messages.

See All Chapters
Medium 9781491907092

Responsive Typography: An Introduction

Jason Pamental O'Reilly Media ePub

Ever since I began studying graphic design I’ve loved type and typography. When real web fonts started to become available, particularly with the launch of Adobe Typekit in 2009, web design changed for me practically overnight. In truth, after over 15 years designing and developing for the web, it became fun again. Great typography and typefaces can bring so much to the design of a site that it’s practically a whole new profession. But even with this quantum shift in what’s possible in web design, there persists a lack of awareness and print resources to help designers and developers navigate the new landscape. This book is meant to change that.

When I started work on this book, my intent was to create a resource for designers and developers to help them implement web fonts effectively. I certainly intended to provide some typography basics and a bit of the history of type on the web, but that was about it. What’s happened in the interim has led me to change focus a bit. My research and use of web fonts developed alongside my adoption and practice of Responsive Web Design (see the following sidebar), and after a time some significant similarities and relationships began to emerge.

See All Chapters
Medium 9788328306134

ROZDZIAŁ 1. Wprowadzenie do Ember.js i wymagających aplikacji internetowych

Cravens, Jesse Helion ePub

Wprowadzenie do Ember.js i wymagających aplikacji internetowych

Nadeszły czasy, gdy my, deweloperzy aplikacji internetowych, mamy stosunkowo łatwe życie. Nie, nie chodzi o świętowanie tego, że wreszcie wypracowaliśmy wspólne stanowisko w kwestii braku konieczności dalszego wspierania Internet Explorera 6. No dobra, o to też chodzi. Bo widzisz, były czasy, gdy musieliśmy ciągle wynajdywać koło na nowo. Na początku każdego nowego projektu przeglądałeś wcześniejsze projekty w poszukiwaniu fragmentów kodu JavaScript, który wcześniej napisałeś lub skopiowałeś, a który służył do wyprostowania różnic API pomiędzy przeglądarkami, udostępniał funkcje, do których byłeś przyzwyczajony, a nawet generował powtarzalne fragmenty kodu HTML.

Było to tak częste, że przypominało nie tyle wynajdywanie koła na nowo, co bieganie w kole jak chomik. Wydaje nam się, że właśnie dlatego Ember (odtąd będziemy go tak określać, bez dodawania „.js”) wykorzystuje takiego miłego małego chomika jako swoją maskotkę. Ember wskakuje za Ciebie do kółka, dając Ci możliwość skoncentrowania się nad tym, co nowego i interesującego pojawi się w projekcie, nad którym pracujesz. Mamy też łatwe życie dzięki temu, że możemy wybierać z wielu dobrze zaprojektowanych zestawów narzędzi, bibliotek, frameworków itp., które dają taką swobodę, ale w tej książce napiszemy, dlaczego Ember szczególnie dobrze sprawdza się przy tworzeniu wymagających aplikacji internetowych.

See All Chapters
Medium 9781601323149

On the Automated Passengers’ Authenticated Bus Transit Services in South Africa

Hamid R. Arabnia, Azita Bahrami, Fernando G. Tinetti, Leonidas Deligiannidis, George Jandieri, and Ashu M. G. Solo CSREA Press PDF


Int'l Conf. e-Learning, e-Bus., EIS, and e-Gov. | EEE'14 |

On the Automated Passengers’ Authenticated Bus Transit

Services in South Africa

Bassey Isong, Egbe Dominic, Gilbert Dzawo

Department of Computer Science and Information Systems, University of Venda

Thohoyandou, South Africa

Abstract— Today, the impact of information technology has been beneficial and witnessed in every key sector of human endeavour such as healthcare, transportation, education, e-government, entertainment, nations and so on. However, in the perspective of transportation, the existing bus transit system in South Africa (SA) is still characterized by inefficient manual operations such as poor quality of service, non-user friendly and inefficient passenger identification. In this case, due to the economic and developmental role played by the bus transport sector in SA, it is important that some advanced information and communication technology (ICT) tools be incorporated into its operations. This requires a system that automates all the bus transit services and has the capability to authenticate passengers in a real-time mode. Therefore, this paper, proposes an automated bus transit system that offers e-subscription and real-time biometric passengers’ authentication. This will proffer solution to the challenges faced by the bus transit industry in SA.

See All Chapters
Medium 9781449358655

6. Time Stamps and Financial Modeling

Rachel Schutt O'Reilly Media ePub

In this chapter, we have two contributors, Kyle Teague from GetGlue, and someone you are a bit more familiar with by now: Cathy O’Neil. Before Cathy dives into her talk about the main topics for this chapter—times series, financial modeling, and fancypants regression—we’ll hear from Kyle Teague from GetGlue about how they think about building a recommendation system. (We’ll also hear more on this topic in Chapter 7.) We then lay some of the groundwork for thinking about timestamped data, which will segue into Cathy’s talk.

We got to hear from Kyle Teague, a VP of data science and engineering at GetGlue. Kyle’s background is in electrical engineering. He considers the time he spent doing signal processing in research labs as super valuable, and he’s been programming since he was a kid. He develops in Python.

GetGlue is a New York-based startup whose primary goal is to address the problem of content discovery within the movie and TV space. The usual model for finding out what’s on TV is the 1950’s TV Guide schedule; that’s still how many of us find things to watch. Given that there are thousands of channels, it’s getting increasingly difficult to find out what’s good on TV.

See All Chapters
Medium 9781601323248

Archiving and visualization of the patient’s anatomical model using B-spline curve and surface representation

Hamid R. Arabnia, Leonidas Deligiannidis Joan Lu, Fernando G. Tinetti, Jane You, George Jandieri, Gerald Schaefer, and Ashu M.G. Solo CSREA Press PDF


Int'l Conf. IP, Comp. Vision, and Pattern Recognition | IPCV'14 |

Archiving and visualization of the patient’s anatomical model using

B-spline curve and surface representation

A. Dominik Spinczyk

Faculty of Biomedical Engineering, Silesian University of Technology, Zabrze, Silesia, Poland

Abstract— From the patient’s perspective a minimally invasive surgery decreases trauma, the associated pain, and greatly reduces the post-operative recovery time, trauma and faster return to life. It has some disadvantages, like limited field of view and occluded anatomy, which could be overcome by registration of the preoperative patient’s anatomical model to the patient’s position in the operating room. The aim is archiving and presenting the patient’s anatomical model in a manner which is easy to modification and integration into surgical workflow finally causes simplification in perception of operating field. B-spline curve and surface representation for anatomical models were selected.

For creating the model from segmentation results, the global surface interpolation algorithm is applied. Scene graph oriented solution was proposed for 3D image data and anatomical model presentation. The whole scene graph is divided into independent branches, which accelerates rendering and simplifies data loading and building the scene graph process.

See All Chapters
Medium 9780596002411

15. Sockets

Nathan Patwardhan O'Reilly Media ePub

Why build networking functionality into your Perl scripts? You might want to access your email remotely, or write a simple script that updates files on an FTP site . You might want to check up on your employees with a program that searches for Usenet postings that came from your site. You might want to check a web site for any recent changes, or even write your own home-grown web server. The network is the computer these days, and Perl makes network applications easy.

Perl programmers have their choice of modules for doing common tasks with network protocols; Chapter 14 through Chapter 17 cover the modules for writing email, news, FTP, and web applications in Perl. If you can do what you want with the available modules, you're encouraged to jump to those chapters and skip this one. However, there will be times when you'll have to wrestle with sockets directly, and that's when this chapter comes in.

Sockets are the underlying mechanism for networking on the Internet. With sockets, one application (a server) sits on a port waiting for connections. Another application (the client) connects to that port and says hello; then the client and server have a chat. Their actual conversation is done with whatever protocol they choosefor example, a web client and server would use HTTP, an email server would use POP3 and SMTP, etc. But at the most basic level, you might say that all network programming comes down to opening a socket, reading and writing data, and closing the socket.

See All Chapters
Medium 9780596000646

7. Some Thoughts on GUI Design

Matthias Kalle Dalheimer O'Reilly Media ePub

In this chapter, we will give you some advice on GUI design. Keep in mind that we offer only guidelines, which may or may not apply to your specific application.

The initial points are general. Later, we present a list of hints and guidelines for specific widgets.

If you need a more thorough description of things that can go wrong in GUI design, look at http://www.iarchitect.com/mshame.htm. Examples of well-done UIs can be found at http://www.iarchitect.com/mfame.htm.

If you are looking for something in print, try About Face: The Essentials of User Interface Design by Alan Cooper (Hungry Minds, Inc.); The Elements of User Interface Design by Theo Mandel (John Wiley & Sons); or The Windows Interface Guidelines for Software Design: An Application Design Guide by Microsoft (which is useful even for other platforms). Also:

Always try the application yourself. If you are a contract programmer writing vertical-market software, you may not have a real use for your application, but you should at least have tried to work with it for more than ten minutes. Otherwise, you will never find out where your interface is awkward to use. Note that I am not talking about testing to find real bugsI take it for granted that you will do so.

See All Chapters
Medium 9780596527228

1. External Software Packages

Kevin Dooley O'Reilly Media ePub

This appendix discusses several of the external software packages that we discussed throughout the book. Because this is primarily a Cisco book, which is not focused on any particular software products, we have restricted ourselves to only software that is freely distributed. There are also commercial products that fulfill the same functions as some of these packages, particularly for SNMP, if you prefer to use them.

According to the Perl web site, Perl is a high-level programming language with an eclectic heritage written by Larry Wall and a cast of thousands. It derives from the ubiquitous C programming language and, to a lesser extent, from sed, awk, the Unix shell, and at least a dozen other tools and languages. Perls process, file, and text manipulation facilities make it particularly well-suited for tasks involving quick prototyping, system utilities, software tools, system management tasks, database access, graphical programming, networking, and world wide web programming.

See All Chapters
Medium 9780596009571

4. Client/Server Communication

Sasha Pachev O'Reilly Media ePub

In this chapter we will discuss the details of the client/server communication in MySQL. The goal is to give you the ability to look at a binary dump of the client/ server communication and be able to understand what happened. This chapter can also be helpful if you are trying to write a MySQL proxy server, a security application to audit MySQL traffic on your network, or some other program that for some reason needs to understand the low-level details of the MySQL client/server protocol.

The server listens for connections on a TCP/IP port or a local socket. When a client connects, a handshake and authentication are performed. If successful, the session begins. The client sends a command, and the server responds with a data set or a message appropriate for the type of command that was sent. When the client is finished, it sends a special command telling the server it is done, and the session is terminated.

The basic unit of communication is the application-layer packet. Commands consist of one packet. Responses may include several.

See All Chapters
Medium 9788324692545

13. Geolokalizacja, obiekt pracownika i zarządzanie historią

MacDonald, Matthew Helion ePub

Poznałeś już wszystkie kluczowe filary standardu HTML5. Wykorzystałeś je do napisania lepszych, bardziej uporządkowanych dokumentów. Dowiedziałeś się, jak używać bogatych własności, jakimi są multimedia i dynamiczne rysowanie. Zdobytej wiedzy użyłeś do utworzenia samowystarczalnych stron opartych na języku JavaScript, które mogą działać nawet bez dostępu do sieci.

W tym rozdziale zajmiesz się trzema własnościami, które do tej pory nie były omawiane. Podobnie jak wcześniej poznane standardy, i te właściwości rozszerzają możliwości strony dzięki zastosowaniu kodu JavaScript. W tym rozdziale omówione zostaną następujące technologie.

Geolokalizacja (ang. geolocation). Choć często mówi się o niej w kontekście HTML5, geolokalizacja jest oddzielnym standardem, który powstał w całości poza kontrolą WHATWG (punkt „HTML5: reaktywacja” w Rozdział 1.). Zastosowanie tej technologii pozwoli Ci pobrać jedną kluczową informację: geolokalizacyjne współrzędne użytkownika Twojej witryny.

See All Chapters
Medium 9781449337391

1. Introduction and Overview

Mike Wilson O'Reilly Media ePub

The Web, already one of the fastest developing areas in technology, is accelerating. This is both good news and bad news for those of us planning to draw income from writing software. Today, good developers have the rare opportunity to do what they love, grow their horizons, and continually evolve and derive even greater satisfaction from their work, as long as theyre willing to put in the hard work necessary to understand a huge back catalog of rapidly-expanding knowledge.

Terrific careers come at a price. As a software developer, you must continually search for the next great tool that will help you achieve more, better, faster. What you work with 10 years from now is going to be a major departure from what you are working with todayin essence, you will be retraining yourself multiple times to keep sharp.

In his 2008 book Outliers (Back Bay Books), Malcolm Gladwell presents evidence that it takes 10,000 hours of effort to achieve mastery at a professional level. Even prodigies need to put in their time to achieve success; the difference between an average performer and a superb performer comes down to the amount of practice put in by the individual. Picking up a book like this puts you into the latter category; right now you are putting in the extra time to gain more exposure to the leading edge of this craft. The future is arriving, and you will be among the first positioned to take advantage of it.

See All Chapters

Load more