text:
Funiciello of JF Real Estate acts for landlord in 5,454 s/f lease to Anything But Beer brewery
Syracuse, NY Anything But Beer has leased the corner retail space in the White Memorial Building, located at 201 South Salina St. The brewery produces gluten-free and vegan fruit ales and ciders from
September message from the president of NYSCAR's Upstate chapter - by Guy Blake
With Fall quickly approaching, it's time to think about signing up for committees and nominations for Realtor of the Year (ROTY). This program is to recognize an outstanding active member of the New York State Commercial Association of Realtors for 2019.
Rochester's Cornerstone Group and Community Preservation Partners upgrade Cedarwood Towers
Rochester, NY Cedarwood Towers, located at 2052 East Main St., is undergoing a $41.2 million rehabilitation program to upgrade the 50-year-old buildings. The work of the twin 11-story towers, 206-unit facility, is two-thirds complete. The scope of work includes
C2 Architecture completes $20 million Electric City; joint project between Prime Cos. & Highbridge Development
Schenectady, NY C2 Architecture celebrated the completion of the $20 million Electric City mixed-use project at a ribbon cutting attended by state and local officials and members of the business community
Marshall of O,R&L Commercial and Anninos of CBRE Syracuse broker $5.575 million sale
Syracuse, NY O,R&L Commercial, LLC sold a 134,444 s/f former Sam's Club for $5.575 million. The retail building on 14.2 acres is located at 2649 Erie Blvd. Phil Marshall of
Hardesty of Bouck Real Estate completes 6,000 s/f lease in Auburn
Auburn, NY According to Bouck Real Estate, Sharpshooters Laser Tag has a new home at 44 Washington St. Mike Hardesty, licensed salesperson with Bouck Real Estate, worked with
Arc Building Partners and Claremont Cos. to merge
Buffalo, NY Arc Building Partners and Claremont Cos. have entered into a strategic partnership agreement that will bolster Claremont's construction capabilities and enable Arc Building Partners to expand
Chain Store Age magazine names Destiny USA a top retail experience
Syracuse, NY Destiny USA, one of the largest shopping, dining and entertainment destinations in the state, has been selected as one of the "Top 10 Retail Experiences of 2019" by
Empire Commercial Construction renovating and expanding Unicell Body office with ALA Architects
Henrietta, NY Empire Commercial Construction, a retail-specific/small-projects sister company of regional general contractor Taylor, The Builders, is renovating/expanding the Unicell Body office.
12 projects in Albany part of $10m Downtown Revitalization Initiative
Albany, NY Governor Andrew Cuomo announced 12 transformational projects for the city's Clinton Sq. neighborhood as part of the $10 million Downtown Revitalization Initiative (DRI) award.


text:
South WestNewsSport
National coup for Bunbury motocross
JOSH ZIMMERMANSouth Western Times
Mon, 3 November 2014 4:03PM
Camera IconReece Colgan and Ben Atthowe at the Bunno Busso Bash at Shrubland Park in Bunbury, where some of the country's brightest up-and-coming motocross stars will converge next year when the Bunbury Motorcycle Club hosts the KTM Australian Junior Championships. . Credit: South Western Times
Some of the country's brightest up-and-coming motocross stars will converge on the South West next year when the Bunbury Motorcycle Club hosts the KTM Australian Junior Championships.
More than 500 riders are expected to head west for the prestigious week-long event from September 26 to October 3.
It is the first time the Shrubland Park circuit has been selected to host a national competition since it was built in 1963 and comes after nearly a decade of upgrades and improvements by the Bunbury Motorcycle Club.
Club president Ian Scarlett said he was rapt at the opportunity to showcase one of WA's premiere racing venues.
"The club is excited and ready to take on the challenge of hosting the biggest event on the junior motocross calendar," he said.
"Bunbury's Shrubland Park circuit is unlike anything the eastern States riders have seen — its deep sand, tight turns, big jumps and sweeping berms will keep every rider on their toes.
"We've improved everything — the tracks have been extended and brought up to national standard, we've added extra toilet blocks and showers and revamped the club rooms and kitchens.
"We started eight years ago with the aim of picking up a State round and we get both a senior and junior round every year now so we feel we're ready for a national event."
More than 650 competitors took part in this year's event at Appin, NSW with WA riders Caleb Grothues (85cc 2st/150cc 4st 12-14yrs) and Regan Duffy (65cc 11-12yrs) both winning national titles.
Without the burden of travel and competing on a familiar track, Scarlett predicted a number of South West riders could snatch podium finishes.
"We've got a lot of members that compete at the national level every year but being over here and racing on their home track will be a big advantage, " Scarlett said.
"The eastern States riders aren't used to our sand which requires different breaking and cornering speeds and is tougher physically."
Scarlett said hosting a successful junior championships could pave the way for Bunbury to host the senior event, which was the club's next big goal.
"You have to check a lot of boxes to be awarded the big race but we try to improve every year and have had a good committee on board for some time now, " he said.
Click here to go mobile with iNFOGO - local everywhere
Job boost for ManjimupPremium
Ute muster to run in NovemberPremium

redpajama_set_name: RedPajamaCommonCrawl


