text:
Q: How to extend a function is there a way in modern C++ to "extend" a function?
Maybe this pseudo code can explain what I want:
extendable void foo()
{
   doSomething();
}

extend foo()
{
   moo();
}

when compiled the function foo() should do this:
foo()
{
    doSomething();
    moo();
}

I thought I could do this by storing every function that I want to have in foo() in a std::vector of function pointers and foo() will loop through the vector and run all functions.
However, I need to do this while compiling, thus I can't run vector.push_back().
I tried to do this with help of #define directives but I didn't find a solution.
Thanks in advance for any answer.
EDIT: My actual problem
I want to implement some kind of Entity-Component-System with a list for every component. Every entity has an ID that points to the list element in the component-list.
Because I don't want to repeat the steps for creating a new type of component I wanted to make a #define-directive to make this automatically for every new component I'll create.
The main problem is to add to every component-vector one element if a new entity is created.
This is the code I wanted to work:
#define addComponent(name)                                          \
    struct name;                                                    \
private:                                                            \
    std::vector<name> name ## vector;                               \
public:                                                             \
    extend addEntity()                                              \
    {                                                               \
        struct name a;                                              \
        name ## vector.push_back(a);                                \
    }                                                               \
    void set ## name(const int & ID, name newName)                  \
    {                                                               \
        name ## vector[ID] = newName;                               \
    }                                                               \
    name get ## name(const int & ID)                                \
    {                                                               \
        return name ## vector[ID];                                  \
    }

class Component
{
public:
    Component();
    ~Component();

    extendable void addEntity(int * ID);

    addComponent(position)
    struct position
    {
        float x, y, z;
    }
};

A:
Can I extend functions?

No.
What you describe is not possible. Having the compiler generate a function that will call the function that foo() invoked before being extended is not supported by any mechanism.
Virtual methods do not do the trick, since all they provide is Polymorphism (many forms in Greek).

A: You don't explain enough what you have in mind and why (even after your edit). For member functions, indeed read more about vtables (a common way to implement dynamic dispatch).
Notice however that functions can be values (thanks to lambda expressions and std::function notably).
You might then declare for example a double ended queue todoque of functions using std::dequeue (it could be a static variable or a field of some class, etc...)
 std::deque<std::function<void(void)>> todoque;

