Posts

46)The Republic of Inhospitality

India Republic Day -- While India celebrates Republic Time and the chests of millions of Indians swell with delight at the thought of our huge diversity and imagined army prowess it is well to be able to reflect on what kind of Republic the actual has become. A republican form of government is not merely one out of which the head of state is not a hereditary monarch; rather the modern republic puts on the idea that sovereignty resides inside people and that the will of the testers as expressed through their particular representatives is supreme. What has however been critical to the idea of the republic everywhere is the notion involving inclusiveness. In this respect the tales that have been coming out of India in recent times tell a tale that is relaxing to the bones a tale which usually leaves behind a stench which no amount of sloganeering about Swachh Bharat or even something more than a symbolic wielding with the broom can eradicate. In the event inclusiveness is the touchst

What Are Adverts and How Can They Help Me?

Have you ever wondered how YouTube and Facebook get the huge traffic they do? Well, there is a simple explanation for that and it is - detailed advertising! The video advertorial is not a new concept. It has been used by various brands and companies for quite some time and has helped them in achieving success in the form of targeted leads, sales, traffic etc. In simple terms, video advertorials are ads where you can post your message about your product or service on video. You can upload your original videos to YouTube or Facebook page so that your customers can view your message. Once they watch your video and like it, they can immediately contact you via email or messenger. In this context, we can discuss that one of the major benefits of video advertorials over other forms of internet marketing is that people from different parts of the world can access your messages. So, from the above - if anyone from China can watch your video, then no wonder why your business receives targeted

Macro (computer science)

Image
A macro (short for "macroinstruction", from Greek combining form μακρο- 'long, large') in computer science is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is macro expansion . The input and output may be a sequence of lexical tokens or characters, or a syntax tree. Character macros are supported in software applications to make it easy to invoke common command sequences. Token and tree macros are supported in some programming languages to enable code reuse or to extend the language, sometimes for domain-specific languages. Macros are used to make a sequence of computing instructions available to the programmer as a single program statement, making the programming task less tedious and less error-prone. (Thus, they are called "macros" because a "big" block of code can be expanded from a "small" sequence of characters.) Macros often allow positional or keyword

Keyboard and mouse macros

Keyboard macros and mouse macros allow short sequences of keystrokes and mouse actions to transform into other, usually more time-consuming, sequences of keystrokes and mouse actions. In this way, frequently used or repetitive sequences of keystrokes and mouse movements can be automated. Separate programs for creating these macros are called macro recorders. During the 1980s, macro programs – originally SmartKey, then SuperKey, KeyWorks, Prokey – were very popular, first as a means to automatically format screenplays, then for a variety of user input tasks. These programs were based on the TSR (terminate and stay resident) mode of operation and applied to all keyboard input, no matter in which context it occurred. They have to some extent fallen into obsolescence following the advent of mouse-driven user interfaces and the availability of keyboard and mouse macros in applications such as word processors and spreadsheets, making it possible to create application-sensitive keyboard mac

Parameterized macro

A parameterized macro is a macro that is able to insert given objects into its expansion. This gives the macro some of the power of a function. As a simple example, in the C programming language, this is a typical macro that is not a parameterized macro: #define PI 3.14159 This causes the string "PI" to be replaced with "3.14159" wherever it occurs. It will always be replaced by this string, and the resulting string cannot be modified in any way. An example of a parameterized macro, on the other hand, is this: #define pred(x) ((x)-1) What this macro expands to depends on what argument x is passed to it. Here are some possible expansions: pred(2) → ((2) -1) pred(y+2) → ((y+2) -1) pred(f(5)) → ((f(5))-1) Parameterized macros are a useful source-level mechanism for performing in-line expansion, but in languages such as C where they use simple textual substitution, they have a number of severe disadvantages over other mechanisms for performing in-l

Text-substitution macros

Languages such as C and some assembly languages have rudimentary macro systems, implemented as preprocessors to the compiler or assembler. C preprocessor macros work by simple textual substitution at the token, rather than the character level. However, the macro facilities of more sophisticated assemblers, e.g., IBM High Level Assembler (HLASM) can't be implemented with a preprocessor; the code for assembling instructions and data is interspersed with the code for assembling macro invocations. A classic use of macros is in the computer typesetting system TeX and its derivatives, where most of the functionality is based on macros. MacroML is an experimental system that seeks to reconcile static typing and macro systems. Nemerle has typed syntax macros, and one productive way to think of these syntax macros is as a multi-stage computation. Other examples: m4 is a sophisticated stand-alone macro processor. TRAC Macro Extension TAL, accompanying Template Attribute Language SMX: for

Procedural macros

Image
This section does not cite any sources . Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. ( June 2014 ) (Learn how and when to remove this template message) Macros in the PL/I language are written in a subset of PL/I itself: the compiler executes "preprocessor statements" at compilation time, and the output of this execution forms part of the code that is compiled. The ability to use a familiar procedural language as the macro language gives power much greater than that of text substitution macros, at the expense of a larger and slower compiler. Frame technology's frame macros have their own command syntax but can also contain text in any language. Each frame is both a generic component in a hierarchy of nested subassemblies, and a procedure for integrating itself with its subassembly frames (a recursive process that resolves integration conflicts in favor of higher level subassemblies). The out