Make your own eBooks

Use our Remix App to mix & match content. In minutes make your own course packs, training bundles, custom travel guides, you name it. Even add your own title & cover.


Slices & Articles Get by the slice or add to your own ebook

Medium 9781574414349

5. Between Two Wars

Lam Quang Thi University of North Texas Press ePub



When I was a child and attended the elementary school in Bac Lieu, I was taught that France was la mere patrie. I also learned through history books that “nos ancêtres sont des Gaulois” (our ancestors are the Gauls). Later at College Phan Thanh Gian, I was captivated by the French Revolution which began with la Prise de la Bastille, continued with Robespierre’s Terreur and ended with Napoleon’s Premier Empire. Like Victor Hugo, I admired Napoleon’s military exploits. I followed with passion his skillful tactical maneuvers at Iena and Austerlitz, which Hugo immortalized in his epics. I memorized Hugo’s famous phonetic verse describing Napoleon’s heavy artillery moving to the front:

Et ces lourds canons roulant vers Austerlitz.8

At College Phan Thanh Gian, we were also initiated to the rationalist philosophers of the eighteenth century. We admired the immortal works of the French poets of the l’École Classique of the seventeenth century. Most of all, however, we adored the lyric poems of Lamartine, Victor Hugo, Alfred de Musset, and Chateaubriand, who represented the nineteenth century’s École Romantique.

See All Chapters
Medium 9781449373108

7. Part of a Larger Trend

Mike Barlow O'Reilly Media ePub

The push toward real-time big data analytics is part of a much larger trend in which the machines we create act less like machines and more like human beings, says Dhiraj Rajaram, Founder and CEO of Mu-Sigma, a provider of decision sciences and analytics solutions.

“Today, most of our technology infrastructure is not designed for real time,” says Rajaram, who worked as a strategy consultant at Booz Allen Hamilton and Pricewaterhouse Coopers before launching Mu Sigma. “Our legacy systems are geared for batch processing. We store data in a central location and when we want a piece of information, we have to find it, retrieve it and process it. That’s the way most systems work. But that isn’t the way the human mind works. Human memory is more like flash memory. We have lots of specific knowledge that’s already mapped — that’s why we can react and respond much more quickly than most of our machines. Our intelligence is distributed, not highly centralized, so more of it resides at the edge. That means we can find it and retrieve it quicker. Real time is a step toward building machines that respond to problems the way people do.”

See All Chapters
Medium 9780596520106

4. Subroutines

Randal L. Schwartz O'Reilly Media ePub

Youve already seen and used some of the built-in system functions, such as chomp, reverse, print, and so on. But, as other languages do, Perl has the ability to make subroutines, which are user-defined functions.[10] These let us recycle one chunk of code many times in one program.[11] The name of a subroutine is another Perl identifier (letters, digits, and underscores, but it cant start with a digit) with a sometimes-optional ampersand (&) in front. Theres a rule about when you can omit the ampersand and when you cannot; youll see that rule by the end of the chapter. For now, well just use it every time that its not forbidden, which is always a safe rule. Well tell you every place where its forbidden, of course.

The subroutine name comes from a separate namespace, so Perl wont be confused if you have a subroutine called &fred and a scalar called $fred in the same programalthough theres no reason to do that under normal circumstances.

See All Chapters
Medium 9780596003012

8. Event Handling

Inc, Apple Computer O'Reilly Media ePub

Graphical interfaces are driven by user events mouse clicks and keystrokes. Most of an applications time is spent waiting for the user to tell the application what to do next. However, a running application can also receive events not originating from the user interface, such as packets arriving over a network interface or timers firing periodically. In Cocoa, both types of events result in a message sent to an object in your application, as depicted in Figure 8-1.

Figure8-1.A Cocoa application receiving events

This chapter focuses on eventsboth user- and program-generatedand how you intercept, handle, and coordinate them in Cocoa.

Events in Cocoa are represented by instances of the NSEvent class. An event object can be queried to discover its window, the location of the event within the window, and the time the event occurred (relative to system startup). You can also find out which, if any, modified keys (such as Command, Shift, Option, and Control) were pressed. An event also contains the type of event it represents. There are many event types, falling primarily into the following categories:

See All Chapters
Medium 9780596516482

7. Drag-and-Drop

Matthew A. Russell O'Reilly Media ePub

Drag-and-drop (DnD) can give your application incredible desktop-like functionality and usability that can really differentiate it from the others. This chapter systematically works through this topic, providing plenty of visual examples and source code. You might build off these examples to add some visual flare to your existing application, or perhaps even do something as brave as incorporate the concepts and the machinery that Dojo provides into a DHTML game that people can play online. Either way, this is a fun chapter, so let's get started.

While drag-and-drop has been an integral part of desktop applications for more than two decades, web applications have been slow to adopt it. At least part of the reason for the slow adoption is because the DOM machinery provided is quite primitive in and of itself, and the event-driven nature of drag-and-drop makes it especially difficult to construct a unified framework that performs consistently across the board. Fortunately, overcoming these tasks is perfect work for a toolkit, and Dojo provides facilities that spare you from the tedious and time-consuming work of manually developing that boilerplate yourself.

See All Chapters

See All Slices

Load more