and extend it, perhaps  using a lambda,
 todoque.push_back([](void) { moo(); };

and initialize it with
  todoque{[](void){doSomething()}};

then code
 void foo() {
   for (auto f : todoque) f();
 }

I hope you got the idea.
BTW, in the example above the lambda are perhaps unneeded, you might just code todoque.push_back(moo).
BTW I recommend reading SICP (not about C++, but about a functional programming language called Scheme), it is an excellent (and freely downloadable) introduction to programming.

I thought I could do this by storing every function that I want to have in foo() in a std::vector of function pointers

No, or even better, make it a std::vector<std::function<void(void)>>  and use lambda expressions.

However, I need to do this while compiling, thus I can't run vector.push_back()

Why not? It might happen in a constructor of some static data.
Maybe your overall goal (which you don't explain) might be also achieved by run-time metaprogramming techniques involving JIT compiling and generation of code at runtime. You could use libraries like libgccjit or LLVM; you could also emit C++ code in some temporary file, compile it as a plugin, and dlopen that plugin. See also this.
Regarding your edited Entity-Component-System goal, did you consider writing some specialized C++ code generator (or preprocessor) that appropriate rules of your build automation system (e.g. make  or ninja, etc...) would trigger wisely at build time? The Qt moc could be inspirational. Consider also using some general purpose preprocessor like m4 or gpp.


text:
Posts Tagged 'NFL'
Eli Manning, New England Patriots, NFL, NY Giants, Super Bowl, Tom Brady
Tough guys don't have tattoos
In Uncategorized on January 31, 2012 at 3:08 am
Well, the Super Bowl is next week and I must admit that I am looking forward to it – simply because I like the idea of a New York team beating a Boston team. But I really have no interest anymore in professional football as several of my blog posts have made clear. Last weeks Giants-49ers game was a case in point why have I lost interest in professional football. At the onset of OT the head referee explained the new the new OT rules to the captains at mid-field. But the rules were so complicated and the referee's explication so labyrinthine that I don't think anyone, not the players on the field, nor anyone watching at home understood him. I certainly didn't understand him. In fact, all I understood was the part at the end where he asked, "heads or tails?" It was a comic performance by the NFL. The days of "Gentlemen, the first team that scores wins the contest" are officially over.
At one point during the OT the FOX camera panned the 49er bench where four linemen were resting during a Giants possession. Each player had tattoos that ran the length of his arms. I could not see any ectodermal tissue that was not covered in ink. It is as if tattoos are now part of the unwritten uniform code in the NFL (and the NBA I would add). And the code says that linemen should have more tattoos than QBs and receivers – for that is the impression I got while watching the game. Nowadays tattoos symbolize toughness. Funny but in my book it is just the opposite. The truly tough guys in the NFL were those who played a generation or two ago and who simply donned a uniform and a few pads. They didn't need tattoos to prove they were tough. They just showed up, broke their share of bones against other tough guys and collected a paycheck every couple of weeks. Those days are long gone.
Regrettably.
Enjoy the game !
Aaron Rodgers, Democracy, Egypt, Green Bay Packers, NFL, Super Bowl
The Super Bowl: A monument to American (bad) taste
In Uncategorized on February 12, 2011 at 6:53 am
The Super Bowl was last weekend. I watched the game and cringed at the halftime show, as I suspect did many others of my generation who grew up when the halftime show at the Super Bowl was a marching band-and nothing else. This year's halftime show was a cross between Disney on Ice and a Kiss concert. The word that comes to mind is gross.
Say what you will, but the Super Bowl has quite simply become a MONUMENTAL monument to American bad taste. If the Super Bowl were personified it would be Jerry Seinfeld's father, overweight, vulgar, loud, brazen and in-your-face. Hagar slacks and white belt to boot.
And it just seems to get bigger – and worse – every year. In fact, the game nowadays seems secondary to the garish, pyro-spectacular halftime show that we have to sit through while we wait for the 3rd Quarter to start. I often wonder how the older football fans – people of my father's generation, who grew up on a steady diet of Glenn Miller and Count Basie – must react to the invasion of rock and roll into American professional football ? And how insufferable it must be to actually be there ! ( at least if you are watching on TV you can get up and go get something from the fridge). Moreover, this year we not only had to endure a bad halftime show but a scandalously rendered national anthem as well. No one talked about the game on Monday, but instead the headlines were about Christine Aguilera's "performance" during the National Anthem. Even if she had not botched the lyrics, her rendition was enough to make one reach for the remote. For such is the Super Bowl nowadays.
And they want American Democracy in Egypt ?
1972 Playoffs, 1972 Raiders vs Steelers, BCS championship, Franco Harris, Frenchy Fucqua, Immaculate Reception, Instant Replay, Jack Tatum, NFL, Pittsburgh Steelers
One more reason I can't watch football anymore: The little red flag
I didn't watch the National Championship game the other night. Mainly because I live in Tokyo where the game was not broadcast. I did check the final score, however, and watched some of the video highlights online. Once again, a big play in college football (or professional football for that matter) hinged on instant reply. This is another reason I rarely watch pro football anymore and watch only a handful of college games in any given season: instant reply.
What is it about instant reply that I don't like ? Instant reply slows down the game considerably. Some reviews drag on for as much as 5-10 minutes while the officials huddle under what looks ridiculously like a circa 1953 voting machine. It is a process that is seriously flawed, for the TV replay usually tells us immediately if a play has been called correctly or not. I have never understood why the NFL just doesn't post an official in the press box.
Instant replay also attempts to impose perfection where there can be none. Professional athletes, in spite of their skills, are not androids, and if you scrutinized the play on the field you could probably find violations of one sort or another e.g. holding, illegal formation on every play. Yet these infractions are never called usually because they occur on the line of scrimmage, away from the ball. Big games are often decided because a hold or a false start went unnoticed by the officials. Instant reply gives the false impression that the game has been decided fairly, when it most likely has not.
Most importantly instant replay deprives the game of considerable lore. Ask any sports fan about a controversial play they remember well and they will probably recount several for you. What is the most controversial play of all time ? The Immaculate Reception of course. Did the ball bounce of Frenchy Fucqua or Jack Tatum ? That question is part of our fascination with the play some 39 years after the fact. And it is a question many people in Oakland and Pittsburg will ask themselves up until their last day.
Thankfully instant reply was strictly for TV in 1972.
Atlanta Falcons, Dogs, Joe Namath, Michael Vick, NFL, Pets, Philadelphia Eagles
Another reason I do not watch the NFL anymore: Michael Vick
Another reason I do not watch the NFL anymore is Michael Vick. Vick should have been banned for life for his involvement in the dog-fighting ring which grabbed national headlines a few years ago. The NFL does, after all, ban players for life for gambling or repeated drug use. Why it would not ban a player who sadistically electrocuted dogs in his swimming pool is beyond me. Not only has Vick been allowed to play again, but he is being celebrated this year for his comeback with Philadelphia and is even being touted as an MVP candidate. And I see this morning that President Obama called Eagles Owner Jeffrey Lurie to thank him for giving Vick a second chance. As the Eagles get closer to the Super Bowl this crescendo of hypocrisy will only get worse.
NFL rosters these days are full of players like Vick. Plaxico Burress, Ben Rothlesburger, Ray Lewis, Terrell Owens are a few that come to mind. Every broadcast has a sub-plot: someone who has been shot, or has been involved in a serious fracas with the law or is under suspension for violating the NFL's substance abuse policy.
In the glory days of professional football there was drug use, to be sure, but players were for the most part law-abiding citizens who just happened to play football. I think the most controversial player when I was growing up was Joe Namath. However, the controversy surrounding Namath had nothing to do with drugs, or guns or gang violence, what many NFL players nowadays seem to be involved in. Namath was controversial because he was a mainstay of the New York swinger scene who wore panty hose on game days. Though not used with Joe Namath's name the phrase "role model in the community" was often heard during NFL and other professional sports broadcasts. Sadly, that phrase is no longer in use and when I use it here it seems antiquated.
It is enough to make you want to turn off the TV, which I often do these days when the NFL is on.
49ers, Dallas Cowboys, Joe Montana, John Brodie, NFL, Oakland Raiders 1960s, SF 49ers 1960s
Why I no longer watch the NFL
It is about that time of year that I begin to look at the NFL standings. I used to love Pro Football. I grew up in the Bay Area in the 1970s when the Raiders were the most feared and intriguing team in the NFL (and a team I loved to root against) while across the Bay John Brodie and the 49ers showed promise but always fell short – usually in heartbreaking fashion e.g. 1972 playoff game against Dallas.
The 49ers kept me interested in Pro Football until the early 1990s. Then a class franchise suffered an identity crisis, trading Joe Montana, hiring a series of coaches whose integrity was dubious and signing players who were committed more to promoting their own brand than to winning. At some point I just lost interest in the 49ers and stopped watching pro football altogether. Nowadays, I usually tune in only at the end of the year to watch the playoffs and Super Bowl. Once a sports fan, always a sports fan.
One of the main reasons I have lost interest in pro football is that broadcasts have become so laden with time outs that the game just seems to drag on and on. Take the first series of plays after a kickoff for example. Back in the day the offenses and defenses would take the field when play on the kickoff was whistled dead and play would resume without a commercial break. Now, however, there are several commercials between the kickoff the next series of plays. I timed this once – from the extra point on a TD until the next series after the kickoff – and seven minutes elapsed. In other words, a fan has to sit front of their idiot box for seven minutes ( usually watching a heavy dose of ED commercials ) just to see one play, the kickoff. For me at least, this just makes the entire telecast unwatchable.
I always wonder whether TV was really such a good thing.

redpajama_set_name: RedPajamaCommonCrawl


text:
SOLAR TRACKER
If you are interested in achieving the maximum performance of your solar system you must place a solar tracker.
Photovoltaic solar energy has had a great development in recent days. To get the best performance from solar panels, we need a solar tracker.
The panels are solar to have a bad performance, they should always be oriented with a correct IL with respect to the sun, but the movement of the Earth makes this angle must change constantly, to correct this the solar tracker has been created .
What is a solar tracker?
A solar tracker is a device that fits into a set of photovoltaic panels facing the sun to exploit its light and generate energy.
My idea is to include it in a direction in which it moves during all the time, for so long, during all the time it has changed.
Solar trackers are used to increase the energy production of solar panels and solar receivers. The follower will be a device that watches the movement of time for a period of time that I believe.
Solar trackers are used to maintain the solar / solar collectors. Panels facing directly towards the sun as it moves through the sky every day.
The use of the solar energy system increases the energy energy of the solar energy system and the production of thermal energy / electricity generated.
Solar trackers can increase the production of solar panels by 20-30%, improving the economics of solar panel design.
"What is the use of a solar tracker?
The use of this product increases the production of electricity to 30% by 40% in all regions, compared to solar panels. In any solar energy application, the conversion efficiency is improved when the modules are continuously adjusted according to the angle of the "Sun as it moves across the sky".
With improved efficiency, it improves performance. The use of this is a big difference in children's play. Therefore, on a commercial scale, a solar installation is adding a solar tracker.
How does a solar tracker work?
A solar tracker directs solar panels or modules towards the sun. These devices change their orientation along the direction of the solemnization route of the energy capture.
In photovoltaic systems, solar trackers help to minimize the angle of incidence (the angle formed by a ray of light with a line perpendicular to the surface) between the incoming light and the panel, which increases the amount of energy produced by the installation.
Concentrated photovoltaic solar energy and concentrated solar thermal energy have a vision that directly accepts sunlight, so solar trackers must have the correct angle to collect energy. Every day is granted according to the periods of time when it does not produce energy for a certain number of correct passengers.
The single-axis solar tracker rotates on an axis that moves back and forth in only one direction. Different types of single-axis trackers include aligned horizontal, vertical, tilted, and polar lines that rotate when they involve names.
What are the types of existing solar trackers?
Solar trackers with two axes.
They allow the panels to move in two directions, instead of just one, which means that a mayor gets energy from the sun because it has a higher positioning range. Dual followers are usually used to orient a mirror and redirect sunlight to a stationary recurrence.
Solar trackers of an axis.
Turn in a single mode to see only once in only one direction. These, in turn, are divided into: horizontal, vertical, inclined, polar, which rotate as indicated by their name.
Solar trackers can also be classified according to the controllers that indicate their movement:
Passive supporters
It depends completely on solar heat to guide and move the follower. Basically, a gaseous fluid is a point of diffusion due to the explosion of a negative point of view for the future part of a rise and fall; this in response to the imbalance created by the heat of the sun.
Active followers
They use a controller that controls the position of the Sun's movement to direct the motor that moves the follower.
WHAT IS SOLAR ENERGY USED FOR
FUENTES DE ENERGIA ALTERNATIVA HOY
¿Dónde se usa más la energía solar?
COMO FUNCIONAN LOS AEROGENERADORES
DIMENSIONES DE PANELES FOTOVOLTAICOS
Un nuevo dispositivo de energía solar puede convertir el agua salada en agua potable y producir electricidad al mismo tiempo.
Simple explanation of how a photovoltaic solar panel or plate works?
DISADVANTAGES OF SOLAR ENERGY
BLACK PHOTOVOLTAIC SOLAR PANELS
Glass photovoltaic solar roof tiles made in Spain
What are solar pumps?


On this great occasion, I would like to share about tv walls ideas. World Homes is the best place when you want about photos for your ideas, maybe you will agree that these are very cool imageries. Well, you can inspired by them. Perhaps the following data that we have add as well you need. Top stunning diy kitchen design ideas their costs home improvement, Modern styles led taking down extra wall kitchen person cooking meal could still interact people next room over think parent looking after watching era made stainless steel far.
Okay, you can use them for inspiration. The information from each image that we get, including set of size and resolution. You can click the picture to see the large or full size picture. If you like and want to share you can hit like/share button, maybe you can help more people can get this information. Right here, you can see one of our tv walls ideas collection, there are many picture that you can found, remember to see them too.
For a basic town-home impact, set off the walls with crisp white woodwork and moldings. In a featureless fashionable hall, apply strips of curved coving to the junction between walls and ceiling to lend a be aware of distinction. The visual distinction between the upper and decrease parts of the wall successfully lowers a excessive ceiling. The basic elements of the city-home look add character and distinction to any hallway. And whenever you register on-line at the house Designer web site, you may add to this library with free downloads of name-brand residence interior objects. One attention-grabbing software is the better Homes and Gardens Interior Designer 8.0. It has been designed specifically for the homeowner who likes to do things on his/her personal and has some inventive expertise and the persistence to be taught the software. They actually have a collection of design options for getting your dream home, interiors and gardens rendered in 3D on the Pc earlier than you begin spending on making any of that a reality. Many hallways in interval homes have architectural flourishes within the type of brackets, cornicing, and corbels.
Floors: The traditional town-home solution is a few type of graphic black and white tiling - in marble slabs, ceramic tiling, or linoleum - that looks crisp in entrances. Stylish finishing touches, within the type of fresh flowers and decorative objects set the fitting mood. The main corridor gentle may be an attention-grabbing function in its own proper. The neatest solution is to stop the primary masking a couple of yard (meter) short of the entrance door and cover the remainder in coir matting, sunk to the identical stage and running throughout the total width of the corridor. First impressions count. However small, the realm immediately inside the front door is greater than merely a spot to hurry by means of in your way in or out; it sets the tone for what follows in the remainder of the home. The convention is to cowl the lower third of the wall house with a hardy floor, reminiscent of a textured paper, that may withstand greater abuse than the rest of the wall treatment. A buffer zone by the front door, where sneakers may be wiped clear, helps to keep the rest of the ground in good condition.
Wainscoting is a traditional feature that earns its keep in the hall. You possibly can obtain a similar effect utilizing a coordinating border in place of the wainscoting rail. The look incorporates many time-honored parts, resembling ground tiling and paneled wainscoting areas, which provide tough and easily maintained surfaces. This does not mean that bold and placing results should be ruled out, but it's best to plan the look of the corridor within the context of your total decorating scheme. Walls: Neutral tones may be a safe guess within the corridor, but the general impact tends to be a little bland. While the effect is elegant, practical necessities are properly served. Lighting: Halls needs to be effectively lit, for safety and security. Halls are connecting spaces, which signifies that decorative choices must be made very carefully to keep away from abrupt clashes of coloration, sample, and elegance in the transition to different rooms. Above all, because the initial encounter with your private home, halls must be welcoming to visitors.
In many hallways, such fixtures are seen from above as you descend the steps, so pendant lights and lanterns that enclose the bulb are extra attractive than those which go away it uncovered. Eggshell or satin finishes are more elegant than high gloss ones. Warmer tones, such as cerise, are also effective if the corridor is dark, while smooth greens are soothing. Regency-type coach lanterns or a chandelier are in preserving with the look. Natural fiber flooring in sisal or seagrass is a good, traditional option for an understated look. Characteristic options include timeless parts comparable to black and white tiled floors, tremendous architectural and decorative element, and a symmetry of association. Project Cost Estimating. The software program gets a quasi venture management instrument that permits you to generate a spreadsheet of the prices involved in your inside design plan damaged down in suitable classes. As a 3D rendering instrument, you possibly can render real looking views of your last design venture with a virtual animated tour complete with practical lighting and shadows. Kitchen and Bath. The constructed-in library offers you a wide number of appliances you'll be able to just drag and drop onto your design.
If you wish, you may set up wall sconces or table lamps, but these shouldn't be the only sources of gentle. Other nods in the direction of practicality involve equipping the corridor with a mirror, a small desk for leaving keys, messages, and mail, and maybe a clock. Try yellow for a vibrant, heat feel, notably in a corridor that receives direct sunlight. Every corridor takes a certain amount of battering from the each day comings and goings of family members, so surfaces should be able to withstand a good degree of put on and tear. A gorgeous dwelling deserves a grand entrance that lives as much as the promise inside. The refinement of the city-house fashion provides simply such an elegant introduction to gracious dwelling. Town-house type has the practicalities lined. The essence of the model is tradition and formality. A constructive shade gives an instantaneous carry that clearly spells out a welcoming message. It's a complicated look, but want not be expensive to recreate. Alternatively, carpet the hallway, offered you supply some additional protection for the areas of heaviest traffic.
Should you have almost any issues about where by as well as the best way to use sater home design, you can email us from our web site.
Below are 6 top images from 22 best pictures collection of tv walls ideas photo in high resolution. Click the image for larger image size and more details.


text:
Forrest Wins New Mexico Award…
Last week Forrest was invited up to the Governor's mansion to be honored by the Governor herself for his boundless advancement of the culture of the American West. As you know Forrest has authored several important books on American artists. He has also written extensively on the San Lazaro Pueblo, Indian Dolls and other fascinating American topics.
At San Lazaro his remarkable findings have illuminated concepts of prehistoric culture and technology previously unknown to modern investigators. Further, he has annually invited kids to visit the pueblo for extended periods of time and allowed them to participate in supervised archeological digs to share in the adventure, fun and mystery of archeology and anthropology (the thrill of the chase). Sounds like great fun doesn't it? The kids find tools, pots, animal remains, arrowheads, scrapers and prehistoric kitchen appliances like a metate and mano.
Forrest is not only a hider of precious treasure but also an enthusiastic protector and finder of all things historic and prehistoric.
Jeff Witte, the NM Secretary of Agriculture, The Governor, Susana Martinez, Forrest and Max Evans.
I was lucky enough to be in Santa Fe at the time and was invited by Forrest to attend the event. The weather was delightful, the sky was big, and the wine was plentiful. Everyone was in a partying kind of mood and the relaxed event unfolded seamlessly on the back portico of the mansion overlooking about 180 degrees of beautiful southwest, Pinyon pine horizon.
As I moved close to the podium, I pulled out my camera and filmed Forrest, Max and the officials so you could share in the lovely moment.
You can view video clips from the award ceremony here:
http://www.lummifilm.com/rounder/
The award is named after Max Evan's humorous novel about cowboying and ranching called, The Rounders. The book was a best seller and was made into a movie in 1965 with Henry Fonda and Glenn Ford. One year later it was a TV series on CBS starring Ron Hayes and Patrick Wayne (John Wayne's son). Max Evans was a genuine cowboy in New Mexico and a genuine infantryman in WWII who participated in the invasion of Europe and ended up with a genuine cracked skull the day after D-Day. After the war Max became a cowboy artist and then gave that up for cowboy writing. Prolific is a good adjective for Max. He has around 30 books still in print.
Peggy and Forrest leaving the Governor's Mansion after the award ceremony.
The event at the Governor's Mansion hosted about a hundred cowboys and cowgirls dressed as you'd imagine in Sunday best felt hats, dark wool vests, pressed jeans and fancy boots. These colorful ranchers traveled from all over the State to be there. Forrest seemed to know just about all of them. The Governor, Susana Martinez was there as well as Max and Forrest and writer Slim Randles who also received a Rounders Award this year.
The Rounders Award honors Forrest for a lifetime of work that has promoted and enhanced the culture of the American west.
dal….
This entry was posted in More Info by dal. Bookmark the permalink.
15 thoughts on "Forrest Wins New Mexico Award…"
Looks like it was an exciting event. Nice pics. Thanks for sharing.
Shirley on October 26, 2012 at 5:22 pm said:
Forrest well deserves the award. Nice you were able to be there to see him receive it.
Michael P. on October 31, 2012 at 11:21 am said:
Greetings Dal, That was so dang nice of you to post those videos of Forrest. Your blog's give a treasure hunter peace of mind. Thanks from me and my son for helping to tune our hunting skills.
23kachinas on April 20, 2016 at 7:46 am said:
Good interview about Rounders Award: http://reportfromsantafe.com/episodes/view/145/forrest-fenn-author-the-thrill-of-the-chase/
pdenver on April 20, 2016 at 8:01 am said:
Hello 23kachinas. Thank you for posting this. I'll have to go back and listen to it once again. I wonder if Mr. Fenn will publish "Closet Stories of Taos." I've heard him talk about the book in different interviews.
23kachinas on April 20, 2016 at 6:55 pm said:
I hope he does publish Closet Stories of Taos.
locolobo on August 6, 2018 at 10:41 am said:
Dal, re your link to video clips above: http://www.lummifilm.com/rounder/
????? I sure thought I had viewed those previously(mebbe I just dreamed it). 🙂
At any rate they are not available now. I checked elsewhere and I can't find them. Could you point me to which aisle I might find them on? Or, possibly restock them here? 🙂
thanks…………..loco
Seeker on August 6, 2018 at 10:48 am said:
Hey Loco,
I tried it and it worked… lol but I used your posted link; same as above.
What came up was a brown background and NM symbol and nothing else, untli I click on that and the first video popped up.
dal on August 6, 2018 at 11:01 am said:
loco-
They play for me…but maybe I scare them into playing..
When you click on the page and it loads up, yell as loud as you can at your monitor, "You better play or I'll terminate your code!"…
That should do it…
Those videos are old flash videos and Chris tells me that a lot of browsers have terminated flash I suppose because it is so vulnerable to security issues…
Perhaps your browser has terminated flash…
I'll see if I moved them to Vimeo…
By the way…Chris is going to move all the videos to YouTube and relink them in the next week or so and that should help immensely…as well as save me some money for Vimeo Pro fees… 🙂
ken on August 6, 2018 at 11:52 am said:
Dal…I yelled @ MY monitor and Cortana told me to pipe down.
I unhid the Rounder videos that were on Vimeo…so you can view them from there instead of the Flash versions on the Rounder blog page…
I will get them relinked later…
But the 4 URLs on Vimeo are:
locolobo on August 6, 2018 at 1:42 pm said:
You da MAN!! Thanks for everything!! 🙂
Meadowlark on August 6, 2018 at 11:38 am said:
Congratulations to Mr. Fenn and to those who made the excellent choice to recognize him, well deserved.
Lady V on August 6, 2018 at 12:10 pm said:
Wow! Thanks for posting, Dal. Forrest looks good and happy.
Treasure Happy on August 6, 2018 at 12:11 pm said:
Wow, this is so cool! Thanks for posting and sharing Dal, what an amazing event to document. I feel blessed just be part of the chase, much less able to witness the effect it is having on the country. Forrest is a living legend in my eyes and will go down as the maverick that made fairy tales come back to life and pioneering relevant to so many! I've found the kid in me again and owe the credit to Forrest and folks like you that have pour so much time and dedication into this adventure and thrill of it all.
Mary's lamb on Side Tracked…


Melissa and Chris had a beautiful wedding on a perfect day. I couldn't have asked for better light for our creative portraits at Knox Presbyterian and Ault Park. Absolutely stunning, if I say so myself.
Melissa and Chris, Kaplan family, Jones family, and wedding party, thank you for your hospitality and a great day. Congratulations Chris and Melissa!


text:
Yad Vashem To Unveil 'The Book Of Names' At The United Nations
NEW YORK (JNS) - It's a book filled with the names of 4.8 million murder victims. The blank pages at the end, though, are especially haunting. In recognition of this year's Inte...
THE DEFINITIVE RAP: Holocaust Remembrance Day, Interview with Dr Moshe Katz
It is 80 years since the Holocaust began. The lessons we have learned in history is that we cannot forget what has happened. We cannot forget because of the victims, their persecut...
Deri Criticizes Supreme Court Decision, Promises To 'Return Ballot To The Voters'
JERUSALEM (JNS) - Coalition lawmakers gathered at a Shas faction meeting at the Knesset in a show of support for party chairman Aryeh Deri on Monday. Prime Minister Benjamin Net...
Jordanian Court Orders Israel To Pay $500K To Shooting Victim
AMMAN (JNS) - A Jordanian court ordered Israel's embassy in Amman to pay $500,000 in compensation to a Jordanian citizen injured by an embassy security guard on July 23, 2017. T...
AJC Head Working With 'Israeli Friends' To Prevent Changes To Law Of Return
NEW YORK (JNS) - American Jewish Committee CEO Ted Deutch said he is working with his Israeli friends to prevent the government in Jerusalem from changing the Law of Return. Und...
Likud MKs Call On Government To Raze Illegal Village Of Khan Al-Ahmar
JERUSALEM (JNS) - Knesset member Danny Danon (Likud) on Monday morning led a fact-finding visit to a hilltop overlooking the illegal Bedouin encampment of Khan al-Ahmar, located on...
Eda Chareidis Joins Farmers Prayers For Rain After Dryest Winter Months In Past 50 Years
JERUSALEM (VINnews) — Israel is experiencing one of the dryest winters in recent years, with precipitation at the end of January at less than 60% of annual levels. Worried farmers ...
Tucker Carlson Mocks Israeli Leftist Singer Ahinoam Nini For Davos 'Lizard Overlords' Performance
NEW YORK (VINnews) — Conservative commentator Tucker Carlson is known for his sometimes controversial statements regarding liberals and left-wingers. In his latest show, Carlson ch...
Netanyahu Assures US National Security Advisor That 'Judicial Reforms Will Have Broad Consensus, Unlike Current Proposal'
JERUSALEM (VINnews) — During a meeting last week between Israeli Prime Minister Benjamin Netanyahu and US National Security Advisor Jake Sullivan, Netanyahu conveyed a message of r...
Israeli Envoy To Canada To Step Down In Protest Against Netanyahu Government
JERUSALEM (AP) - Israeli Ambassador to Canada Ronen Hoffman announced on Sunday he will step down from his post later this year due to ideological differences with the Benjamin Net...
Police Arrest 14-Year-Old Arab Terrorist With Knife In Old City
JERUSALEM (VINnews) — A 14-year-old Arab boy from the Issawiya neighborhood of Jerusalem was arrested Saturday night in the Old City after allegedly intending to carry out a stabbi...
Netanyahu To Fire Deri In Accordance With Court Ruling, No Replacements Expected Until New Legislation Passes
JERUSALEM (VINnews) — Israeli Prime Minister Binyamin Netanyahu is expected to implement the directive of the Supreme Court and fire Shas leader Aryeh Deri from his government duri...
Palestinian Who Allegedly Tried To Stab Israeli Fatally Shot
JERUSALEM (AP) — A Palestinian militant allegedly tried to stab an Israeli in the occupied West Bank on Saturday and the Israeli shot and killed the Palestinian. The Palestinian H...
100,000 Israelis Protest Against Govt's Judicial Reform
TEL AVIV, Israel (AP) — Tens of thousands of Israelis gathered in Tel Aviv on Saturday night to protest plans by Prime Minister Benjamin Netanyahu's new government to overhaul the ...
Wall Street Journal Explains Need For Judicial Reform In Israel: Supreme Court Is 'Threat To Democracy'
JERUSALEM (VINnews) — After New York Times journalist Thomas Friedman called Tuesday for President Biden to intervene in Israel's judicial reforms, claiming that they will negative...
Right-Wing Leaders Criticize Netanyahu For Hurrying To Dismantle Outpost 'Like Previous Government'
JERUSALEM (VINnews) — Right-wing leaders criticized Israeli prime minister Netanyahu and Defense Minister Yoav Galant for hurrying to dismantle an outpost erected early Friday morn...
Bar-Ilan Hosts Int'l Confab To Honor Jonathan Sacks's Ideas
JERUSALEM (JNS) - The Rabbi Sacks Legacy and Bar-Ilan University hosted a three-day international conference focusing on the views of the late Rabbi Lord Jonathan Sacks on counteri...
Netanyahu: US A 'Trusted Partner' In Promoting Security, Advancing Peace
JERUSALEM (JNS) - Prime Minister Benjamin Netanyahu met on Thursday in Jerusalem with U.S. National Security Advisor Jake Sullivan, the highest-level Biden administration official ...
Ben-Gvir: Maher Younis Should Be Shipped Off To Syria
JERUSALEM (JNS) - Israeli National Security Minister Itamar Ben-Gvir on Thursday expressed satisfaction with police efforts to prevent any major celebrations for Maher Younis, who ...
Israel's Attorney General Calls On Netanyahu To Fire Deri
JERUSALEM (JNS) - Attorney General Gali Baharav-Miara demanded on Thursday that Prime Minister Benjamin Netanyahu fire coalition partner Aryeh Deri of the Shas Party from his gover...


text:
Q: KDE start Thunderbird on specific Dekstop at startup I want to start Thunderbird on a specific Desktop at startup of KDE.
I found the autostart settings but I did not find any option to start the program on a different Desktop.
How can I do this? Is there a command to start a program on a different Desktop that I could execute from a script at startup?

A: Right click on titlebar ot ThunderBird, click More Actions -> Special Application Settings -> Size & Position.  Check the box to the left of Desktop, select 'Apply Initially' or 'Force' (depending on whether you might move it later) in the first dropdown, then the desktop you want in the second dropdown.

redpajama_set_name: RedPajamaStackExchange


I completed this three-column scooter drawing a couple weeks ago. The Post-Its are dual purpose: They keep my hand from smearing the next column over (Sakura Pigma Graphic pens like to smear), and they keep me from getting overly enthusiastic and adding a scooter where I hadn't planned on one. This drawing is kind of a warm-up for a larger piece I'm going to start as soon as I can find a 36X48″ piece of paper that isn't wrinkled, rumpled or rippled.


httpwww.globalchange.com Environment, innovation, agility, business. Video of Patrick Dixon at Globe Forum 2009. Sustainable business and how green technology will help sustainability, climate change, global warming, water shortages, food shortages, transport, energy, fuel, cities. Future aviation, travel, rail, cars, tourism, corporate travel, heating, lighting, heat pumps. Solar cells, wind power, biofuels, alternatiive energy generation. Future of coil, oil, gas and nuclear power. Electric vehicles. Green living. Protecting rainforests. Why climate change and other sustainability issues can be solved. Costs of global warming action. Marketing of green tech. Open innovation and crowdsourcing. Leadership of business and government. Government regulation, politics and political agreement. Activists and campaigning.


text:
'Confident Minister Khaw will sort things out': Shanmugam after Joo Koon train collision
16 Nov 2017 07:52AM (Updated: 16 Nov 2017 12:47PM )
SINGAPORE: Minister for Home Affairs K Shanmugam said he was "confident" that Transport Minister Khaw Boon Wan will be able to "sort things out" following Wednesday's (Nov 15) train collision at Joo Koon MRT station.
Twenty-nine people were injured in the incident and taken to Ng Teng Fong Hospital and the National University Hospital.
Mr Khaw apologised to commuters for what he described as an "awful day".
In his Facebook post just after midnight on Thursday, Mr Shanmugam said yesterday's collision added to the recent MRT-related issues that have "sorely tested the public mood".
"People naturally ask why these problems are recurring. They are fed up, despite the overall improvement in transport. When trains get delayed, people feel it acutely, and the overall measurements of disruption free periods mean less to them.
"I am confident Minister Khaw will sort things out. He went into MOT in October 2015. Since then there have been significant improvements, building on the good work of his predecessor, Minister Lui Tuck Yew. Of special note, Minister Khaw has moved to strengthen the engineering teams," he said.
Mr Shanmugam, who is also the Minister for Law, added that from a public perspective, all the "hard work, good work has been affected by the recent serious incident".
"Meanwhile all our prayers and thoughts are with the 29 people who had been injured in today's collision of trains," he said.
Following yesterday's incident, Mr Khaw said he advised SMRT and LTA to suspend train service from Joo Koon and Tuas Link stations for system provider Thales to conduct a thorough check.
In its tweet at 4.43am on Thursday, SMRT confirmed that there will be no train service between Joo Koon and Tuas Link on the East-West Line.
[EWL]:Train svc btwn #JooKoon & #TuasLink is suspended. Free regular & bridging bus svcs are available btwn #JooKoon & #TuasLink all day.
— SMRT Corporation (@SMRT_Singapore) November 15, 2017
SMRT said free regular and bridging bus services are available between the two stations all day.
Source: CNA/mn
Shanmugam
Khaw Boon Wan
train disruptions


Mabel Mustapha has been the head of the CRC's Education Department for sixteen years. She attended a UMC primary school and Bishop Johnson Secondary school in Freetown, before attending Port Loko's teacher's college in Port Loko. She also studied community development at Theologica Training College. Mabel has one 26 year old son.
What do you like most about working at the CRC?: "I really thank God, it has really improved my life, I have really learned a lot about children and leadership.
What is your biggest accomplishment?: "The number one success is the 40 original children we started with in 2000. Seeing them pass through my hands and go on to university and come back to do great things for CRC. Also, I started as an intermediate staff and passed to become a senior staff. I think I really understand the organization, children, and partners.
How does it feel to see the children you raised grow up and become your coworkers?: "I feel so good. They have that respect and they really appreciate all that has been done for them when they were growing up.


text:
Q: Input difficulties with \usepackage{devanagari} I am using the standard miktex package
\usepackage{devanagari}

however, using the same input examples as written in the file manual produces very different results, i.e. there is a duplication of vowels nearly after every letter. instead of devAnAM priyaH, the output becomes daeva a a na a a m parai ... etc.
The document in full is:
\documentclass[A4,11pt]{report}
\usepackage{devanagari}
\usepackage[utf8]{inputenc}

\begin{document}
\input dnmacs

    {\dn devaanaa.m priya.h}

\end{document}

A: You are probably misunderstanding how the devanagari package works.
I saved your example in a file gyalten.tex and typeset it with pdflatex (but removed \input dnmacs, which is foreign to LaTeX) and got

which is possibly what you mean by daeva a a na a a m parai.
If I change the name of the file to gyalten.dn as
\documentclass[a4paper,11pt]{report}
\usepackage{devanagari}
\usepackage[utf8]{inputenc}

\begin{document}

    {\dn devaanaa.m priya.h}

\end{document}

then run the script devnag from the command line
devnag gyalten

so that a file gyalten.tex is produced. Running pdflatex on this preprocessed file gives

which might be the expected result. Sorry, I know nothing else about Devanagari.


Enter the new ASM Shop by clicking here.
We have recently created a new shop where you can shop for cool clothing for men, women, kids and babies.
We now carry lots of styles to choose from as well as a few items for your home or office.
We hope you enjoy shopping in our new Shop, hosted by Cafepress.com.


text:
//
//  TDCCommonCategory.h
//  1111
//
//  Created by chengxi on 16/11/20.
//  Copyright © 2016年 chengxi. All rights reserved.
//   使用时只需要导入本头文件就可以了,其他头文件无需导入

#ifndef TDCCommonCategory_h
#define TDCCommonCategory_h

#import "UIView+TDC.h"
#import "UIImage+Fit.h"
#import "UIColor+HexColor.h"
#import "UILabel+TDC.h"
#import "UIBarButtonItem+TDC.h"
#import "NSDate+TDC.h"
#import "NSString+Util.h"
#import "UIImageView+TDC.h"

#endif /* TDCCommonCategory_h */

redpajama_set_name: RedPajamaGithub


text:
How old was Woody Harrelson in No Country for Old Men?
Woody Harrelson was 45 in No Country for Old Men when he played the character 'Carson Wells'.
Today he is 59, and has starred in 95 movies in total, 46 since No Country for Old Men was released.
In No Country for Old Men, I think Woody Harrelson looks:
No Country for Old Men scores 7.8 out of 10 on The Movie Database.
Woody Harrelson's first acting role was as 'Extra (uncredited)' in Harper Valley P.T.A., released in 1978 when he was 16.
Also in No Country for Old Men
How old was Tommy Lee Jones in No Country for Old Men?
How old was Javier Bardem in No Country for Old Men?
How old was Kelly Macdonald in No Country for Old Men?
How old was Josh Brolin in No Country for Old Men?
Woody Harrelson in other movies
How old was Woody Harrelson in The Hunger Games?
How old was Woody Harrelson in The Hunger Games: Catching Fire?
How old was Woody Harrelson in The Hunger Games: Mockingjay - Part 1?
How old was Woody Harrelson in Now You See Me?
How old was Woody Harrelson in Zombieland?
How old was Woody Harrelson in Now You See Me 2?
How old was Woody Harrelson in War for the Planet of the Apes?
How old was Woody Harrelson in Friends with Benefits?
How old was Woody Harrelson in Seven Pounds?
How old was Woody Harrelson in Three Billboards Outside Ebbing, Missouri?
How old was Woody Harrelson in Seven Psychopaths?
How old was Woody Harrelson in The Edge of Seventeen?
How old was Woody Harrelson in Natural Born Killers?
How old was Woody Harrelson in Triple 9?
How old was Woody Harrelson in Out of the Furnace?
How old was Woody Harrelson in A Scanner Darkly?
How old was Woody Harrelson in White Men Can't Jump?
How old was Woody Harrelson in Wag the Dog?
How old was Woody Harrelson in Indecent Proposal?
How old was Woody Harrelson in Free Birds?
How old was Woody Harrelson in Semi-Pro?
How old was Woody Harrelson in Money Train?
How old was Woody Harrelson in Transsiberian?
How old was Woody Harrelson in Edtv?
How old was Woody Harrelson in Harper Valley P.T.A.?


Walmart's transition into your one-stop shop for blocked arteries continues, and frozen-food-aisle fried Twinkies will merely serve as the gateway drug: A Texas State Fair–themed restaurant could soon occupy a year-round spot inside your neighborhood Supercenter. State Fair Treats, as it's called, will feature a 45-item menu "celebrating the treats families enjoy every year when they make an annual pilgrimage to the fair" — unhealthy things fried in oil, in other words. At least it beats other themes the company recently backed (specifically, the one where customers were asked to "never forget" $3.33 Coke products arranged to look like the Twin Towers).
The first eatery opens this month in Dallas (home to the fairgrounds), but the Morning News reports owner Isaac Russo, whose food often wins at each year's Big Tex Choice Awards, is already thinking much bigger: "There are many, many McDonald's that are going to be transitioning out" of Walmart stores, he tells the paper. "We're going to be looking at every opportunity as they transition out to jump in." He already predicts 15 locations within the year. Walmart refused to confirm anything, but a rep did warn the News that the "vast majority" of its 4,600-plus U.S. stores theoretically have space to accommodate a State Fair Treats.
Obviously, the real winner here is Russo. He's on track to go from a man with a popular fair stand to a millionaire restaurateur with locations spread throughout the nation's Walmarts. What will be on that giant menu of his is anyone's guess (it should be noted that Russo is the force behind cookie fries and deep-fried Pop-Tarts), although if he made it a collaborative effort by all Texas fair concessionaires, he could throw in fried Jell-O, fried butter, fried Coke, fried meatloaf, fried Thanksgiving dinner, chicken-fried lobster, and even funnel cake ale to cut through all the oil.


text:
TomKat Spotlights, Innovation Transfer, Energy Management and Efficiency
Stanford grads pave the way for electric vehicles
Today about 2 percent of new car sales are for electric vehicles, and fewer than 1 percent of vehicles on the road are electric. Last month, the federal government and automakers laid out plans for changing that. PHOTO: Ralph Hutter | Unsplash
What will be the future of the automobile industry?
"It's electric and there's no turning back," said President Biden in August, before signing a new executive order that sets a target for half of all new car sales in the United States to be electric vehicles by 2030.
"The question is whether we'll lead or fall behind in the race for the future."
Yet as automakers such as General Motors and Ford ramp up plans for electrifying their fleets, there remains another question in the background: Will energy utilities be ready?
A better grid
Regular[1] charging of an electric vehicle can increase the electricity demand of a household by as much as 50 percent. So, the federal announcement lends urgency to a message that two Stanford graduates have been sharing for years now.
"For us, a big part of what we try to help utilities answer is what happens as more and more people start going electric?" says Apoorv Bhargava, MS/MBA '17, (left) cofounder and CEO of WeaveGrid.
"How will 1,000 to 10,000 to 100,000 to millions of people going electric start to impact that system?"
The venture is focused on preparing utilities for the coming wave of electric vehicles—and the high-powered impact of their charging needs.
Bhargava and cofounder and CTO John Taggart, MS '13, PhD '19, (right) hope to integrate renewable energy and keep the nation's electric grid from becoming a bottleneck on the road to decarbonizing. Currently, more than half of the nation's carbon emissions can be traced back to driving and electricity use: 29 percent from transportation, and 25 percent from power generation.[2]
"Ultimately we look at our scope of influence not really as just transportation, or electricity; we look at it as both," says Bhargava.
A mutual friend introduced the cofounders, who quickly discovered that their professional experiences complement each other.
Bhargava spent years consulting for electricity utilities and later working for energy startup Opower, before enrolling at Stanford Graduate School of Business and the Emmett Interdisciplinary Program in Environment and Resources (E-IPER). Meanwhile, Taggart focused on sustainability projects for Tesla before completing a PhD in management science and engineering. When choosing a part of "the carbon stack to target," as Bhargava put it, they found their thinking aligned.
"When we put our heads together, the solution was very obvious," he says.
The two began exploring how they could work together, and they found early and pivotal support with an Innovation Transfer Grant from the TomKat Center in 2018.
Today the venture operates from San Francisco with a team of 30 employees. In summer 2021, the startup raised $15 million in its Series A fundraising.
"We've really prided ourselves on hiring people who are truly exceptional," says Taggart.
The storm ahead
Across the United States last year, power outages followed on the heels of extreme weather—from wildfires in California to tropical storms in New York, snow in gulf Texas to blazing temperatures in the Pacific Northwest.
"What we're realizing through these massive weather events is that the grid is neither a monolith nor is it incredibly resilient," says Bhargava. "In this brave new world, as it were, how do you ensure the system is reliable?"
In some ways, the challenges posed by electric vehicles to the grid are similar to these weather-driven outages. Electricity use fluctuates throughout the day, with peak demand typically happening around 5 to 6 pm, [3] right as drivers return home and plug in their cars, turn on the kitchen stove, and blast the air conditioner or heater, whichever the case may be.
In other ways, EVs pose a completely different challenge. Bhargava explains that electric vehicles may crash the grid in neighborhoods, but not across the whole state. Also, a thermostat can't drive away like a car does.
It's a perplexing problem for utilities. How can they learn to predict the load on their system when the variables increasingly include not only time, but location—and a moving target as more electric vehicles take to the road?
This is the service that WeaveGrid offers to energy companies. They help utilities untangle this mess of variables and plan for what's next.
The software solution
The first step: Gather data.
WeaveGrid uses machine learning and data analytics to forecast electricity use from EVs. With data in hand, utilities can then roll out technologies or incentives designed to nudge customers toward behaviors that soften the peaks in electricity demand.
An example of this is what is called smart charging. Drivers plug in their electric vehicles as soon as they return home, but the charging actually begins later, around, say, 9 p.m. when grid demands are lower.
"One of the big things that we believe is that customers shouldn't be told to charge at the 'right times.' That's too much cognitive burden on people," says Bhargava, as WeaveGrid also advises utilities on customer programs. "So, it's much more about automating it and making it super seamless for drivers."
"Not only can the grid support it if managed intelligently, but actually the EVs can act as a resource to create a lot of value for the grid," he says.
An electric vehicle is first and foremost a mode of transportation for the owner, but electric cars could also eventually have the potential to serve as battery storage for the grid or as backup power for homeowners, as recently announced by Ford.
Bhargava says his message to energy utilities is simply this: "How can we partner with you to ensure that electrification is a blessing for you overall, rather than a bit of a curse?"
And yes, they're hiring now. Or as Taggart's LinkedIn profile put it: "We are (very) actively hiring."
[1]Source: Boston Consulting Group (see second infographic)
[2]Source: U.S. EPA
[3]Source: U.S. Energy Information Administration
More News Topics
TomKat Spotlights Innovation Transfer Energy Management and Efficiency
TomKat Solutions submissions requested by 1/7/2022
Forbes selects 10 Stanford students and alumni in cleantech for "30 Under 30"
Virtuous Cycle
Postdoc Fellowships
TomKat Spotlights


In two centuries of American ornithology, The Birds of North America (BNA) is only the fourth comprehensive reference covering the life histories of North America's breeding birds. Following in the footsteps of Wilson, Audubon, and Bent, BNA provides a quantum leap in information beyond what those historic figures were able to assemble. The print version of BNA was completed in 2002 - 18 volumes, 18,000 pages -- a joint 10 year project of the American Ornithologists' Union, the Cornell Lab of Ornithology, and the Academy of Natural Sciences. Now as an online project of the Cornell Lab of Ornithology, BNA is becoming a living resource. Account contents are updated frequently, with contributions from researchers, citizen scientists, and designated reviewers and editors. In addition, BNA Online contains image and video galleries showing plumages, behaviors, habitat, nests and eggs, and more. And most online BNA accounts now feature recordings of the songs and calls of their species, recordings from the extensive collection of Cornell's Macaulay Library of Natural Sounds.
The DoD PIF program provides a BNA access code for every military installation with an INRMP. If you do not yet have your BNA access code, contact the appropriate Service liaison.
To activate your access code, access the BNA Online Login page, then fill out the form and enter your access code.
Once you have created a login, access the BNA Online main page, enter your username and password and click the Login button.


text:
Q: JavaScript - 'this' inside setTimeout and requestAnimationFrame My question is related to the following:
setTimeout() inside JavaScript Class using "this"
calling a function inside setTimeout and inside a function
I'm trying to implement a simple animation loop. The draw function is a member function of a state object. I'm having problems getting 'this' to work within the setTimeout and requestAnimationFrame.
I have the following code:
ANIM.State.prototype = {
    constructor: ANIM.State,
    play: function(){
        if(!this.paused){
            var that = this;
            setTimeout(function(){
                requestAnimationFrame(that.play);
                that.setFrameNum(that.currentFrame + 1); //draw code is in here
            }, 1000 / 24);
        }
    }
};

However, when I call play(), it runs twice and stops.
Is there a better way to do this? I'd really like to keep this function as a class function, and not a global one, if possible.

A: You can solve your issue with .bind() like this:
requestAnimationFrame(that.play.bind(that));

The problem is all that is passed to requestAnimationFrame() is a reference to the .play method and it is then executed as a normal function call so this inside it will be wrong and will not point to your object.  This is a common problem when passing a method as a callback where you want it to be called as obj.method().
There are numerous possible work-arounds, but the easiest in modern browsers is to use .bind() as I've shown above.  This actually creates a small stub function that then calls that.play() rather than just play() so that the object reference is used as you need and it's that stub function that is passed to requestAnimationFrame().
You could also do it like this (creating your own stub function), though .bind() seems cleaner to me:
requestAnimationFrame(function() {
    that.play();
});


text:
Q: Generate & Comparing Loop using Functions in array - C Programming I'm new to c programming. Please teach me and help me to simplify this. I don't know how to make this code a simpler one. My major problem is how to use a 1 dimensional array to create 5 rows 10 columns using loop in a proper way. And the similarity code have some problems too. I must do 4 functions, the first one is to generate array then pass it to the next functions. Then I must show the smallest and biggest integer, including the index. Sort the first array, then generate another array. Compare the first and the second array. I did that but both has the same set of arrays. Lastly , I have to find the similarity of integers between the two.
#include <stdlib.h>

int* generate();
void showrange(int ptr[50]);
void sort(int ptr[50]);
void generate2(int ptr[50]);

int main () {

    int* ptr = generate();
    showrange(ptr);
    sort(ptr);
    generate2(ptr);

    return 0;
}
int* generate() {

    static int arr[50];
    printf("1st generated array\n");
    printf("Output array items:\n");
    for(int i = 0; i<50; i++) {
        arr[i] = rand()%999;
    }
    for(int i = 0; i<10; i++) {
        printf("%d\t", arr[i]);}
        printf("\n");
    for(int i = 10; i<20; i++) {
        printf("%d\t", arr[i]);}
        printf("\n");
    for(int i = 20; i<30; i++) {
        printf("%d\t", arr[i]);}
        printf("\n");
    for(int i = 30; i<40; i++) {
        printf("%d\t", arr[i]);}
        printf("\n");
    for(int i = 40; i<50; i++) {
        printf("%d\t", arr[i]);}
        printf("\n");

    return arr;
}
void showrange(int ptr[50]) {

    int smallestint = 999, index1, largestint = ptr[0], index2;
    for(int i = 0; i<50; i++) {
        if (smallestint > ptr[i]) {
            smallestint = ptr[i];
            index1 = i;
        }
    }
    for(int i = 0; i<50; i++) {
        if (largestint < ptr[i]) {
            largestint = ptr[i];
            index2 = i;
        }
    }
    printf("\nSmallest int: %d \t Index: %d \n", smallestint, index1);
    printf("Largest int : %d \t Index: %d \n\n", largestint, index2);
}

void sort(int ptr[50]) {

    int temp = 0;
    for (int i = 0; i < 50; i++) {
        for (int j = i+1; j < 50; j++) {
           if(ptr[i] > ptr[j]) {
               temp = ptr[i];
               ptr[i] = ptr[j];
               ptr[j] = temp;
           }
        }
    }

    printf("\nSorted output array items:\n");
    for(int i = 0; i<10; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 10; i<20; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 20; i<30; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 30; i<40; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 40; i<50; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
}
void generate2(int ptr[50]) {

    int arr2[50], similarno, similar = 0, totalsimilar = 0;
    double percentage;
    printf("\n2nd generated array\n");
    printf("Output array items:\n");
    for(int j = 0; j<50; j++)
        arr2[j] = rand()%999;

     for(int i = 0; i<10; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 10; i<20; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 20; i<30; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 30; i<40; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");
    for(int i = 40; i<50; i++) {
        printf("%d\t", ptr[i]);}
        printf("\n");

    for(int a = 0; a<50; a++) {
        for(int b = 0; b<50; b++)
        if (ptr[a] == arr2[b])
        similarno = arr2[b];
        printf("%d similar\n", similarno);
        similar ++;
        }
    totalsimilar += similar;
    percentage = totalsimilar/50*100;
    printf("%d numbers similar. %.1f%% similarity.", totalsimilar, percentage);
}````

A:
I don't know how to make this code a simpler one. My major problem is
how to use a 1 dimensional array to create 5 rows 10 columns using
loop in a proper way.

If you want to simplify this
for(int i = 0; i<10; i++) {
    printf("%d\t", ptr[i]);}
    printf("\n");
for(int i = 10; i<20; i++) {
    printf("%d\t", ptr[i]);}
    printf("\n");
for(int i = 20; i<30; i++) {
    printf("%d\t", ptr[i]);}
    printf("\n");
for(int i = 30; i<40; i++) {
    printf("%d\t", ptr[i]);}
    printf("\n");
for(int i = 40; i<50; i++) {
    printf("%d\t", ptr[i]);}
    printf("\n");

You can do this
for (int i = 0; i < 50; i++){
    printf("%d\t", ptr[i]);
    if ((i + 1) % 10 == 0)  //new-line character after every diffrence of 10
        printf("\n");
}

OR  (copied it from 0___________, it is simplified more than mine one)
for (int i = 0; i < 50; i++)
    printf("%d%s", ptr[i], ((i + 1) % 10) ? "\t" : "\n");

But this might increase time coplexity as this will make program execute conditional statement each time loop is run.

A: I wlll help you with generate function:
int *generate(size_t size)
{
    int *arr = malloc(size * sizeof(*arr));
    if(arr)
    {
        for(size_t index = 0; index < size; index++)
        {
            arr[index] = rand() % 1000;
            printf("%d%s", arr[index], ((index + 1) % 10) ? ",\t" : "\n");
        }
    }
    return arr;
}

A: showrange() can be simplified so you find min/max in one loop :
void showrange(int ptr[], int size)
{
    int smallestint = ptr[0], index1, largestint = ptr[0], index2;

    for (int i = 0; i < size; i++)
    {
        if (smallestint > ptr[i]) /* find min */
        {
            smallestint = ptr[i];
            index1 = i;
        }

        if (largestint < ptr[i]) /* find max */
        {
            largestint = ptr[i];
            index2 = i;
        }
    }

    printf("\nSmallest int: %d \t Index: %d \n", smallestint, index1);
    printf("Largest int : %d \t Index: %d \n\n", largestint, index2);
}

Also don't forget to seed your time generator in main().
int main()
{

    ...
    srand(time(NULL));

    return 0;
}

Also, instead of multiple printf() statements, you can have a print function to display the contents of the array.
void print_arr(int arr[], int size)
{
    for (int i = 0; i < size; i++)
    {
        printf("%d\t", arr[i]);
        if ((i + 1) % 10 == 0)
        {
            printf("\n");
        }
    }
    printf("\n");
}

(i + 10) % 10 will print a newline each time you reach a number exactly divisible by 10.

A: This might help with generating the array. It's the most concise I can think to code it without using an explicit conditional the way Pankaj-Talesara did it. And you will have the time problems that come with nested for loops
for(int i = 0; i < 5; i++){
    for(int j = 0; j < 10; j++){
        int currentIndex = (i * 10) + j;
        arr[currentIndex] = rand()%1000;
        printf("%d\t", arr[currentIndex]);
    }
    printf("\n");
}


HOUSTON, TX, SEPTEMBER 10, 2013: Coastal Flow Liquid Measurement, Inc. (Houston, TX), in alliance with Flow Management Devices, LLC. (Phoenix, AZ) and Applied Metrology Resources, LP (Houston, TX), today announced the launch plans and schedule for TruProof, an innovative and exceptionally accurate solution for advanced meter proving that will be especially beneficial for hydrocarbon gas and liquid measurement.
The result of more than 10 years of comprehensive R&D, and with a focus on reducing errors associated with manufactured pulse technologies produced by signal delay, the TruProof technology dramatically improves the accuracy and repeatability of meter proving. Software based on this methodology employs time correlation to synchronize a meter's output signal with the comparative prover volume measured during the meter proving process.
An eponymous microprocessor-based device which incorporates the TruProof technology is planned for commercial release during the fourth quarter of 2013. This rugged and highly portable hardware will integrate with existing proving systems — such as the state-of-the-art provers manufactured by Flow Management Devices, as well as industry-leading meter performance software PROVEit® from Flow-Cal, Inc. (Houston, TX) — to bring these technical advances, including time correlation, to mainstream industrial meter proving. Coastal Flow Liquid Measurement will be Master Distributor for TruProof and a North American sales representative, while Flow Management Devices will be a worldwide OEM sales representative. The three-company alliance will also be developing channels for TruProof international sales.
Mr. Galen Cotton, a highly experienced instrumentation industry executive, formerly a partner and senior manager with Caldon (later acquired by Cameron) and other major firms, and now principal with Applied Metrology Resources, expressed his unqualified support for TruProof when describing its technical development. Mr. Cotton said, "The three organizations involved in the development of TruProof's leading-edge technology are all leaders in their respective flow measurement industry segments, and each contributed considerable technical resources for TruProof's development. The fruits of those labors will undoubtedly have a significant impact on industrial flow measurement, in general, and custody transfer applications, in particular."
More details on TruProof are available from Mr. Stephen Whitman of Coastal Flow (TruProof@coastalflow.com) or Mr. Alex Ignatian of Flow MD (TruProof@flowmd.com), as well as on the web (www.TruProof.com).
Phoenix, Arizona based Flow Management Devices, LLC (Flow MD), a privately owned engineering and manufacturing company, is among the fastest growing companies in the U.S. The management at Flow MD has over 30 years of combined experience in the design and manufacture of Small Volume Provers as well as fluid measurement devices and systems. More information regarding Flow Management Devices and their products is available on the web at www.flowmd.com or by phone at 602-233-9885.
Houston, Texas based Applied Metrology Resources, a well-respected measurement consultancy to the oil and gas industry, provides a broad range of technical services, from fundamental research to operational assessments, training, and troubleshooting.


text:
Taking Care of our Most Vulnerable Veterans
Breaking News | Bullhead City | Economy | Featured Story | Kingman | Lake Havasu City | Our Area | Press Release | The Bee Cares
Senator Borelli's bill takes care of our most vulnerable veterans
(State Capitol, Phoenix) – Senator Borelli served in the United States Marine Corps from 1977 to 1999 and continues to serve the county today in the Arizona Legislature. He understands the struggles of our veterans and strives to promote and address their needs on the legislative level.
Thursday, January 9th he introduced a bill, SB 1112, that would establish a veterans' home facility in Mohave County. Veterans' homes are nursing and rehabilitative care facilities, whose goal is to maintain veterans' highest practicable physical, mental and psychosocial well-being. Staff provides skilled nursing care to veterans. Care includes nursing, therapeutic recreation, and social services.
"The first cost of our freedom is to take care of our veterans," said Senator Borreli. "I will do everything I can to take care of those who served our country."
If it's signed into law, the State would cover 35% of the cost of building the home, while the federal government would be responsible for funding the remaining 65% and funding the operation costs. This will create hobs and serve as an economic driver in his county while helping veterans.
"We are the freest and most prosperous country in the world because of our veterans," said Representative Leo Biasiucci who is co-sponsoring the bill. "These brave men and women risked their lives for this country, and I am happy to do whatever I can to help them."
Mohave County has one of the highest rates of veteran populations in the state. Right now, there are veterans' homes in Phoenix and Tucson, and two more are being built in Yuma and Flagstaff. Once the feasibility study is concluded for the Northwest Region, and Senator Borelli's bill becomes law, experts will determine whether the home is built in Kingman, Bullhead City, or Lake Havasu City.
← Prev: Scout Unit 104 is hosting a Cake and Sweet Confections Fundraiser Next: Our local dentists →


At the beginning of your upkeep, put a spore counter on Psychotrope Thallid.
Remove three spore counters from Psychotrope Thallid: Put a 1/1 green Saproling creature token onto the battlefield.
, Sacrifice a Saproling: Draw a card.


The Drowning Full Movie Free Download 720p Movies Paper. Download The Drowning Movie HD in a just single click. Click the download button and you will Download The Drowning 2016 Full Movie HD 720p Bluray.
The Drowning 2016 is a Hollywood movie in the English language. Bette Gordon is the Director of English Movie. Daniel Blanc, Jolian Blevins, Radium Cheung, are the Producer of this movie. The Writer of this Movie is Pat Barker. The Drowning Full Movie cast includes Julia Stiles, Josh Charles, Avan Jogia, other stars.
Music of this movie is by Anton Sanko. The release date for this Movie is 2016 and 10 May 2017 in USA. The Cinematography of Hollywood Movie is by Radium Cheung. The Drowning 2016 Full Movie Free Download HD 720p from MoviesPaper.
Bringing her data-based talent to the realm of genre formula, ny movie maker Bette Gordon tackles matters of crime, guilt and redemption with a solid grasp of character and place within the Drowning. Overcoming the screenplay's agape holes in logic is another matter. Like most thrillers, this story of a toddler man of science who's drawn into Infobahn of a vindictive former patient needs a definite suspension of disbelief. Gordon, who has explored lives within the margins in selection, glowing Motion and Handsome Harry, doesn't quite manage to bridge the gaps or build each corner of the story ring true, however together with her eye for psychological import and 3 robust lead performances, she lends the fabric a compelling undertow.
At the generic heart of the drama area unit the upwards mobile Seymours, Tom (Josh Charles) and Lauren (Julia Stiles), making an attempt to conceive a toddler and totally stocked marital status tensions over work-life balance and country-vs.-city allegiances. He's a man of science whose specialty is juvenile offenders; she's a painter, courtship the hip young Brooklyn gallerists who might offer her the career break she wants. Into their domestic order, if not elation, crashes Danny Miller (Avan Jogia), a quondam tolerant Tom's who's recently been free from jail.
Tom doesn't recognize Who the young man is, though, once he 1st encounters him, Associate in Nursing apparently unsafe jumper at the stream close to Tom and Lauren's Connecticut home. Tom plunges into the water to avoid wasting him, and therefore the important battle that ensues throughout the rescue signals what's to come back. Soon Danny, who currently goes by the name Ian chemist, is befriending a remarkably trusting Lauren once he is not ugly Tom. Danny insists that he's innocent of the murder he was condemned of at age eleven, and blames Tom's court testimony for his sentence.
Though Jogia persuasively switches between charm and digestive juice, the script stacks the deck, feat no ambiguity regarding Danny's intentions. Adapting a 2001 novel by Pat Barker, writers author Molton and Frank Pugliese (showrunner for House of Cards) can't quite collect the varied threads from Danny's life, among them his violent war-vet father (Robert Clohessy) and a creepy writing teacher (Leo Fitzpatrick).
The greatest mystery within the story is that the distressing over-involvement of Danny's parole officer, Angela (Tracie Thoms), whose concern for his well being ostensibly is aware of no bounds. She's the other of the slickly misanthropical official (John C. McGinley) who tried Danny, and whose solely recommendation to Tom is to urge a gun. Angela views him as special, a broken soul with monumental potential and worth of careful handling. With way more info than Lauren is aware about, she seems even as deluded in her openness toward Danny. on the far side queries over her spirit, it's arduous to believe that Associate in Nursing worker of the justice system has the time and energy to devote to 1 shopper — to not mention discussing his case over drinks with Tom.