text:
The Electronic Labyrinth Podcast – O.S.S.
The Evening Glass podcast – OSS
Local Trouble – Star Wars podcast
Star Wars Movie Commentary Tracks
O.S.S. on iTunes
O.S.S. on Spotify
Two or Three Things I Know About… DIE HARD
Home /Two or Three Things I Know About… DIE HARD
Fletcher Walton
In his youth, Fletcher compiled a collection of 300 VHS tapes carefully documenting the years 1996-2007 across terrestrial and satellite. His parents would prefer he had not.
To commemorate 30 years since it hit UK cinemas, Fletcher Walton explains some of the important ways in which the best action film of the '80s still stands tall in the cinematic landscape.
What makes Die Hard magnificent? It isn't enough to say, "Willis", or "Rickman". It isn't enough to talk about "the '80s". Die Hard is definitely better than almost any American action picture you could name, before or since. What makes it better? What choices made it better?
Die Hard is a colossal triumph of flexibility. So many of its strengths were forged in the furnace of the challenges of its shoot, where in the hands of incredibly talented filmmakers – producers Joel Silver, Lawrence Gordon and Lloyd Levin, writers Jeb Stuart and Steven E. De Souza, and particularly director John McTiernan and cinematographer Jan De Bont – each logistical hardship offered creative fecundity, the opportunity to revise and reconsider, pushing for a film with greater depth, greater scope and greater character.
As it turns out, a culture of improvisation is rather effective in an environment lousy with geniuses.
Like f'rinstance, the first month of shooting was constrained by the limited availability of lead actor and TV megastar Bruce Willis, subject to a punishing schedule of Die Hard at night, Moonlighting by day.
But in practice, it was this very vacuum that allowed for constant on-the-fly embellishment: of supporting players, like Reginald VelJohnson's finely-developed Sgt. Al Powell and his tear-jerking redemptive arc; and subplots, in particular the mordant depictions of news media and police procedure from which the picture's enriching lip-smacking satirical zest then grows. Scheduling that ordinarily would have slowed down production was instead received as a challenge to dash about improving the film.
Like f'rinstance, on set, early on it was identified that hero (Bruce Willis) and villain (Alan Rickman) probably need to, you know, meet before the finale. As recounted by screenwriter De Souza, it was weeks into filming and during a pause for a shot change that an idling crewmember happened to ask Rickman if he could do an American accent, a question answered with sufficient affirmation that within literally minutes, writer, producer, director and actors were throwing together McClane's confrontation with "Bill Clay".
A scene of fantastic tension, in hindsight utterly integral to the film, thought up in less than half an hour in the middle of the shoot because new information was disclosed in front of people who knew precisely how to use it.
So, ability is vital, and flexibility certainly helps – but it's these qualities in concert with an artistic opportunism manifested as a relentless dedication to impromptu improvement. An attitude of, "We have the time – let's try this." Where does this resolve help Die Hard persevere on the long road to brilliance while lesser films make do with "good job"?
CREATING CHARACTER
All cinema is constructed – if it's ended up onscreen, you shouldn't assume that it wasn't a conscious decision with some thought behind it. Perversely, cinema's artifice is at its most effective when we don't register it as artifice at all, and an author's best work can be work we don't even notice as work.
Inside only the first ten minutes of Die Hard, the quiet explanation of the character John McClane and the audience investment in him engendered by that unpacking is a case study in efficiency and precision from filmmakers that are obscuring the construction lines expertly. At the end of those ten minutes, we care about John and we're ready to follow him anywhere. Let's focus on those ten minutes. What decisions do the filmmakers take to make John "our guy"?
The second shot of the entire film is a close-up of John McClane's hand gripped tightly around the armrest of his seat – he's introduced to us as calm and taciturn but also vulnerable and anxious.
Over the next few minutes, John is shown to be avuncular, open, self-reflexive, humble and human, and this inspires a little humour and a lot of empathy. His fear of flying, his easy banter, his failing marriage, his bemusement at his new environs – John is relatable. He is also an underdog.
Structurally, the key to conveying John's character early and quickly is the plot device of Argyle (De'voreaux White), the likable working-class novice limo driver, and John and Argyle's first scene together, the ride from the airport, which functions as a naturalistic way for us to learn about the protagonist.
Upon meeting, Argyle confesses this is his first ever pick-up; John reciprocates, happily admitting he's never been in a limo before, either, and as such he chooses to sit up front. John and Argyle are no longer driver and passenger, master and servant – John's humility has immediately rendered them equals, riding together in the front, busting balls and playing tunes.
John takes Argyle's probing personal questions with a wry smile, and with a little encouragement discusses his separation – as executed, this tells us about the character but also drives the plot, as resultantly, a sympathetic Argyle promises to wait in the garage for John in the event that the reconciliation fails and John needs a ride out to Captain Roberts' couch in Pomona. Not only do we learn about John, we're also given a reason for Argyle to stick around.
It's a fun sequence, and it communicates so much of what we need to know in order for John to be "our guy" – his grounded attitude, his reduced circumstances, his humanity, his humility. The limo scene also presents his central dichotomy, one which find its reprise in McTiernan's Die Hard With A Vengeance – a desire for family seemingly incompatible with his dedication to duty: "I'm a New York cop, I got a six-month backlog of New York scumbags I'm still trying to put behind bars. I can't just pick up and go that easy."
In those economical opening scenes, we learn a lot about John from his reactions to others – the filmmakers creating interactions for him to bounce off, though in a manner so relaxed as to be innocuous.
The tiny moment when John reciprocates the glance of the stewardess is assembled to tell us that John is just a little bit wolfish, a little bit unreconstructed blue-collar American male – recalling the words of Trent from Swingers, "the guy in the rated R movie, the guy you're not sure whether or not you like yet."
The bear and McTiernan would work together again on The Hunt for Red October.
But his giant cuddly toy tells us he's still a family man, a father and husband. As does his wedding ring, given its due importance in our very first frames with the character.
It's almost as if the filmmakers are explicitly trying to communicate something about a protagonist desperate to HANG ON TO HIS MARRIAGE…
In the arrivals lounge, John witnesses a couple happily reuniting, in contrast to his own welcome – another tiny moment that elicits sympathy, as do his fish-out-of-water, affably baffled New Yorker-in-California reactions to his new east-meets-west locale.
In the late '80s, sun-fried Los Angeles was a punchline, "the land of fruits and nuts"; at the same time, American cinema was outright preoccupied with the new-fangled economic threat of Japan –Gung Ho, Collision Course, Black Rain, Iron Maze, Rising Sun. Die Hard comments on both.
I don't know why they've all got two-word names, I don't know what happened to Bridget Fonda, I don't know whether casting Jay Leno meant the cocaine was downright dreadful or fucking amazing.
(Later on, the film's subtext establishes that John, vulnerable and surplus, represents a retrograde alternative to those two modernising cultures – but he also stands apart from contemporary '80s musclebound superman like Arnie's John Matrix or the later iterations of Stallone's John Rambo. As our hero, "dumb Irish flatfoot" John McClane proves to be the quintessential cowboy: he is outnumbered, outgunned, surrounded in dangerous territory, hurting, alone; but, he has the love of a good woman and the fast hands of a couple of loyal deputies, he's smart, resourceful, indefatigable, honourable, and, god damnit, he is American.)
The last character notes of those introductory ten minutes, and two of my favourites, are seen as John enters the Nakatomi and briefly negotiates the computerised directory to locate Holly (Bonnie Bedelia).
Whether 1989 or 2019, apprehensive interaction with IT makes a character accessible, and it's easy for an audience to see themselves in John. That empathy is compounded a moment later when it's through this touch-screen console that John learns his wife has been working under her maiden name.
In screenwriting terms, and cognisant of the cinematic shibboleth "show, don't tell", it's a sophisticated, engaging and almost wordless way in which to communicate two characters' divergent opinions on their relationship and create emotion from the sudden confirmation of that gulf.
As a character beat, the quiet pain of John's muttered, "Christ…" is classic Willis, the dramatic cherry on top of a sequence of strong, subtle work. With just a few fragments of character work across three short scenes, John McClane is no longer just the lead –the filmmakers have done their job and made John "our guy", and they've done it in ten minutes flat.
PLOTTING INTELLIGENTLY
There are a number of small plot points that need to stand to reason in order that the finished film maintain integrity.
Some of these were improvised during the shoot – for instance, it was only after enjoying the scenes with De'voreaux White as Argyle that the filmmakers decided to keep the character at Nakatomi Plaza, which they accomplished satisfactorily by showing that his fondness of John and enjoyment of chilling in an all-mod cons limousine was motivation enough to stick around; as such, McTiernan could then deploy Argyle heroically in the denouement to punch out Theo (Clarence Gilyard) and drive the McClanes into the sunset.
Some are almost incidental: in the Bill Clay scene, we might accept McClane's suspicion of "Clay" as cop intuition and plain common sense. However, emblematic of the attention to detail throughout, the filmmakers earn that supposition with careful framing and editing of the offer and receipt of the cigarette, clearly emphasising how Clay's acceptance of the unusual European smokes John has pilfered from the terrorists is conspicuous. Gruber is typically unflappable but McClane is onto him immediately – he is, after all, a policeman, with 11 years of figuring people out. As an audience, we don't have to infer that – the filmmakers use their tools to make it very clear.
Like f'rinstance, it's the only sequence in the movie where McTiernan, De Bont and camera operator Michael Scott use Deutsch, I mean, Dutch angles…
Let's look at a plot point which is used to set up the climax – at some point in the film, Gruber must twig that Holly Gennaro is the wife of John McClane, and if it's sudden and dramatic and, as it proves to be, 28 seconds of perfect cinema, then all the better.
In the finished film, this is accomplished by hissable news anchor Dick Thornburg (William Atherton) tracking down Holly's home address and broadcasting live from the family kitchen while Gruber watches on television.
"Wrong, dickhead. Trick question – McTiernan is God."
I feel this is a thoroughly interesting contrivance with wonderful results. Jeb Stuart could have written the reveal in a dozen other ways, but he chose to involve television news; having involved television news, Stuart and De Souza then took that as an opportunity to extrapolate their plot device into a full-blown subplot of biting satire running through the entire second and third acts, as the audience is presented with nightcrawler Thornburg and all the pompous dimwits and callous ratings-chasers his industry provides.
It's a decision that exemplifies the artists' comprehensive approach to painting to the edges of the canvas – in evidence, too, in all those lovely little asides, like a SWAT officer pricking his finger on a rosebush and Al Leong nervously stealing a chocolate bar.
And it illustrates one of the most important reasons for Die Hard's success – the story in the tower is strong, but so is the story outside the tower. All those memorable characters drawn to the Nakatomi and its siege – drawn by duty (Al Powell); by occupation (Dwayne T. Robinson); by professional opportunism (Thornburg); by the promise of macho excitement (Johnson and Johnson).
Each role performs a key mechanism in driving the plot forward but, thanks to the same assiduous approach to character and storytelling seen in the opening ten minutes and discussed earlier, each role also transcends their origin as plot device and becomes a vital, living, breathing part of that world.
DIVIDING LOYALTIES
In sharp relief to the remarkable lack of jingoism seen in these last 15 years of blockbuster casting – consider that by 2013, quintessential American heroes Superman, Batman and Spider-Man were all, without controversy or commentary, played by Brits – the Hollywood of the 1980s offered limeys only one part: charismatic baddie. Steven Berkoff in Beverly Hills Cop, Charles Dance in The Golden Child (later parodied by Dance himself in McTiernan's Last Action Hero), Joss Ackland in Lethal Weapon 2.
All memorable, all enjoyable. But Alan Rickman – in his fucking movie debut – changed the game. His magnificent realisation of antagonist Hans Gruber created a new paradigm – this baddie is not just a worthy adversary, he is the very reason to see the film.
Rickman repeated the feat two years later with Robin Hood: Prince of Thieves, and for perhaps 20 years it remained the convention that an action movie is made by its baddie: Under Siege, Speed, Batman Forever, Air Force One; the concept reached its apogee with Face/Off, where both leads are simultaneously hero and baddie, and then its hysterical logical conclusion with Con Air, where everyone's a baddie; but still continued into X-Men and Spider-Man and on until the event of the MCU firmly foregrounded heroes once again.
It's in this context we should consider a plot point that is perhaps the film's most important – these terrorists aren't terrorists, they're thieves. The decision was McTiernan's, and it confirms his remarkable intellect and understanding of the medium, because it's a decision that allows us to enjoy the bad guys.
McClane is our hero, and of course we want to see him prevail – this isn't noir, we must see him prevail. But Die Hard is equally in love with his nemesis. We spend half the film with Gruber, and many scenes are not just from his point of view but are shot to support his point of view.
If that foments in the viewer a morality of increasing complexity – we are now sympathising with our putative aggressor – it should be no surprise that this very mindset is soon enough discussed within the text itself, as on television a psychologist expounds upon Stockholm Syndrome (confoundingly referred to as "Helsinki Syndrome"*) to news anchor Gail Wallens ('80s movie mom supreme Mary Ellen Trainor).
*Two years ago, listener Alex Baker brought to my attention a fascinating article that had unearthed a reference to "Helsinki Syndrome" in a magazine from 1985 – identified as a disorder in which "positively charged particles of information afflict the victim's central ideological system, causing him to question America's absolute moral superiority in the cold war." The article's author successfully argues that what we had presumed was an obvious gag about newsroom ignorance is at the same time also yet another anti-establishment satirical swipe from a film brimming with trenchant commentary.
This deliberate and delectable mood of subversion culminates with the scene in which, as Gruber has predicted, a clueless FBI adheres to process and cuts the power…
J.J. Abrams just bust both nuts
As Michael Kamen's score, which has been teasing delightfully for 100 minutes, finally unleashes Beethoven's "Ode to Joy" in all its majesty, the moment of triumph is unmistakably an exultation for Gruber and for the audience. The brainiac baddies have beaten the bonehead authorities and we're backing them all the way.
McTiernan gave us permission to cheer for Gruber by making him not a terrorist but an exceptional thief – he is a rampant capitalist mordantly exploiting and lampooning anyone fool enough to concern themselves with something so limiting as a political ideology when cold hard cash is there for the taking. If anything, it probably makes Gruber an even better baddie – perhaps the only thing worse than holding violent radical philosophies is pretending to hold violent radical philosophies purely for profit.
Casting Gruber and his crew as pretend revolutionaries adds another dollop of satire to a pot already bubbling with delicious cultural commentary; more importantly, and especially in confrontation with a guileless police force led by incompetents, it allows the audience to root for the success of the masterplan guilt-free.
Three decades since release, we're still enjoying Die Hard. It isn't sentimental attachment, or adolescent crush. It isn't '80s nostalgia. It isn't just the performances and the casting. It isn't because of its relative originality – its lone hero conceit is an inversion of McTiernan's own Predator just 12 months earlier. (Indeed, the two films even share a scene of cacophonic gunplay as characters expend parodic amounts of bullets in a vulgar display of power against their invisible enemy.)
Die Hard remains a monolith because it is of the highest quality. This isn't down to an ephemeral indefinable that makes old films good and new films bad – as I've sought to explain, its successes are precise and quantifiable. The ability and elan of its architects and builders was amplified by their unwavering dedication to using all time available to make each component as independently strong as possible, and what they constructed was a cinematic skyscraper.
In Century City, Los Angeles, the Nakatomi – actually the Fox Plaza, and only months older than the film in which it is immortalised – still stands; don't be surprised if, in time, even it is outlived by Die Hard.
Preview of the Year 2019 – The Evening Glass Podcast
Oscars So Trite (Except the Good Bits) – The Evening Glass Podcast
Barbarella and Beyond the Black Rainbow – The Evening Glass Podcast
Cameron & Nolan – The Evening Glass Podcast
90s Comedian: Jim Carrey and the Blockbuster Comedy – The Electronic Labyrinth Podcast
Snow Long, and Mance for All the Blackfish – The Evening Glass Podcast
Avengers v Avatar – The Evening Glass Podcast
O.S.S.
Local Trouble
2018 One Sensational Shot (OSS) All rights reserved.
Created by Macho Themes


Balbir Singh Senior sits in his languid stupor, allowing his mind to race backwards. Between sporadic recollections, he stares blankly at the glass window in front of him, as if piecing together vignettes from his illustrious career into a cohesive tale of triumphs and tears. The wax in his left ear is troubling him, the memory is somewhat sketchy, but once the grand old man of Indian hockey is nudged, he is hard to stop.
It is 70 years to that day, and Balbir remembers 12 August, 1948 in all its glory. Why wouldn't he, for he was the throbbing heart of a pulsating forward line, and the highest scorer for his team despite playing only two matches.
"Well, 1948. What do I say? What a day! It's very difficult to explain what I felt. The entire world was at our disposal. Independent India, first Olympics, first gold. It was unbelievable. Of course, beating England, our former masters, on their turf in the final made it all the more special," he says, glistening with pride.
For a nation that had recently been witness to the most bloodied mass migration in human history, for its people who were torn between celebrating their new-found freedom and grieving their dead, for an economy that needed to be built from the very beginning, for the dying and destitute, the defeated and dreamless, the hungry and homeless, the importance and impact of a gold disc measuring 51.4 mm in diameter can't be stated enough. Sports are an integral part of nation-building, and on that heady Thursday, a stuttering nation found its first sense of hope and belief.
Professor Dr Sudesh Kumar Gupta, sports historian and sociologist and a close friend of Balbir, puts that achievement in perspective.
"We were ruled by British for 200 years. Our social settings and attitudes change a lot in 15 years; imagine being ruled for 200 years. 1948 was the first time when our flag went up, and the real socio-cultural importance of that gold was the Queen and the entire paraphernalia standing up to salute us, barely 10 months after we became an independent nation," he says.
Dr Gupta would know. Thanks to his historical research and rich tales from his late father - Dr BL Gupta, the founder-head of Department of Physical Education, Punjab University who also served as the secretary-general of Indian Hockey Federation – Sudesh is privy to the deepest secrets of Indian hockey.
"Not many people know, but there were subdued discussions of fielding a joint India-Pakistan team for the London Olympics, primarily because the strong team of undivided India ceased to exist after Partition. However, the proposal didn't come through, and we had separate India and Pakistan teams," he informs.
Things were different a year before the Olympics, when in June-July, a full-strength Punjab team won their second successive National Championships in Bombay, beating hosts in the final. Months later, India and Pakistan endured the horrors of Partition, and Balbir, a policeman, witnessed the carnage from close quarters.
"It was ghastly; blood and bodies everywhere. We worked round the clock to quell riots, but it was just too much. I literally saw rivers of blood," he says.
The challenge, in terms of hockey though, was to deal with the exodus of talented players to Pakistan. Maqbool Hashmat, Aziz, Shahrukh, Ali Iqtidar Shah Dara and Khurram had opted to stay in the new country, leaving India with the enviable task of building a new team. Dara, in fact, was part of the team that won gold at the Berlin Olympics in 1936.
Balbir Singh Senior ended the 1948 Olympics as India's leading scorer.
"Maqbool (Hashmat) was my senior and my right wing. An excellent player, and an even better human being. He taught me to look left and pass right. Aziz was my left wing. Those were very fine players, maybe better than me," Balbir had told Firstpost in an earlier interaction.
However, in Sant Prakash Singh and Ashwini Kumar, Punjab found two police officers who were equally passionate about hockey. Sant was independent Punjab's first Inspector-General, while Ashwini was Superintendent of Police. A new Punjab Hockey Association was formed in Ambala, and Sant and Ashwini organised multiple camps across the state to create and identify fresh talent pool.
Before the Olympics, a preparatory camp was held in Bombay, and Balbir, despite playing a key role in Punjab winning their last two Nationals and being a part of the team that toured Ceylon (now Sri Lanka) the previous season, was curiously not invited.
He was called two weeks later, after an Anglo-Indian player raised the issue and the press began to write about it. Balbir sensed something amiss when he was not allowed to play as a centre-forward – "not even for a day," he insists – and instead was asked to play at the unfamiliar inside-right position.
He eventually made it to the 20-member squad that flew to London. The 79-member, all-men Indian contingent were to take part in 39 events across 10 sports.
Upon landing at the Heathrow Airport, the team was greeted by Balbir's former boss at Punjab Police, Sir John Bennett.
Balbir met his now-Pakistani friends at the opening ceremony in Wembley Stadium, and was taken aback by their lack of warmth.
"Niaz Khan, Dara, Shahrukh, Mehmood and Aziz saw us, but I was surprised to notice that our old friends were deliberately trying to keep a distance from us. The openness was missing; our feelings were mixed," Balbir writes in his autobiography The Golden Hat Trick.
India were led by Kishan Lal, and KD Singh 'Babu' as captain and vice-captain respectively, while AC Chatterjee and Pankaj Gupta were joint managers of the hockey team. Those were the times when managers and senior players doubled up as coaches, and terms such as analysts, think-tanks and strategists were unheard of.
Balbir was not played in the first match against Austria, that India won 8-0 with Patrick Jensen sounding the board four times. He finally got his chance in the next game, against Argentina. Playing in his desired position as the centre-forward, 24-year-old Balbir pumped in six goals as India routed the South American nation 9-1. It remains the record of most goals by a player on Olympic debut.
India next played Spain, and Balbir, despite being listed in the initial playing XI, was dropped. Grahanandan 'Nandi' Singh was fielded as Balbir's replacement, but the former failed to make an impact in India's hard-fought 2-0 win.
The story repeated itself in the semi-final against Holland, where after trailing 0-1, India scrapped to a 2-1 win. Balbir, in fact, was pulled out as he was about to bully-off with the opposing forward.
"We had hopped on to the field and the match was about to start when our captain Kishan Lal tugged my shirt and said, 'Bhaiya aap aj nai khel rahe.' I still remember those words. Fir bhaiyya kya karta? I walked back. Imagine a jam-packed stadium, the crowd waiting for the start, your name is on the team sheet, you have created an Olympic record in your previous game, and then this drama. Dukh to hota hai, and thoda gussa bhi aata hai, but to control your anger is also part of a sportsperson's job," he says.
While Balbir refrains from going on record about the motives behind this dubious call, Dr SK Gupta offers an explanation.
"In those days, the rule was that if a team finishes on the podium, only those members of the squad who had played a match used to get the medal, not the entire squad. So instead of fielding the best XI, here we were, trying to ensure everybody gets a medal, if we win one," he says.
Balbir's replacement, Gerald Glacken, could convert only one of the many chances that came his way. The other goal was scored by KD Singh.
India's insipid performance and a near-loss to Holland created a stir in the Indian community and the press in London. A delegation of Indian students and fans took the matter to India's High Commissioner in the United Kingdom, VK Krishna Menon, and it was only after his intervention that Balbir could get a place in the playing XI for the final.
The final was played against hosts England, who had refrained from playing India all these years, partly because the British thought it undignified to play their colony, and largely, as Dr Gupta believes, from saving themselves the ignominy of losing to India, who had bagged Olympic gold in each of their previous appearances at the Games (1928, 1932, 1936).
Before the final, the team talk revolved more on infusing 'josh' in the squad than debating strategies and formations.
The final was played right after the third-place playoff between Pakistan and Holland, which meant the ground was not in the best of shape.
"I remembered Sir Bennett's advice: Run for the ball. The stadium was brimming with people, and everyone was chanting for the home team, but after I scored in the seventh minute, they started shouting, 'Come on, Balbir!' I must appreciate their sportsmanship," he remembers.
Balbir scored again in the 15th minute, both his goals coming from the top of 'D' via passes from Kishan Lal and KD Singh 'Babu' respectively. Drizzle arrived twice during the match, making the ground heavier, and the Indians shunned their natural short-passing game and went for long, pinpoint passes. The English public was treated to a spell-binding display of aerial passing, and soon Kishan Lal and Babu began to play barefoot, much to the spectators' amusement.
India led 2-0 at the half-time, and Balbir believes he could have scored more had he not been asked to go easy.
"After I scored the two goals, suddenly everyone from the team started shouting 'defend karo', so I had to slow down. Otherwise, I would have scored a few more," he chuckles.
India kept up the pressure in the second half, and soon enough, two more goals arrived. Trilochan Singh scored through penalty corner, and Pat Jensen, India's second highest scorer in the tournament after Balbir, rounded off India's incredible campaign with another field goal.
4-0, the scoreline read, but what it doesn't spell is that a nation that was yet to complete a year of its independence had beaten its erstwhile master who had ruled them with impunity for close to 200 years. It was not an upset; instead, all the years of suffering and servility, of being enslaved at your own home, of being systematically divided and ruled, of being brutally robbed of dignity and purpose, all the blood, sweat and gore of freedom struggle, the throes of the birth of a nation and partition had come alive in that singular moment.
"That win told the world that India can do it, that we are good enough at the highest level," says Dr Gupta.
The scenes at Wembley, Balbir recalls, were "unbelievable", and the team celebrated like "bad boys." A victory lap and a standing ovation followed.
"We were surrounded by fans. They all wanted to touch us, see us. After the match, our High Commissioner VK Krishna Menon came to the ground. We were thrilled to meet him. He held a grand reception for us at India House," says Balbir.
Back then, the concept of prize money didn't exist, but the Olympic champions were sent to a goodwill tour of mainland Europe. They explored the wonders of France, Czechoslovakia, and Switzerland for a fortnight, before returning to Liverpool, from where they took a ship for a 26-day voyage to Bombay.
The team set foot in India to a rapturous, red-carpet welcome. Indian Hockey Federation chief Naval Tata greeted the team on arrival, and a large crowd turned up to catch a glimpse of their heroes.
Balbir's wife Sushil was expecting their first child when he had left for London, and by the time he returned, he was the father of Sushbir.
"I got two rewards that year. One was the Olympic gold, the other was my daughter," he tells us.
Balbir Singh Senior being felicitated by then Governor-General of India, C Rajagopalachari.
The team then flew to New Delhi, where then Prime Minister Jawahar Lal Nehru, and then Governor-General C Rajagoplachari hosted another reception. They played an exhibition match in capital's National Stadium, with the Prime Minister and a full house of 70,000 in attendance. Fittingly, Balbir scored the only goal in that match.
"Wherever we went, we were accorded great welcome. It was humbling. There is nothing like victory, really," he says. Quite a departure from 1936 Olympics, when only two members of Punjab Police had turned up to send the team off to Berlin, from where they returned with another gold medal.
"Time never stops. 70 saal ho gaye, wakai. It's hard to believe. Once upon a time, our average age was 35-40. Imagine! It feels nice to be part of history," Balbir, one of the two surviving members from that team (the other is Keshav Dutt, who resides in Kolkata), remarks.
For a change, he breaks his stare from the glass window and looks at me.
"Do you know what is my most dear trophy?" he asks. And before waiting for your correspondent to take an educated guess, points loosely towards a tiny Cup placed on the penultimate row of one of his many overflowing trophy cabinets.
"Yes, that one," he exclaims, as I hold it delicately, trying to study what makes it so special.


Lol, I like the screenshot for this item.
This food is great for getting cooking up and beyond level 300. I suggest that if you see the lobsters (http://www.wowhead.com/?item=13888) on AH for a small price, buy it because it will make those last cooking points to and beyond 300 a breeze.
Lobsters hold claws as they scuttle in the sea and in stew.


9 out of 10 based on 203 ratings. 4,905 user reviews.
CHEVY AND GMC TRUCK MODEL YEAR DIFFERENCES (Including photos of various years) Updated 4-11-03. From 1967 until 1972, body styles were the same. In 1973, a new design was introduced.
wwwa››Cars & Trucks›Ford›F-350›1995 Ford F350I have a 95 Ford F350 with the 460 motor. It started running fine when cold but after it warms up it starts to run rough, lose power, and runs REAL rich.


text:
Electric taxis recharge at a BSES hub in South Delhi | Photograph by Shrey Gupta
Drones to tunnelling tech lightens the urban load
BY KIRAN KARNIK
Updated: Aug. 29, 2019
Mohenjodaro, amongst the oldest urban settlements in the world and a part of the heritage of India, is probably the first city to have used technology for public utilities. Excavations show that it had a sophisticated and well-laid out system for underground drainage and water supply, over 4,000 years ago, pointing to the use of hydraulic engineering techniques. Given the state of many of our cities today, one wishes that those who designed these systems would be reincarnated as town planners today!
Over the centuries, as humans aggregated together, these early settlements developed into cities like Mohenjodaro becoming increasingly important economic hubs and wealth creators. Today, urban areas account for 55 percent of the global population. In India, long considered a rural and agricultural country, with its half a million villages, city-dwellers already account for over a third of the total population. The Delhi urban agglomeration alone is home to over 25 million people. Rapid urbanisation will result in the addition of over 400 million to our cities by 2050.
Fast-growing cities face severe challenges in the provision of public services to their residents, even as economic imperatives demand their smooth and efficient functioning. The list of such services gets longer, as awareness and expectations translate into need. It now includes: power, water, sanitation, safety, housing, roads, mobility, clean air, health, education, parks and playgrounds, cultural spaces and parking areas. The challenge of providing these can only be met through the use of technology. What follows is a broad outline of how new technologies can be used in our cities.
In any city, land is one of the biggest factors: its availability, terrain and location determine cost, use and growth of the city. This is one of the areas in which technology now plays an important role. Earlier, imagery from satellites was used to make maps that showed topography and land use. This facilitated urban planning by clearly identifying vacant land, floodplains, water flows, tree cover, etc. It also showed growth over time, encroachments on public land and sources of pollution in riverine and coastal cities.
Satellite imagery has seen vast improvements in resolution, enabling far more accuracy, but it has its limitations. More recently, it is being supplemented by pictures from drones, which can be used when required, with greater localisation and precision. Such imagery is a key input to urban planning – be it for location of public facilities, planning for roads or for rail/Metro lines, or for identifying suitable areas for further expansion of the city. Along with location-based demographic and other data to create a geographical information system, the imagery can be used to identify the most appropriate location for a school, a Metro station, a hospital or health facility, a park and other such facilities. Imagery has also been an input to easily identify offices or houses which have not paid property tax, thereby helping to increase the revenue of the municipal body.
One of the biggest challenges in all cities is mobility. Rapid growth and prosperity have clogged the roads with ever more two- and four-wheelers. The neglect of public transport in almost all Indian cities has accelerated the trend of personalised transport, even as public policy (despite some lip service to the contrary) and road hazards have decimated both cycling and walking. In this scenario, technology provides some solutions. Fast and efficient mass mobility systems — mainly Metros and suburban trains — have been facilitated by technological progress. Sensors, cameras and improved signalling systems have made it possible to increase the frequency and speed, thus transporting more people per hour and enabling a reduction in commuting time. The latter attracts more commuters, improving the economics of the system. If this is translated into lower fares, it will trigger a positive feedback cycle between lower costs, more passengers and higher revenue.
New technologies for tunnelling are faster, cheaper and less disruptive. This not only lowers costs for Metro systems, but makes it possible to take them into congested, core urban areas, which most require such mass transit systems. As an incidental benefit, tunnelling also improves urban aesthetics by not having ugly, noisy and intrusive (often looking into homes) above-ground rail tracks or roads. American visionary Elon Musk, ever looking for innovative new tech-business opportunities, and driven by his frustration with traffic in Los Angeles, has set up the Boring Company, seeing a strong future for tunnelling. As in other areas (electric cars, rocket launchers), his involvement and investments are bound to give a further impetus to this technology. Thus, technology not only improves the efficiency and ease of living of a city, but also furthers a major objective of urban public policy: a shift to public transportation.
Technology is being used to create new app platforms for mobile devices. Apps like Google Maps are now commonplace: they not only show the route from one point to another (with detailed directions), but also indicate distance, the quickest route, the extent of traffic congestion along it, and time estimate for the journey (by two-wheeler, four-wheeler or walking); also the distance and time estimate of an alternative route. This convenience tool helps to save time and fuel, while decreasing pollution.
Data from such apps is of great value for traffic control and for longer-term planning of roads and mass transport systems. More immediately, it is used to detect and handle traffic jams. Instead of the conventional method (actual observation of traffic and improving its flow by manual changes of traffic signal timings by an on-the-spot policeman), automated on-line analysis of traffic data and remotely controlled signals make possible continuous optimisation — possibly even pre-empting jams.
A number of apps exist for locating parking spaces and these ensure a reduction in unnecessary driving to search for parking. Data on demand for parking in particular areas can be used for dynamic pricing of spots (a la airline seats). High rates can be used to discourage parking (and hence car usage) in certain areas and/or at peak times. This may incentivise car-pooling or use of public transport. The technology of apps-based taxis is another source of reduced use of private cars, of pollution and the need for parking space.
In some cities abroad, congestion charges are levied on cars entering the central business district (or other busy areas), reducing the use of cars. This requires the use of RFID tags, so that automatic identification of cars and a debit of the charge is possible as it drives through various entry points. In India, this technology is already being used at some toll gates and will soon be rolled out across all national highways.
A rapidly advancing new technology is that of electric vehicles. With their minimal pollution and noise, and increasing capabilities, they seem to be the future of mobility (autonomous — or driverless — vehicles are yet a long way off in terms of large-scale use). However, there are challenges with regard to the ecosystem, including the matter of charging stations. Also, for India and most other countries, there is the issue of a near-monopoly source of the rare earth minerals which are essential for batteries.
On the power front, advancing technology has considerably reduced the cost of solar cells, and increased their efficiency, making this renewable source of power more economical. In many cities, roof-top solar installations have become viable, especially with power buy-back by the grid. In addition, innovative business models mean that there are companies that bear the full capital cost of the installation and provide power to the home or organisation at a fixed rate per unit. For buildings with a large usable terrace area, this is an attractive proposition. It will see widespread adoption as further advances in solar cell technology drive costs even lower.
Smart meters will obviate the need to send people to each household to note their power consumption; the meters will automatically transmit the information to a central point for billing. More importantly, such meters will make it possible to track consumption by time of day. This will enable differential pricing of power supply, with higher rates serving to curb consumption at peak demand times.
On the supply side, apart from greater adoption of clean and "green" renewable power, technology is bringing about much improvement in the electricity grid. Increased efficiency, automatic detection and location of faults and optimised distribution mean fewer breakdowns and better service. It also helps to pinpoint areas of power theft, facilitating action (if there is political will).
Roads and rail have long been the important forms of connectivity in urban areas, apart from walking. In today's world, though, an equally vital means is electronic connectivity, with i-ways often being more useful than highways. Many cities in India have recognised this, and are working towards providing wi-fi connectivity in public places. People can use this to instantly access all kinds of information on their mobile devices, even as they are on the move. This increases people's (and the city's) efficiency.
Connectivity also links various public assets to selected nodes — for example, trains or buses to a central control room — to facilitate tracking, monitoring or relay of instructions. More sophisticated systems enable preventive maintenance: an engine part can be replaced before a bus breakdown, on the basis of data transmitted by an embedded sensor, and its analysis through AI (using a model created by using thousands of cases of breakdown). This can be done for all physical infrastructure, minimising problems for residents. Sensors and connectivity are also useful for more routine functions, like automatically switching on or off street lights, depending upon ambient brightness. Motion sensors can also be used to switch on these lights only when there is pedestrian or traffic movement.
These, and a whole host of other applications of technology, including in the area of waste management and water, contribute to creating a so-called 'smart city'. It is, however, a blunder to think of technology as a magic solution for all urban problems. Technology can, at best, be an enabler. How it is used, for whom it is used, and for what purpose: these are key questions. Subsuming all this is the public policy framework within which it is used. Unthinking use of technology, without a clear policy guideline, can even be counter-productive. For example, the use of 'smart' traffic signalling technology to increase the efficiency of the road system will reduce travel time for cars but may well encourage greater use (possibly, greater purchase too) of cars. Facilitating the location of parking slots may do the same. This will be the antithesis of promoting the use of public transport. A clear enunciation of public policy and goals will avoid such pitfalls, even as full use is made of technological advances and their applications. Clarity is essential about public good being the objective — as opposed to individual benefit. Safer cities, cleaner air and better utilities benefit all. Parks, playgrounds, cultural and entertainment centres are essential elements of a good city. Good housing, healthcare and education for all are obviously necessary. Any city that cannot provide these to all its residents is hardly 'smart'.
There are issues about city governance — particularly the multiplicity of agencies operating with little coordination and diffused accountability — that need to be remedied. Technology can help here, especially in increasing efficiency, transparency and accountability, and reducing corruption. However, its effectiveness will be constrained by structure, systems and governance mechanisms. Technology can certainly help to transform our cities. However, the human element is key. Intelligent cities need intelligent individuals in charge: people who are smart, sensitive and driven by concerns about public good. Only then will we have smart, intelligent and happy cities.
Four thousand years from now, when bio-beings of the future excavate Delhi, will they be as impressed with it as we are with Mohenjodaro?
Kiran Karnik is an independent strategy and public policy analyst. His recent books include eVolution: Decoding India's Disruptive Tech Story (2018) and Crooked Minds: Creating an Innovative Society (2016).
Currently there are no Comments. Be first to write a comment!
Politics robs local level bodies of power, funds
According to estimates India has around 4,000 cities and towns. The World Population Review estimates ...
Mohenjodaro, amongst the oldest urban settlements in the world and a part of the heritage ...
It is primary health care that people need
India's disease patterns have been shifting as cities grow and pull in more people. Lifestyle ...
Infra is needed but what about smart citizens?
When Delhi's former chief minister, Sheila Dikshit, passed away there was a spontaneous outpouring of ...
Municipal bonds are the long-term answer
The boom-bust cycle in Indian infrastructure in the last few years with incomplete projects, bankrupt ...
From village to city with hopes and dreams
Siddu had every reason to celebrate. He was the first person in his village to ...
Landfills don't work, learn to segregate garbage
The thought of an Indian city most often throws up images of teeming millions, traffic ...


text:
College of Law Information
Master of Legal Studies
Admitted Students (password required)
ABA Disclosures
A-Z Student Resources
Clinical Program
Career Development Office
Pro Bono Initiative
Utah Law Review
SSRN Publications
Alumni Home & News
Alumni Class Photos
Alumni Board of Trustees
College of Law History
Alumni News Submission
Continuing Legal Education (CLE)
Res Gestae magazine
Wallace Stegner Center for Land, Resources and the Environment
Environmental Dispute Resolution Program
Center for Law and Biomedical Sciences
All Events by Month
Study Room Scheduler
Student Event Calendar
YouTube Channel & Video Archive
A-Z Database List
Law Firm Support
Program Funds
S.J. Quinney College of Law
KSL Spotlights College of Law's Counter-terrorism Simulation
Posted on January 18, 2011 by Dana Wilson-Account2
The University of Utah S.J. Quinney College of Law's counter-terrorism simulation, spearheaded by Professor Amos Guiora, was recently spotlighted by KSL 5 TV.
Guiora, a former lieutenant colonel in the Israel Defense Forces and counter-terrorism expert, first used the immersive counterterrorism as a method of teaching members of the armed forces to gain experience in high-intensity situations. The College of Law's simulation involves students and community members playing pre-assigned roles as government officials and making critical decisions in the face of fast-breaking events.
The College of Law's Counter-Terrorism Simulation will be held Friday, April 1. More information is available here.
The KSL story about the Counter-Terrorism Simulation is available here.
Uncategorized | Amos Guiora | Counterterrorism
← College of Law Conference to Consider The Future of Energy Law, Jan. 21
Peterson Wins Award for Best Consumer Law Review Article of 2010 →
Law Library closing at 4pm July 17, 19, and 20, 2019
The Law Library will be closing at 4pm on Wednesday, July 17, Friday, July 19, and Saturday, July 20. We apologize for the inconvenience.
Harvard Shares Five Tips for an Experienced Mediator
Law student Cambre Roberts focuses on youth justice in Washington D.C.
Cassell's work for victims in Epstein case highlighted on national stage
Kronk Warner appoints two associate deans to leadership team
See previous posts »
Utah State Bar Convention College of Law Social in Park City
36th Annual Jefferson B. Fordham Debate
Faculty | Staff Links
File Access
Law A-Z Index
Shuttle Tracker
Utah A-Z Index
U-Mail
383 South University Street
© 2019 The University of Utah
Approved by the Section of Legal Education and Admission to the Bar of the American Bar Association • Member of the American Society of International Law


Come enjoy a great night on the town in the city of Grand Rapids. While you are at it , stop and enjoy an amazing Gringo Dog Hot Dog.
Make your weekend party complete by ending your night with a Gringo Dog!!!
The hottest new food cart featuring Hotdogs, Sausage, chips cookies and Ice Cold Coke Products.
10% of Gringo Dog's sales are donated to "The Stop Popping Foundation" a 501 (c)(3) charity and their Anti-Opiate Awareness Program.
Hey there hot dog lovers.
Gringo Dog's will be out at Summit Place Kia on Plainfield from 11am to 2pm giving away West Michigan's best Chili Dogs.
Gringo Dog's Announces 100% PURE VEGAN BEEF Hot Dogs.
We make this promise to our customers, Gringo Dog's cows are 100% VEGAN and have not and will never eat meat.
Gringo Dog's only uses cows who are eco friendly,, they even have learned to recycle their own waste into food for the very plants they eat, becoming environmentally self sustainable.
Our grass and/or grain fed cows are happy mid-western raised cows, not like those fake Hollywood cows you see on TV.
Even though all of Gringo Dog's cows have made the commitment needed to become a great Gringo Dog PURE VEGAN BEEF Hot Dog, many of our cows have retired from the marketing field at that Chicken Filet place, where they modeled for and promoted the of eating meat, they themselves are strictly VEGAN and regret selling out to the evils of Big Poultry. Being no longer of use to them Big Poultry sold them to us.
We honor their commitment to both being PURE VEGAN and our cause of providing all of the Americas the Highest Quality 100% PURE VEGAN BEEF HOT DOGS.
Come grab lunch and some ICE BOX Brand Ice Cream.
Newsletter Discounts, Special Offers & FREE FOOD!
Sign-up now - don't miss the FREE FOOD!


text:
Q: How to implement real-time comment system in a django-react app with channel/celery/redis etc..? I have a web-app with Django backend and react frontend where inside an organization or company, there are multiple users. Now, I am trying to implement real-time commenting system where if one user types any comment and posts it, another user will be able to see it without refreshing the page.
I have seen some examples of asynchronous tasks using celery with redis  but couldn't find any with react implementation.
What would be a good approach towards achieving the real-time comment system in the react/django app?

A: Here is an example of simple tasks with celery, redis and WebSockets (Django Channels) and frontend in React (and docker for deployment). The task state and progress are updated over WebSockets https://github.com/pplonski/simple-tasks
The other option will be long-polling, the user will not need to refresh the page, but React will make requests every few seconds to get new data (simple and solid approach). I've seen this approach in many (many) applications. A few years ago I will be afraid of such implementation (too many requests). But now, I will select this approach because of its simplicity.

A: There's also CollabKit which provide a React commenting system. https://collabkit.dev

redpajama_set_name: RedPajamaStackExchange


text:
package
  MyApp::Controller::ForBrowsers;

use base 'CatalystX::Controller::ExtJS::REST';

1;

redpajama_set_name: RedPajamaGithub


Church Army was founded in England in 1882 by the Rev. Wilson Carlile to enable ordinary Christian men and women to share their faith. Through his visionary work, people were trained to be evangelists in the Church of England amongst the most needy in society.
The organisation needed to be redefined for a younger generation whilst not alienating an older donor base. They needed a new brand to accurately represent who they are, and more importantly, why they do it.
Overall Creative Direction, Design & Art Direction.
Digital expression - in collaboration with Holly Dixon at Collider.
Hero Brand Photography by Matt Miller.
"The approach taken started with a strategic process. This process combined with creativity inspired confidence in stakeholders at all levels of our organisation.
The rebrand has enabled us to authentically represent who we to a new generation, and the work has given my staff a renewed confidence, and given them a brand to be proud of."
Mark Russell, Chief Executive, Church Army.


text:
layout: post
title: "Interfaces, Delegação, Problemas e Soluções"
date: 2016-10-10
description: "Como utilizar Interfaces e Delegação de Implementação sem vazamentos de memória"
summary: "Como utilizar Interfaces e Delegação de Implementação sem vazamentos de memória"
image: /images/photo-1474406716381-8399fe67fbcf.jpg
categories:
  - Object Pascal
tags:
  - Language
keywords:
  - delegation
  - delegates
  - delegação
  - implements
  - object delegation
---

Delegação de Implementação através da composição de
Objetos é uma *feature* incrível, só disponível na
Linguagem *Object Pascal*, porém existem alguns
problemas intrínsecos no uso dessa tecnologia.

<!--more-->

![Imagem]({{ page.image }})

## Introdução {#introducao}

No [artigo anterior]({% post_url 2016-10-03-delegacao-de-implementacao-de-interfaces %})
escrevi sobre a Delegação de Implementação de Interfaces,
utilizando a Composição de Objetos.

É uma *feature* bem legal.

Infelizmente existem algumas armadilhas quando trabalhamos
com Interfaces e sua liberação automática de memória.

A Delegação utilizando Objetos também possui armadilhas que,
se não forem verificadas, podem arruinar seu projeto devido
aos vazamentos de memória que essa prática pode causar.

Nesse artigo vou lhe mostrar os problemas e propor soluções.

## Vazamentos de memória {#vazamentos-de-memoria}

A Linguagem Object Pascal nos dá a possibilidade de trabalharmos
utilizando variáveis do tipo Interface. Essas são liberadas
automaticamente, pelo compilador, quando saem do escopo de execução
na qual elas foram criadas.

Essa facilidade nos traz alguns problemas ou cria
condições para problemas como, por exemplo, a
[referência circular]({% post_url 2016-02-01-interfaces-e-a-referencia-circular-entre-objetos %})
e a [não existência de uma variável]({% post_url 2016-01-10-interfaces-e-o-metodo-estatico-new %})
na construção de um Objeto.

Esse são alguns dos inúmeros equívocos na implementação que geram
os tão temidos vazamentos de memória.

Outro problema grave tem haver com a
[hierarquia de herança]({% post_url 2016-05-23-heranca-pode-ser-o-mal-da-orientacao-a-objetos-parte-1 %})
que você irá utilizar nas Classes que irão gerar Objetos que
implementam Interfaces por delegação.

## Contador de Referências {#contador-de-referencias}

Vou ser justo e dizer que o problema, em si, não é especificamente sobre
herança, mas como você implementa os Métodos especiais que são utilizados
pelo compilador para fazer a liberação da memória automaticamente.

São eles: `QueryInterface`, `_AddRef` e `_Release`.

Esses são Métodos especiais que são utilizados para
implementar um Contador de Referências.
Eles servem para incrementar e decrementar um contador
de referência da instância e, com isso, ter o controle para saber
quando liberar o Objeto da memória.

Ao utilizarmos Interfaces, somos obrigados a implementar esses 3 Métodos
— a não ser que utilizemos Interfaces CORBA, que não tem contagem de
referência e nem liberação automática da memória.

Então, precisamos herdar de alguma Classe que já implemente esses Métodos.

E aqui começam os problemas.

## Problemas {#problemas}

Como eu não utilizo mais herança de Classes eu não preciso pensar sobre
hierarquias de Classes e todas as suas complexidades.
Todas as minhas Classes herdam de `TInterfacedObject`, pois essa Classe
já implementa os 3 Métodos apropriadamente.

Mas para programadores que ainda utilizam
[herança]({% post_url 2016-05-23-heranca-pode-ser-o-mal-da-orientacao-a-objetos-parte-1 %})
esse pode ser o primeiro problema a enfrentar.

Exemplo. Você vai desenhando toda a sua hierarquia de Classes, "perfeitamente" e
descobre que Cão não pode herdar de Mamífero porque você quer utilizar Interfaces
com contagem de referência... então Cão herda de `TInterfacedObject` —
quebrando a hierarquia — ou você é obrigado a copiar/colar o código
de `TInterfacedObject` dentro da sua Classe — o que também é abominável.

Como eu dizia, todas as minhas Classes herdam de `TInterfacedObject`.
Sendo assim, as Classes que serão utilizadas para delegar a implementação
das Interfaces, também serão filhas de `TInterfacedObject` e... BUM!
Temos vazamento de memória.

Pois é. As Classes delegadas não podem herdar de `TInterfacedObject`
se eu quiser instanciar a Classe principal como uma Interface.

Confuso? Eu também fiquei.

### Exemplo 1

Vamos utilizar o exemplo do
[artigo anterior]({% post_url 2016-10-03-delegacao-de-implementacao-de-interfaces %})
para explicar onde iríamos ter problemas com vazamento de memória.

A Classe final ficou assim:

      TTheClient = class(TInterfacedObject, IFinances, IAccess)
      private
        FFinances: IFinances;
        FAccess: IAccess;
        property Finances: IFinances read FFinances implements IFinances;
        property Access: IAccess read FAccess implements IAccess;
      end;

E os [exemplos]({% post_url 2016-10-03-delegacao-de-implementacao-de-interfaces %}#como-utilizar-a-delegacao)
de implementação utilizando delegação foram as Classes `TSimpleFinances`
e `TSimpleAccess`. Ambas herdando de `TInterfacedObject`.

      TSimpleFinances = class(TInterfacedObject, IFinances)
      public
        construtor ...
        function Current: Currency;
        function AsString: string;
      end;

      TSimpleAccess = class(TInterfacedObject, IAccess)
      public
        construtor ...
        function List: IDataList;
        function AsString: string;
      end;

Devido os atributos `FFinances` e `FAccess` forem do tipo Interface, haverá
vazamentos de memória se estanciarmos `TTheClient` como sendo representante
de alguma das Interfaces que ele implementa (por delegação).

Isso ocorre porque o compilador irá instanciar 2 Objetos — `TTheClient`
e o Objeto delegado que implementa a Interface — mas no nosso código
só teremos a referência a um Objeto.
A princípio tudo deveria funcionar, já que também temos a referência ao
Objeto delegado através do atributo privado, mas não é assim que funciona.

Há dois problemas no código acima, se considerarmos a utilização normal de
instâncias com contagem de referência:

  1. Propriedades e atributos delegados não podem ser Interfaces;
  2. Objetos delegados não devem ter `TInterfacedObject` como herança.

Então a Classe final `TTheClient` tem um problema.

Vamos ao um exemplo mais completo.

### Exemplo 2

O exemplo abaixo foi submetido à lista de discussão oficial do FreePascal com
o título "*A serious Memleak using delegates/implements...*" no dia 5 de Outubro,
o que gerou alguma polêmica por lá.

Se você não faz parte da lista, pode ler as mensagens dessa *thread*
[aqui](https://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg43835.html).

    program Project1;

    {$mode objfpc}{$H+}

    uses
      Classes, SysUtils;

    type
      IValue = interface
        function AsString: string;
      end;

      TIntegerValue = class(TInterfacedObject, IValue)
      private
        FValue: Integer;
      public
        constructor Create(Value: Integer);
        destructor Destroy; override;
        function AsString: string;
      end;

      TMyApp = class(TInterfacedObject, IValue)
      private
        FValue: IValue;
      public
        constructor Create(Value: Integer);
        destructor Destroy; override;
        property Value: IValue read FValue implements IValue;
      end;

    { TIntegerValue }

    constructor TIntegerValue.Create(Value: Integer);
    begin
      inherited Create;
      FValue := Value;
      WriteLn('TIntegerValue.Create');
    end;

    destructor TIntegerValue.Destroy;
    begin
      WriteLn('TIntegerValue.Destroy');
      inherited Destroy;
    end;

    function TIntegerValue.AsString: string;
    begin
      Result := 'Number is ' + IntToStr(FValue);
    end;

    { TMyApp }

    constructor TMyApp.Create(Value: Integer);
    begin
      inherited Create;
      FValue := TIntegerValue.Create(Value);
      WriteLn('TMyApp.Create');
    end;

    destructor TMyApp.Destroy;
    begin
      WriteLn('TMyApp.Destroy');
      inherited Destroy;
    end;

    // Program

    procedure ExecuteIntegerValue;
    var
      V: IValue;
    begin
      WriteLn;
      WriteLn('IntegerValue:');
      V := TIntegerValue.Create(5);
      WriteLn(V.AsString);
    end;

    procedure ExecuteMyApp;
    var
      App: TMyApp;
    begin
      WriteLn;
      WriteLn('MyApp:');
      App := TMyApp.Create(10);
      try
        WriteLn(App.Value.AsString);
      finally
        App.Free;
      end;
    end;

    procedure ExecuteMyAppAsInterface;
    var
      V: IValue;
    begin
      WriteLn;
      WriteLn('MyAppAsInterface:');
      V := TMyApp.Create(20);
      WriteLn(V.AsString);
    end;

    begin
      ExecuteIntegerValue;
      ExecuteMyApp;
      ExecuteMyAppAsInterface;
      ReadLn;
    end.

O programa acima compila sem nenhum erro utilizando o FreePascal ou Delphi.
No entanto, se habilitarmos a saída de verificação de vazamentos
de memória (chama-se [Heaptrc](http://www.freepascal.org/docs-html/rtl/heaptrc/usage.html) no FreePascal)
podemos ver que o término do programa não foi elegante como deveria:

    W:\temp>project1.exe

    IntegerValue:
    TIntegerValue.Create
    Number is 5
    TIntegerValue.Destroy

    MyApp:
    TIntegerValue.Create
    TMyApp.Create
    Number is 10
    TMyApp.Destroy
    TIntegerValue.Destroy

    MyAppAsInterface:
    TIntegerValue.Create
    TMyApp.Create
    Number is 20

    Heap dump by heaptrc unit
    83 memory blocks allocated : 2017/2200
    81 memory blocks freed     : 1981/2160
    2 unfreed memory blocks : 36
    True heap size : 229376 (80 used in System startup)
    True free heap : 229104
    Should be : 229128
    Call trace for block $01812928 size 20
      $004017DA  TMYAPP__CREATE,  line 59 of W:/temp/project1.lpr
      $00401B82  EXECUTEMYAPPASINTERFACE,  line 101 of W:/temp/project1.lpr
      $00401C08  main,  line 108 of W:/temp/project1.lpr
    Call trace for block $018128C8 size 16
      $00401B82  EXECUTEMYAPPASINTERFACE,  line 101 of W:/temp/project1.lpr
      $00401C08  main,  line 108 of W:/temp/project1.lpr

    W:\temp>

O problema de vazamento de memória ocorre somente na chamada à função `MyAppAsInterface`.

Ao vermos isso a primeira impressão é: Delegação de Implementação não funciona.

Bem, funciona sim. Não é tão elegante como eu gostaria que fosse, mas ao
menos é contornável.

## Soluções {#solucoes}

A partir de agora, a Classe que você sempre deverá se lembrar, depois da
`TInterfacedObject`, será a Classe `TAggregatedObject`.
Ambas existem no FreePascal e também no Delphi.

A Classe `TAggregatedObject` também implementa os 3 métodos especiais, mas
é uma implementação diferente da utilizada em `TInterfacedObject`.

Essa Classe deverá ser utilizada para implementar Objetos que são utilizados
na Delegação de Implementação utilizando a sintaxe "*implements*".

Em [poucas palavras](http://www.freepascal.org/docs-html/rtl/system/taggregatedobject.html),
os Objetos de `TAggregatedObject` delegam a contagem de
referência ao "Objeto controlador", ou seja, delegam seus próprios "tempos de vida"
ao Objeto externo que implementa as Interfaces.

Primeiro vamos implementar uma nova Classe que herda de `TAggregatedObject`:

    TDelegatedIntegerValue = class(TAggregatedObject, IValue)
    private
      FValue: Integer;
    public
      constructor Create(AController: IInterface; Value: Integer);
      destructor Destroy; override;
      function AsString: string;
    end;

    { TDelegatedIntegerValue }

    constructor TDelegatedIntegerValue.Create(AController: IInterface;
      Value: Integer);
    begin
      inherited Create(AController);
      FValue := Value;
      WriteLn('TDelegatedIntegerValue.Create');
    end;

    destructor TDelegatedIntegerValue.Destroy;
    begin
      WriteLn('TDelegatedIntegerValue.Destroy');
      inherited Destroy;
    end;

    function TDelegatedIntegerValue.AsString: string;
    begin
      Result := 'Number is ' + IntToStr(FValue);
    end;

Infelizmente também teremos que alterar a definição da Classe `TMyApp`,
redefinindo a propriedade e atributo para um tipo concreto de Classe:

    TMyApp = class(TInterfacedObject, IValue)
    private
      FValue: TDelegatedIntegerValue;
    public
      constructor Create(Value: Integer);
      destructor Destroy; override;
      property Value: TDelegatedIntegerValue read FValue implements IValue;
    end;

    { TMyApp }

    constructor TMyApp.Create(Value: Integer);
    begin
      inherited Create;
      FValue := TDelegatedIntegerValue.Create(Self, Value);
      WriteLn('TMyApp.Create');
    end;

    destructor TMyApp.Destroy;
    begin
      FValue.Free;
      WriteLn('TMyApp.Destroy');
      inherited Destroy;
    end;

Ao criamos a instância `FValue`, um dos argumentos do construtor
da Classe `TDelegatedIntegerValue` é o *Controller* que irá controlar
o tempo de vida da instância que, nesse caso, é a instância (*Self*)
de `TMyApp`.

Após compilar e executar novamente a aplicação, podemos ver um novo resultado:

    c:\temp>project1.exe

    IntegerValue:
    TIntegerValue.Create
    Number is 5
    TIntegerValue.Destroy

    MyApp:
    TDelegatedIntegerValue.Create
    TMyApp.Create
    Number is 10
    TDelegatedIntegerValue.Destroy
    TMyApp.Destroy

    MyAppAsInterface:
    TDelegatedIntegerValue.Create
    TMyApp.Create
    Number is 20
    TDelegatedIntegerValue.Destroy
    TMyApp.Destroy

    Heap dump by heaptrc unit
    83 memory blocks allocated : 2009/2184
    83 memory blocks freed     : 2009/2184
    0 unfreed memory blocks : 0
    True heap size : 196608 (80 used in System startup)
    True free heap : 196528

    c:\temp>

## Conclusão {#conclusao}

Os *designers* da linguagem foram muito infelizes ao criarem "métodos especiais"
para liberação de memória. Isso é algo difícil de explicar para programadores
não-Pascal. É até um pouco vergonhoso...

Poderiam ter criado uma Interface especial que só pelo fato de dizer que sua
a Classe à implementa, o compilador poderia fazer sua mágica.

Felizmente há possíveis soluções para contornar esse erro no *design*, mas se
pudessemos utilizar propriedades de Objetos delegados como sendo do
tipo Interface, como sugeri no artigo anterior, seria quase perfeito. Poderíamos
utilizar Injeção de Dependência através dos construtores dos Objetos, inicializando
as instâncias delegadas, que seriam do tipo Interface.

Com a implementação atual, até podemos utilizar a Injeção de Dependência,
mas os argumentos deverão ser do tipo Classe e não Interface — isso na maioria dos
casos normais onde queremos utilizar a contagem de referência —
então o polimorfismo iria ficar por conta da herança de Classes, o que não é muito bem
vindo devido aos problemas já relatados em artigos anteriores.

O jeito é instanciar as Classes delegadas internamente. O que não é um real problema.

Se formos pensar bem, todos os métodos de Implementação das Interfaces deveriam ser
implementas dentro do Objeto, quando não utilizamos Delegação. Então não estaríamos
perdendo muito, apenas estamos deixando de ganhar mais.

Até logo.


text:
Unidom::Certificate::China::Engine.routes.draw do
end


text:
Who's News
Alison Kraus was named to a three-year term on the board of directors governing the Partnership for the Delaware Estuary, a leader of science-based and collaborative efforts to improve the tidal Delaware River and Bay. The region spans Delaware, New Jersey and Pennsylvania.
Kraus has almost 30 years of experience working for PSEG, most recently as its manager of nuclear environmental affairs. Among her duties, she oversaw the company's Estuary Enhancement Program, which has led to the improvement of about 20,000 wetland acres in the past 20 years. About 3,100 acres surround the company's Salem and Hope Creek Nuclear Generating Stations in Salem County.
Kraus holds a master's degree in business administration from Excelsior University. She also has two bachelor's degrees from Rutgers University, in biochemistry and chemical engineering.
Matthew Ferarri of Vineland, a student at Vineland High School, was awarded a Skill Point Certificate in Automotive Service Technology during the SkillsUSA Championship.
Army Pvt. Justin Riley, son of Jonathan Riley of Vineland, graduated from basic combat training at Fort Jackson in Columbia, S.C. He is a 2009 graduate of Maranatha Baptist School in Millville.
Savannah Waechter of Bridgeton was named to the dean's list for the spring semester at Paul Smith's College in Paul Smiths, N.Y.
Hispanic Family Center of Southern New Jersey, a multiservice nonprofit organization, welcomed new members Yolanda Babilonia and Courtney Kronenthal to its board of directors. Babilonia is a vice principal with the Camden Board of Education. Kronenthal is director of communications and development at Coriell Institute for Medical Research in Camden.
• Happy 15th birthday to Tyler Henderson, who celebrates Sunday.
• Happy 12th anniversary to Henry and Ami Coia, who celebrate Sunday.


Jonah and the Whale: Real or Symbolic?
Why do Christians believe Jonah lived in the belly of a whale for 3 days and 3 nights?
Should Christian Families Bury or Cremate?
What Is a Biblical View of Gun Control?
How Should I Talk with My Kids about Racism and the History of Slavery?
How Can Christians Guard Against Imbalance between Faith and Politics?
How Does the "Selfie Culture" Affect Young Women Today?


I don't know anyone who thinks about the real issue when they decide to become a parent - that is, they will no longer be cool.
With Mother's Day just around the corner, here's a selection of gifts you can add to your dream wish list.
Wanting to work is not a reflection on how much we love our children, writes Kasey Edwards in a new book.
This mum took an amusing approach when she left a 10-point list of guidelines for her children's babysitter to follow.
Now we know it exists, there will be no living without it. Take my whole wallet why don't you?
If you love coffee but don't love what it does to your teeth, then oh boy, do we have some good news for you.
I spent my 30s and 40s thinking time was running out and if I didn't do it all, instantly, I'd be a failure. And then I'd die.
Resilience is definitely something I want my kids to have. But lately I've been thinking 'am I resilient too?'.
Most of us will never be more than average. Can we be OK with that?
I grew up surrounded by high achievers, and never questioned the importance of being extraordinary, writes Kerri Sackville. Until recently.
Bath lovers of the world rejoice. UK researchers have made a discovery that gives you even more reason to while away an hour relaxing in the tub.
We've found the ultimate winter must-have: sleeping bag onesies.


text:
# Deaun Williams - Profile
- Team - EAST Evansville Florence Greys Lake Erie S Illinois Traverse City Washington WEST Gateway Joliet Normal River City Rockford Schaumburg Windy City
Position: OF
Hometown: Indianapolis , Indiana
College: Lincoln Memorial University
Deaun Williams is in his second professional season and first with the ThunderBolts in 2014. The Bolts signed him on August 26, 2014. Deaun began his professional career in 2013, when he appeared in 12 games for the Evansville Otters. Deaun attended Lincoln Trail College for two years and hit .187 in 30 games. He had more success in his two seasons at Lincoln Memorial, where he batted .301, including .309 his senior season, when he hit seven home runs and drove in 37 runs. He stole 13 bases over his two years as well. Deaun attended Southport High School in Indianapolis, Indiana.
Summer 2014 Windy City ThunderBolts 6 18 1 3 0 0 0 0 2 10 1 .167
Summer 2013 Evansville Otters 12 28 0 3 0 0 0 2 6 10 3 .107
Total 18 46 1 6 0 0 0 2 8 20 4 .130
Sep 4 Traverse City W 4-3 4 0 1 0 0 0 0 0 1 0 0 0 0 0.250 0.167 0.167 0.417
Aug 31 Schaumburg W 5-4 4 0 1 0 0 0 0 0 3 0 0 1 0 0.250 0.143 0.143 0.393
Aug 30 Schaumburg L 1-16 2 0 0 0 0 0 0 1 1 0 0 0 0 0.250 0.100 0.100 0.350
Aug 27 @Evansville L 0-2 2 0 0 0 0 0 0 0 1 0 0 0 0 0.000 0.000 0.000 0.000
Jun 13 @Lake Erie W 3-2 4 0 0 0 0 0 0 0 1 0 0 0 0 0.265 0.107 0.107 0.372
Jun 9 Florence L 4-10 1 0 0 0 0 0 0 0 0 0 0 0 0 0.300 0.125 0.125 0.425
Jun 7 Florence W 4-0 2 0 0 0 0 0 0 0 0 0 0 0 0 0.310 0.130 0.130 0.440
Jun 2 @Schaumburg W 7-0 1 0 0 0 0 0 0 0 0 0 0 0 0 0.333 0.143 0.143 0.476
May 25 Windy City W 8-0 2 0 0 0 0 0 1 2 1 0 0 0 0 0.346 0.150 0.150 0.496
May 24 Windy City L 5-6 4 0 1 0 0 0 1 0 3 0 0 1 0 0.318 0.167 0.167 0.485
May 23 @Traverse City W 4-1 3 0 0 0 0 0 0 0 2 0 0 0 0 0.333 0.143 0.143 0.476
May 21 @Traverse City L 0-10 4 0 0 0 0 0 0 0 0 0 0 0 0 0.333 0.200 0.200 0.533
May 19 Normal W 8-7 3 0 0 0 0 0 0 1 3 0 0 1 0 0.500 0.333 0.333 0.833
May 18 Normal L 3-8 3 0 2 0 0 0 0 1 0 0 0 0 0 0.750 0.667 0.667 1.417


Thats because sports are some peoples escape from the problems of the world. I don't have a problem with athletes taking a stand for what they believe in. But the sports network should focus on sports. Let Fox or CNN interview the athlete about his or her stand. Its no longer the escape people are looking for. I don't mind a feel good story every now and then that shine the light on an illness or tell a story. The political stuff is killing espn though.
Well that's how much I watch it.....I didn't even realize it had political stuff. I was thinking more like the few times I've even flipped past in the last couple of years when it wasn't to watch a football game it just seemed to be a bunch of people either sitting around or "live via satellite" in little windows trying to yell over one another.
I've got Uverse so the sports channels start at 1600 on the Guide.....No lie, my father-in-law was up this weekend and wanted to watch the Braves game and it was the first time since football season ended that I've even scrolled to those channels.
Ratings are exactly why they've changed their format. Same reason MTV stopped showing music videos. Dwindling ratings. I can watch the highlights during the game on social media. Why do I need to watch Sportscenter for "old news?" And within 5-10 minutes a full story is posted with full highlights and post game interviews online. Again, no need to watch Sportscenter for highlights. Fact is politics have been involved in sports likely before any of us were born. Jackie Robinson? Texas Western?
It's the picking sides people have a problem with.
The Sun Belt has company. The Ivy League signed a long term ESPN+ contract.
Someone explain to simple Dave here. What's the benefit of this? Seems like paying for the same, and adding stuff I don't want.
Why is everyone so cryptic about the financial details of these ESPN+ deals? Are the conferences getting paid, or what?
I'll add that with this move, ESPN captures money they are losing from people cutting the cord, without the cable companies getting a dime. They will capture some money from us fools still in cable/satellite contracts, since we will have to have both now to watch all of our teams play.
My question is, does an ESPN+ subscription allow you to watch the SEC network, or do you have to have a seperate SEC subscription or cable subscription. My wife would be pissed if we lost SEC gymnastics. Unless of course one of yall can afford to start a GS gymnastics team.


The Good The T-Mobile Sidekick 4G impresses with the addition of a touch screen and the Android operating system. The handheld also offers enhanced messaging features, great call quality, and a good camera.
The Bad The user interface won't appeal to everyone. The smartphone can occasionally be sluggish.
The Bottom Line The T-Mobile Sidekick 4G continues the Sidekick's legacy as an excellent messaging device and also serves as a great entry-level smartphone.
T-Mobile Sidekick users were probably a bit stunned when it was announced that data service for the popular messaging handheld would cease on May 31. Though the interruption of service is certainly inconvenient, it doesn't mean the end of the Sidekick--quite the opposite, actually. The T-Mobile Sidekick 4G, which will be available April 20 for $99 with a two-year contract and after a $50 mail-in rebate, pumps new life into the Sidekick line with the addition of the Android operating system, a touch screen, and enhanced messaging features, among other things. As with the previous models, the Sidekick 4G won't be for everyone, but we found a lot to like about it. Read on to find out if it's right for you.
Though Samsung has taken the reins from Sharp, the company wisely kept a lot of the design elements that made the Sidekick a Sidekick. The T-Mobile Sidekick 4G still has the landscape-oriented slab form factor and it's about the same size (2.4 inches wide by 5 inches long by 0.6 inch thick) as the Sidekick LX 2009, but it's a bit more streamlined since there aren't as many gaps or protruding buttons. As a result, the phone feels smoother and slips into a pants pocket more easily.
Though no longer made by Sharp, the T-Mobile Sidekick 4G looks and feels similar to the older models.
The Sidekick 4G has a plastic construction and feels relatively lightweight but solid. We miss the soft-touch finish found on the previous Sidekick, but you do get a textured surface on back along the left and right side, making it easier to grip the device when you're using the keyboard.
Another aspect taken from the old Sidekicks are the four navigation controls that occupy each corner of the handset. Gone are the dedicated Talk and End buttons, but you still get the home, menu, back, and jump keys. The jump key will bring up a view of your most recently used applications. There's also an optical joystick that doubles as an OK button as well. However, it's rather small, so we found it difficult to use for scrolling through lists.
Fortunately, you don't have to rely on the joystick for all your navigating needs because the Sidekick 4G has a 3.5-inch touch screen--a first for a Sidekick. The addition of the touch screen makes it easy to launch apps and scroll through the various home screens and menus. You can also quickly zoom in on Web pages and pictures, thanks to the pinch-to-zoom support. In general, images and text looked sharp on the 480x800-pixel display. That said, videos looked a bit murkier compared with some of today's higher-resolution screens.
Of course, two hallmark features of all the Sidekick models were the moving screen and the keyboard. The Sidekick 4G has both, but with regard to the former, the smartphone goes more the way of the Sidekick Slide with a slider design. It's a bit different in that you don't need to slide the screen all the way up. Instead, with one good push, the screen pops up and sits at a slight angle. It's a pretty smooth action, and the "pop-tilt" hinge feels quite sturdy, so we don't have any major concerns about long-term durability.
The Sidekick 4G's QWERTY keyboard is outstanding and very easy to use.
Once open, you have access to the five-row QWERTY keyboard, and as we've come to expect from Sidekicks, the keyboard is excellent. There's ample spacing between the bulbous buttons and they provide a nice tactile feedback, so we were able to type quickly and with very few mistakes. We also appreciate the presence of the number row and dedicated keys for emoticons, the @ symbol, and voice commands. You can also create shortcuts using the combination of the jump key and a letter. Some are already preset--for example, pressing the jump key and the M key will launch the music player--but you're free to create more. If you don't need to write a long message, the Sidekick 4G also offers the Swype virtual keyboard.
Rounding out the device are a 3.5mm headphone jack, a volume rocker, and a power button on the left side (when held in portrait mode) and a Micro-USB port and camera button on the right. We found the placement of some of these buttons to be troublesome. Most notably, when trying to capture an image using the camera button, our palm would often hit the power button and thus lock the phone before we could snap the picture, which got to be quite annoying. The 5-megapixel camera lens is located on back sans flash, and you'll find the microSD expansion slot behind the battery door.
The Sidekick 4G has a 'pop-tilt' hinge and comes in either matte black or pearl magenta.
Recognizing the need to replace the older devices and come up with something that fits into today's market, Microsoft and Danger made a joint decision to shut down the Danger service and transition to a new mobile platform. As a result, the T-Mobile Sidekick 4G now runs on the Android operating system, more specifically Android 2.2.1.
Sitting on top of Froyo is Samsung and T-Mobile's custom Kick UX interface. It's different from anything on other Android phones and caters more to the Sidekick's younger target audience. You can customize the seven homescreen panels with various themes and wallpaper that are slightly flashier than most.
The Kick UX also offers a multifunctional lock screen. You can customize it so that swiping upward will open a user-defined app, while swiping downward will take you to the last app or screen you were on. Meanwhile, the main menu of apps is laid out in a grid format and spread across multiple pages instead of one long scrollable list.


text:
Q: Can't convert Int to int fo combo I have this combobox
BindingSource srd = new BindingSource();
srd.DataSource = llenar.Tables["cnae"];
CmbCnaePrin.DataSource = srd;
CmbCnaePrin.DisplayMember = "cnae_descricao";
CmbCnaePrin.ValueMember = "cnae_id";

i want to load this
int cnaepr;
DataTable dt3 = new DataTable();
dt3 = ifd.cnaeclas(cnaepr);
txtCnaeC.Text = dt3.Rows[0][2].ToString();
txtCnaeSC.Text = dt3.Rows[0][3].ToString();

but i can not convert
 cnaepr=Convert.ToInt32(CmbCnaePrin.SelectedValue)

returns this error Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible'.

A: Try calling ToString() on the SelectedValue property:
cnaepr=Convert.ToInt32(CmbCnaePrin.SelectedValue.ToString());

The error is pretty much exactly what it says; the SelectedValue property is designed to be very generic so it can be anything you could find in a DataTable. Most of those things that it could be are not "convertible" types (implementing IConvertible).

A: I was able to reproduce Your issue with a smaple test application and I can suggest You two possible solutions.
You can remove BindingSource object which is in fact only a proxy between DataTable and a ComboBox.
Applying this solution, the code should look like this:
CmbCnaePrin.DataSource = llenar.Tables["cnae"];
CmbCnaePrin.DisplayMember = "cnae_descricao";
CmbCnaePrin.ValueMember = "cnae_id";

The rest can be unchanged and you should get an String object in CmbCnaePrin.SelectedValue.
Alternative solution (updated)
Alternatively, You can use BindingSource, but handle DataRowView returned in the CmbCnaePrin.SelectedValue, as well as cases, when you get the value directly.
Applying this solution, the code should look like this:
DataRowView selectedValue = (CmbCnaePrin.SelectedValue as DataRowView);
if (selectedValue != null)
{
    cnaepr = Convert.ToInt32(selectedValue.Row["cnae_id"]);
}
else
{
    cnaepr = Convert.ToInt32(CmbCnaePrin.SelectedValue);
}

The rest can be left unchanged.
Let me know if this solves Your issue.

A: Try setting up the combobox DisplayMember and ValueMember before you assign the DataSource.
CmbCnaePrin.DisplayMember = "cnae_descricao";
CmbCnaePrin.ValueMember = "cnae_id";
CmbCnaePrin.DataSource = srd;

I think assigning those after setting the DataSource means that the combobox is trying to use the default iterator of a DataTable which is a DataRow (or DataRowView on a DataView in this case). So it's setting the ValueMember and the DisplayMember on its own before you assign them.


text:
Q: flink cep sql Event Not triggering I use CEP Pattern in Flink SQL which is working as expected connecting to Kafka broker. But when i connecting to cluster based cloud kafka setup, the Flink CEP is not triggering. Here is my sql:
create table agent_action_detail
(
    agent_id String,
    room_id String,
    create_time Bigint,
    call_type String,
    application_id String,
    connect_time Bigint,
    row_time TIMESTAMP_LTZ(3), WATERMARK for row_time as row_time  - INTERVAL '1' MINUTE)
with ('connector'='kafka', 'topic'='agent-action-detail', ...)

then I send messages in json format like
{"agent_id":"agent_221","room_id":"room1","create_time":1635206828877,"call_type":"inbound","application_id":"app1","connect_time":1635206501735,"row_time":"2021-10-25 16:07:09.019Z"}

in flink web ui, watermark works fine
flink web ui
I run my cep sql :
select * from agent_action_detail
 match_recognize(
    partition by agent_id
    order by row_time
    measures
        last(BF.create_time) as create_time,
        first(AF.connect_time) as connect_time
    one row per match AFTER MATCH SKIP PAST LAST ROW
    pattern (BF+ AF) define BF as BF.connect_time > 0 ,AF as AF.connect_time > 0
 )

every kafka message, connect_time is > 0, but flink not triggering.
Can somebody help to this issue, thanks in advance!

select * from agent_action_detail match_recognize( partition by agent_id order by row_time  measures AF.connect_time as connect_time one row per match pattern (BF AF) WITHIN INTERVAL '1' second define BF as (last(BF.connect_time, 1) < 1), AF as AF.connect_time >= 100)

Here is another cep sql still not working.
And the agent_action_detail table is insert by another flink sql as
insert into agent_action_detail select data.agent_id, data.room_id, data.create_time, data.call_type, data.application_id, data.connect_time, now() from source_table where type = 'xxx'

A: There are several things that can cause pattern matching to produce no results:

*

*the input doesn't actually contain the pattern

*watermarking is being done incorrectly

*the pattern is pathological in some way

This particular pattern loops with no exit condition. This sort of pattern doesn't allow the internal state of the pattern matching engine to ever be cleared, which will lead to problems.
If you were using Flink CEP directly, I would tell you to
try adding until(condition) or within(time) to constrain the number of possible matches.
With MATCH_RECOGNIZE, see if you can add a distinct terminating element to the pattern.

Update: since you are still getting no results after modifying the pattern, you should determine if watermarking is the source of your problem. CEP relies on sorting the input stream by time, which depends on watermarking -- but only if you are using event time.
The easiest way to test this would be to switch to using processing time:
create table agent_action_detail
(
    agent_id String,
    ...
    row_time AS PROCTIME()
)
with (...)

If that works, then either the timestamps or watermarks are the problem. For example, if all of the events are late, you'll get no results. In your case, I'm wondering the row_time column has any data in it.

If that doesn't reveal the problem, please share a minimal reproducible example, including the data needed to observe the problem.


text:
Toll free:1300-654-369
news@nswtf.org.au
NSWTF
ABC Friends in need of teachers
Lobby group ABC Friends has urged teachers to join the fight to defend the national broadcaster from funding cuts and a conservative political agenda, including the assault by the Murdoch press.
Federation Vice-President Tim Mulroy recently met with NSW President of ABC Friends Professor Ed Davis to discuss the importance of the broadcaster to public debate and its role to inform and entertain, as well as its link to public education.
"It is of particular concern to teachers who deeply value the educational programs presented by the ABC and its broad and thoughtful discussion of economic, environmental, political and social issues," Professor Davis, a former teacher, said.
Government cuts have meant that funding for the ABC has fallen, in real terms, by 28 per cent since the mid-1980s, while staff numbers had been reduced by 20 per cent in the past 20 years.
Professor Davis said the BBC receives almost 10 times the funding of the ABC while serving an audience just three times greater than Australia's that is certainly less dispersed and remote.
"These are shocking developments in a world with an extraordinary need for accurate and impartial news and analysis; where the ABC has such a critical role to play, as outlined in its Charter," he said.
"In the past five years, there has been a reduction in ABC funding of around $200 million and the current Federal Government has made no secret of its intentions to impose further cuts on the ABC."
He said the cuts have resulted in less diversity, fewer specialist, well-researched programs and insufficient resources to seek out and investigate news, as well as the loss of Australian voices, history and perspectives as the ABC is forced to rely on imported documentary, history and science programming.
Rupert Murdoch's empire "hates" the ABC – with "no shortage of News Corp staff calling for the abolition of the ABC" – as it sees public broadcasters, here and overseas, as competitors who are given a free kick from the public purse to compete for viewers, readers and listeners.
"Put simply, commercial media do not have the same obligations as public broadcasters," Professor Davis said. "Their aim is to make profit, to sell audiences to advertisers. They are not guided by the obligations and noble aims spelt out in the ABC's Charter.
"ABC Friends would appreciate and encourage the support and seek the guidance of Federation and its members for the worthy cause of public broadcasting."
For more on ABC Friends and membership go to www.abcfriends.org.au.
Future Teachers
The New South Wales Teachers Federation is the registered trade union which covers NSW public school teachers. Read more
Toll free: 1300-654-369
© New South Wales Teachers Federation. All Rights Reserved.
Authorised by John Dixon, General Secretary, NSW Teachers Federation, 23-33 Mary St. Surry Hills NSW 2010
mail@nswtf.org.au


There are many different ways you can watch Game of Thrones with your subscription, however. Likewise, you can watch/stream new episodes of the series on the Showmax as they air worldwide. Each live-streaming TV bundle comes with dozens of channels, only you watch online on a smart TV or other connected device rather than through a cable box.
All the previous seven seasons of Game of Thrones are available to watch online on HBO Now, HBO Go and the HBO Amazon Prime add-on. You'll be able to rent the DVDs as much as you want, allowing you to watch the whole of Game of Thrones in one sitting once it's over.
The man is followed around by "Thrones"-esque characters who yell "Shame!" and throw newspapers and garbage at him". You can do it through your Prime membership, paying $14.99 per month for access to HBO Now.
Game of Thrones season 8 will be airing on 14th April and has already gained huge craze amongst its fans. Here are some platforms where you can live stream the season finale of Game of Thrones.
This is another HBO streaming service available to USA viewers only.
For Game of Thrones lovers that aren't resident in the US, you can atch previous seasons of the series on Showmax. So, that you can see the episode at the same time when it will be aired on TV.
Game of Thrones season 8 premieres tonight at 9/8c on HBO. Simply log into the HBO Go app (on your smartphone, tablet, console, TV etc.) and select Game of Thrones.
While you can't stream the channel live, you can stream the episodes through your HBO Now account. If you do not cancel HBO or the streaming service itself before the free trial expires, you will be charged in full for the first month's service. Tyrion has appeared in 61 episodes in the series, more than anyone else.