text
stringlengths
3
1.04M
I finally figured out how to mix with Fernet. Fernet Branca is an Italian amaro, or bitter spirit, dating back to the mid-1800s. Its vibrant blend of 27 various herbs, roots and plants lends it to often be enjoyed as a "digestif," or a drink enjoyed following a meal to ease digestion. Through some experimentation, I discovered that this was a tricky one to mix with for mass appeal due to its boldness of flavor. I found Fernet Branca to start on the fresher side, hinting at mint or eucalyptus, and to finish dry and bitter. Both the freshness and bitterness can easily overwhelm a drink if not used sparingly or with the right complements. I decided to try balancing the Fernet with fruit and tartness to mellow the bitterness while harnessing the herbal brightness. Conveniently, I had recently received two perfect spirits for the task - Malfy Italian Lemon Gin and Fabrizia Spirits Limoncello. Malfy Gin is an excellent first step for gin non-believers. It hits with lemon rather than juniper on both the nose and the palette and is surprisingly smooth even when enjoyed on the rocks. If (unlike me) you don't seek out gins that make you feel like you're drinking a forest, then I encourage you to give this one a shot! I chose to further enhance the citrus tang of this drink with Fabrizia's delicious Limoncello. If you haven't yet tried a limoncello, it's a traditional Italian lemon liqueur made from soaking lemon peel in neutral spirit and then adding simple syrup. Most of the limoncello liqueurs I had tried to date were overly sugary to the point of being undrinkable, but I truly can't get enough of this one. I love that it's true to the lemon taste and aroma with a balanced sweetness and an almost creamy finish. It's clear that this limoncello is made with huge attention to detail and generous fruit content - I really can't recommend it enough. When I think of my travels to Italy, I immediately picture the colorful cliffs and blissful beaches of Cinque Terre. I wanted this drink to channel those sights and the timeless, carefree feel of the quaint coastal towns. I added color and lightened the cocktail with cold brewed hibiscus tea. Hibiscus adds a deep, fuchsia hue and is pleasantly tart for a floral ingredient. Using hibiscus allowed me to bypass using any additional citrus, making this a a fairly easy and convenient drink to make in bulk for spring entertaining. I garnished the cocktail with fresh mint to highlight the freshness of the Fernet and a lemon twist for an extra pop of color and uplifting citrus scent. The resulting cocktail is zesty, fresh and incredibly drinkable for all palettes! Shake all ingredients with ice to chill, then strain into a sturdy, wide-mouthed wine glass over ice. Garnish with a sprig of fresh mint and a lemon twist. Enjoy outdoors with a wood-fired pizza and a view of the Mediterranean Sea. *To make cold-brewed hibiscus tea, steep 2 tbsp of dried hibiscus flowers per 8 oz of water for about 45 minutes, shaking occasionally. Strain and store excess in the fridge. Thanks to Belen Aquino for the stunning cocktail photography and to Gather Vintage Tablescapes for the glasses. The blue lacquered tray is from CB2. If you're still under the impression that there is only one type of orange, you've been seriously missing out (or masterfully avoiding grocery shopping trips since childhood). Especially at this time of the year, produce aisles are overflowing with a variety of citrus - lemons, limes, grapefruit, oranges and many combinations thereof. This gives you the perfect excuse to slow down on the weekend and enjoy breakfast in bed with a fresh and exotic mimosa. I chose to feature Cara Cara oranges for their sweeter, less acidic, and more complex taste. While they're practically identical to ordinary navel oranges from the outside (I recommend keeping them inside a separate bag in the fridge so you don't mix them up), they've got a rosier hue on the inside and a flavor reminiscent of red fruit. They're also seedless and therefore easier to use as different forms of garnish. Is using fresh citrus in a mimosa worth the extra effort? Yes, yes, and again, yes. Not only does fresh-squeezed juice have more flavor, but the aromatic experience of working with fresh citrus will pleasantly invigorate your senses. You can also set aside a few slices to snack on with breakfast or to adorn glasses if you're making these mimosas for a gathering. If you're truly concerned about the time involved, make a jar of fresh-squeezed juice in advance and refrigerate overnight. I wanted to add an herbal twist to this mimosa for more complexity so I challenged myself to experiment with an herb that was new to me: marjoram. Hailing from the same family as oregano, marjoram is a tad sweeter, with flavors of citrus and pine. It's been said to help calm anxiety and boost immunity, making it a perfect ingredient to incorporate during cold season. I find that I get the most flavor from herbs by making them into a simple syrup and adding a fresh sprig as garnish to complement taste with scent. For the bubbly, I chose to feature La Marca Prosecco because I wanted something crisp and fresh to work with the orange and herb flavors. I appreciate that this Prosecco is such a great quality for the price point and easy to find at most stores. The resulting mimosa is lightly tart, blissfully scented and pleasantly effervescent for enjoyment at any time of day. Add fresh squeezed Cara Cara orange juice and marjoram syrup to a champagne flute and stir to combine. Top with chilled Prosecco and garnish with fresh orange and a spring of marjoram. Enjoy while appreciating a slow and relaxing weekend morning. * To make syrup, dissolve 1/2 cup sugar in 2 cups water in a small saucepan, then add bunch of fresh marjoram. Simmer for 5-10 minutes, or until your desired flavor has been achieved, then strain and allow to cool. Store excess in the fridge for up to 3 weeks. Thanks to Belen Aquino for the stunning cocktail photography and to Gather Vintage Tablescapes for the tray and vintage cups and saucers. Champagne flutes are from Crate&Barrel.
GIVE A TAX FREE DONATION TODAY! As we look to continue advancing the Kingdom of God here in Reston, Virginia, without question, our mission would not be possible without the faithful support and prayers of our partners. If you are interested in helping us fuel prayer, worship, missions & market place ministry here in the greater DC, MD and Northern Virginia area, please click the following box below.
Fluffy slime without glue how to make how to make soft serve slime without borax giant fluffy how to make fluffy slime without glue borax detergent or starch fluffy slime without glue or shaving cream diy how to . Share this: Click to share on Twitter (Opens in new window) Click to share on Facebook (Opens in new window) Click to share on Google+ (Opens in new window) Related. Trending Posts... Fluffy Slime Without Borax Diy Fluffy Slime Fluffy Slime Recipe Making Fluffy Slime Easy Slime Recipe Making Slime Make Slime At Home Ways To Make Slime Slime With Elmers Glue Forward How To Make SLIME For Beginners! This Fluffy Slime With Hand Soap DIY Slime Without Borax Or the gallery form How To Make Fluffy Slime With Laundry Detergent. Hopefully you can find the best inspiration from our gallery here. Hopefully you can find the best inspiration from our gallery here.... Fluffy Slime Without Borax Diy Fluffy Slime Making Fluffy Slime Borax Slime Without Glue Slime No Glue Making Slime Bubblegum Slime Pink Slime Glitter Slime Forward in today's video, I’ll be showing you guys how to make 3 different slimes!
I had sent a request to Jim Breen at college professor who studies Japan and their culture . I have attached his reply ..His webpage offers a dictionary to look words up. Yes, it is indeed the kanji for Hayabusa, which means peregrine falcon. If you go to http://www.csse.monash.edu.au/~jwb/wwwjdic_g.html, select Search for Words in the Dictionary, and type in Hayabusa (checking the Japanese radio button), you’ll see that kanji. Hey Race, can't find the URL. hmmm try getting rid of the comma at the end of the html address. You should be able to view it then.
Pick up the phone and talk to management. I did speak to management and got answers to a few questions, but also got "no comments" as well. That's just not enough, as I can't know what's changing in the business without them providing some minimum level of info on an on-going basis.
Toro | What is Tier 4? What is EPA Tier 4? The EPA Tier 4 Standard is about cleaner air! All US regulated emission standards, including Tier 4, are extensions of the “Clean Air Act” (1963) which was enacted to reduce air pollution. The Environmental Protection Agency (EPA), which is the Federal organization responsible for managing and regulating the Clean Air Act, put forth a multi-year plan in the mid 1990’s with “tiered” mandates to reduce the level of harmful emissions such as particulate matter (PM) and Nitrogen Oxides (NOx) that enter the air via diesel engine exhaust. The "final" and most technologically challenging implementation stage, whereby engine and turf equipment manufacturers are required to produce products that comply with these most stringent emission reductions, is called “Tier 4”. The Tier 4 emission standard will reduce already reduced emissions of PM by 90%. To give you a sense for how stringent the Tier 4 standard is, consider the fact that in many parts of the United States, the air leaving Tier 4 compliant machines will actually be cleaner than the incoming air! The EPA Tier 4 specification was first applied to industries with large on-road vehicles (such as Semi Trailers and other diesel powered Trucks) and followed shortly thereafter by large off-road equipment categories (such as Agricultural and Construction Equipment). In each case, vehicles or equipment with diesel engines greater than 75 horsepower (hp) were required to comply by specified dates. In the Turf Industry, most of the commercially available diesel powered products are in the 25 to 74 hp range and the Tier 4 mandate requires compliance for any products produced in this horsepower/performance category.
While whistleblowers are automatically viewed as troublemakers, governance in general practice is a charade. Have we learned nothing from Shipman and the Francis report… and from every high-profile whistleblowing case’s formulaic pattern? The problem is that, as doctors, we are brainwashed into the club… it is never the right thing to dob in another doctor. Surely patients have been telling us for years that this has to stop. There has to be transparency and a culture of accepting that as humans we make mistakes and deserve support where due, but that deliberate greed or negligence, or frank malevolence or incompetence will not be tolerated. The protectionist culture has to stop.
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgtklabel.c - $Author: ggc $ $Date: 2007/07/13 16:07:31 $ Copyright (C) 2002-2005 Ruby-GNOME2 Project Team Copyright (C) 1998-2000 Yukihiro Matsumoto, Daisuke Kanda, Hiroshi Igarashi ************************************************/ #include "global.h" #define _SELF(s) (GTK_LABEL(RVAL2GOBJ(s))) static VALUE label_initialize(int argc, VALUE *argv, VALUE self) { VALUE label, with_mnemonic; GtkWidget* widget = NULL; rb_scan_args(argc, argv, "02", &label, &with_mnemonic); if (NIL_P(with_mnemonic) || ! RVAL2CBOOL(with_mnemonic)){ widget = gtk_label_new(NIL_P(label)?NULL:RVAL2CSTR(label)); } else { widget = gtk_label_new_with_mnemonic(NIL_P(label)?NULL:RVAL2CSTR(label)); } RBGTK_INITIALIZE(self, widget); return Qnil; } static VALUE label_set_text_only(VALUE self, VALUE text) { gtk_label_set_text(_SELF(self), RVAL2CSTR(text)); return text; } static VALUE label_set_text(int argc, VALUE *argv, VALUE self) { VALUE label, with_mnemonic; rb_scan_args(argc, argv, "02", &label, &with_mnemonic); if (NIL_P(with_mnemonic) || ! RVAL2CBOOL(with_mnemonic)){ gtk_label_set_text(_SELF(self), RVAL2CSTR(label)); } else { gtk_label_set_text_with_mnemonic(_SELF(self), RVAL2CSTR(label)); } return self; } static VALUE label_set_markup_only(VALUE self, VALUE text) { gtk_label_set_markup(_SELF(self), RVAL2CSTR(text)); return text; } static VALUE label_set_markup(int argc, VALUE *argv, VALUE self) { VALUE str, with_mnemonic; rb_scan_args(argc, argv, "02", &str, &with_mnemonic); if (NIL_P(with_mnemonic) || ! RVAL2CBOOL(with_mnemonic)){ gtk_label_set_markup(_SELF(self), RVAL2CSTR(str)); } else { gtk_label_set_markup_with_mnemonic(_SELF(self), RVAL2CSTR(str)); } return self; } static VALUE label_get_layout_offsets(VALUE self) { gint x, y; gtk_label_get_layout_offsets(_SELF(self), &x, &y); return rb_ary_new3(2, INT2NUM(x), INT2NUM(y)); } static VALUE label_get_text(VALUE self) { return CSTR2RVAL(gtk_label_get_text(_SELF(self))); } static VALUE label_select_region(VALUE self, VALUE start_offset, VALUE end_offset) { gtk_label_select_region(_SELF(self), NUM2INT(start_offset), NUM2INT(end_offset)); return self; } static VALUE label_get_layout(VALUE self) { return GOBJ2RVAL(gtk_label_get_layout(_SELF(self))); } static VALUE label_get_selection_bounds(VALUE self) { gint start, end; gboolean ret = gtk_label_get_selection_bounds(_SELF(self), &start, &end); return ret ? rb_ary_new3(2, INT2NUM(start), INT2NUM(end)) : Qnil; } /* Defined as Properties gdouble gtk_label_get_angle (GtkLabel *label); void gtk_label_set_angle (GtkLabel *label, gdouble angle); void gtk_label_set_ellipsize (GtkLabel *label, PangoEllipsizeMode mode); PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); void gtk_label_set_max_width_chars (GtkLabel *label, gint n_chars); gint gtk_label_get_max_width_chars (GtkLabel *label); gboolean gtk_label_get_single_line_mode (GtkLabel *label); void gtk_label_set_single_line_mode (GtkLabel *label, gboolean single_line_mode); void gtk_label_set_width_chars (GtkLabel *label, gint n_chars); gint gtk_label_get_width_chars (GtkLabel *label); void gtk_label_set_line_wrap_mode (GtkLabel *label, PangoWrapMode wrap_mode); PangoWrapMode gtk_label_get_line_wrap_mode (GtkLabel *label); */ void Init_gtk_label() { VALUE gLabel = G_DEF_CLASS(GTK_TYPE_LABEL, "Label", mGtk); rb_define_method(gLabel, "initialize", label_initialize, -1); rb_define_method(gLabel, "text", label_get_text, 0); rb_define_method(gLabel, "set_text", label_set_text, -1); rb_define_method(gLabel, "text=", label_set_text_only, 1); rb_define_method(gLabel, "set_markup", label_set_markup, -1); rb_define_method(gLabel, "markup=", label_set_markup_only, 1); rb_define_method(gLabel, "layout_offsets", label_get_layout_offsets, 0); rb_define_method(gLabel, "select_region", label_select_region, 2); rb_define_method(gLabel, "layout", label_get_layout, 0); rb_define_method(gLabel, "selection_bounds", label_get_selection_bounds, 0); G_DEF_SETTERS(gLabel); }
Ten-year-old Sora Takenouchi juggled a soccer ball on her knees. She smiled. The champion girl's team was playing the champion boy's team. It wasn't arranged by the schools or anything, just a friendly match that the two teams had set up in the park. Sora didn't really care about that. She just cared that it meant her team was finally playing Taichi Kamiya's team. In fact, it wasn't even that. She just liked being around her best friend. At least, her best friend that was a guy. Mimi Tachikawa, who had been her best friend since kindergarten despite their contrasting characters, was there, sitting on the front row of bleachers, ready to cheer her on. Sora giggled. It was hard to believe that Mimi was almost six months older than her. Until, of course, you took into consideration the fact that Mimi was already into guys. She had her latest crush beside her today. Jyou Kido looked a little scared. Mimi was clinging to his arm, trying to make conversation. Sora laughed again. The poor guy was too old for Mimi--twelve--and really wasn't into girls. Rarely did one see him around school without his nose in a book. That, his glasses, and his preppy way of dress did not help his reputation as a geek. Give him time, Sora thought. But, despite all this, Mimi had taken a shine to him. "Oh, Joe!" Mimi squealed, laughing. "You're so funny!" Her pink cowgirl hat, several sizes too big, fell off her head and onto her back. Long, straight, light-brown hair tumbled down. A short, dark-eyed, auburn-haired kid waked up to Jyou and sat beside him. "Joe! Look what Mom and Dad gave me!" He opened up a yellow laptop, and Joe started looking over his shoulder, dark brown eyes filling with envy. Mimi started pouting, but didn't say a word. A hand tapped Sora's shoulder, and she spun around with a squeak. "Oh! Tai!" Taichi rolled his eyes. "Who else would it be?" His goggles were hanging around his neck, and he took the opportunity to put them on around his forehead, pushing his chocolate-brown mop of hair up and out of his face. "Nothin'. Just wanted to say hi. You got anyone cheering for you?" "Yeah--that's Mimi." Sora pointed out her friend. Taichi nodded. "So that's what she looks like. You know, you never shut up about her." Sora blushed, but it didn't mean she couldn't retaliate. "Well, she says I never shut up about you. Anyway, who's cheering for you?" Tai scanned the crowd. "There he is!" he said, pointing to the far end of the bleachers. "That's my best friend Matt. There! With my sister Kari and his little brother." Sora nodded, spotting a guy around their age with two small kids, one of which she recognized as Taichi's four-year-old sister. "Say, Sora, who do you think is going to win today?" Sora tilted her head, indignantly placing her hand on her hip. "Us girls, of course!" "You're on! Waitaminit--what're the stakes?" "Let's each keep our prize secret. Makes it more interesting that way." "Okay. Just, it can't involve the rest of the team. That wouldn't be fair, it's not their bet." "Okay," Taichi nodded. "Makes sense. Start thinking about what you want." He gave her short, coppery hair a mischievous tug. He was smart and took off quickly. "Hey!" Sora cried as he ran off. I know what I want. If we win, I'm going to kiss you! Taichi ran over to his friend to make sure his sister was okay. "Hey, Matt, you okay over here?" A blue-eyed boy raked thick blond hair out of his face. "Yamato Ishida has got it under control. And I think my brother and your sister are getting along." Taichi looked at the two small children, playing in the grass in front of Yamato. His sister was laughing at the little boy's antics. He seemed to be trying to do a somersault, but he wasn't doing it too well. "Yeah, well, don't let 'em run off. Mom will kill me if anything happens to Kari." "And I'll kill me if anything happens to T.K.. Quit worrying, Tai." Hikari put a hand on Takeru's shoulder. "I'll do it," she said. She tried to do a somersault, but she, too, wobbled and fell over halfway through. Takeru laughed. "We need more practice, Kari," he said. She didn't get up, but continued laying on her back, looking up at the sky. Suddenly, she pointed up. "Hey, T.K., that cloud is like a kitty-cat!" Takeru turned and looked up. "Hey! It is!" He sat on the grass beside her and they chit-chatted about the things they saw. Yamato kept his eyes carefully on his little brother, but his mind was elsewhere. His parents had sat him down a week before and told him that they were getting a divorce. They'd already started filing the papers. That was no surprise, they'd been fighting for months--since the terrorist bombing at Highton View Terrace, Mr. Ishida had developed a drinking problem. What had shocked Yamato into this new state of near silence and sarcasm was the fact that they planned to split up him and Takeru, and there wasn't a single thing he could do about it. Their mom was taking Takeru, and Yamato was going with their dad. It killed Yamato to think of being apart from his little brother. Four years ago, he'd been opposed to the idea of no longer being an only child, but after Takeru had been born, he'd warmed up to him pretty quickly, and now, at eleven, Yamato could hardly remember life without him. Takeru laughed at something Hikari said, and Hikari girlishly covered her mouth with her hands, trying to hide a smile. Takeru turned to Yamato. "Hey, Matt, Kari told me a joke. You want to hear it?" Yamato picked up his little brother and sat him on his knee. "Sure, Squirt. Tell me." Takeru smiled. "A man goes to a doctor with a strawberry growing out of his head." "Yeah...?" Yamato raised an eyebrow. Hikari giggled as Takeru took a deep breath for the punch line. "And the doctor told him, 'Don't worry, I'll give you some cream to put on it!'" Yamato chuckled, making Takeru glow with pride. He'd made his big brother laugh. Yamato ruffled his hair. "Good one, Squirt." A whistle sounded shrilly, announcing the start of the soccer match. Miyako Inoue dropped her book again. "Cody, you can't just run off like that!" The seven-year-old pulled the two-year-old boy back onto the picnic blanket. Miyako blinked through large, round glasses. "Butterfly?" She glanced up, and saw that there was, in fact, a monarch fluttering away toward the nearby field where some soccer game was going on. She smiled. "Cody, listen. Sit on the blankie and watch the butterflies." "Yes. Blankie." She sat Iori down beside her so she'd know immediately if he moved, and checked on the other occupant of the blanket. Daisuke was asleep. Miyako rolled her eyes. He was the one who had heard Mrs. Hida complain about wanting some quiet time, and offered to bring baby Iori to the park. She remembered what he had told Mrs. Hida. "Well, I'm five, and Yolei is seven. That means together we're twelve!" It wasn't a hard job. Iori wasn't a tiny baby--he was big enough to walk and talk, and was out of diapers. He was good at keeping himself entertained, and if they needed anything, the apartment building where they all lived was right across the street. She could see the window of her room right from where she sat, and the Hida family was just a few doors down--which was probably the main reason Mrs. Hida had entrusted her child to them for just an hour. Miyako liked Iori. He was a kawaii little kid, and she liked kawaii-ness in general. And Iori's dad--the one who had nicknamed him Cody--was a police officer. Knowing a police officer made a person feel safe. But, still, it was the principle of the thing. The idea was that Daisuke would watch Iori, and Miyako would just be there, reading, in case Daisuke wasn't sure what to do. She hadn't even finished the first chapter, and Daisuke was sawing logs. After a few minutes, she realized that Iori was sitting still. A few more minutes, and she heard a second snore accompanying Daisuke. Iori was asleep. In another part of the park, two other brothers were playing. A dark-haired boy of about ten watched a smaller boy kick a soccer ball across a field. "Good, Ken. Now, go, run, and kick it back to me." The smaller boy did as he was told, and accidentally hit the older boy in the stomach, making him fall over. Osamu Ichijouji fell, but not too hard. "Oww..." The smaller boy, who looked so much like Osamu had at that age they could've been twins, quickly ran and offered a hand. "I'm sorry, Sam..." Osamu shook his head. "I can get it, Ken. I'm okay." Seven-year-old Ken blinked. "I'm sorry," he repeated. "Don't worry about it," Osamu said, coldly. Ken frowned. He'd done it again. He'd upset Osamu, and now Osamu would be irritable for the rest of the day. He tried to think of a way out. He remembered what usually calmed Osamu down. "Hey, Sam, can we go home and blow bubbles?" Osamu blinked, and adjusted his glasses. "Well...okay. I guess." He retrieved his soccer ball, and slung his free arm over his little brother's shoulders. "You oughta practice that kick. If you can keep that up, you might get on a champion team when you're a little bit older." Ken looked up. "Just like you?" Osamu smiled. "Yeah. Like me." Ken practically beamed. Maybe Osamu wouldn't be upset, after all. He was quiet the rest of the way home. He watched what they passed. Three kids on a picnic blanket, a soccer game in progress. "Hey, Sam?" An hour later, it was over. Taichi's team had won. Sora was a little disappointed, as well as her teammates, but they took it like the good sports they were. She was a little upset that she wouldn't get to kiss Taichi, though. She came up to him the first chance she got. "So...do you know what you want?" Taichi blinked. "Huh?...Oh, yeah. Come over here." He took her wrist and pulled her back behind the bleachers. Her eyebrows knotted in confusion. "Wha...?" Sora wasn't sure what to think, but she obeyed anyway. Taichi smiled. He put his hand under her chin and lifted her face up so he could see into her eyes. He started to lean in close, but then someone yelled. Taichi pulled away from Sora and whirled around. "Yeah, Matt?" Tai cried, blushing furiously. Yamato stood, carrying Takeru on one arm and holding Hikari's hand with the other. "My dad offered to drive us to a pizza place. Anyone who can fit in the van and pay for their lunch is welcome to come." "Just a second!" Taichi called. He turned back to Sora. "If you want to come, I'll walk you home." She nodded. "Yeah, I'll come...have the van wait, and I'll see if Mimi and her friends want to come." "Okay...it's the plain beige van with the TV station logo on the side." "Right." Sora ran back around the bleachers and found Mimi, Jyou, and the kid with the laptop. "Hey, Mimi, we have a ride to a pizza place if you can afford lunch. Joe and...and...and his friend can come, too." Mimi squealed. "Great! Hey, Joe? Computer guy?" Jyou nodded, and turned to the shorter kid, who also nodded. The four of them followed Sora to the van. Mr. Ishida was in the driver's seat. "Okay, I need to know everyone's names and who'll need a ride back from the pizza place." Of course he knew Yamato, Takeru, and Tai, and he had met Hikari on the way in. "I'm Takenouchi Sora. I'm a friend of Tai's. I won't need a ride." "I'm with her! I'm Mimi!" Mimi said happily. "And this is Joe! And we'll walk, too." Mr. Ishida glanced at the auburn-haired boy. He had re-opened his laptop and was fiddling with it. "Hey, kid..." The auburn head jerked up. "I apologize for not being more attentive. I am Izumi Koushiro. I live nearby, as well." Mr. Ishida nodded and drove off. At the pizza place, the kids laughed and chattered like they'd been friends for years. Some of them had--just, not all in one group before. Mr. Ishida was at the head of the table. Jyou was to his right, then Koushiro, then Takeru, then Hikari at the foot of the table, then Yamato across from his brother, then Taichi, Sora, and finally, Mimi was across from her crush. Takeru reached for another slice of pizza and bumped Koushiro's arm, making him typo. "Oops, sorry, Kou--Kou--" "Koushiro," the auburn-haired boy replied. "I can't say that!" Takeru said. "I can't even remember that for very long," Hikari chimed in. "You need a nickname." "But not Kou, or 'Shiro, or anything like that," Mimi piped up. "That would be so dorky." Sora looked up. "Yeah. What'd you say your family name was?" Jyou reminded them for him. "Izumi." He and the nine-year-old computer genius lived in the same building, and they'd been casual friends for quite a while. Fellow smart people tend to bond with one another. Yamato was the first one to think of it. "Why not Izzy?" Koushiro blinked. "Hey! I like that! It's--it's--" he scrambled for a nice, long word. "Prodigious!" Takeru smiled. "Izzy. I can say that!" Finally, the little party broke up. Koushiro--now dubbed "Izzy"--went off in his direction, Yamato and Takeru climbed into the van, Mimi grabbed onto Jyou's arm and dragged him towards her house, since he was "walking her home". Taichi took Hikari's hand and, with Sora on his other side, headed for home. Sora and Taichi made casual conversation, but neither one dared to mention what had almost happened behind the bleachers, especially not in front of Hikari. Sora walked up to the Kamiya's apartment with Taichi, and stood in the entryway waiting to see how things would play out. Taichi dropped his gym bag on the floor of the room he and Hikari shared, and yelled to his mom, "Hey, Mom, Kari's home! I'm going to walk Sora home and I'll be back in about thirty minutes!" "Okay," Mrs. Kamiya said, coming into the front hall and picking up Hikari. As they went down the stairs, Sora corrected him. "You won't take that long. It only takes ten minutes to get to my house, and that's counting the stairs!" "So, I'll be back in plenty of time," Tai said. "It's a lot easier than being late. Hey, let me carry your bag." Sora handed over the bag, smiling at her friend's antics. Or, maybe soon, more than friend. They walked up the stairs to her floor, but before they could walk to the door of her apartment, he stopped her with a gentle tug on her sleeve. They were at the top of a flight of the stairs, which wrapped around and around at one end of the building, like hotel stairs. They were bricked in on three sides, making the landing dark. Taichi set down her bag. "Hey...my prize." Sora grinned. She knew what to expect this time, and she was glad he hadn't decided to just abandon it. "Well...come get it." She crossed her arms. He put a hand on each of her arms, pulled her closer, and leaned his face down. His lips pressed against hers, and she pressed back, just a little. She uncrossed her arms and put her hands on his shoulders, her arms laying on his chest. Her mouth was open slightly, in shock, just like his, and she could feel his breath on her tongue. New, amazing, and more than a little scary. Was she doing it right? Were her hands in the "right" place? Was it supposed to feel like that? After a few seconds, he pulled back. "I...I like you, Sora. I...I hope I don't have to win a soccer match every time I want to do that--if you ever let me do it again." She blushed, and looked down. "I...I...I liked that...and, I love you, Tai. I was going to have the same prize..." Taichi's eyes widened with the implications of that. "I...I love you too...uh...see ya!" He ran down the steps. Sora smiled, and touched her fingers to her lips. She stood for a few minutes, looking around the edge of the brick wall at the setting sun. Then, suddenly, she squealed. "I have to call Mimi!"
List of books in category "Politics: International Relations" ChemInform Abstract: Use of the Stille Coupling Reaction on Heteroaromatic Cations: Synthesis of Substituted Quinolizinium Salts. ChemInform Abstract: First Total Synthesis of (-)-Aplyolide A. Dipyrrolo[1,2-a;2′,1′-c]pyrazines. Part 6. Electrophilic Substitution in a Series of Dipyrrolo[1,2-a;2′,1′-c]pyrazine and 5,6-Dihydrodipyrrolo[1,2-a;2′,1′-c]pyrazine Derivatives. Phosphorylation of Dipyrrolo[1,2-a;2′,1′-c]pyrazines. Ein Stern mit großer Eigenbewegung? ChemInform Abstract: An Asymmetric Total Synthesis of (-)-Fumagillol. ChemInform Abstract: Polymer Nomenclature and Structure: A Comparison of Systems Used by CAS, IUPAC, MDL, and DuPont. Part 1. Regular Single-Strand Organic Polymers. Peter W. Davis, Ryszard W. Adamiak, Ignacio Tinoco Jr.
ST JOHN’S, Antigua – Kraigg Brathwaite will take over as captain and Keemo Paul has been added to the West Indies team as the Cricket West Indies (CWI) selection panel announced a 14-member squad to face England in the third and final Test match of the Wisden Trophy Series. Tickets are on sale from just US $15/EC $40 at local ticket booths in Saint Lucia and online at http://www.windiescricket.comvia the “BuyTickets” button. Local fans can also benefit from a 50% discount on any two tickets when they present their local ID.
/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the examples of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follows: ** ** "Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are ** met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in ** the documentation and/or other materials provided with the ** distribution. ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor ** the names of its contributors may be used to endorse or promote ** products derived from this software without specific prior written ** permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." ** $QT_END_LICENSE$ ** ****************************************************************************/ #include <QtCore> #include <qrotationsensor.h> QTM_USE_NAMESPACE class RotationFilter : public QRotationFilter { public: bool filter(QRotationReading *reading) { int diff = ( reading->timestamp() - stamp ); stamp = reading->timestamp(); QTextStream out(stdout); out << QString("Rotation: %1 x").arg(reading->x(), 4, 'f', 0) << QString(" %1 y").arg(reading->y(), 4, 'f', 0) << QString(" %1 z").arg(reading->z(), 4, 'f', 0) << QString(" (%1 ms since last, %2 Hz)").arg(diff / 1000, 4).arg( 1000000.0 / diff, 4, 'f', 1) << endl; return true; } private: qtimestamp stamp; }; int main(int argc, char **argv) { QCoreApplication app(argc, argv); QStringList args = app.arguments(); int rate_place = args.indexOf("-r"); int rate_val = 0; if (rate_place != -1) rate_val = args.at(rate_place + 1).toInt(); QRotationSensor sensor; sensor.connectToBackend(); if (rate_val > 0) { sensor.setDataRate(rate_val); } RotationFilter filter; sensor.addFilter(&filter); sensor.start(); if (!sensor.isActive()) { qWarning("Rotationsensor didn't start!"); return 1; } if (sensor.property("hasZ").isValid()) { if (sensor.property("hasZ").toBool()) qDebug() << "Sensor hasZ is set"; else qDebug() << "Sensor hasZ is NOT set"; } else { qDebug() << "Sensor hasZ error: no value"; } return app.exec(); }
Rules are meant to be broken, so we’re all about encouraging people to do so at any opportunity, particularly when it comes to fashion. After all, picking out an outfit should be fun. We put together a few formulas to help you break some of the most commonplace rules. Watch our tips then shop the ensembles below.
// // TextConverter.h // // $Id: //poco/1.4/Foundation/include/Poco/TextConverter.h#1 $ // // Library: Foundation // Package: Text // Module: TextConverter // // Definition of the TextConverter class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Software") to use, reproduce, display, distribute, // execute, and transmit the Software, and to prepare derivative works of the // Software, and to permit third-parties to whom the Software is furnished to // do so, all subject to the following: // // The copyright notices in the Software and this entire statement, including // the above license grant, this restriction and the following disclaimer, // must be included in all copies of the Software, in whole or in part, and // all derivative works of the Software, unless such copies or derivative // works are solely in the form of machine-executable object code generated by // a source language processor. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // #ifndef Foundation_TextConverter_INCLUDED #define Foundation_TextConverter_INCLUDED #include "Poco/Foundation.h" namespace Poco { class TextEncoding; class Foundation_API TextConverter /// A TextConverter converts strings from one encoding /// into another. { public: typedef int (*Transform)(int); /// Transform function for convert. TextConverter(const TextEncoding& inEncoding, const TextEncoding& outEncoding, int defaultChar = '?'); /// Creates the TextConverter. The encoding objects must not be deleted while the /// TextConverter is in use. ~TextConverter(); /// Destroys the TextConverter. int convert(const std::string& source, std::string& destination, Transform trans); /// Converts the source string from inEncoding to outEncoding /// and appends the result to destination. Every character is /// passed to the transform function. /// If a character cannot be represented in outEncoding, defaultChar /// is used instead. /// Returns the number of encoding errors (invalid byte sequences /// in source). int convert(const void* source, int length, std::string& destination, Transform trans); /// Converts the source buffer from inEncoding to outEncoding /// and appends the result to destination. Every character is /// passed to the transform function. /// If a character cannot be represented in outEncoding, defaultChar /// is used instead. /// Returns the number of encoding errors (invalid byte sequences /// in source). int convert(const std::string& source, std::string& destination); /// Converts the source string from inEncoding to outEncoding /// and appends the result to destination. /// If a character cannot be represented in outEncoding, defaultChar /// is used instead. /// Returns the number of encoding errors (invalid byte sequences /// in source). int convert(const void* source, int length, std::string& destination); /// Converts the source buffer from inEncoding to outEncoding /// and appends the result to destination. /// If a character cannot be represented in outEncoding, defaultChar /// is used instead. /// Returns the number of encoding errors (invalid byte sequences /// in source). private: TextConverter(); TextConverter(const TextConverter&); TextConverter& operator = (const TextConverter&); const TextEncoding& _inEncoding; const TextEncoding& _outEncoding; int _defaultChar; }; } // namespace Poco #endif // Foundation_TextConverter_INCLUDED
/* * * Copyright 2019 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ /** * Classes related to configuring a running Spring Boot application. * * @author tgianos * @since 4.0.0 */ @ParametersAreNonnullByDefault package com.netflix.genie.web.spring; import javax.annotation.ParametersAreNonnullByDefault;
The Quakers reached two milestones in the win. Curry, who scored 116 points in his freshman year at Bridgewater, reached 1,000 points for his college career with a first-half basket. He became the 34th Guilford men’s basketball student-athlete to reach the 1,000-point mark and has 892 points as a Quaker. The win also marked number 300 for Tom Palombo as Guilford’s head coach and his 400th overall as a college men’s coach. He is the 35th active NCAA Division III men’s basketball coach to reach 400 career wins. Guilford closed on a 15-6 run over the first half’s final five minutes and held a 35-28 halftime lead. The opening period featured four ties and 11 lead changes. Jaylen Gore (Greensboro, N.C./Northwest Guilford) scored six of his 10 points in the decisive spurt and scored all of his points in the first half. Bridgewater got back to within 41-36 on a Dimitri Chambers three with 16:26 left in regulation, but the Quakers held the Eagles scoreless for the next six-and-a-half minutes and built an insurmountable 50-36 advantage. The margin grew to as many as 30 points in the second half. Long made all four of his second-half shots, including a three-pointer. The Quakers shot 50 percent from the floor in the final 20 minutes and 47.5% for the game. Kyler Gregory (Yadkinville, N.C./Starmount) added 14 points and nine rebounds for Guilford, which owned a 51-31 rebounding edge. Long also had nine boards and Curry added eight. Junior Steve Ruszala had a career-best 10 rebounds in 10 minutes off the bench. The Quakers outscored the Eagles in the paint, 38-16. Josh Cammon scored a game-high 17 points for the Eagles, who made 12 three-pointers in the loss. Chambers finished with 15. Bridgewater took just two free throws in the game and shot 33.3 percent from the floor. Palombo’s Quakers visit Lynchburg Wednesday (1/23) at 7:00 p.m. The Hornets look to avenge an 82-78 setback to Guilford in Greensboro December 5, their lone loss of the season. BRIDGEWATER (VA.) (7-11, 2-7 ODAC): CAMMON, Josh 7-13 0-0 17; CHAMBERS, Dimetri 6-13 0-0 15; GRIER, Davrion 3-7 0-0 7; MURRAY, Chandler 2-8 0-0 6; CASWELL, Liam 1-2 0-0 3; SIMPKINS, Monte 1-5 0-0 3; SANDERS, Jimmie 1-7 0-0 3; WILLIAMS, Cameron 0-1 1-2 1; HODGE, Kellen 0-1 0-0 0; TURNER, TJ 0-3 0-0 0; JAMES, Mark 0-0 0-0 0; CICCONE, Matthew 0-3 0-0 0. Totals 21-63 1-2 55. GUILFORD (13-5, 7-2 ODAC): LONG, Carson 7-12 0-0 16; CURRY, Marcus 6-9 4-5 16; GREGORY, Kyler 6-12 2-5 14; GORE, Jaylen 3-5 4-4 10; HARKINS, Luke 2-3 2-3 7; WELLS, Trent 2-2 1-1 5; LOGAN, Joah 1-3 2-4 4; LECKONBY, Will 1-8 0-0 3; RUSZALA, Steven 1-3 0-4 2; WARD, Liam 0-3 1-2 1; BROWN, Austin 0-0 0-0 0; MILLER, Justin 0-1 0-0 0. Totals 29-61 16-28 78. 3-point goals–Bridgewater (Va.) 12-34 (CHAMBERS, Dimetri 3-6; CAMMON, Josh 3-6; MURRAY, Chandler 2-6; GRIER, Davrion 1-2; SIMPKINS, Monte 1-3; CASWELL, Liam 1-2; SANDERS, Jimmie 1-5; TURNER, TJ 0-2; CICCONE, Matthew 0-1; WILLIAMS, Cameron 0-1), Guilford 4-22 (LONG, Carson 2-5; HARKINS, Luke 1-1; LECKONBY, Will 1-8; GORE, Jaylen 0-1; LOGAN, Joah 0-1; WARD, Liam 0-3; MILLER, Justin 0-1; CURRY, Marcus 0-2). Rebounds–Bridgewater (Va.) 31 (SIMPKINS, Monte 8), Guilford 51 (RUSZALA, Steven 10). Assists–Bridgewater (Va.) 10 (SIMPKINS, Monte 3), Guilford 11 (WARD, Liam 3). Total fouls–Bridgewater (Va.) 19, Guilford 8. Technical fouls–Bridgewater (Va.)-SANDERS, Jimmie, Guilford-None.
import SvgFactory from '../svgFactory'; import _ from '../utils'; import constants from '../constants'; import GridOptionsWrapper from '../gridOptionsWrapper'; import SelectionRendererFactory from '../selectionRendererFactory'; import ExpressionService from '../expressionService'; import EventService from '../eventService'; import {Events} from '../events'; var svgFactory = SvgFactory.getInstance(); export default function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService, eventService: EventService) { return function groupCellRenderer(params: any) { var eGroupCell = document.createElement('span'); var node = params.node; var cellExpandable = node.group && !node.footer; if (cellExpandable) { addExpandAndContract(eGroupCell, params); } var checkboxNeeded = params.colDef && params.colDef.cellRenderer && params.colDef.cellRenderer.checkbox && !node.footer; if (checkboxNeeded) { var eCheckbox = selectionRendererFactory.createSelectionCheckbox(node, params.rowIndex); eGroupCell.appendChild(eCheckbox); } if (params.colDef && params.colDef.cellRenderer && params.colDef.cellRenderer.innerRenderer) { createFromInnerRenderer(eGroupCell, params, params.colDef.cellRenderer.innerRenderer); } else if (node.footer) { createFooterCell(eGroupCell, params); } else if (node.group) { createGroupCell(eGroupCell, params); } else { createLeafCell(eGroupCell, params); } // only do this if an indent - as this overwrites the padding that // the theme set, which will make things look 'not aligned' for the // first group level. var suppressPadding = params.colDef && params.colDef.cellRenderer && params.colDef.cellRenderer.suppressPadding; if (!suppressPadding && (node.footer || node.level > 0)) { var paddingFactor: any; if (params.colDef && params.colDef.cellRenderer && params.colDef.cellRenderer.padding >= 0) { paddingFactor = params.colDef.cellRenderer.padding; } else { paddingFactor = 10; } var paddingPx = node.level * paddingFactor; if (node.footer) { paddingPx += 10; } else if (!node.group) { paddingPx += 5; } eGroupCell.style.paddingLeft = paddingPx + 'px'; } return eGroupCell; }; function addExpandAndContract(eGroupCell: any, params: any) { var eExpandIcon = createGroupExpandIcon(true); var eContractIcon = createGroupExpandIcon(false); eGroupCell.appendChild(eExpandIcon); eGroupCell.appendChild(eContractIcon); eExpandIcon.addEventListener('click', expandOrContract); eContractIcon.addEventListener('click', expandOrContract); eGroupCell.addEventListener('dblclick', expandOrContract); showAndHideExpandAndContract(eExpandIcon, eContractIcon, params.node.expanded); // if parent cell was passed, then we can listen for when focus is on the cell, // and then expand / contract as the user hits enter or space-bar if (params.eGridCell) { params.eGridCell.addEventListener('keydown', function(event: any) { if (_.isKeyPressed(event, constants.KEY_ENTER)) { expandOrContract(); event.preventDefault(); } }); } function expandOrContract() { expandGroup(eExpandIcon, eContractIcon, params); } } function showAndHideExpandAndContract(eExpandIcon: any, eContractIcon: any, expanded: any) { _.setVisible(eExpandIcon, !expanded); _.setVisible(eContractIcon, expanded); } function createFromInnerRenderer(eGroupCell: any, params: any, renderer: any) { _.useRenderer(eGroupCell, renderer, params); } function getRefreshFromIndex(params: any) { if (gridOptionsWrapper.isGroupIncludeFooter()) { return params.rowIndex; } else { return params.rowIndex + 1; } } function expandGroup(eExpandIcon: any, eContractIcon: any, params: any) { params.node.expanded = !params.node.expanded; var refreshIndex = getRefreshFromIndex(params); params.api.onGroupExpandedOrCollapsed(refreshIndex); showAndHideExpandAndContract(eExpandIcon, eContractIcon, params.node.expanded); var event: any = {node: params.node}; eventService.dispatchEvent(Events.EVENT_ROW_GROUP_OPENED, event) } function createGroupExpandIcon(expanded: any) { var eIcon: any; if (expanded) { eIcon = _.createIcon('groupContracted', gridOptionsWrapper, null, svgFactory.createArrowRightSvg); } else { eIcon = _.createIcon('groupExpanded', gridOptionsWrapper, null, svgFactory.createArrowDownSvg); } _.addCssClass(eIcon, 'ag-group-expand'); return eIcon; } // creates cell with 'Total {{key}}' for a group function createFooterCell(eGroupCell: any, params: any) { var footerValue: string; var groupName = getGroupName(params); if (params.colDef && params.colDef.cellRenderer && params.colDef.cellRenderer.footerValueGetter) { var footerValueGetter = params.colDef.cellRenderer.footerValueGetter; // params is same as we were given, except we set the value as the item to display var paramsClone: any = _.cloneObject(params); paramsClone.value = groupName; if (typeof footerValueGetter === 'function') { footerValue = footerValueGetter(paramsClone); } else if (typeof footerValueGetter === 'string') { footerValue = expressionService.evaluate(footerValueGetter, paramsClone); } else { console.warn('ag-Grid: footerValueGetter should be either a function or a string (expression)'); } } else { footerValue = 'Total ' + groupName; } var eText = document.createTextNode(footerValue); eGroupCell.appendChild(eText); } function getGroupName(params: any) { var cellRenderer = params.colDef.cellRenderer; if (cellRenderer && cellRenderer.keyMap && typeof cellRenderer.keyMap === 'object' && params.colDef.cellRenderer !== null) { var valueFromMap = cellRenderer.keyMap[params.node.key]; if (valueFromMap) { return valueFromMap; } else { return params.node.key; } } else { return params.node.key; } } // creates cell with '{{key}} ({{childCount}})' for a group function createGroupCell(eGroupCell: any, params: any) { var groupName = getGroupName(params); var colDefOfGroupedCol = params.api.getColumnDef(params.node.field); if (colDefOfGroupedCol && typeof colDefOfGroupedCol.cellRenderer === 'function') { params.value = groupName; _.useRenderer(eGroupCell, colDefOfGroupedCol.cellRenderer, params); } else { eGroupCell.appendChild(document.createTextNode(groupName)); } // only include the child count if it's included, eg if user doing custom aggregation, // then this could be left out, or set to -1, ie no child count var suppressCount = params.colDef.cellRenderer && params.colDef.cellRenderer.suppressCount; if (!suppressCount && params.node.allChildrenCount >= 0) { eGroupCell.appendChild(document.createTextNode(" (" + params.node.allChildrenCount + ")")); } } // creates cell with '{{key}} ({{childCount}})' for a group function createLeafCell(eParent: any, params: any) { if (params.value) { var eText = document.createTextNode(' ' + params.value); eParent.appendChild(eText); } } }
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. import os from airflow import models from airflow.providers.google.cloud.operators.text_to_speech import CloudTextToSpeechSynthesizeOperator from airflow.providers.google.cloud.operators.translate_speech import CloudTranslateSpeechOperator from airflow.utils import dates GCP_PROJECT_ID = os.environ.get("GCP_PROJECT_ID", "example-project") BUCKET_NAME = os.environ.get("GCP_TRANSLATE_SPEECH_TEST_BUCKET", "INVALID BUCKET NAME") # [START howto_operator_translate_speech_gcp_filename] FILENAME = "gcp-speech-test-file" # [END howto_operator_translate_speech_gcp_filename] # [START howto_operator_text_to_speech_api_arguments] INPUT = {"text": "Sample text for demo purposes"} VOICE = {"language_code": "en-US", "ssml_gender": "FEMALE"} AUDIO_CONFIG = {"audio_encoding": "LINEAR16"} # [END howto_operator_text_to_speech_api_arguments] # [START howto_operator_translate_speech_arguments] CONFIG = {"encoding": "LINEAR16", "language_code": "en_US"} AUDIO = {"uri": f"gs://{BUCKET_NAME}/{FILENAME}"} TARGET_LANGUAGE = 'pl' FORMAT = 'text' MODEL = 'base' SOURCE_LANGUAGE = None # type: None # [END howto_operator_translate_speech_arguments] with models.DAG( "example_gcp_translate_speech", schedule_interval=None, # Override to match your needs start_date=dates.days_ago(1), tags=['example'], ) as dag: text_to_speech_synthesize_task = CloudTextToSpeechSynthesizeOperator( project_id=GCP_PROJECT_ID, input_data=INPUT, voice=VOICE, audio_config=AUDIO_CONFIG, target_bucket_name=BUCKET_NAME, target_filename=FILENAME, task_id="text_to_speech_synthesize_task", ) # [START howto_operator_translate_speech] translate_speech_task = CloudTranslateSpeechOperator( project_id=GCP_PROJECT_ID, audio=AUDIO, config=CONFIG, target_language=TARGET_LANGUAGE, format_=FORMAT, source_language=SOURCE_LANGUAGE, model=MODEL, task_id='translate_speech_task', ) translate_speech_task2 = CloudTranslateSpeechOperator( audio=AUDIO, config=CONFIG, target_language=TARGET_LANGUAGE, format_=FORMAT, source_language=SOURCE_LANGUAGE, model=MODEL, task_id='translate_speech_task2', ) # [END howto_operator_translate_speech] text_to_speech_synthesize_task >> translate_speech_task >> translate_speech_task2
AMPHIPOLIS: ca. 158-149 BC, AR tetradrachm (16.79g), S-1386, bust of Artemis on Macedonian shield // club between 2 lines of text, all within oak wreath, thunderbolt to left, VF-EF. ARADOS: after 59 BC, AR tetradrachm (17.16g), S-5984, Herakles // Zeus, as on Macedonian issues of Alexander III and his successors, AP monogram beneath the seat, F-VF. ASPENDOS: ca. 370-333 BC, AR stater (10.59g), S-5396 ff, two naked athletes wrestling, AK between // slinger advancing right, triskeles before, VF. ASPENDOS: ca. 200 BC, AR tetradrachm (16.42g), year 22 (unknown era), S-5401, head of Herakles, wearing lion skin // Zeus seated, holding eagle, countermarked facing head of Helios, VF. ATHENS: ca. 393-300 BC, AR tetradrachm (16.95g), S-2537, head of Athena, eye in true profile, wearing crested helmet // owl, with olive twig & crescent, test cut on breast, VF. ATHENS: New style series, 166-57 BC, AR tetradrachm (16.55g), S-2555, head of Athena, eye in true profile, wearing crested helmet // owl standing on amphora, Greek legends around, all within wreath, dated ΠE ("85", = 96/95 BC), attractive VF. CAPPADOCIAN KINGDOM: Ariarathes IX Eusebes Philapator, 101-87 BC, AR drachm (4.02g), year 5, S-7297/99, young head of king // Athena standing, year below, lovely strike, bold VF. CAPPADOCIAN KINGDOM: Ariarathes IX Eusebes Philapator, 101-87 BC, AR drachm (4.02g), year 5, S-7300/01, diademed king's head right // Athena standing, year in field, VF-EF. CAPPADOCIAN KINGDOM: Ariobarzanes III Philoromaios, 52-42 BC, AR drachm (3.96g), uncertain date, S-7304, diademed king's head right, bearded // Athena standing, holding Nike on outstretched arm, attractive VF. CAPPADOCIAN KINGDOM: Ariarathes X Eusebes Philapator, 42-36 BC, AR drachm (3.81g), year 5, S-7305, diademed king's head right, bearded // Athena standing, holding Nike on outstretched arm, trophy below, bold VF.
Expert review of the 2020 Audi A3 provides the latest look at trim-level features and specs, performance, safety, and comfort. We reviews the 2020 Audi A3 Photo where consumers can find detailed information on specs, fuel economy, transmission and safety. Explore the design, performance and technology features of the 2020 Audi A3. See models and pricing, as well as photos and videos. The 2020 Audi A3 Specs goes to excess the right kinds of excess to preserve its best-of status. Find out if the new 2020 Audi A3 coupe takes a step forward in our first-drive review. See photos and get the story at Car and Driver. Reviews, videos, latest news, specs and road tests on the 2020 Audi A3. Top Gear reviews the Release Date. Terrific refinement, class-leading technology, and incredible interior quality. Want to know more? Read more. We now have one of many air vents twisting it can close and open it which is a nicelittle touch coming alongside the sprint has a nice aggressive bezel above the gauges very clear trying – super minimalistic you could have some black leather and a few grey stitching alongside the dash as wellthen coming to the touch screen navigation system hitting the house button. Now we have many different settings your apple carplay and android auto after all your audio controls Wi-Fi and then you can scroll over to your climate and see different settings like that you could see where all the air is directed what is on and off more controls below that and then all of your local weather controls are located proper here really cool actually this you spin left and rightand that truly adjustments the temperature you even have an LCD screen to correspond to that after which over on the correct facet that is how you alter your fan speed you get slightly screen as well and your analysis a see all the different buttons your defogger you’re the Alcantara on the shift knob as properly asthe shifter boot very simple to interact you to gear brief shifter extremely sighs good weighted shift knob to present 2020 Audi A3.
<h1 id="icons">Manifest - Icons</h1> <p> One or more icons that represent the extension, app, or theme. You should always provide a 128x128 icon; it's used during installation and by the Chrome Web Store. Extensions should also provide a 48x48 icon, which is used in the extensions management page (chrome://extensions). You can also specify a 16x16 icon to be used as the favicon for an extension's pages. The 16x16 icon is also displayed in the experimental extension <a href="http://developer.chrome.com/extensions/infobars">infobar</a> feature. </p> <p> Icons should generally be in PNG format, because PNG has the best support for transparency. They can, however, be in any format supported by WebKit, including BMP, GIF, ICO, and JPEG. Here's an example of specifying the icons: </p> <pre data-filename="manifest.json"> "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, </pre> <p class="note"> You may provide icons of any other size you wish, and Chrome will attempt to use the best size where appropriate. For example, Windows often requires 32-pixel icons, and if the app includes a 32-pixel icon, Chrome will choose that instead of shrinking a 48-pixel icon down. However, you should ensure that all of your icons are square, or unexpected behavior may result. </p> <p> If you upload your extension, app, or theme using the <a href="https://chrome.google.com/webstore/developer/dashboard">Chrome Developer Dashboard</a>, you'll need to upload additional images, including at least one screenshot of your extension. For more information, see the <a href="http://code.google.com/chrome/webstore/">Chrome Web Store developer documentation</a>. </p>
<?php // created: 2019-08-05 16:02:31 $mod_strings = array ( 'LBL_MODULE_NAME' => 'Documents', 'LBL_MODULE_TITLE' => 'Documents: Home', 'LNK_NEW_DOCUMENT' => 'Create Document', 'LNK_DOCUMENT_LIST' => 'View Documents', 'LBL_DOC_REV_HEADER' => 'Document Revisions', 'LBL_SEARCH_FORM_TITLE' => 'Document Search', 'LBL_DOCUMENT_ID' => 'Document ID', 'LBL_NAME' => 'Document Name', 'LBL_DESCRIPTION' => 'Description', 'LBL_CATEGORY' => 'Category', 'LBL_SUBCATEGORY' => 'Sub Category', 'LBL_STATUS' => 'Status', 'LBL_CREATED_BY' => 'Created by', 'LBL_DATE_ENTERED' => 'Date Created', 'LBL_DATE_MODIFIED' => 'Date Modified', 'LBL_DELETED' => 'Deleted', 'LBL_MODIFIED' => 'Modified by ID', 'LBL_MODIFIED_USER' => 'Modified by', 'LBL_CREATED' => 'Created by', 'LBL_REVISIONS' => 'Revisions', 'LBL_RELATED_DOCUMENT_ID' => 'Related Document ID', 'LBL_RELATED_DOCUMENT_REVISION_ID' => 'Related Document Revision ID', 'LBL_IS_TEMPLATE' => 'Is a Template', 'LBL_TEMPLATE_TYPE' => 'Document Type', 'LBL_ASSIGNED_TO_NAME' => 'Assigned to:', 'LBL_REVISION_NAME' => 'Revision Number', 'LBL_MIME' => 'Mime Type', 'LBL_REVISION' => 'Revision', 'LBL_DOCUMENT' => 'Related Document', 'LBL_LATEST_REVISION' => 'Latest Revision', 'LBL_CHANGE_LOG' => 'Change Log', 'LBL_ACTIVE_DATE' => 'Publish Date', 'LBL_EXPIRATION_DATE' => 'Expiration Date', 'LBL_FILE_EXTENSION' => 'File Extension', 'LBL_LAST_REV_MIME_TYPE' => 'Last revision MIME type', 'LBL_CAT_OR_SUBCAT_UNSPEC' => 'Unspecified', 'LBL_HOMEPAGE_TITLE' => 'My Documents', 'LBL_NEW_FORM_TITLE' => 'New Document', 'LBL_DOC_NAME' => 'Document Name:', 'LBL_FILENAME' => 'File Name:', 'LBL_LIST_FILENAME' => 'File:', 'LBL_DOC_VERSION' => 'Revision:', 'LBL_FILE_UPLOAD' => 'File:', 'LBL_CATEGORY_VALUE' => 'Category:', 'LBL_LIST_CATEGORY' => 'Category', 'LBL_SUBCATEGORY_VALUE' => 'Sub Category:', 'LBL_DOC_STATUS' => 'Status:', 'LBL_LAST_REV_CREATOR' => 'Revision Created By:', 'LBL_LASTEST_REVISION_NAME' => 'Lastest revision name:', 'LBL_SELECTED_REVISION_NAME' => 'Selected revision name:', 'LBL_CONTRACT_STATUS' => 'Contract status:', 'LBL_CONTRACT_NAME' => 'Contract Name:', 'LBL_LAST_REV_DATE' => 'Revision Date:', 'LBL_DOWNNLOAD_FILE' => 'Download File:', 'LBL_DET_RELATED_DOCUMENT' => 'Related Document:', 'LBL_DET_RELATED_DOCUMENT_VERSION' => 'Related Document Revision:', 'LBL_DET_IS_TEMPLATE' => 'Template? :', 'LBL_DET_TEMPLATE_TYPE' => 'Document Type:', 'LBL_DOC_DESCRIPTION' => 'Description:', 'LBL_DOC_ACTIVE_DATE' => 'Publish Date:', 'LBL_DOC_EXP_DATE' => 'Expiration Date:', 'LBL_LIST_FORM_TITLE' => 'Document List', 'LBL_LIST_DOCUMENT' => 'Document', 'LBL_LIST_SUBCATEGORY' => 'Sub Category', 'LBL_LIST_REVISION' => 'Revision', 'LBL_LIST_LAST_REV_CREATOR' => 'Published By', 'LBL_LIST_LAST_REV_DATE' => 'Revision Date', 'LBL_LIST_VIEW_DOCUMENT' => 'View', 'LBL_LIST_DOWNLOAD' => 'Download', 'LBL_LIST_ACTIVE_DATE' => 'Publish Date', 'LBL_LIST_EXP_DATE' => 'Expiration Date', 'LBL_LIST_STATUS' => 'Status', 'LBL_LINKED_ID' => 'Linked id', 'LBL_SELECTED_REVISION_ID' => 'Selected revision id', 'LBL_LATEST_REVISION_ID' => 'Latest revision id', 'LBL_SELECTED_REVISION_FILENAME' => 'Selected revision filename', 'LBL_FILE_URL' => 'File url', 'LBL_REVISIONS_PANEL' => 'Revision Details', 'LBL_REVISIONS_SUBPANEL' => 'Revisions', 'LBL_SF_DOCUMENT' => 'Document Name:', 'LBL_SF_CATEGORY' => 'Category:', 'LBL_SF_SUBCATEGORY' => 'Sub Category:', 'LBL_SF_ACTIVE_DATE' => 'Publish Date:', 'LBL_SF_EXP_DATE' => 'Expiration Date:', 'DEF_CREATE_LOG' => 'Document Created', 'ERR_DOC_NAME' => 'Document Name', 'ERR_DOC_ACTIVE_DATE' => 'Publish Date', 'ERR_DOC_EXP_DATE' => 'Expiration Date', 'ERR_FILENAME' => 'File Name', 'ERR_DOC_VERSION' => 'Document Version', 'ERR_DELETE_CONFIRM' => 'Do you want to delete this document revision?', 'ERR_DELETE_LATEST_VERSION' => 'You are not allowed to delete the latest revision of a document.', 'LNK_NEW_MAIL_MERGE' => 'Mail Merge', 'LBL_MAIL_MERGE_DOCUMENT' => 'Mail Merge Template:', 'ERR_MISSING_FILE' => 'This document is missing a file, most likely due to an error during upload. Please retry uploading the file or contact your administrator.', 'LBL_TREE_TITLE' => 'Documents', 'LBL_LIST_DOCUMENT_NAME' => 'Name', 'LBL_LIST_IS_TEMPLATE' => 'Template?', 'LBL_LIST_TEMPLATE_TYPE' => 'Document Type', 'LBL_LIST_SELECTED_REVISION' => 'Selected Revision', 'LBL_LIST_LATEST_REVISION' => 'Latest Revision', 'LBL_CONTRACTS_SUBPANEL_TITLE' => 'Related Contracts', 'LBL_LAST_REV_CREATE_DATE' => 'Last Revision Create Date', 'LBL_CONTRACTS' => 'Contracts', 'LBL_CREATED_USER' => 'Created User', 'LBL_THEREVISIONS_SUBPANEL_TITLE' => 'Reversions', 'LBL_DOCUMENT_INFORMATION' => 'Overview', 'LBL_DOC_ID' => 'Document Source ID', 'LBL_DOC_TYPE' => 'Source', 'LBL_LIST_DOC_TYPE' => 'Source', 'LBL_DOC_TYPE_POPUP' => 'Select a source to which this document will be uploaded<br> and from which it will be available.', 'LBL_DOC_URL' => 'Document Source URL', 'LBL_SEARCH_EXTERNAL_DOCUMENT' => 'File Name', 'LBL_EXTERNAL_DOCUMENT_NOTE' => 'The first 20 most recently modified files are displayed in descending order in the list below. Use the Search to find other files.', 'LBL_LIST_EXT_DOCUMENT_NAME' => 'File Name', 'ERR_INVALID_EXTERNAL_API_ACCESS' => 'The user attempted to access an invalid external API ({0})', 'ERR_INVALID_EXTERNAL_API_LOGIN' => 'The login check failed for external API ({0})', 'LBL_ACCOUNTS_SUBPANEL_TITLE' => 'Accounts', 'LBL_CONTACTS_SUBPANEL_TITLE' => 'Contacts', 'LBL_OPPORTUNITIES_SUBPANEL_TITLE' => 'Opportunities', 'LBL_CASES_SUBPANEL_TITLE' => 'Cases', 'LBL_BUGS_SUBPANEL_TITLE' => 'Bugs', 'LBL_QUOTES_SUBPANEL_TITLE' => 'Quotes', 'LBL_PRODUCTS_SUBPANEL_TITLE' => 'Products', 'LBL_EXPAN_FRANQUICIA_DOCUMENTS_1_FROM_EXPAN_FRANQUICIA_TITLE' => 'Franquicia', );
This prime Rail Trail commercial space is now available for rent. With exceptional frontage on the ever popular Millerton Rail Trail, this +/- 950 sq. foot space offers endless opportunity for a number of commercial endeavors. It includes 1 half Bath and a full Kitchen and features hardwood floors throughout and high ceilings. Located at 14 Main Street in Millerton, NY and offered for long term or seasonal rental for $1,250 per month plus utilities.
3 Point Lap and Shoulder Seat Belt with Chrome Lift Latch in DESERT TAN. This is a non-retractable belt with manual length adjustments. Manually adjustable seat belts are the perfect solution for vehicles that do not have room for a retractor but still require the added security of a 3-point harness. Please Note: This is a universal fit seat belt, but it will not fit every vehicle. It is important to measure your vehicle for proper fit before you purchase a replacement seat belt. View our measuring guide for help. The flexible buckle side is 25 inches in length and is adjustable.
source bash+ :std Config::Ini:read() { [ $# -eq 2 ] || die "Usage: read file/path section.key" local file="${1:?read requires file}" local key="${2:?read requires key}" git config -f "$file" "$key" } Config::Ini:write() { [ $# -eq 2 ] || die "Usage: read file/path section.key" local file="${1:?read requires file}" local key="${2:?read requires key}" local value="${2:?read requires value}" git config -f "$file" "$key" "$value" }
<?php /* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ /* * PHP client for QPS testing works as follows: * 1. Gets initiated by a call from a proxy that implements the worker service. The * argument to this client is the proxy connection information * 2. Initiate an RPC to the proxy to get ClientConfig * 3. Initiate a client-side telemetry RPC to the proxy * 4. Parse the client config, which includes server target information and then start * a unary or streaming test as appropriate. * 5. After each completed RPC, send its timing to the proxy. The proxy does all histogramming * 6. Proxy will respond on the timing channel when it's time to complete. Our * next timing write will fail and we know that it's time to stop * The above complex dance is since threading and async are not idiomatic and we * shouldn't ever be waiting to read a mark * * This test only supports a single channel since threading/async is not idiomatic * This test supports unary or streaming ping-pongs, as well as open-loop * */ require dirname(__FILE__).'/vendor/autoload.php'; /** * Assertion function that always exits with an error code if the assertion is * falsy. * * @param $value Assertion value. Should be true. * @param $error_message Message to display if the assertion is false */ function hardAssert($value, $error_message) { if (!$value) { echo $error_message."\n"; exit(1); } } function hardAssertIfStatusOk($status) { if ($status->code !== Grpc\STATUS_OK) { echo "Call did not complete successfully. Status object:\n"; var_dump($status); exit(1); } } /* Start the actual client */ function qps_client_main($proxy_address) { echo "Initiating php client\n"; $proxystubopts = []; $proxystubopts['credentials'] = Grpc\ChannelCredentials::createInsecure(); $proxystub = new Grpc\Testing\ProxyClientServiceClient($proxy_address, $proxystubopts); list($config, $status) = $proxystub->GetConfig(new Grpc\Testing\Void())->wait(); hardAssertIfStatusOk($status); hardAssert($config->getClientChannels() == 1, "Only 1 channel supported"); hardAssert($config->getOutstandingRpcsPerChannel() == 1, "Only 1 outstanding RPC supported"); echo "Got configuration from proxy, target is " . $config->getServerTargets()[0] . "\n"; $stubopts = []; if ($config->getSecurityParams()) { if ($config->getSecurityParams()->getUseTestCa()) { $stubopts['credentials'] = Grpc\ChannelCredentials::createSsl( file_get_contents(dirname(__FILE__).'/../data/ca.pem')); } else { $stubopts['credentials'] = Grpc\ChannelCredentials::createSsl(null); } $override = $config->getSecurityParams()->getServerHostOverride(); if ($override) { $stubopts['grpc.ssl_target_name_override'] = $override; $stubopts['grpc.default_authority'] = $override; } } else { $stubopts['credentials'] = Grpc\ChannelCredentials::createInsecure(); } echo "Initiating php benchmarking client\n"; $stub = new Grpc\Testing\BenchmarkServiceClient( $config->getServerTargets()[0], $stubopts); $req = new Grpc\Testing\SimpleRequest(); $req->setResponseType(Grpc\Testing\PayloadType::COMPRESSABLE); $req->setResponseSize($config->getPayloadConfig()->getSimpleParams()->getRespSize()); $payload = new Grpc\Testing\Payload(); $payload->setType(Grpc\Testing\PayloadType::COMPRESSABLE); $payload->setBody(str_repeat("\0", $config->getPayloadConfig()->getSimpleParams()->getReqSize())); $req->setPayload($payload); /* TODO(stanley-cheung): Enable the following by removing the 0&& once protobuf * properly supports oneof in PHP */ if (0 && $config->getLoadParams()->getLoad() == "poisson") { $poisson = true; $lamrecip = 1.0/($config->getLoadParams()->getPoisson()->getOfferedLoad()); $issue = microtime(true) + $lamrecip * -log(1.0-rand()/(getrandmax()+1)); } else { $poisson = false; } $metric = new Grpc\Testing\ProxyStat; $telemetry = $proxystub->ReportTime(); if ($config->getRpcType() == Grpc\Testing\RpcType::UNARY) { while (1) { if ($poisson) { time_sleep_until($issue); $issue = $issue + $lamrecip * -log(1.0-rand()/(getrandmax()+1)); } $startreq = microtime(true); list($resp,$status) = $stub->UnaryCall($req)->wait(); hardAssertIfStatusOk($status); $metric->setLatency(microtime(true)-$startreq); $telemetry->write($metric); } } else { $stream = $stub->StreamingCall(); while (1) { if ($poisson) { time_sleep_until($issue); $issue = $issue + $lamrecip * -log(1.0-rand()/(getrandmax()+1)); } $startreq = microtime(true); $stream->write($req); $resp = $stream->read(); $metric->setLatency(microtime(true)-$startreq); $telemetry->write($metric); } } } ini_set('display_startup_errors', 1); ini_set('display_errors', 1); error_reporting(-1); qps_client_main($argv[1]);
Excel Technologies Ltd. launches Globally Renowned Brand Micropack, in Bangladesh - Excel Technologies Ltd. Excel Technologies Ltd is proud to announce that they have reached another milestone by introducing a new brand, Micropack, globally famous for computer and mobile accessories at 22nd October, 2017. This program was held at Time Square Restaurant & Party center, Dhanmondi. The launch program was crowded with personals from ICT sector. Managing Director of Excel Technologies Ltd., Mr. Goutam Saha , Director of Micropack Mr. Janto Djojo and regional sales manager Amy Yen and top level management from BASIS, BCS and other members were present in this marvelous Grand Launch program. Around 200 vendors of Excel Technologies Ltd. attended the launch and got familiar with Micropack products, hardware, features. There was a public product display corner as well. The program was divided into few section, introduction, speeches, gifts, product introduction, discussion, Q&A, feedback, dinner and cultural program. The guests and host gave speeches and discussed about the technology world and how fast it is growing and rapidly changing and how we should operate to keep up with the world and new products and brands. Managing Director, Mr. Goutam Saha said at the Grand Launching “The launch marks the beginning of a new era for Excel Technologies Ltd while we will always maintain our longstanding ethos of delivering innovative tech products to our clients; we also look forward to the challenge of delivering the best accessories with lowest affordable prices to end users. The quality of Micropack is outstanding and has already won thousands of hearts with its hardware compatibility, longevity and design and above all performance to a new level”. Exciting times are afoot at Excel Technologies Ltd. The launch party was the way of underlining our new message of delivering excellent computer accessories in the market throughout the country. The new brand have had a great reception so far and we hope that it shows people that Excel Technology Ltd. always think the best of its clients and bring them the best products available in the global market. EXCEL, A Revolutionary Speaker Brand introduced by Excel Technologies Ltd.
This is the ideal platform for players to hunt for the latest about their favourite mobile apps. The blog is updated daily & posts here will always cover news that really matter to gamers. The latest trailers, tips & updates will always be seen here!
package store import ( "io/ioutil" "testing" "github.com/AlexanderThaller/lablog/src/data" testhelper "github.com/AlexanderThaller/lablog/src/testing" "github.com/juju/errgo" ) func tmp_folderstore() (Store, error) { tmpdir, err := ioutil.TempDir("/tmp/", "folderstore_test") if err != nil { return nil, errgo.Notef(err, "can not open tmpdir") } store, err := NewFolderStore(tmpdir) if err != nil { return nil, errgo.Notef(err, "can not create new store") } return store, nil } func Test_PutProject(t *testing.T) { store, err := tmp_folderstore() if err != nil { t.Fatal("can not get tmp folderstore: ", err) } project := testhelper.GetTestProject("A", 1, 1) err = store.PutProject(project) if err != nil { t.Fatal("can not put test project into store", err) } got, err := store.GetProject(project.Name) testhelper.CompareGotExpected(t, err, got, project) } func Test_AddEntry(t *testing.T) { store, err := tmp_folderstore() if err != nil { t.Fatal("can not get tmp folderstore: ", err) } project := testhelper.GetTestProject("A", 1, 1) for _, entry := range project.Entries { err = store.AddEntry(project.Name, entry) if err != nil { t.Fatal("can not put test project into store", err) } } got, err := store.GetProject(project.Name) testhelper.CompareGotExpected(t, err, got, project) } func Test_ListProjects(t *testing.T) { store, err := tmp_folderstore() if err != nil { t.Fatal("can not get tmp folderstore: ", err) } project := testhelper.GetTestProject("A", 1, 1) err = store.PutProject(project) if err != nil { t.Fatal("can not put test project into store", err) } projects := data.NewProjects() projects.Add(project) expected := []data.Project{data.Project{Name: project.Name}} got, err := store.ListProjects(false) testhelper.CompareGotExpected(t, err, got.List(), expected) }
Adafruit YouTube Reaches 9 Million Views « Adafruit Industries – Makers, hackers, artists, designers and engineers! Adafruit’s YouTube channel has reached nine million views! Never want to miss a video? Subscribe to our channel and set up custom alerts when a new episode is released.
^ Warner, Greg. Jimmy Carter says he can 'no longer be associated' with the SBC. Baptist Standard. [December 13, 2009]. (原始内容存档于2010年1月9日). He said he will remain a deacon and Sunday school teacher at Maranatha Baptist Church in Plains and support the church's recent decision to send half of its missions contributions to the Cooperative Baptist Fellowship. ^ 来源:南京大学. 南京大学授予美国前总统卡特名誉博士学位. 凤凰网>教育>高校公告栏>正文. 2012年12月16日 [2012年12月16日]. (原始内容存档于2017-08-07) (简体中文). ^ Jimmy Carter's Cardigan - Top 10 Political Fashion Statements - TIME. What caught the attention of viewers that night wasn't necessarily what Carter said, but what he wore: an unbuttoned beige wool cardigan, to stay warm after turning down the heat to conserve energy. ^ Days of 'Malaise' and Jimmy Carter's Solar Panels. The solar panels were originally “supposed to cost” the taxpayers “$24,000 to install and would cut utility bills by $1,000 a year to start.” Imagine that. Carter’s plan was for the panels to pay for themselves in 24 years! Even that platy went awry however, as Cousin Hugh could not find anyone to install them for less than $28,000 and, to accommodate the ugly White Elephant, another $7,000 would have to be spent tearing up the White House roof! ^ ,This symbolic installation was taken down in 1986 during the Reagan presidency. In 1991, Unity College, an environmentally centered college in Maine acquired the panels and later installed them on their cafeteria. ^ Robert W. Kolb. Encyclopedia of Business Ethics and Society. SAGE Publications. 2007: 1305. ISBN 9781452265698. ^ Number of Breweries. Brewers Association. [2015-07-17]. ^ 陳怡君. 卡特罹癌接受免疫療法 治療前景佳. 中央社. 2015-08-21 [2015-08-22] (繁体中文). ^ [新闻直播间]美国 前总统卡特:我的癌细胞“已经消失”. CNTV. 2015-12-07 [2015-12-07]. ^ Carter Center Statement on Syria Conflict Maps. 卡特中心. 2015-10-21 [2018-03-15] (英语).
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 20160330005556) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "menu_images", force: :cascade do |t| t.string "caption" t.string "image_file_name" t.string "image_content_type" t.integer "image_file_size" t.datetime "image_updated_at" t.integer "menu_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "menus", force: :cascade do |t| t.string "title" t.text "description" t.datetime "created_at", null: false t.datetime "updated_at", null: false end end
#!/bin/bash export TARGET_CFLAGS="$CFLAGS -O2 -march=armv7-a -mtune=cortex-a9" export TARGET_CXXFLAGS="$CXXFLAGS -O2 -march=armv7-a -mtune=cortex-a9 -frtti" PREFIX="/home/mustaavalkosta/pizzabean/prebuilts/gcc/linux-x86/arm" GCC_VERSION_NUMBER="4.8" GCC_VERSION="4.8" BINUTILS_VERSION="2.23.2" GMP_VERSION="5.1.2" MPFR_VERSION="3.1.2" MPC_VERSION="1.0.1" GDB_VERSION="7.6" CLOOG_VERSION="0.18.0" PPL_VERSION="1.0" ISL_VERSION="0.12.1" SYSROOT="/" [ -z "$SMP" ] && SMP="-j`getconf _NPROCESSORS_ONLN`" if [ "$1" = "eabi" ]; then # arm-eabi mkdir -p $PREFIX/arm-eabi-$GCC_VERSION_NUMBER rm -rf $PREFIX/arm-eabi-$GCC_VERSION_NUMBER/* ./configure \ --prefix="$PREFIX/arm-eabi-$GCC_VERSION_NUMBER" \ --with-binutils-version="$BINUTILS_VERSION" \ --with-cloog-version="$CLOOG_VERSION" \ --with-gcc-version="$GCC_VERSION" \ --with-gdb-version="$GDB_VERSION" \ --with-gmp-version="$GMP_VERSION" \ --with-gold-version="$BINUTILS_VERSION" \ --with-mpfr-version="$MPFR_VERSION" \ --with-mpc-version="$MPC_VERSION" \ --with-ppl-version="$PPL_VERSION" \ --with-isl-version="$ISL_VERSION" \ --with-tune=cortex-a9 \ --target=arm-eabi \ --enable-graphite=yes \ --enable-gold=yes \ --disable-docs make $SMP && make install elif [ "$1" = "androideabi" ]; then # arm-linux-androideabi mkdir -p $PREFIX/arm-linux-androideabi-$GCC_VERSION_NUMBER rm -rf $PREFIX/arm-linux-androideabi-$GCC_VERSION_NUMBER/* ./configure --target=arm-linux-androideabi \ --prefix=$PREFIX/arm-linux-androideabi-$GCC_VERSION_NUMBER \ --with-binutils-version="$BINUTILS_VERSION" \ --with-cloog-version="$CLOOG_VERSION" \ --with-gcc-version="$GCC_VERSION" \ --with-gdb-version="$GDB_VERSION" \ --with-gmp-version="$GMP_VERSION" \ --with-gold-version="$BINUTILS_VERSION" \ --with-mpfr-version="$MPFR_VERSION" \ --with-mpc-version="$MPC_VERSION" \ --with-ppl-version="$PPL_VERSION" \ --with-isl-version="$ISL_VERSION" \ --with-tune=cortex-a9 \ --with-sysroot="$SYSROOT" \ --target=arm-linux-androideabi \ --enable-graphite=yes \ --enable-gold=yes \ --disable-docs make $SMP && make install cp -v makefiles/*.mk $PREFIX/arm-linux-androideabi-$GCC_VERSION_NUMBER/ cp -v makefiles/lib32/*.mk $PREFIX/arm-linux-androideabi-$GCC_VERSION_NUMBER/lib32/ else echo "no target" fi
# {{TOPIC NAME}} ## {{FileNameForHelpSystem}} ``` ABOUT TOPIC NOTE: The first header of the about topic should be the topic name. The second header contains the lookup name used by the help system. IE: # Some Help Topic Name ## SomeHelpTopicFileName This will be transformed into the text file as `about_SomeHelpTopicFileName`. Do not include file extensions. The second header should have no spaces. ``` # SHORT DESCRIPTION {{ Short Description Placeholder }} ``` ABOUT TOPIC NOTE: About topics can be no longer than 80 characters wide when rendered to text. Any topics greater than 80 characters will be automatically wrapped. The generated about topic will be encoded UTF-8. ``` # LONG DESCRIPTION {{ Long Description Placeholder }} ## Optional Subtopics {{ Optional Subtopic Placeholder }} # EXAMPLES {{ Code or descriptive examples of how to leverage the functions described. }} # NOTE {{ Note Placeholder - Additional information that a user needs to know.}} # TROUBLESHOOTING NOTE {{ Troubleshooting Placeholder - Warns users of bugs}} {{ Explains behavior that is likely to change with fixes }} # SEE ALSO {{ See also placeholder }} {{ You can also list related articles, blogs, and video URLs. }} # KEYWORDS {{List alternate names or titles for this topic that readers might use.}} - {{ Keyword Placeholder }} - {{ Keyword Placeholder }} - {{ Keyword Placeholder }} - {{ Keyword Placeholder }}
What are the media size constraints for my member page ? How do I access and use my additional listings with my corporate account ? How do I add more then one skill to my membership ? You can purchase and additional listing for $20. This will allow you to have more them one “skill” listing attributed to your page.
The government pledged to underwrite awards from the European Union’s €77bn (£67bn) seven-year Horizon 2020 programme. But furious academics have discovered that while existing grants will be covered, there is no funding for new applications in the event of a no-deal Brexit. Vivienne Stern, director of the international arm of UUK, says: “That has been a real shock.” She says normally the UK could expect to net €900m in the next 18 months from its share of ERC money, so universities will face a huge funding gap. But the researchers who win these prestigious grants are also “the best of the best” – and universities are terrified they will lose them. “Many European researchers have been resisting an offer of another job abroad, and the temptation of a higher salary, because they want to work in the UK system. This will feel like a real kick in the teeth,” Stern says. UK universities say competitors across the channel are stepping up their approaches to talented European staff. Exeter nearly lost three academics in law and politics to European universities in the past fortnight – but made swift counter offers. The university says another of its leading researchers has said they will move to an EU university with their ERC grant if there is no deal. Andreas Goldthau, a German professor of international relations and an expert in energy security at Royal Holloway, University of London, has accepted an offer in Germany because of Brexit. He is a leading figure in climate policy research, and the university says losing him means losing millions of euros of future EU research funding. Goldthau moved his family to Berlin shortly after the referendum, and has been commuting to London three or four days a week. “The UK leaving Europe leaves me in limbo, as that whole cross-border worker regime will be gone,” he says. He says academics have been relying on the government’s promise to underwrite Horizon 2020 grants, and there is “real anger” they will not all be covered. “But people are already being cut out of EU-funded research applications,” he adds. Jurriaan Ton, a Dutch professor of plant science at Sheffield University, who has received considerable ERC funding, says Horizon 2020 is “one of the last strongholds for funding the sort of risky, unpredictable research that is so important in science”. Universities also risk losing young EU researchers – or failing to woo them. Lukas Esterle, an Austrian early career researcher who moved to Aston University with a prestigious European Marie Sklodowska-Curie fellowship, is relocating to Aarhus University in Denmark to escape Brexit. Esterle is researching adapting smart camera networks to track people and has been highly cited for someone so early in their career. “If I’d been applying now as an early career researcher I wouldn’t have come to the UK,” he says. • This article was amended on 26 and 29 March 2019: a previous version said Vera Troeger was going to work in Hanover; and the €77bn (£67bn) figure relates to the European Union not the European Research Council.
/* * This file is part of the KDE libraries * Copyright (c) 2001 Michael Goffioul <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. **/ /* * "WhatsThis" help items added by Kurt Pfeifle, August 2003, * same copyright as above. **/ #include "kprintdialog.h" #include "kprinter.h" #include "kprinterimpl.h" #include "kmfactory.h" #include "kmuimanager.h" #include "kmmanager.h" #include "kmprinter.h" #include "kmvirtualmanager.h" #include "kprintdialogpage.h" #include "kprinterpropertydialog.h" #include "plugincombobox.h" #include "kpcopiespage.h" #include "treecombobox.h" #include "messagewindow.h" #include <qgroupbox.h> #include <qcheckbox.h> #include <kpushbutton.h> #include <qlabel.h> #include <qcombobox.h> #include <qtabwidget.h> #include <qvbox.h> #include <qlayout.h> #include <qregexp.h> #include <kmessagebox.h> #include <qdir.h> #include <qtooltip.h> #include <qwhatsthis.h> #include <klocale.h> #include <kiconloader.h> #include <kfiledialog.h> #include <kurlrequester.h> #include <klineedit.h> #include <kdebug.h> #include <kglobal.h> #include <kconfig.h> #include <kguiitem.h> #include <kstdguiitem.h> #include <kapplication.h> #include <kio/renamedlg.h> #include <time.h> #define SHOWHIDE(widget,on) if (on) widget->show(); else widget->hide(); class KPrintDialog::KPrintDialogPrivate { public: QLabel *m_type, *m_state, *m_comment, *m_location, *m_cmdlabel, *m_filelabel; KPushButton *m_properties, *m_default, *m_options, *m_ok, *m_extbtn; QPushButton *m_wizard, *m_filter; QCheckBox *m_preview; QLineEdit *m_cmd; TreeComboBox *m_printers; QVBox *m_dummy; PluginComboBox *m_plugin; KURLRequester *m_file; QCheckBox *m_persistent; bool m_reduced; QPtrList<KPrintDialogPage> m_pages; KPrinter *m_printer; bool b_optionsEnabled; bool b_propertiesEnabled; bool b_systemEnabled; }; KPrintDialog::KPrintDialog(QWidget *parent, const char *name) : KDialog(parent,name,true) { //WhatsThis strings.... (added by [email protected]) QString whatsThisLocationLabel = i18n( " <qt><b>Printer Location:</b> The <em>Location</em> may describe where the" " selected printer is located. The Location description is created" " by the administrator of the print system (or may be" " left empty)." " </qt>" ); QString whatsThisPrinterType = i18n( " <qt><b>Printer Type:</b> The <em>Type</em> indicates your printer type." " </qt>" ); QString whatsThisPrinterState = i18n( " <qt><b>Printer State:</b> The <em>State</em> indicates the state of the" " print queue on the print server (which could be your localhost). The" " state may be 'Idle', 'Processing', 'Stopped', 'Paused' or similar." " </qt>" ); QString whatsThisPrinterComment = i18n( " <qt><b>Printer Comment:</b> The <em>Comment</em> may describe the selected" " printer. This comment is created by the administrator" " of the print system (or may be left empty)." " </qt>" ); QString whatsThisPrinterSelect = i18n( " <qt><b>Printer Selection Menu:</b> " " <p>Use this combo box to select the printer to which you want to print." " Initially (if you run KDEPrint for the first time), you may only find the " " <em>KDE special printers</em> (which save" " jobs to disk [as PostScript- or PDF-files], or deliver jobs via" " email (as a PDF" " attachment). If you are missing a real printer, you need to..." " <ul>" " <li>...either create a local printer with the help of the <em>KDE Add" " Printer Wizard</em>. The Wizard is available for the CUPS and RLPR printing" " systems (click button to the left of the <em>'Properties'</em> button),</li>" " <li>...or try to connect to an existing remote" " CUPS print server. You can connect by clicking the <em>'System Options'</em> button" " below. A new dialog opens: click on the <em>'CUPS server'</em>" " icon: Fill in the information required to use the remote" " server. </li> " " </ul>" " <p><b>Note:</b> It may happen that you successfully connected to a remote CUPS " " server and still do not get a printer list. If this happens: force KDEPrint to " " re-load its configuration files." " To reload the configuration files, either start kprinter again, or use the " " switch the print system away from CUPS and back again once. The print system switch " " can be made through a selection in the drop-down menu at bottom of this dialog when " " fully expanded). </p> " " </qt>" ); QString whatsThisPrintJobProperties = i18n( " <qt><b>Print Job Properties:</b> " " <p>This button opens a dialog where you can make decisions" " regarding all supported print job options." " </qt>" ); QString whatsThisPrinterFilter = i18n( " <qt><b>Selective View on List of Printers:</b>" " <p> This button reduces the list of visible printers" " to a shorter, more convenient, pre-defined list.</p>" " <p>This is particularly useful in enterprise environments" " with lots of printers. The default is to show <b>all</b> printers.</p>" " <p>To create a personal <em>'selective view list'</em>, click on the" " <em>'System Options'</em> button at the bottom of this dialog." " Then, in the new dialog, select <em>'Filter'</em> (left column in the" " <em>KDE Print Configuration</em> dialog) and setup your selection..</p>" " <p><b>Warning:</b> Clicking this button without prior creation of a personal " " <em>'selective view list'</em> will make all printers dissappear from the " " view. (To re-enable all printers, just click this button again.) </p> " " </qt>" ); QString whatsThisAddPrinterWizard = i18n( "<qt><b>KDE Add Printer Wizard</b>" " <p>This button starts the <em>KDE Add Printer Wizard</em>.</p>" " <p>Use the Wizard (with <em>\"CUPS\"</em> or <em>\"RLPR\"</em>) to add locally" " defined printers to your system. </p>" " <p><b>Note:</b> The <em>KDE Add Printer Wizard</em> does <b>not</b> work, " " and this button is disabled if you use " " <em>\"Generic LPD</em>\", <em>\"LPRng\"</em>, or <em>\"Print Through " " an External Program</em>\".) </p> " " </qt>" ); QString whatsThisExternalPrintCommand = i18n( " <qt><b>External Print Command</b>" " <p>Here you can enter any command that would also print for you in " " a <em>konsole</em> window. </p>" " <b>Example:</b> <pre>a2ps -P &lt;printername&gt; --medium=A3</pre>." " </qt>" ); QString whatsThisOptions = i18n( " <qt><b>Additional Print Job Options</b>" " <p>This button shows or hides additional printing options.</qt>" ); QString whatsThisSystemOptions = i18n( " <qt><b>System Options:</b> " " <p>This button starts a new dialog where you can adjust various" " settings of your printing system. Amongst them:" " <ul><li> Should KDE" " applications embed all fonts into the PostScript they" " generate for printing?" " <li> Should KDE use an external PostScript viewer" " like <em>gv</em> for print page previews?" " <li> Should KDEPrint use a local or a remote CUPS server?," " </ul> and many more.... " " </qt>" ); QString whatsThisHelpButton = i18n( " <qt><b>Help:</b> This button takes you to the complete <em>KDEPrint" " Manual</em>." " </qt>" ); QString whatsThisCancelButton = i18n( " <qt><b>Cancel:</b> This button cancels your print job and quits the" " kprinter dialog." " </qt>" ); QString whatsThisPrintButton = i18n( " <qt><b>Print:</b> This button sends the job to the printing process." " If you are sending non-PostScript files, you may be" " asked if you want KDE to convert the files into PostScript," " or if you want your print subsystem (like CUPS) to do this." " </qt>" ); QString whatsThisKeepDialogOpenCheckbox = i18n( " <qt><b>Keep Printing Dialog Open</b>" "<p>If you enable this checkbox, the printing dialog" " stays open after you hit the <em>Print</em> button.</p>" " <p> This is" " especially useful, if you need to test various" " print settings (like color matching for an inkjet printer)" " or if you want to send your job to multiple printers (one after" " the other) to have it finished more quickly.</p>" " </qt>" ); QString whatsThisOutputFileLabel = i18n(" <qt><b>Output File Name and Path:</b> The \"Output file:\" shows " " you where your file will be" " saved if you decide to \"Print to File\" your job, using one of the" " KDE <em>Special Printers</em> named \"Print to File (PostScript)\"" " or \"Print to File (PDF)\". Choose a name and location that suits" " your need by using the button and/or editing the line on the right." " </qt>" ); QString whatsThisOutputFileLineedit = i18n(" <qt><b>Output File Name and Path:</b> Edit this line to create a " " path and filename that suits your needs." " (Button and Lineedit field are only available if you \"Print to File\")" " </qt>" ); QString whatsThisOutputFileButton = i18n(" <qt><b>Browse Directories button:<b> This button calls " " the \"File Open / Browsed Directories\" dialog to let you" " choose a directory and file name where your \"Print-to-File\"" " job should be saved." " </qt>" ); QString whatsThisAddFileButton = i18n( " <qt><b>Add File to Job</b>" " <p>This button calls the \"File Open / Browse Directories\" dialog to allow you" " to select a file for printing. Note, that " " <ul><li>you can select ASCII or International Text, PDF," " PostScript, JPEG, TIFF, PNG, GIF and many other graphical" " formats." " <li>you can select various files from different paths" " and send them as one \"multi-file job\" to the printing" " system." " </ul>" " </qt>" ); QString whatsThisPreviewCheckBox = i18n(" <qt><b>Print Preview</b>" " Enable this checkbox if you want to see a preview of" " your printout. A preview lets you check if, for instance," " your intended \"poster\" or \"pamphlet\" layout" " looks like you expected, without wasting paper first. It" " also lets you cancel the job if something looks wrong. " " <p><b>Note:</b> The preview feature (and therefore this checkbox) " " is only visible for printjobs created from inside KDE applications. " " If you start kprinter from the commandline, or if you use kprinter " " as a print command for non-KDE applications (like Acrobat Reader, " " Firefox or OpenOffice), print preview is not available here. " " </qt>" ); QString whatsThisSetDefaultPrinter = i18n(" <qt><b>Set as Default Printer</b>" " This button sets the current printer as the user's" " default. " " <p><b>Note:</b> (Button is only visible if the checkbox for " " <em>System Options</em>" " --> <em>General</em> --> <em>Miscellaneous</em>: <em>\"Defaults" " to the last printer used in the application\"</em> is disabled.)" " </qt>" ); d = new KPrintDialogPrivate; d->m_pages.setAutoDelete(false); d->m_printer = 0; setCaption(i18n("Print")); // widget creation QGroupBox *m_pbox = new QGroupBox(0,Qt::Vertical,i18n("Printer"), this); d->m_type = new QLabel(m_pbox); QWhatsThis::add(d->m_type, whatsThisPrinterType); d->m_state = new QLabel(m_pbox); QWhatsThis::add(d->m_state, whatsThisPrinterState); d->m_comment = new QLabel(m_pbox); QWhatsThis::add(d->m_comment, whatsThisPrinterComment); d->m_location = new QLabel(m_pbox); QWhatsThis::add(d->m_location, whatsThisLocationLabel); d->m_printers = new TreeComboBox(m_pbox); QWhatsThis::add(d->m_printers, whatsThisPrinterSelect); d->m_printers->setMinimumHeight(25); QLabel *m_printerlabel = new QLabel(i18n("&Name:"), m_pbox); QWhatsThis::add(m_printerlabel, whatsThisPrinterSelect); QLabel *m_statelabel = new QLabel(i18n("Status", "State:"), m_pbox); QWhatsThis::add(m_statelabel, whatsThisPrinterState); QLabel *m_typelabel = new QLabel(i18n("Type:"), m_pbox); QWhatsThis::add(m_typelabel, whatsThisPrinterType); QLabel *m_locationlabel = new QLabel(i18n("Location:"), m_pbox); QWhatsThis::add(m_locationlabel, whatsThisLocationLabel); QLabel *m_commentlabel = new QLabel(i18n("Comment:"), m_pbox); QWhatsThis::add(m_commentlabel, whatsThisPrinterComment); m_printerlabel->setBuddy(d->m_printers); d->m_properties = new KPushButton(KGuiItem(i18n("P&roperties"), "edit"), m_pbox); QWhatsThis::add( d->m_properties, whatsThisPrintJobProperties); d->m_options = new KPushButton(KGuiItem(i18n("System Op&tions"), "kdeprint_configmgr"), this); QWhatsThis::add(d->m_options,whatsThisSystemOptions); d->m_default = new KPushButton(KGuiItem(i18n("Set as &Default"), "kdeprint_defaultsoft"), m_pbox); QWhatsThis::add(d->m_default,whatsThisSetDefaultPrinter); d->m_filter = new QPushButton(m_pbox); d->m_filter->setPixmap(SmallIcon("filter")); d->m_filter->setMinimumSize(QSize(d->m_printers->minimumHeight(),d->m_printers->minimumHeight())); d->m_filter->setToggleButton(true); d->m_filter->setOn(KMManager::self()->isFilterEnabled()); QToolTip::add(d->m_filter, i18n("Toggle selective view on printer list")); QWhatsThis::add(d->m_filter, whatsThisPrinterFilter); d->m_wizard = new QPushButton(m_pbox); d->m_wizard->setPixmap(SmallIcon("wizard")); d->m_wizard->setMinimumSize(QSize(d->m_printers->minimumHeight(),d->m_printers->minimumHeight())); QToolTip::add(d->m_wizard, i18n("Add printer...")); QWhatsThis::add(d->m_wizard, whatsThisAddPrinterWizard); d->m_ok = new KPushButton(KGuiItem(i18n("&Print"), "fileprint"), this); QWhatsThis::add( d->m_ok, whatsThisPrintButton); d->m_ok->setDefault(true); d->m_ok->setEnabled( false ); QPushButton *m_cancel = new KPushButton(KStdGuiItem::cancel(), this); QWhatsThis::add(m_cancel, whatsThisCancelButton); d->m_preview = new QCheckBox(i18n("Previe&w"), m_pbox); QWhatsThis::add(d->m_preview, whatsThisPreviewCheckBox); d->m_filelabel = new QLabel(i18n("O&utput file:"), m_pbox); QWhatsThis::add(d->m_filelabel,whatsThisOutputFileLabel); d->m_file = new KURLRequester(QDir::homeDirPath()+"/print.ps", m_pbox); QWhatsThis::add(d->m_file,whatsThisOutputFileLineedit); d->m_file->setEnabled(false); d->m_filelabel->setBuddy(d->m_file); d->m_cmdlabel = new QLabel(i18n("Print co&mmand:"), m_pbox); QWhatsThis::add( d->m_cmdlabel, whatsThisExternalPrintCommand); d->m_cmd = new QLineEdit(m_pbox); QWhatsThis::add( d->m_cmd, whatsThisExternalPrintCommand); d->m_cmdlabel->setBuddy(d->m_cmd); d->m_dummy = new QVBox(this); d->m_plugin = new PluginComboBox(this); d->m_extbtn = new KPushButton(this); QToolTip::add(d->m_extbtn, i18n("Show/hide advanced options")); QWhatsThis::add(d->m_extbtn, whatsThisOptions); d->m_persistent = new QCheckBox(i18n("&Keep this dialog open after printing"), this); QWhatsThis::add( d->m_persistent, whatsThisKeepDialogOpenCheckbox); QPushButton *m_help = new KPushButton(KStdGuiItem::help(), this); QWhatsThis::add( m_help, whatsThisHelpButton); QWidget::setTabOrder( d->m_printers, d->m_filter ); QWidget::setTabOrder( d->m_filter, d->m_wizard ); QWidget::setTabOrder( d->m_wizard, d->m_properties ); QWidget::setTabOrder( d->m_properties, d->m_preview ); QWidget::setTabOrder( d->m_preview, d->m_file ); QWidget::setTabOrder( d->m_file, d->m_cmd ); QWidget::setTabOrder( d->m_plugin, d->m_persistent ); QWidget::setTabOrder( d->m_persistent, d->m_extbtn ); QWidget::setTabOrder( d->m_extbtn, d->m_options ); QWidget::setTabOrder( d->m_options, m_help ); QWidget::setTabOrder( m_help, d->m_ok ); QWidget::setTabOrder( d->m_ok, m_cancel ); // layout creation QVBoxLayout *l1 = new QVBoxLayout(this, 10, 10); l1->addWidget(m_pbox,0); l1->addWidget(d->m_dummy,1); l1->addWidget(d->m_plugin,0); l1->addWidget(d->m_persistent); QHBoxLayout *l2 = new QHBoxLayout(0, 0, 10); l1->addLayout(l2); l2->addWidget(d->m_extbtn,0); l2->addWidget(d->m_options,0); l2->addWidget(m_help,0); l2->addStretch(1); l2->addWidget(d->m_ok,0); l2->addWidget(m_cancel,0); QGridLayout *l3 = new QGridLayout(m_pbox->layout(),3,3,7); l3->setColStretch(1,1); l3->setRowStretch(0,1); QGridLayout *l4 = new QGridLayout(0, 5, 2, 0, 5); l3->addMultiCellLayout(l4,0,0,0,1); l4->addWidget(m_printerlabel,0,0); l4->addWidget(m_statelabel,1,0); l4->addWidget(m_typelabel,2,0); l4->addWidget(m_locationlabel,3,0); l4->addWidget(m_commentlabel,4,0); QHBoxLayout *ll4 = new QHBoxLayout(0, 0, 3); l4->addLayout(ll4,0,1); ll4->addWidget(d->m_printers,1); ll4->addWidget(d->m_filter,0); ll4->addWidget(d->m_wizard,0); //l4->addWidget(d->m_printers,0,1); l4->addWidget(d->m_state,1,1); l4->addWidget(d->m_type,2,1); l4->addWidget(d->m_location,3,1); l4->addWidget(d->m_comment,4,1); l4->setColStretch(1,1); QVBoxLayout *l5 = new QVBoxLayout(0, 0, 10); l3->addLayout(l5,0,2); l5->addWidget(d->m_properties,0); l5->addWidget(d->m_default,0); l5->addWidget(d->m_preview,0); l5->addStretch(1); //*** l3->addWidget(d->m_filelabel,1,0); l3->addWidget(d->m_file,1,1); //*** l3->addWidget(d->m_cmdlabel,2,0); l3->addMultiCellWidget(d->m_cmd,2,2,1,2); // connections connect(d->m_ok,SIGNAL(clicked()),SLOT(accept())); connect(m_cancel,SIGNAL(clicked()),SLOT(reject())); connect(d->m_properties,SIGNAL(clicked()),SLOT(slotProperties())); connect(d->m_default,SIGNAL(clicked()),SLOT(slotSetDefault())); connect(d->m_printers,SIGNAL(activated(int)),SLOT(slotPrinterSelected(int))); connect(d->m_options,SIGNAL(clicked()),SLOT(slotOptions())); connect(d->m_wizard,SIGNAL(clicked()),SLOT(slotWizard())); connect(d->m_extbtn, SIGNAL(clicked()), SLOT(slotExtensionClicked())); connect(d->m_filter, SIGNAL(toggled(bool)), SLOT(slotToggleFilter(bool))); connect(m_help, SIGNAL(clicked()), SLOT(slotHelp())); connect(d->m_file, SIGNAL(urlSelected(const QString&)), SLOT(slotOutputFileSelected(const QString&))); connect( d->m_file, SIGNAL( openFileDialog( KURLRequester* ) ), SLOT( slotOpenFileDialog() ) ); connect( KMFactory::self()->manager(), SIGNAL( updatePossible( bool ) ), SLOT( slotUpdatePossible( bool ) ) ); d->b_optionsEnabled = kapp->authorize("print/options") && kapp->authorize("print/selection"); d->b_propertiesEnabled = kapp->authorize("print/properties") && kapp->authorize("print/selection"); d->b_systemEnabled = kapp->authorize("print/system") && kapp->authorize("print/selection"); if (!d->b_systemEnabled) { d->m_plugin->hide(); } if (!d->b_optionsEnabled) { d->m_options->hide(); } if (!d->b_propertiesEnabled) { d->m_properties->hide(); d->m_wizard->hide(); } if (!kapp->authorize("print/selection")) { d->m_extbtn->hide(); m_pbox->hide(); expandDialog(true); } else { KConfig *config = KGlobal::config(); config->setGroup("KPrinter Settings"); expandDialog(!config->readBoolEntry("DialogReduced", (KMFactory::self()->settings()->application != KPrinter::StandAlone))); } } KPrintDialog::~KPrintDialog() { KConfig *config = KGlobal::config(); config->setGroup("KPrinter Settings"); config->writeEntry("DialogReduced", d->m_reduced); delete d; } void KPrintDialog::setFlags(int f) { SHOWHIDE(d->m_properties, (f & KMUiManager::Properties) && d->b_propertiesEnabled) d->m_default->hide(); SHOWHIDE(d->m_default, ((f & KMUiManager::Default) && !KMFactory::self()->printConfig("General")->readBoolEntry("UseLast", true))) SHOWHIDE(d->m_preview, (f & KMUiManager::Preview)) bool on = (f & KMUiManager::OutputToFile); SHOWHIDE(d->m_filelabel, on) SHOWHIDE(d->m_file, on) on = (f & KMUiManager::PrintCommand); SHOWHIDE(d->m_cmdlabel, on) SHOWHIDE(d->m_cmd, on) SHOWHIDE(d->m_persistent, (f & KMUiManager::Persistent)) // also update "wizard" button KMManager *mgr = KMFactory::self()->manager(); d->m_wizard->setEnabled((mgr->hasManagement() && (mgr->printerOperationMask() & KMManager::PrinterCreation))); } void KPrintDialog::setDialogPages(QPtrList<KPrintDialogPage> *pages) { if (!pages) return; if (pages->count() + d->m_pages.count() == 1) { // only one page, reparent the page to d->m_dummy and remove any // QTabWidget child if any. if (pages->count() > 0) d->m_pages.append(pages->take(0)); d->m_pages.first()->reparent(d->m_dummy, QPoint(0,0)); d->m_pages.first()->show(); delete d->m_dummy->child("TabWidget", "QTabWidget"); } else { // more than one page. QTabWidget *tabs = static_cast<QTabWidget*>(d->m_dummy->child("TabWidget", "QTabWidget")); if (!tabs) { // QTabWidget doesn't exist. Create it and reparent all // already existing pages. tabs = new QTabWidget(d->m_dummy, "TabWidget"); tabs->setMargin(10); for (d->m_pages.first(); d->m_pages.current(); d->m_pages.next()) { tabs->addTab(d->m_pages.current(), d->m_pages.current()->title()); } } while (pages->count() > 0) { KPrintDialogPage *page = pages->take(0); d->m_pages.append(page); tabs->addTab(page, page->title()); } tabs->show(); } d->m_extbtn->setEnabled(d->m_pages.count() > 0); } KPrintDialog* KPrintDialog::printerDialog(KPrinter *printer, QWidget *parent, const QString& caption, bool forceExpand) { if (printer) { KPrintDialog *dlg = new KPrintDialog(parent); // needs to set the printer before setting up the // print dialog as some additional pages may need it. // Real initialization comes after. dlg->d->m_printer = printer; KMFactory::self()->uiManager()->setupPrintDialog(dlg); dlg->init(); if (!caption.isEmpty()) dlg->setCaption(caption); if (forceExpand) { // we force the dialog to be expanded: // - expand the dialog // - hide the show/hide button dlg->expandDialog(true); dlg->d->m_extbtn->hide(); } return dlg; } return NULL; } void KPrintDialog::initialize(KPrinter *printer) { d->m_printer = printer; // first retrieve printer list and update combo box (get default or last used printer also) QPtrList<KMPrinter> *plist = KMFactory::self()->manager()->printerList(); if (!KMManager::self()->errorMsg().isEmpty()) { KMessageBox::error(parentWidget(), "<qt><nobr>"+ i18n("An error occurred while retrieving the printer list:") +"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>"); } if (plist) { QString oldP = d->m_printers->currentText(); d->m_printers->clear(); QPtrListIterator<KMPrinter> it(*plist); int defsoft(-1), defhard(-1), defsearch(-1); bool sep(false); for (;it.current();++it) { // skip invalid printers if ( !it.current()->isValid() ) continue; if (!sep && it.current()->isSpecial()) { sep = true; d->m_printers->insertItem(QPixmap(), QString::fromLatin1("--------")); } d->m_printers->insertItem(SmallIcon(it.current()->pixmap(),0,(it.current()->isValid() ? (int)KIcon::DefaultState : (int)KIcon::LockOverlay)),it.current()->name(),false/*sep*/); if (it.current()->isSoftDefault()) defsoft = d->m_printers->count()-1; if (it.current()->isHardDefault()) defhard = d->m_printers->count()-1; if (!oldP.isEmpty() && oldP == it.current()->name()) defsearch = d->m_printers->count()-1; else if (defsearch == -1 && it.current()->name() == printer->searchName()) defsearch = d->m_printers->count()-1; } int defindex = (defsearch != -1 ? defsearch : (defsoft != -1 ? defsoft : QMAX(defhard,0))); d->m_printers->setCurrentItem(defindex); //slotPrinterSelected(defindex); } // Initialize output filename if (!d->m_printer->outputFileName().isEmpty()) d->m_file->setURL( d->m_printer->outputFileName() ); else if (!d->m_printer->docFileName().isEmpty()) d->m_file->setURL( d->m_printer->docDirectory()+"/"+d->m_printer->docFileName()+".ps" ); if ( d->m_printers->count() > 0 ) slotPrinterSelected( d->m_printers->currentItem() ); // update with KPrinter options if (d->m_printer->option("kde-preview") == "1" || d->m_printer->previewOnly()) d->m_preview->setChecked(true); d->m_preview->setEnabled(!d->m_printer->previewOnly()); d->m_cmd->setText(d->m_printer->option("kde-printcommand")); QPtrListIterator<KPrintDialogPage> it(d->m_pages); for (;it.current();++it) it.current()->setOptions(d->m_printer->options()); } void KPrintDialog::slotPrinterSelected(int index) { bool ok(false); d->m_location->setText(QString::null); d->m_state->setText(QString::null); d->m_comment->setText(QString::null); d->m_type->setText(QString::null); if (index >= 0 && index < d->m_printers->count()) { KMManager *mgr = KMFactory::self()->manager(); KMPrinter *p = mgr->findPrinter(d->m_printers->text(index)); if (p) { if (!p->isSpecial()) mgr->completePrinterShort(p); d->m_location->setText(p->location()); d->m_comment->setText(p->driverInfo()); d->m_type->setText(p->description()); d->m_state->setText(p->stateString()); ok = p->isValid(); enableSpecial(p->isSpecial()); enableOutputFile(p->option("kde-special-file") == "1"); setOutputFileExtension(p->option("kde-special-extension")); } else enableOutputFile( ok ); } d->m_properties->setEnabled(ok); d->m_ok->setEnabled(ok); } void KPrintDialog::slotProperties() { if (!d->m_printer) return; KMPrinter *prt = KMFactory::self()->manager()->findPrinter(d->m_printers->currentText()); if (prt) KPrinterPropertyDialog::setupPrinter(prt, this); } void KPrintDialog::slotSetDefault() { KMPrinter *p = KMFactory::self()->manager()->findPrinter(d->m_printers->currentText()); if (p) KMFactory::self()->virtualManager()->setDefault(p); } void KPrintDialog::done(int result) { if (result == Accepted && d->m_printer) { QMap<QString,QString> opts; KMPrinter *prt(0); // get options from global pages QString msg; QPtrListIterator<KPrintDialogPage> it(d->m_pages); for (;it.current();++it) if (it.current()->isEnabled()) { if (it.current()->isValid(msg)) it.current()->getOptions(opts); else { KMessageBox::error(this, msg.prepend("<qt>").append("</qt>")); return; } } // add options from the dialog itself // TODO: ADD PRINTER CHECK MECHANISM !!! prt = KMFactory::self()->manager()->findPrinter(d->m_printers->currentText()); if (prt->isSpecial() && prt->option("kde-special-file") == "1") { if (!checkOutputFile()) return; d->m_printer->setOutputToFile(true); /* be sure to decode the output filename */ d->m_printer->setOutputFileName( KURL::decode_string( d->m_file->url() ) ); } else d->m_printer->setOutputToFile(false); d->m_printer->setPrinterName(prt->printerName()); d->m_printer->setSearchName(prt->name()); opts["kde-printcommand"] = d->m_cmd->text(); opts["kde-preview"] = (d->m_preview->isChecked() ? "1" : "0"); opts["kde-isspecial"] = (prt->isSpecial() ? "1" : "0"); opts["kde-special-command"] = prt->option("kde-special-command"); // merge options with KMPrinter object options QMap<QString,QString> popts = (prt->isEdited() ? prt->editedOptions() : prt->defaultOptions()); for (QMap<QString,QString>::ConstIterator it=popts.begin(); it!=popts.end(); ++it) opts[it.key()] = it.data(); // update KPrinter object d->m_printer->setOptions(opts); emit printRequested(d->m_printer); // close dialog if not persistent if (!d->m_persistent->isChecked() || !d->m_persistent->isVisible()) KDialog::done(result); } else KDialog::done(result); } bool KPrintDialog::checkOutputFile() { bool value(false); if (d->m_file->url().isEmpty()) KMessageBox::error(this,i18n("The output filename is empty.")); else { KURL url( d->m_file->url() ); if ( !url.isLocalFile() ) return true; bool anotherCheck; do { anotherCheck = false; QFileInfo f(url.path()); if (f.exists()) { if (f.isWritable()) { //value = (KMessageBox::warningYesNo(this,i18n("File \"%1\" already exists. Overwrite?").arg(f.absFilePath())) == KMessageBox::Yes); time_t mtimeDest = f.lastModified().toTime_t(); KIO::RenameDlg dlg( this, i18n( "Print" ), QString::null, d->m_file->url(), KIO::M_OVERWRITE, ( time_t ) -1, f.size(), ( time_t ) -1, f.created().toTime_t() , mtimeDest+1, mtimeDest, true ); int result = dlg.exec(); switch ( result ) { case KIO::R_OVERWRITE: value = true; break; default: case KIO::R_CANCEL: value = false; break; case KIO::R_RENAME: url = dlg.newDestURL(); d->m_file->setURL( url.path() ); value = true; anotherCheck = true; break; } } else KMessageBox::error(this,i18n("You don't have write permissions to this file.")); } else { QFileInfo d( f.dirPath( true ) ); if ( !d.exists() ) KMessageBox::error( this, i18n( "The output directory does not exist." ) ); else if ( !d.isWritable() ) KMessageBox::error(this,i18n("You don't have write permissions in that directory.")); else value = true; } } while( anotherCheck ); } return value; } void KPrintDialog::slotOptions() { if (KMManager::self()->invokeOptionsDialog(this)) init(); } void KPrintDialog::enableOutputFile(bool on) { d->m_filelabel->setEnabled(on); d->m_file->setEnabled(on); } void KPrintDialog::enableSpecial(bool on) { d->m_default->setDisabled(on); d->m_cmdlabel->setDisabled(on); d->m_cmd->setDisabled(on); KPCopiesPage *copypage = (KPCopiesPage*)child("CopiesPage","KPCopiesPage"); if (copypage) copypage->initialize(!on); // disable/enable all other pages (if needed) for (d->m_pages.first(); d->m_pages.current(); d->m_pages.next()) if (d->m_pages.current()->onlyRealPrinters()) d->m_pages.current()->setEnabled(!on); } void KPrintDialog::setOutputFileExtension(const QString& ext) { if (!ext.isEmpty()) { KURL url( d->m_file->url() ); QString f( url.fileName() ); int p = f.findRev( '.' ); // change "file.ext"; don't change "file", "file." or ".file" but do change ".file.ext" if ( p > 0 && p != int (f.length () - 1) ) { url.setFileName( f.left( p ) + "." + ext ); d->m_file->setURL( KURL::decode_string( url.url() ) ); } } } void KPrintDialog::slotWizard() { int result = KMFactory::self()->manager()->addPrinterWizard(this); if (result == -1) KMessageBox::error(this, KMFactory::self()->manager()->errorMsg().prepend("<qt>").append("</qt>")); else if (result == 1) initialize(d->m_printer); } void KPrintDialog::reload() { // remove printer dependent pages (usually from plugin) QTabWidget *tabs = static_cast<QTabWidget*>(d->m_dummy->child("TabWidget", "QTabWidget")); for (uint i=0; i<d->m_pages.count(); i++) if (d->m_pages.at(i)->onlyRealPrinters()) { KPrintDialogPage *page = d->m_pages.take(i--); if (tabs) tabs->removePage(page); delete page; } // reload printer dependent pages from plugin QPtrList<KPrintDialogPage> pages; pages.setAutoDelete(false); KMFactory::self()->uiManager()->setupPrintDialogPages(&pages); // add those pages to the dialog setDialogPages(&pages); if (!d->m_reduced) d->m_dummy->show(); // other initializations setFlags(KMFactory::self()->uiManager()->dialogFlags()); connect( KMFactory::self()->manager(), SIGNAL( updatePossible( bool ) ), SLOT( slotUpdatePossible( bool ) ) ); init(); } void KPrintDialog::configChanged() { // simply update the printer list: do it all the time // as changing settings may influence the way printer // are listed. init(); // update the GUI setFlags(KMFactory::self()->uiManager()->dialogFlags()); } void KPrintDialog::expandDialog(bool on) { QSize sz(size()); bool needResize(isVisible()); if (on) { sz.setHeight(sz.height()+d->m_dummy->minimumSize().height()+d->m_plugin->minimumSize().height()+2*layout()->spacing()); if (isVisible() || !d->m_dummy->isVisible() || !d->m_plugin->isVisible()) { d->m_dummy->show(); if (d->b_systemEnabled) d->m_plugin->show(); } d->m_extbtn->setIconSet(SmallIconSet("up")); d->m_extbtn->setText(i18n("&Options <<")); d->m_reduced = false; } else { sz.setHeight(sz.height()-d->m_dummy->height()-d->m_plugin->height()-2*layout()->spacing()); if (!isVisible() || d->m_dummy->isVisible() || d->m_plugin->isVisible()) { d->m_dummy->hide(); if (d->b_systemEnabled) d->m_plugin->hide(); } d->m_extbtn->setIconSet(SmallIconSet("down")); d->m_extbtn->setText(i18n("&Options >>")); d->m_reduced = true; } if (needResize) { layout()->activate(); resize(sz); } } void KPrintDialog::slotExtensionClicked() { // As all pages are children of d->m_dummy, I simply have to hide/show it expandDialog(!(d->m_dummy->isVisible())); } KPrinter* KPrintDialog::printer() const { return d->m_printer; } void KPrintDialog::slotToggleFilter(bool on) { KMManager::self()->enableFilter(on); initialize(d->m_printer); } void KPrintDialog::slotHelp() { kapp->invokeHelp(QString::null, "kdeprint"); } void KPrintDialog::slotOutputFileSelected(const QString& txt) { d->m_file->setURL( txt ); } void KPrintDialog::init() { d->m_ok->setEnabled( false ); MessageWindow::remove( this ); MessageWindow::add( this, i18n( "Initializing printing system..." ), 500 ); KMFactory::self()->manager()->checkUpdatePossible(); } void KPrintDialog::slotUpdatePossible( bool flag ) { MessageWindow::remove( this ); if ( !flag ) KMessageBox::error(parentWidget(), "<qt><nobr>"+ i18n("An error occurred while retrieving the printer list:") +"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>"); initialize( d->m_printer ); } void KPrintDialog::enableDialogPage( int index, bool flag ) { if ( index < 0 || index >= ( int )d->m_pages.count() ) { kdWarning() << "KPrintDialog: page index out of bound" << endl; return; } if ( d->m_pages.count() > 1 ) { QTabWidget *tabs = static_cast<QTabWidget*>(d->m_dummy->child("TabWidget", "QTabWidget")); tabs->setTabEnabled( d->m_pages.at( index ), flag ); } else d->m_pages.at( 0 )->setEnabled( flag ); } void KPrintDialog::slotOpenFileDialog() { KFileDialog *dialog = d->m_file->fileDialog(); dialog->setCaption(i18n("Print to File")); dialog->setMode(d->m_file->fileDialog()->mode() & ~KFile::LocalOnly); dialog->setOperationMode( KFileDialog::Saving ); KMPrinter *prt = KMFactory::self()->manager()->findPrinter(d->m_printers->currentText()); if (prt) { QString mimetype(prt->option("kde-special-mimetype")); QString ext(prt->option("kde-special-extension")); if (!mimetype.isEmpty()) { QStringList filter; filter << mimetype; filter << "all/allfiles"; dialog->setMimeFilter (filter, mimetype); } else if (!ext.isEmpty()) dialog->setFilter ("*." + ext + "\n*|" + i18n ("All Files")); } } #include "kprintdialog.moc"
/* config.h. Generated by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Name of package */ #define PACKAGE "xkbevd" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" /* Define to the full name of this package. */ #define PACKAGE_NAME "xkbevd" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "xkbevd 1.0.2" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "xkbevd" /* Define to the version of this package. */ #define PACKAGE_VERSION "1.0.2" /* Version number of package */ #define VERSION "1.0.2"
## XII. Admin processes ### รันงานของผู้ดูแลระบบ/การจัดการให้เป็นกระบวนการแบบครั้งเดียว [process formation](./concurrency) เป็นอาร์เรย์ของ process ที่ใช้ในการทำธุรกิจปรกติของ app (เช่นการจัดการ reqeust ของเว็บ) ขณะทำงาน developer มักต้องการทำการดูแลหรือบำรุงรักษาเพียงคนเดียวสำหรับ app เช่น: * รันการย้ายข้อมูลฐานข้อมูล (เช่น `manage.py migrate` ใน Django, `rake db:migrate` ใน Rails) * รันคอนโซล (เป็นที่รู้จักในชื่อ [REPL](http://en.wikipedia.org/wiki/Read-eval-print_loop) shell) เพื่อรัน code แบบทันทีทันใดหรือตรวจสอบโมเดลของ app ที่ติดต่อกับฐานข้อมูลทันที ภาษาคอมพิวเตอร์ส่วนใหญ่มี REPL โดยการรัน interpreter โดยไม่ต้องมี argument ใดๆ (เช่น `python` หรือ `perl`) หรือในบางกรณีมีการแยกคำสั่ง (เช่น `irb` สำหรับ Ruby, `rails console` สำหรับ Rails) * รันสคริปต์ครั้งเดียวที่ commit ไปที่ repo ของ app (เช่น `php scripts/fix_bad_records.php`) การดูแล process ครั้งเดียวควรจะทำงานในสภาพแวดล้อมที่เหมือนกับทั้วไป [long-running processes](./processes) สำหรับ app ซึ่งทำงานกับ [release](./build-release-run) ใช้ [codebase](./codebase) and [การตั้งค่า](./config) เดียวกันกับ process ใดๆที่ทำงานกับ release ผู้ดูแลระบบของ code จำเป็นต้อง ship ด้วย application code เพื่อหลีกเลี่ยงปัญหาการประสาน (synchronization) เทคนิค [dependency isolation](./dependencies) เดียวกันควรจะใช้กับชนิดของ process ทั้งหมด ตัวอย่างเช่น ถ้า Ruby web process ใช้คำสั่ง `bundle exec thin start` ดังนั้นการย้ายข้อมูลฐานข้อมูลควรจะใช้คำสั่ง `bundle exec rake db:migrate` ในทำนองเดียวกันกับ Python program ใช้ Virtualenv ควรจะใช้คำสั่ง `bin/python` สำหรับทำงานทั้ง Tornado webserver และการดูแลระบบ process `manage.py` ใดๆ Twelve-factor ชื่นชอบภาษาคอมพิวเตอร์ที่มี PERL shell out of the box เป็นอย่างมาก และซึ่งทำให้ง่ายสำหรับรันสคริปต์ครั้งเดียว ใน local deploy, developer ใช้กระบวนการดูแลระบบครั้งเดียวโดยใช้คำสั่ง shell ข้างใน app ใน production deploy, developer สามารถใช้ ssh หรือคำสั่งรีโมทอื่นที่กลไกกำทำงานโดยสภาพแวดล้อมการดำเนินงานของ deploy เพื่อรัน process
package broad.pda.seq.rap; import java.io.*; import java.util.*; import net.sf.picard.cmdline.CommandLineProgram; import net.sf.picard.cmdline.Option; import net.sf.picard.util.Log; import net.sf.samtools.*; public class CalculateCoverageStats extends CommandLineProgram { private static final Log log = Log.getInstance(CommandLineProgram.class); @Option(doc="Input SAM or BAM file", shortName="I") public File INPUT; @Option(doc="Output file", shortName="O") public File OUTPUT; /** * Stock main method. * * @param args main arguments */ public static void main(final String[] args) { System.exit(new CalculateCoverageStats().instanceMain(args)); } @Override protected int doWork() { try { if (OUTPUT.exists()) { OUTPUT.delete(); } SAMFileReader reader = new SAMFileReader(INPUT); final SAMFileHeader header = reader.getFileHeader(); List<String> refs = new ArrayList<String>(); Map<String, Integer> lengths = new HashMap<String, Integer>(); Map<String, Integer> counts = new HashMap<String, Integer>(); for (SAMSequenceRecord ref : header.getSequenceDictionary().getSequences()) { refs.add(ref.getSequenceName()); lengths.put(ref.getSequenceName(), ref.getSequenceLength()); counts.put(ref.getSequenceName(), 0); } Iterator<SAMRecord> itr = reader.iterator(); while (itr.hasNext()) { SAMRecord rec = itr.next(); if (counts.containsKey(rec.getReferenceName())) { counts.put(rec.getReferenceName(), counts.get(rec.getReferenceName()) + 1); } } BufferedWriter bw = new BufferedWriter(new FileWriter(OUTPUT)); for (String ref : refs) { bw.write(ref + "\t" + lengths.get(ref) + "\t" + counts.get(ref) + "\n"); } reader.close(); bw.close(); } catch (Exception e) { log.error(e); return 1; } return 0; } }
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.keycloak.testsuite.adapter.servlet; import org.apache.commons.io.FileUtils; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.graphene.page.Page; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.junit.Assert; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.keycloak.OAuth2Constants; import org.keycloak.admin.client.resource.ClientResource; import org.keycloak.common.Version; import org.keycloak.common.util.Time; import org.keycloak.constants.AdapterConstants; import org.keycloak.protocol.oidc.OIDCLoginProtocol; import org.keycloak.protocol.oidc.OIDCLoginProtocolService; import org.keycloak.representations.AccessToken; import org.keycloak.representations.VersionRepresentation; import org.keycloak.representations.idm.ClientRepresentation; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.representations.idm.UserRepresentation; import org.keycloak.testsuite.adapter.AbstractServletsAdapterTest; import org.keycloak.testsuite.adapter.filter.AdapterActionsFilter; import org.keycloak.testsuite.adapter.page.*; import org.keycloak.testsuite.admin.ApiUtil; import org.keycloak.testsuite.auth.page.account.Applications; import org.keycloak.testsuite.auth.page.login.OAuthGrant; import org.keycloak.testsuite.console.page.events.Config; import org.keycloak.testsuite.console.page.events.LoginEvents; import org.keycloak.testsuite.util.URLUtils; import org.keycloak.util.BasicAuthHelper; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Entity; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.Form; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.Response; import java.io.File; import java.io.IOException; import java.net.URI; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; import static org.junit.Assert.*; import org.keycloak.testsuite.util.Matchers; import javax.ws.rs.core.Response.Status; import static org.hamcrest.Matchers.*; import static org.keycloak.testsuite.auth.page.AuthRealm.DEMO; import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlEquals; import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlStartsWithLoginUrlOf; import static org.keycloak.testsuite.util.WaitUtils.pause; import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement; /** * * @author tkyjovsk */ public abstract class AbstractDemoServletsAdapterTest extends AbstractServletsAdapterTest { @Page private CustomerPortal customerPortal; @Page private CustomerPortalNoConf customerPortalNoConf; @Page private SecurePortal securePortal; @Page private SecurePortalWithCustomSessionConfig securePortalWithCustomSessionConfig; @Page private CustomerDb customerDb; @Page private CustomerDbErrorPage customerDbErrorPage; @Page private ProductPortal productPortal; @Page private InputPortal inputPortal; @Page private TokenMinTTLPage tokenMinTTLPage; @Page private OAuthGrant oAuthGrantPage; @Page private Applications applicationsPage; @Page private LoginEvents loginEventsPage; @Page private BasicAuth basicAuthPage; @Page private Config configPage; @Deployment(name = CustomerPortal.DEPLOYMENT_NAME) protected static WebArchive customerPortal() { return servletDeployment(CustomerPortal.DEPLOYMENT_NAME, CustomerServlet.class, ErrorServlet.class, ServletTestUtils.class); } @Deployment(name = CustomerPortalNoConf.DEPLOYMENT_NAME) protected static WebArchive customerPortalNoConf() { return servletDeployment(CustomerPortalNoConf.DEPLOYMENT_NAME, CustomerServletNoConf.class, ErrorServlet.class); } @Deployment(name = SecurePortal.DEPLOYMENT_NAME) protected static WebArchive securePortal() { return servletDeployment(SecurePortal.DEPLOYMENT_NAME, CallAuthenticatedServlet.class); } @Deployment(name = SecurePortalWithCustomSessionConfig.DEPLOYMENT_NAME) protected static WebArchive securePortalWithCustomSessionConfig() { return servletDeployment(SecurePortalWithCustomSessionConfig.DEPLOYMENT_NAME, CallAuthenticatedServlet.class); } @Deployment(name = CustomerDb.DEPLOYMENT_NAME) protected static WebArchive customerDb() { return servletDeployment(CustomerDb.DEPLOYMENT_NAME, AdapterActionsFilter.class, CustomerDatabaseServlet.class); } @Deployment(name = CustomerDbErrorPage.DEPLOYMENT_NAME) protected static WebArchive customerDbErrorPage() { return servletDeployment(CustomerDbErrorPage.DEPLOYMENT_NAME, CustomerDatabaseServlet.class, ErrorServlet.class); } @Deployment(name = ProductPortal.DEPLOYMENT_NAME) protected static WebArchive productPortal() { return servletDeployment(ProductPortal.DEPLOYMENT_NAME, ProductServlet.class); } @Deployment(name = InputPortal.DEPLOYMENT_NAME) protected static WebArchive inputPortal() { return servletDeployment(InputPortal.DEPLOYMENT_NAME, "keycloak.json", InputServlet.class, ServletTestUtils.class); } @Deployment(name = TokenMinTTLPage.DEPLOYMENT_NAME) protected static WebArchive tokenMinTTLPage() { return servletDeployment(TokenMinTTLPage.DEPLOYMENT_NAME, AdapterActionsFilter.class, AbstractShowTokensServlet.class, TokenMinTTLServlet.class, ErrorServlet.class); } @Deployment(name = BasicAuth.DEPLOYMENT_NAME) protected static WebArchive basicAuth() { return servletDeployment(BasicAuth.DEPLOYMENT_NAME, BasicAuthServlet.class); } @Override public void setDefaultPageUriParameters() { super.setDefaultPageUriParameters(); configPage.setConsoleRealm(DEMO); loginEventsPage.setConsoleRealm(DEMO); applicationsPage.setAuthRealm(DEMO); loginEventsPage.setConsoleRealm(DEMO); } @Before public void beforeDemoServletsAdapterTest() { // Delete all cookies from token-min-ttl page to be sure we are logged out tokenMinTTLPage.navigateTo(); driver.manage().deleteAllCookies(); } @Test public void testSavedPostRequest() throws InterruptedException { // test login to customer-portal which does a bearer request to customer-db inputPortal.navigateTo(); assertCurrentUrlEquals(inputPortal); inputPortal.execute("hello"); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(driver, inputPortal + "/secured/post"); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("parameter=hello")); String logoutUri = OIDCLoginProtocolService.logoutUrl(authServerPage.createUriBuilder()) .queryParam(OAuth2Constants.REDIRECT_URI, customerPortal.toString()) .build("demo").toString(); driver.navigate().to(logoutUri); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); customerPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); // test unsecured POST KEYCLOAK-901 Client client = ClientBuilder.newClient(); Form form = new Form(); form.param("parameter", "hello"); String text = client.target(inputPortal + "/unsecured").request().post(Entity.form(form), String.class); assertTrue(text.contains("parameter=hello")); client.close(); } @Test public void testLoginSSOAndLogout() { // test login to customer-portal which does a bearer request to customer-db customerPortal.navigateTo(); testRealmLoginPage.form().waitForUsernameInputPresent(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(customerPortal); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); // test SSO productPortal.navigateTo(); assertCurrentUrlEquals(productPortal); pageSource = driver.getPageSource(); assertTrue(pageSource.contains("iPhone") && pageSource.contains("iPad")); // View stats List<Map<String, String>> stats = testRealmResource().getClientSessionStats(); Map<String, String> customerPortalStats = null; Map<String, String> productPortalStats = null; for (Map<String, String> s : stats) { switch (s.get("clientId")) { case "customer-portal": customerPortalStats = s; break; case "product-portal": productPortalStats = s; break; } } assertEquals(1, Integer.parseInt(customerPortalStats.get("active"))); assertEquals(1, Integer.parseInt(productPortalStats.get("active"))); // test logout String logoutUri = OIDCLoginProtocolService.logoutUrl(authServerPage.createUriBuilder()) .queryParam(OAuth2Constants.REDIRECT_URI, customerPortal.toString()).build("demo").toString(); driver.navigate().to(logoutUri); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); customerPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); // testRealmLoginPage.form().cancel(); // assertTrue(driver.getPageSource().contains("Error Page")); } @Test public void testServletRequestLogout() { // test login to customer-portal which does a bearer request to customer-db customerPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(customerPortal); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); // test SSO productPortal.navigateTo(); assertCurrentUrlEquals(productPortal); pageSource = driver.getPageSource(); assertTrue(pageSource.contains("iPhone") && pageSource.contains("iPad")); // back customerPortal.navigateTo(); assertCurrentUrlEquals(customerPortal); pageSource = driver.getPageSource(); Assert.assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); // test logout driver.navigate().to(customerPortal + "/logout"); pageSource = driver.getPageSource(); assertTrue(pageSource.contains("servlet logout ok")); assertTrue(pageSource.contains("servlet logout from database ok")); customerPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); } @Test public void testLoginSSOIdle() { // test login to customer-portal which does a bearer request to customer-db customerPortal.navigateTo(); testRealmLoginPage.form().waitForUsernameInputPresent(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(customerPortal); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); RealmRepresentation demoRealmRep = testRealmResource().toRepresentation(); int originalIdle = demoRealmRep.getSsoSessionIdleTimeout(); demoRealmRep.setSsoSessionIdleTimeout(1); testRealmResource().update(demoRealmRep); pause(2000); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); demoRealmRep.setSsoSessionIdleTimeout(originalIdle); testRealmResource().update(demoRealmRep); } @Test public void testLoginSSOIdleRemoveExpiredUserSessions() { // test login to customer-portal which does a bearer request to customer-db customerPortal.navigateTo(); log.info("Current url: " + driver.getCurrentUrl()); testRealmLoginPage.form().waitForUsernameInputPresent(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); log.info("Current url: " + driver.getCurrentUrl()); assertCurrentUrlEquals(customerPortal); String pageSource = driver.getPageSource(); log.info(pageSource); Assert.assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); RealmRepresentation demoRealmRep = testRealmResource().toRepresentation(); int originalIdle = demoRealmRep.getSsoSessionIdleTimeout(); demoRealmRep.setSsoSessionIdleTimeout(1); testRealmResource().update(demoRealmRep); pause(2000); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); // need to cleanup so other tests don't fail, so invalidate http sessions on remote clients. demoRealmRep.setSsoSessionIdleTimeout(originalIdle); testRealmResource().update(demoRealmRep); // note: sessions invalidated after each test, see: AbstractKeycloakTest.afterAbstractKeycloakTest() } @Test public void testLoginSSOMax() throws InterruptedException { // test login to customer-portal which does a bearer request to customer-db customerPortal.navigateTo(); testRealmLoginPage.form().waitForUsernameInputPresent(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(customerPortal); String pageSource = driver.getPageSource(); Assert.assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); RealmRepresentation demoRealmRep = testRealmResource().toRepresentation(); int originalIdle = demoRealmRep.getSsoSessionMaxLifespan(); demoRealmRep.setSsoSessionMaxLifespan(1); testRealmResource().update(demoRealmRep); TimeUnit.SECONDS.sleep(2); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); demoRealmRep.setSsoSessionIdleTimeout(originalIdle); testRealmResource().update(demoRealmRep); String logoutUri = OIDCLoginProtocolService.logoutUrl(authServerPage.createUriBuilder()) .queryParam(OAuth2Constants.REDIRECT_URI, securePortal.toString()).build("demo").toString(); driver.navigate().to(logoutUri); } @Test public void testNullBearerToken() { Client client = ClientBuilder.newClient(); WebTarget target = client.target(customerDb.toString()); Response response = target.request().get(); assertEquals(401, response.getStatus()); response.close(); response = target.request().header(HttpHeaders.AUTHORIZATION, "Bearer null").get(); assertEquals(401, response.getStatus()); response.close(); client.close(); } @Test @Ignore public void testNullBearerTokenCustomErrorPage() { Client client = ClientBuilder.newClient(); WebTarget target = client.target(customerDbErrorPage.toString()); Response response = target.request().get(); // TODO: follow redirects automatically if possible if (response.getStatus() == 302) { String location = response.getHeaderString(HttpHeaders.LOCATION); response.close(); response = client.target(location).request().get(); } assertEquals(200, response.getStatus()); String errorPageResponse = response.readEntity(String.class); assertTrue(errorPageResponse.contains("Error Page")); response.close(); response = target.request().header(HttpHeaders.AUTHORIZATION, "Bearer null").get(); // TODO: follow redirects automatically if possible if (response.getStatus() == 302) { String location = response.getHeaderString(HttpHeaders.LOCATION); response.close(); response = client.target(location).request().get(); } assertEquals(200, response.getStatus()); errorPageResponse = response.readEntity(String.class); assertTrue(errorPageResponse.contains("Error Page")); response.close(); client.close(); } @Test @Ignore public void testBadUser() { Client client = ClientBuilder.newClient(); URI uri = OIDCLoginProtocolService.tokenUrl(authServerPage.createUriBuilder()).build("demo"); WebTarget target = client.target(uri); String header = BasicAuthHelper.createHeader("customer-portal", "password"); Form form = new Form(); form.param(OAuth2Constants.GRANT_TYPE, OAuth2Constants.PASSWORD) .param("username", "[email protected]") .param("password", "password"); Response response = target.request() .header(HttpHeaders.AUTHORIZATION, header) .post(Entity.form(form)); assertEquals(401, response.getStatus()); response.close(); client.close(); } @Test public void testVersion() { Client client = ClientBuilder.newClient(); WebTarget target = client.target(authServerPage.createUriBuilder()).path("version"); VersionRepresentation version = target.request().get(VersionRepresentation.class); assertNotNull(version); assertNotNull(version.getVersion()); assertNotNull(version.getBuildTime()); assertNotEquals(version.getVersion(), Version.UNKNOWN); assertNotEquals(version.getBuildTime(), Version.UNKNOWN); VersionRepresentation version2 = client.target(securePortal.toString()).path(AdapterConstants.K_VERSION).request().get(VersionRepresentation.class); assertNotNull(version2); assertNotNull(version2.getVersion()); assertNotNull(version2.getBuildTime()); assertEquals(version.getVersion(), version2.getVersion()); assertEquals(version.getBuildTime(), version2.getBuildTime()); client.close(); } @Test public void testAuthenticated() { // test login to customer-portal which does a bearer request to customer-db securePortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(securePortal); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); // test logout String logoutUri = OIDCLoginProtocolService.logoutUrl(authServerPage.createUriBuilder()) .queryParam(OAuth2Constants.REDIRECT_URI, securePortal.toString()).build("demo").toString(); driver.navigate().to(logoutUri); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); securePortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); } @Test public void testAuthenticatedWithCustomSessionConfig() { // test login to customer-portal which does a bearer request to customer-db securePortalWithCustomSessionConfig.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(securePortalWithCustomSessionConfig); assertThat("Cookie CUSTOM_JSESSION_ID_NAME should exist", driver.manage().getCookieNamed("CUSTOM_JSESSION_ID_NAME"), notNullValue()); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); // test logout String logoutUri = OIDCLoginProtocolService.logoutUrl(authServerPage.createUriBuilder()) .queryParam(OAuth2Constants.REDIRECT_URI, securePortalWithCustomSessionConfig.toString()).build("demo").toString(); driver.navigate().to(logoutUri); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); securePortalWithCustomSessionConfig.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); } // Tests "token-minimum-time-to-live" adapter configuration option @Test public void testTokenMinTTL() { // Login tokenMinTTLPage.navigateTo(); testRealmLoginPage.form().waitForUsernameInputPresent(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(tokenMinTTLPage); // Get time of token AccessToken token = tokenMinTTLPage.getAccessToken(); int tokenIssued1 = token.getIssuedAt(); // Sets 5 minutes offset and assert access token will be still the same setAdapterAndServerTimeOffset(300, tokenMinTTLPage.toString()); tokenMinTTLPage.navigateTo(); token = tokenMinTTLPage.getAccessToken(); int tokenIssued2 = token.getIssuedAt(); Assert.assertEquals(tokenIssued1, tokenIssued2); assertFalse(token.isExpired()); // Sets 9 minutes offset and assert access token will be refreshed (accessTokenTimeout is 10 minutes, token-min-ttl is 2 minutes. Hence 8 minutes or more should be sufficient) setAdapterAndServerTimeOffset(540, tokenMinTTLPage.toString()); tokenMinTTLPage.navigateTo(); token = tokenMinTTLPage.getAccessToken(); int tokenIssued3 = token.getIssuedAt(); Assert.assertTrue(tokenIssued3 > tokenIssued1); // Revert times setAdapterAndServerTimeOffset(0, tokenMinTTLPage.toString()); } // Tests forwarding of parameters like "prompt" @Test public void testOIDCParamsForwarding() { // test login to customer-portal which does a bearer request to customer-db securePortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); assertCurrentUrlEquals(securePortal); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Bill Burke") && pageSource.contains("Stian Thorgersen")); int currentTime = Time.currentTime(); setAdapterAndServerTimeOffset(10, securePortal.toString()); // Test I need to reauthenticate with prompt=login String appUri = tokenMinTTLPage.getUriBuilder().queryParam(OIDCLoginProtocol.PROMPT_PARAM, OIDCLoginProtocol.PROMPT_VALUE_LOGIN).build().toString(); URLUtils.navigateToUri(driver, appUri, true); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("[email protected]", "password"); AccessToken token = tokenMinTTLPage.getAccessToken(); int authTime = token.getAuthTime(); Assert.assertTrue(currentTime + 10 <= authTime); // Revert times setAdapterAndServerTimeOffset(0, tokenMinTTLPage.toString()); } @Test public void testBasicAuth() { String value = "hello"; Client client = ClientBuilder.newClient(); //pause(1000000); Response response = client.target(basicAuthPage .setTemplateValues("mposolda", "password", value).buildUri()).request().get(); assertThat(response, Matchers.statusCodeIs(Status.OK)); assertEquals(value, response.readEntity(String.class)); response.close(); response = client.target(basicAuthPage .setTemplateValues("invalid-user", "password", value).buildUri()).request().get(); assertThat(response, Matchers.statusCodeIs(Status.UNAUTHORIZED)); assertThat(response, Matchers.body(anyOf(containsString("Unauthorized"), containsString("Status 401")))); response = client.target(basicAuthPage .setTemplateValues("admin", "invalid-password", value).buildUri()).request().get(); assertThat(response, Matchers.statusCodeIs(Status.UNAUTHORIZED)); assertThat(response, Matchers.body(anyOf(containsString("Unauthorized"), containsString("Status 401")))); client.close(); } @Test public void grantServerBasedApp() { ClientResource clientResource = ApiUtil.findClientResourceByClientId(testRealmResource(), "customer-portal"); ClientRepresentation client = clientResource.toRepresentation(); client.setConsentRequired(true); clientResource.update(client); RealmRepresentation realm = testRealmResource().toRepresentation(); realm.setEventsEnabled(true); realm.setEnabledEventTypes(Arrays.asList("REVOKE_GRANT", "LOGIN")); testRealmResource().update(realm); customerPortal.navigateTo(); loginPage.form().login("[email protected]", "password"); assertTrue(oAuthGrantPage.isCurrent()); oAuthGrantPage.accept(); waitUntilElement(By.xpath("//body")).text().contains("Bill Burke"); waitUntilElement(By.xpath("//body")).text().contains("Stian Thorgersen"); applicationsPage.navigateTo(); applicationsPage.revokeGrantForApplication("customer-portal"); customerPortal.navigateTo(); assertTrue(oAuthGrantPage.isCurrent()); loginEventsPage.navigateTo(); if (!testContext.isAdminLoggedIn()) { loginPage.form().login(adminUser); testContext.setAdminLoggedIn(true); } loginEventsPage.table().filter(); loginEventsPage.table().filterForm().addEventType("REVOKE_GRANT"); loginEventsPage.table().update(); List<WebElement> resultList = loginEventsPage.table().rows(); assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='REVOKE_GRANT']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='account']")); resultList.get(0).findElement(By.xpath(".//td[text()='IP Address']/../td[text()='127.0.0.1' or text()='0:0:0:0:0:0:0:1']")); resultList.get(0).findElement(By.xpath(".//td[text()='revoked_client']/../td[text()='customer-portal']")); loginEventsPage.table().reset(); loginEventsPage.table().filterForm().addEventType("LOGIN"); loginEventsPage.table().update(); resultList = loginEventsPage.table().rows(); assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='LOGIN']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='customer-portal']")); resultList.get(0).findElement(By.xpath(".//td[text()='IP Address']/../td[text()='127.0.0.1' or text()='0:0:0:0:0:0:0:1']")); resultList.get(0).findElement(By.xpath(".//td[text()='username']/../td[text()='[email protected]']")); resultList.get(0).findElement(By.xpath(".//td[text()='consent']/../td[text()='consent_granted']")); configPage.navigateTo(); configPage.form().clearLoginEvents(); driver.findElement(By.xpath("//div[@class='modal-dialog']//button[text()='Delete']")).click(); } @Test public void historyOfAccessResourceTest() throws IOException { RealmRepresentation realm = testRealmResource().toRepresentation(); realm.setEventsEnabled(true); realm.setEnabledEventTypes(Arrays.asList("LOGIN", "LOGIN_ERROR", "LOGOUT", "CODE_TO_TOKEN")); testRealmResource().update(realm); customerPortal.navigateTo(); testRealmLoginPage.form().login("[email protected]", "password"); waitUntilElement(By.xpath("//body")).text().contains("Bill Burke"); waitUntilElement(By.xpath("//body")).text().contains("Stian Thorgersen"); driver.navigate().to(testRealmPage.getOIDCLogoutUrl() + "?redirect_uri=" + customerPortal); loginEventsPage.navigateTo(); if (!testContext.isAdminLoggedIn()) { loginPage.form().login(adminUser); testContext.setAdminLoggedIn(true); } loginEventsPage.table().filter(); loginEventsPage.table().filterForm().addEventType("LOGOUT"); loginEventsPage.table().update(); List<WebElement> resultList = loginEventsPage.table().rows(); assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='LOGOUT']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='']")); resultList.get(0).findElement(By.xpath(".//td[text()='IP Address']/../td[text()='127.0.0.1' or text()='0:0:0:0:0:0:0:1']")); loginEventsPage.table().reset(); loginEventsPage.table().filterForm().addEventType("LOGIN"); loginEventsPage.table().update(); resultList = loginEventsPage.table().rows(); assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='LOGIN']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='customer-portal']")); resultList.get(0).findElement(By.xpath(".//td[text()='IP Address']/../td[text()='127.0.0.1' or text()='0:0:0:0:0:0:0:1']")); resultList.get(0).findElement(By.xpath(".//td[text()='username']/../td[text()='[email protected]']")); loginEventsPage.table().reset(); loginEventsPage.table().filterForm().addEventType("CODE_TO_TOKEN"); loginEventsPage.table().update(); resultList = loginEventsPage.table().rows(); assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='CODE_TO_TOKEN']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='customer-portal']")); resultList.get(0).findElement(By.xpath(".//td[text()='IP Address']/../td[text()='127.0.0.1' or text()='0:0:0:0:0:0:0:1']")); resultList.get(0).findElement(By.xpath(".//td[text()='refresh_token_type']/../td[text()='Refresh']")); configPage.navigateTo(); configPage.form().clearLoginEvents(); driver.findElement(By.xpath("//div[@class='modal-dialog']//button[text()='Delete']")).click(); String serverLogPath = null; String appServer = System.getProperty("app.server"); if (appServer != null && (appServer.equals("wildfly") || appServer.equals("eap6") || appServer.equals("eap"))) { serverLogPath = System.getProperty("app.server.home") + "/standalone/log/server.log"; } String appServerUrl; if (Boolean.parseBoolean(System.getProperty("app.server.ssl.required"))) { appServerUrl = "https://localhost:" + System.getProperty("app.server.https.port", "8543") + "/"; } else { appServerUrl = "http://localhost:" + System.getProperty("app.server.http.port", "8280") + "/"; } if (serverLogPath != null) { log.info("Checking app server log at: " + serverLogPath); File serverLog = new File(serverLogPath); String serverLogContent = FileUtils.readFileToString(serverLog); UserRepresentation bburke = ApiUtil.findUserByUsername(testRealmResource(), "[email protected]"); Pattern pattern = Pattern.compile("User '" + bburke.getId() + "' invoking '" + appServerUrl + "customer-portal[^\\s]+' on client 'customer-portal'"); Matcher matcher = pattern.matcher(serverLogContent); assertTrue(matcher.find()); assertTrue(serverLogContent.contains("User '" + bburke.getId() + "' invoking '" + appServerUrl + "customer-db/' on client 'customer-db'")); } else { log.info("Checking app server log on app-server: \"" + System.getProperty("app.server") + "\" is not supported."); } } @Test public void testWithoutKeycloakConf() { customerPortalNoConf.navigateTo(); String pageSource = driver.getPageSource(); assertTrue(pageSource.contains("Forbidden") || pageSource.contains("HTTP Status 401")); } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>iris: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.9.1 / iris - 3.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> iris <small> 3.1.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-28 10:10:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-28 10:10:01 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.9.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-iris&quot; maintainer: &quot;Ralf Jung &lt;[email protected]&gt;&quot; authors: &quot;The Iris Team&quot; homepage: &quot;http://iris-project.org/&quot; bug-reports: &quot;https://gitlab.mpi-sws.org/FP/iris-coq/issues&quot; license: &quot;BSD&quot; dev-repo: &quot;git+https://gitlab.mpi-sws.org/FP/iris-coq.git&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-rf&quot; &quot;%{lib}%/coq/user-contrib/iris&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.6.1&quot; &amp; &lt; &quot;8.9~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-ssreflect&quot; {(&gt;= &quot;1.6.1&quot; &amp; &lt; &quot;1.8~&quot;) | (= &quot;dev&quot;)} &quot;coq-stdpp&quot; {(= &quot;1.1.0&quot;) | (= &quot;dev&quot;)} ] synopsis: &quot;This is the Coq development of the Iris Project&quot; flags: light-uninstall url { src: &quot;https://gitlab.mpi-sws.org/iris/iris/-/archive/iris-3.1.0.tar.gz&quot; checksum: &quot;md5=3e280893c0189141bb681cc87b7a9401&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-iris.3.1.0 coq.8.9.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.9.1). The following dependencies couldn&#39;t be met: - coq-iris -&gt; coq (&lt; 8.9~ &amp; = dev) -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-iris.3.1.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ #include "base/memory/scoped_ptr.h" #include "content/worker/websharedworkerclient_proxy.h" #include "content/worker/worker_webapplicationcachehost_impl.h" #include "googleurl/src/gurl.h" #include "ipc/ipc_channel.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" namespace WebKit { class WebSharedWorker; } namespace content { class SharedWorkerDevToolsAgent; // This class creates a WebSharedWorker, and translates incoming IPCs to the // appropriate WebSharedWorker APIs. class WebSharedWorkerStub : public IPC::Listener { public: WebSharedWorkerStub(const string16& name, int route_id, const WorkerAppCacheInitInfo& appcache_init_info); // IPC::Listener implementation. virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; virtual void OnChannelError() OVERRIDE; // Invoked when the WebSharedWorkerClientProxy is shutting down. void Shutdown(); // Called after terminating the worker context to make sure that the worker // actually terminates (is not stuck in an infinite loop). void EnsureWorkerContextTerminates(); WebSharedWorkerClientProxy* client() { return &client_; } const WorkerAppCacheInitInfo& appcache_init_info() const { return appcache_init_info_; } // Returns the script url of this worker. const GURL& url(); private: virtual ~WebSharedWorkerStub(); void OnConnect(int sent_message_port_id, int routing_id); void OnStartWorkerContext( const GURL& url, const string16& user_agent, const string16& source_code, const string16& content_security_policy, WebKit::WebContentSecurityPolicyType policy_type); void OnTerminateWorkerContext(); int route_id_; WorkerAppCacheInitInfo appcache_init_info_; // WebSharedWorkerClient that responds to outgoing API calls // from the worker object. WebSharedWorkerClientProxy client_; WebKit::WebSharedWorker* impl_; string16 name_; bool started_; GURL url_; scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; typedef std::pair<int, int> PendingConnectInfo; typedef std::vector<PendingConnectInfo> PendingConnectInfoList; PendingConnectInfoList pending_connects_; DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); }; } // namespace content #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
Excellent article. I feel for peoples all over the world who do not have the freedom to worship. In China I worshipped with a secret church. I am sure you were outside your comfort zone much of the time.
12 Volt Appliances Work Off Your Car's Lighter, How Convenient!! With 12 volt appliances, you can have all the extras when camping. If you plan to go camping in a tent, all you need is your vehicle cigar lighter plug. You can find all kinds of 12 volt conveniences for camping comfort. As you can see from the products listed below, you have it made. You need to have some of these on hand. Your next tent camping experience can be a better one. Think about that hot cup of coffee in the morning or late in the evening. It tastes so good, doesn't it? 12 volt appliances are not very expensive. They can be replaced easily and are travel efficient. With a limited space for traveling, you can still pack it away. When camping in a tent, you don't have all the extras like you do in a travel trailer. No electricity, no problem. Just plug it into your car's lighter and you can make coffee, cook or keep your foods cool. Keeping your food cold will be easy without ice. Just plug it into your lighter, and you have a mini fridge on wheels. Sounds like a must needed thing to have. Convenience is the key to using these great ideas. They make life easier and camping lots more fun. Cook in a crock pot and have a hot meal. Keep yourself warm with a heater. Enjoy hot chocolate and coffee on a cold morning. Think of all the possible ways to use these. You can actually take everything you need for camping in just a little space. You don't even need a campfire to have a hot meal. Sometimes building a fire is out of the question. This solves that problem for you. You will have everything you need to have a comfortable and easy camping experience. Make sure your vehicle's cigar lighter works or your appliances won't work. You can always get a small travel generator and take with you. Some of these don't weigh very much and are not heavy or cumbersome.
<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>National Water Supply and Drainage Board</ShortName><Description>National Water Supply and Drainage Board</Description><InputEncoding>UTF-8</InputEncoding><Image type="image/vnd.microsoft.icon" width="16" height="16">http://waterboard.lk/web/templates/poora_temp/favicon.ico</Image><Url type="application/opensearchdescription+xml" rel="self" template="http://waterboard.lk/web/index.php?option=com_search&amp;view=article&amp;id=126&amp;Itemid=330&amp;lang=en&amp;format=opensearch"/><Url type="text/html" template="http://waterboard.lk/web/index.php?option=com_search&amp;searchword={searchTerms}&amp;Itemid=188"/></OpenSearchDescription>
package net.sf.jabref.logic.remote.client; import java.net.InetAddress; import java.net.Socket; import net.sf.jabref.logic.l10n.Localization; import net.sf.jabref.logic.remote.shared.Protocol; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class RemoteListenerClient { private static final Log LOGGER = LogFactory.getLog(RemoteListenerClient.class); private static final int TIMEOUT = 2000; /** * Attempt to send command line arguments to already running JabRef instance. * * @param args Command line arguments. * @return true if successful, false otherwise. */ public static boolean sendToActiveJabRefInstance(String[] args, int remoteServerPort) { try (Socket socket = new Socket(InetAddress.getByName("localhost"), remoteServerPort)) { socket.setSoTimeout(TIMEOUT); Protocol protocol = new Protocol(socket); try { String identifier = protocol.receiveMessage(); if (!Protocol.IDENTIFIER.equals(identifier)) { String port = String.valueOf(remoteServerPort); String error = Localization.lang("Cannot use port %0 for remote operation; another application may be using it. Try specifying another port.", port); System.out.println(error); return false; } protocol.sendMessage(String.join("\n", args)); return true; } finally { protocol.close(); } } catch (Exception e) { LOGGER.debug( "Could not send args " + String.join(", ", args) + " to the server at port " + remoteServerPort, e); return false; } } }
#include <string.h> void itoa(char *buf,int base,int d) { char *p = buf; char *p1,*p2; unsigned long ud = d; int divisor = 10; if(base == 'd' && d < 0) { *p++ = '-'; buf++; ud = -d; } else if(base == 'x') divisor = 16; do { int remainder = ud % divisor; *p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10; } while(ud /= divisor); *p = 0; p1 = buf; p2 = p - 1; while(p1 < p2) { char tmp = *p1; *p1 = *p2; *p2 = tmp; p1++; p2--; } } void* memcpy(void* dstptr,const void* srcptr,size_t size) { unsigned char* dst = (unsigned char*)dstptr; const unsigned char* src = (const unsigned char*)srcptr; for(size_t i = 0;i < size;i++) dst[i] = src[i]; return dstptr; } void* memset(void* bufptr,int value,size_t size) { unsigned char* buf = (unsigned char*)bufptr; for(size_t i = 0;i < size;i++) buf[i] = (unsigned char)value; return bufptr; } int strcmp(const char* a,const char* b) { for(size_t i = 0;true;i++) { unsigned char ac = (unsigned char)a[i]; unsigned char bc = (unsigned char)b[i]; if(ac == '\0' && bc == '\0') return 0; if(ac < bc) return -1; if(ac > bc) return 1; } } char* strcpy(char* dest,const char* src) { size_t index; for(index = 0;src[index];index++) dest[index] = src[index]; dest[index] = '\0'; return dest; } size_t strlen(const char* str) { size_t len = 0; while(str[len++]); return len; }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const _css = ` body > .weex-div { min-height: 100%; } ` function getDiv (weex) { const { extractComponentStyle, trimTextVNodes } = weex return { name: 'weex-div', render (createElement) { return createElement('html:div', { attrs: { 'weex-type': 'div' }, staticClass: 'weex-div weex-ct', staticStyle: extractComponentStyle(this) }, trimTextVNodes(this.$slots.default)) }, _css } } export default { init (weex) { const div = getDiv(weex) weex.registerComponent('div', div) weex.registerComponent('container', div) } }
Welcome to the office of Worthington Foot & Ankle! Are you currently experiencing pains or uncomfortable sensations in your legs, ankles, heels or toes? We will do our best to pinpoint the problem and get you back on your feet! From pediatrics, to sports medicine, to diabetic foot care, we are here to provide an exceptional service to all walks of life. What currently ails you? Not quite sure? We’ll help figure it out for you through digital x-rays and other technologies. Our team will take advantage of the advances in the field of podiatry to bring you relief. At our practice, we are dedicated to providing you with solutions to a great number of foot conditions. From the professionalism and discretion of our staff, to the cleanliness of our facility, Worthington Foot & Ankle aims to make you feel comfortable – both during your visit and for years to come. Throughout our time in the field of podiatry, we have dealt with just about every foot condition out there. This wealth of experience allows for us to properly treat your issue with sensitivity, confidence and the most proactive strategy possible. We are now accepting patients, and are on most insurance plans. Call to make an appointment today!
We provide advice to private companies in the development of public development projects that can improve living conditions in their area of influence. As requested by SAVIA Perú, and in collaboration with officials from the regional government, a portfolio of projects was built for Talara, Paite y Sechura (provinces). For each selected project, we proposed a work plan that established the different activities and deadlines that the technical assistance team should perform activities and meet deadlines to support the solution of bottlenecks in the management cycle of each project. The objective was to align actions undertaken by public entities align with those of other stakeholders, to avoid an inefficient use of resources and a duplication of efforts. With the project, the interests and initiatives of various stakeholders were articulated, short-term problems were identified, and efforts became more focused on common objectives. Altogether, the results of this project allow for a greater political, technical, and financial viability of the programs and projects that are formulated within the framework of development planning. As requested by TGP, we developed plans, one for each of the villages located in Cusco’s jungle area. The secondary information that was used mainly corresponded to the 2007 National Population and Housing Census, and the primary information was collected in the area under analysis. Each development plan consists of an assessment of the sector in question, and of the problem to be solved. Within that framework, the objectives, strategies, and specific projects to close the identified gaps, are developed. The plans also include a road map and guidelines to accomplish a successful implementation of the projects that the affected population ranks as highest in priority for the improvement of their living standards, both in Kiteni and Kepashiato. A group of mining companies requested an analysis of the problems generated by the mechanisms of distribution and spending of mining taxes. We confirmed that the existing tax regime (GEM and IEM) did not take into account that the distribution of canon and royalties, to a certain degree, neglected the areas of direct influence of mining projects considered in the Environmental and Social Impact Assessment that were not included in the concession area. This situation was offset by PMSP (Mining Program Solidarity with People) resources. Our proposals would allow, on the one hand, mining companies to develop all stages of business in a climate of social peace; and secondly, the State in partnership with the private sector to improve the quality of life and promote sustainable development of the population in areas of mining influence.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> <title>Counters Numbers | Aura professional HTML5 template</title> <link rel="shortcut icon" href="/favicon.ico"/> <link rel="stylesheet" type="text/css" href="3dParty/bootstrap/css/bootstrap.min.css"/> <link rel="stylesheet" type="text/css" href="css/global.css"/> <link rel="stylesheet" type="text/css" href="css/typo.css"/> <link rel="stylesheet" type="text/css" href="3dParty/colorbox/colorbox.css"/> <link rel="stylesheet" type="text/css" href="css/counters.css"/> <link rel="stylesheet" type="text/css" href="css/social.css"/> <!--Fonts--> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&amp;subset=latin,cyrillic' rel='stylesheet' type='text/css'/> <!--Fonts with Icons--> <link rel="stylesheet" href="3dParty/fontello/css/fontello.css"/> </head> <body> <div id="pi-all"> <!-- Header --> <div class="pi-header"> <!-- Header row --> <div class="pi-section-w pi-section-dark"> <div class="pi-section pi-row-sm"> <!-- Phone --> <div class="pi-row-block pi-row-block-txt"> <i class="pi-row-block-icon icon-phone pi-icon-base pi-icon-square"></i>Call Us: <strong>+7.906.229.2627</strong> </div> <!-- End phone --> <!-- Email --> <div class="pi-row-block pi-row-block-txt pi-hidden-xs"><i class="pi-row-block-icon icon-mail pi-icon-base pi-icon-square"></i>Email: <a href="#">[email protected]</a> </div> <!-- End email --> <!-- Social icons --> <div class="pi-row-block pi-pull-right pi-hidden-2xs"> <ul class="pi-social-icons pi-stacked pi-jump pi-full-height pi-bordered pi-small pi-colored-bg clearFix"> <li><a href="#" class="pi-social-icon-twitter"><i class="icon-twitter"></i></a></li> <li><a href="#" class="pi-social-icon-facebook"><i class="icon-facebook"></i></a></li> <li><a href="#" class="pi-social-icon-dribbble"><i class="icon-dribbble"></i></a></li> </ul> </div> <!-- End social icons --> <!-- Text --> <div class="pi-row-block pi-row-block-txt pi-pull-right pi-hidden-xs">Follow Us:</div> <!-- End text --> </div> </div> <!-- End header row --> <div class="pi-header-sticky"> <!-- Header row --> <div class="pi-section-w pi-section-white pi-shadow-bottom pi-row-reducible"> <div class="pi-section pi-row-lg"> <!-- Logo --> <div class="pi-row-block pi-row-block-logo"> <a href="index.html"><img src="img/logo-base.png" alt=""></a> </div> <!-- End logo --> <!-- Text --> <div class="pi-row-block pi-row-block-txt pi-hidden-2xs">HTML5 template</div> <!-- End text --> <!-- Menu --> <div class="pi-row-block pi-pull-right"> <ul class="pi-simple-menu pi-has-hover-border pi-full-height pi-hidden-sm"> <li class="pi-has-dropdown active"><a href="index.html"><span>Home</span></a> <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark"> <li><a href="index.html"><span>Home 1</span></a></li> <li><a href="home-home-2.html"><span>Home 2</span></a></li> <li><a href="home-home-3.html"><span>Home 3</span></a></li> <li><a href="home-home-4.html"><span>Home 4</span></a></li> <li><a href="home-home-5.html"><span>Home 5</span></a></li> <li><a href="home-home-6.html"><span>Home 6</span></a></li> <li><a href="home-home-7.html"><span>Home 7</span></a></li> <li><a href="home-home-8.html"><span>Home 8</span></a></li> <li><a href="home-home-9.html"><span>Home 9</span></a></li> <li><a href="home-home-10.html"><span>Home 10</span></a></li> <li><a href="home-onepage-1.html"><span>Onepage 1</span></a></li> <li><a href="home-onepage-2.html"><span>Onepage 2</span></a></li> </ul> </li> <li class="pi-has-dropdown"><a href="headers-headers-light.html"><span>Features</span></a> <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark"> <li class="pi-has-dropdown"><a href="headers-headers-light.html"><span>Headers</span></a> <ul class="pi-submenu"> <li><a href="headers-headers-light.html"><span>Headers Light</span></a></li> <li><a href="headers-headers-dark.html"><span>Headers Dark</span></a></li> <li><a href="headers-headers-base.html"><span>Headers Base</span></a></li> </ul> </li> <li class="pi-has-dropdown"><a href="footers-footers-light.html"><span>Footers</span></a> <ul class="pi-submenu"> <li><a href="footers-footers-light.html"><span>Footers Light</span></a></li> <li><a href="footers-footers-dark.html"><span>Footers Dark</span></a></li> <li><a href="footers-footers-base.html"><span>Footers Base</span></a></li> </ul> </li> <li class="pi-has-dropdown"><a href="utility-utility-alignment.html"><span>Utility</span></a> <ul class="pi-submenu"> <li><a href="utility-utility-grid.html"><span>Utility grid</span></a></li> <li><a href="utility-utility-visibility.html"><span>Utility visibility</span></a></li> <li><a href="utility-utility-alignment.html"><span>Utility alignment</span></a></li> </ul> </li> <li><a href="typo.html"><span>Typography</span></a></li> <li><a href="animations.html"><span>Animations</span></a></li> <li><a href="icons.html"><span>Icons</span></a></li> </ul> </li> <li class="pi-has-dropdown pi-has-dropdown-wide"><a href="about-about-1.html"><span>Templates</span></a> <div class="pi-submenu-wide pi-submenu-wide-dark pi-has-border" style="box-shadow: 0 5px 20px rgba(0,0,0,0.2);"> <div class="pi-section pi-section-dark pi-no-padding pi-clearfix"> <div class="pi-bordered"> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="about-about-1.html"><span>About Company 1</span></a></li> <li><a href="about-about-2.html"><span>About Company 2</span></a></li> <li><a href="about-about-3.html"><span>About Company 3</span></a></li> <li><a href="about-about-4.html"><span>About Company 4</span></a></li> <li><a href="services-services-1.html"><span>Services 1</span></a></li> <li><a href="services-services-2.html"><span>Services 2</span></a></li> <li><a href="services-services-3.html"><span>Services 3</span></a></li> <li><a href="services-services-4.html"><span>Services 4</span></a></li> <li><a href="services-services-5.html"><span>Services 5</span></a></li> <li><a href="services-services-6.html"><span>Services 6</span></a></li> <li><a href="services-services-7.html"><span>Services 7</span></a></li> <li><a href="services-services-8.html"><span>Services 8</span></a></li> <li><a href="services-services-9.html"><span>Services 9</span></a></li> <li><a href="services-services-10.html"><span>Services 10</span></a></li> <li><a href="services-services-11.html"><span>Services 11</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="clients-clients-1.html"><span>Clients 1</span></a></li> <li><a href="clients-clients-2.html"><span>Clients 2</span></a></li> <li><a href="clients-clients-3.html"><span>Clients 3</span></a></li> <li><a href="clients-clients-4.html"><span>Clients 4</span></a></li> <li><a href="clients-clients-5.html"><span>Clients 5</span></a></li> <li><a href="clients-clients-6.html"><span>Clients 6</span></a></li> <li><a href="clients-clients-7.html"><span>Clients 7</span></a></li> <li><a href="portfolio-portfolio-1.html"><span>Portfolio Classic 1</span></a></li> <li><a href="portfolio-portfolio-2.html"><span>Portfolio Classic 2</span></a></li> <li><a href="portfolio-portfolio-3.html"><span>Portfolio Classic 3</span></a></li> <li><a href="portfolio-portfolio-4.html"><span>Portfolio Classic 4</span></a></li> <li><a href="portfolio-portfolio-5.html"><span>Portfolio Classic 5</span></a></li> <li><a href="portfolio-portfolio-6.html"><span>Portfolio Classic 6</span></a></li> <li><a href="portfolio-portfolio-7.html"><span>Portfolio Classic 7</span></a></li> <li><a href="portfolio-portfolio-8.html"><span>Portfolio Classic 8</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="portfolio-portfolio-9.html"><span>Portfolio Classic 9</span></a></li> <li><a href="portfolio-portfolio-10.html"><span>Portfolio Classic 10</span></a></li> <li><a href="portfolio-portfolio-masonry.html"><span>Portfolio Masonry 1</span></a></li> <li><a href="portfolio-portfolio-masonry-2.html"><span>Portfolio Masonry 2</span></a></li> <li><a href="portfolio-portfolio-timeline.html"><span>Portfolio Timeline</span></a></li> <li><a href="portfolio-portfolio-single.html"><span>Portfolio Single</span></a></li> <li><a href="blog-blog-grid-wide.html"><span>Blog Masonry Wide</span></a></li> <li><a href="blog-blog-grid-sidebar.html"><span>Blog Masonry + Sidebar</span></a></li> <li><a href="blog-blog-timeline-wide.html"><span>Blog Timeline Wide</span></a></li> <li><a href="blog-blog-timeline-sidebar.html"><span>Blog Timeline + Sidebar</span></a></li> <li><a href="blog-blog-large-image.html"><span>Blog Large image</span></a></li> <li><a href="blog-blog-medium-image.html"><span>Blog Medium image</span></a></li> <li><a href="blog-blog-small-image.html"><span>Blog Small image</span></a></li> <li><a href="blog-blog-single-post.html"><span>Blog Single Post</span></a></li> <li><a href="team-team-1.html"><span>Team 1</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="team-team-2.html"><span>Team 2</span></a></li> <li><a href="team-team-3.html"><span>Team 3</span></a></li> <li><a href="testimonials-testimonials-1.html"><span>Testimonials 1</span></a></li> <li><a href="testimonials-testimonials-2.html"><span>Testimonials 2</span></a></li> <li><a href="faq-faq-1.html"><span>FAQ 1</span></a></li> <li><a href="faq-faq-2.html"><span>FAQ 2</span></a></li> <li><a href="contact-contact-1-fancy-header.html"><span>Contact 1</span></a></li> <li><a href="contact-contact-2-fancy-header.html"><span>Contact 2</span></a></li> <li><a href="layouts-fixed-fluid.html"><span>Layouts Fixed fluid</span></a></li> <li><a href="layouts-fluid-fixed.html"><span>Layouts Fluid fixed</span></a></li> <li><a href="layouts-fixed-fluid-fixed.html"><span>Layouts Fixed fluid fixed</span></a></li> <li><a href="sign-in.html"><span>Sign In</span></a></li> <li><a href="sign-up.html"><span>Sign Up</span></a></li> <li><a href="404.html"><span>404</span></a></li> <li><a href="500.html"><span>500</span></a></li> </ul> </div> </div> </div> </div> </li> <li class="pi-has-dropdown pi-has-dropdown-wide"><a href="titlebars-small-breadcrumb-right.html"><span>Elements</span></a> <div class="pi-submenu-wide pi-submenu-wide-dark pi-has-border" style="box-shadow: 0 5px 20px rgba(0,0,0,0.2);"> <div class="pi-section pi-section-dark pi-no-padding pi-clearfix"> <div class="pi-bordered"> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="titlebars-small-breadcrumb-right.html"><span>Titlebars - Breadcrumb Right</span></a></li> <li><a href="titlebars-small-breadcrumb-top.html"><span>Titlebars - Breadcrumb Top</span></a></li> <li><a href="titlebars-big-breadcrumb-right.html"><span>Titlebars - Big Breadcrumb Right</span></a></li> <li><a href="titlebars-big-breadcrumb-top.html"><span>Titlebars - Big Breadcrumb Top</span></a></li> <li><a href="titlebars-only-breadcrumb.html"><span>Titlebars - Only Breadcrumb</span></a></li> <li><a href="icon-boxes-horizontal.html"><span>Icon Boxes Horizontal</span></a></li> <li><a href="icon-boxes-vertical.html"><span>Icon Boxes Vertical</span></a></li> <li><a href="lists-simple.html"><span>Lists Simple</span></a></li> <li><a href="lists-icons.html"><span>Lists Icons</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="lists-groups.html"><span>Lists Groups</span></a></li> <li><a href="lists-images.html"><span>Lists Images</span></a></li> <li><a href="socials-small.html"><span>Socials Complex Small</span></a></li> <li><a href="socials.html"><span>Socials Complex</span></a></li> <li><a href="socials-big.html"><span>Socials Complex Big</span></a></li> <li><a href="socials-simple.html"><span>Socials Simple</span></a></li> <li><a href="counters-numbers.html"><span>Counters Numbers</span></a></li> <li><a href="counters-progress-bars.html"><span>Counters Progress Bars</span></a></li> <li><a href="tabs.html"><span>Tabs</span></a></li> <li><a href="tabs-big.html"><span>Tabs Big</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="tables.html"><span>Tables</span></a></li> <li><a href="accordions.html"><span>Accordions</span></a></li> <li><a href="alert-boxes.html"><span>Alert Boxes</span></a></li> <li><a href="boxes.html"><span>Boxes</span></a></li> <li><a href="buttons.html"><span>Buttons</span></a></li> <li><a href="forms.html"><span>Forms</span></a></li> <li><a href="slider.html"><span>Slider</span></a></li> <li><a href="google-maps-roadmap.html"><span>Google Maps Roadmap</span></a></li> <li><a href="google-maps-grey.html"><span>Google Maps Grey style</span></a></li> </ul> </div> <div class="pi-col pi-col-sm-3 pi-padding-top-15 pi-no-padding-bottom"> <ul class="pi-list-menu pi-list-with-icons pi-list-icons-right-open pi-margin-bottom-15"> <li><a href="google-maps-dark.html"><span>Google Maps Dark style</span></a></li> <li><a href="google-maps-satellite.html"><span>Google Maps Satellite</span></a></li> <li><a href="google-maps-hybrid.html"><span>Google Maps Hybrid</span></a></li> <li><a href="images.html"><span>Images</span></a></li> <li><a href="pricing-tables.html"><span>Pricing Tables</span></a></li> <li><a href="sections.html"><span>Sections</span></a></li> <li><a href="testimonials-simple.html"><span>Testimonials Simple</span></a></li> <li><a href="testimonials-photo.html"><span>Testimonials With Photo</span></a></li> <li><a href="modals.html"><span>Modals</span></a></li> </ul> </div> </div> </div> </div> </li> <li class="pi-has-dropdown"><a href="docs-docs.html"><span>Docs</span></a> <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark"> <li><a href="docs-docs.html"><span>Docs Map</span></a></li> <li><a href="docs-quick-start-guide.html"><span>Quick Start Guide</span></a></li> <li><a href="docs-credits.html"><span>Credits</span></a></li> <li><a href="docs-changelog.html"><span>Changelog</span></a></li> <li><a href="docs-theme-structure.html"><span>Theme Structure</span></a></li> <li><a href="docs-theme-settings.html"><span>Theme Settings</span></a></li> </ul> </li> </ul> </div> <!-- End menu --> <!-- Mobile menu button --> <div class="pi-row-block pi-pull-right pi-hidden-lg-only pi-hidden-md-only"> <button class="btn pi-btn pi-mobile-menu-toggler" data-target="#pi-main-mobile-menu"> <i class="icon-menu pi-text-center"></i> </button> </div> <!-- End mobile menu button --> <!-- Mobile menu --> <div id="pi-main-mobile-menu" class="pi-section-menu-mobile-w pi-section-dark"> <div class="pi-section-menu-mobile"> <!-- Search form --> <form class="form-inline pi-search-form-wide ng-pristine ng-valid" role="form"> <div class="pi-input-with-icon"> <div class="pi-input-icon"><i class="icon-search-1"></i></div> <input type="text" class="form-control pi-input-wide" placeholder="Search.."> </div> </form> <!-- End search form --> <ul class="pi-menu-mobile pi-items-have-borders pi-menu-mobile-dark"> <li class="active"><a href="index.html"><span>Home</span></a> <ul> <li><a href="index.html"><span>Home 1</span></a></li> <li><a href="home-home-2.html"><span>Home 2</span></a></li> <li><a href="home-home-3.html"><span>Home 3</span></a></li> <li><a href="home-home-4.html"><span>Home 4</span></a></li> <li><a href="home-home-5.html"><span>Home 5</span></a></li> <li><a href="home-home-6.html"><span>Home 6</span></a></li> <li><a href="home-home-7.html"><span>Home 7</span></a></li> <li><a href="home-home-8.html"><span>Home 8</span></a></li> <li><a href="home-home-9.html"><span>Home 9</span></a></li> <li><a href="home-home-10.html"><span>Home 10</span></a></li> <li><a href="home-onepage-1.html"><span>Onepage 1</span></a></li> <li><a href="home-onepage-2.html"><span>Onepage 2</span></a></li> </ul> </li> <li><a href="headers-headers-light.html"><span>Features</span></a> <ul> <li><a href="headers-headers-light.html"><span>Headers</span></a> <ul> <li><a href="headers-headers-light.html"><span>Headers Light</span></a></li> <li><a href="headers-headers-dark.html"><span>Headers Dark</span></a></li> <li><a href="headers-headers-base.html"><span>Headers Base</span></a></li> </ul> </li> <li><a href="footers-footers-light.html"><span>Footers</span></a> <ul> <li><a href="footers-footers-light.html"><span>Footers Light</span></a></li> <li><a href="footers-footers-dark.html"><span>Footers Dark</span></a></li> <li><a href="footers-footers-base.html"><span>Footers Base</span></a></li> </ul> </li> <li><a href="utility-utility-alignment.html"><span>Utility</span></a> <ul> <li><a href="utility-utility-grid.html"><span>Utility grid</span></a></li> <li><a href="utility-utility-visibility.html"><span>Utility visibility</span></a></li> <li><a href="utility-utility-alignment.html"><span>Utility alignment</span></a></li> </ul> </li> <li><a href="typo.html"><span>Typography</span></a></li> <li><a href="animations.html"><span>Animations</span></a></li> <li><a href="icons.html"><span>Icons</span></a></li> </ul> </li> <li><a href="about-about-1.html"><span>Templates</span></a> <ul> <li><a href="about-about-1.html"><span>About Company 1</span></a></li> <li><a href="about-about-2.html"><span>About Company 2</span></a></li> <li><a href="about-about-3.html"><span>About Company 3</span></a></li> <li><a href="about-about-4.html"><span>About Company 4</span></a></li> <li><a href="services-services-1.html"><span>Services 1</span></a></li> <li><a href="services-services-2.html"><span>Services 2</span></a></li> <li><a href="services-services-3.html"><span>Services 3</span></a></li> <li><a href="services-services-4.html"><span>Services 4</span></a></li> <li><a href="services-services-5.html"><span>Services 5</span></a></li> <li><a href="services-services-6.html"><span>Services 6</span></a></li> <li><a href="services-services-7.html"><span>Services 7</span></a></li> <li><a href="services-services-8.html"><span>Services 8</span></a></li> <li><a href="services-services-9.html"><span>Services 9</span></a></li> <li><a href="services-services-10.html"><span>Services 10</span></a></li> <li><a href="services-services-11.html"><span>Services 11</span></a></li> <li><a href="clients-clients-1.html"><span>Clients 1</span></a></li> <li><a href="clients-clients-2.html"><span>Clients 2</span></a></li> <li><a href="clients-clients-3.html"><span>Clients 3</span></a></li> <li><a href="clients-clients-4.html"><span>Clients 4</span></a></li> <li><a href="clients-clients-5.html"><span>Clients 5</span></a></li> <li><a href="clients-clients-6.html"><span>Clients 6</span></a></li> <li><a href="clients-clients-7.html"><span>Clients 7</span></a></li> <li><a href="portfolio-portfolio-1.html"><span>Portfolio Classic 1</span></a></li> <li><a href="portfolio-portfolio-2.html"><span>Portfolio Classic 2</span></a></li> <li><a href="portfolio-portfolio-3.html"><span>Portfolio Classic 3</span></a></li> <li><a href="portfolio-portfolio-4.html"><span>Portfolio Classic 4</span></a></li> <li><a href="portfolio-portfolio-5.html"><span>Portfolio Classic 5</span></a></li> <li><a href="portfolio-portfolio-6.html"><span>Portfolio Classic 6</span></a></li> <li><a href="portfolio-portfolio-7.html"><span>Portfolio Classic 7</span></a></li> <li><a href="portfolio-portfolio-8.html"><span>Portfolio Classic 8</span></a></li> <li><a href="portfolio-portfolio-9.html"><span>Portfolio Classic 9</span></a></li> <li><a href="portfolio-portfolio-10.html"><span>Portfolio Classic 10</span></a></li> <li><a href="portfolio-portfolio-masonry.html"><span>Portfolio Masonry 1</span></a></li> <li><a href="portfolio-portfolio-masonry-2.html"><span>Portfolio Masonry 2</span></a></li> <li><a href="portfolio-portfolio-timeline.html"><span>Portfolio Timeline</span></a></li> <li><a href="blog-blog-grid-wide.html"><span>Blog Masonry Wide</span></a></li> <li><a href="blog-blog-grid-sidebar.html"><span>Blog Masonry + Sidebar</span></a></li> <li><a href="blog-blog-timeline-wide.html"><span>Blog Timeline Wide</span></a></li> <li><a href="blog-blog-timeline-sidebar.html"><span>Blog Timeline + Sidebar</span></a></li> <li><a href="blog-blog-large-image.html"><span>Blog Large image</span></a></li> <li><a href="blog-blog-medium-image.html"><span>Blog Medium image</span></a></li> <li><a href="blog-blog-small-image.html"><span>Blog Small image</span></a></li> <li><a href="blog-blog-single-post.html"><span>Blog Single Post</span></a></li> <li><a href="team-team-1.html"><span>Team 1</span></a></li> <li><a href="team-team-2.html"><span>Team 2</span></a></li> <li><a href="team-team-3.html"><span>Team 3</span></a></li> <li><a href="testimonials-testimonials-1.html"><span>Testimonials 1</span></a></li> <li><a href="testimonials-testimonials-2.html"><span>Testimonials 2</span></a></li> <li><a href="faq-faq-1.html"><span>FAQ 1</span></a></li> <li><a href="faq-faq-2.html"><span>FAQ 2</span></a></li> <li><a href="contact-contact-1-fancy-header.html"><span>Contact 1</span></a></li> <li><a href="contact-contact-2-fancy-header.html"><span>Contact 2</span></a></li> <li><a href="layouts-fixed-fluid.html"><span>Layouts Fixed fluid</span></a></li> <li><a href="layouts-fluid-fixed.html"><span>Layouts Fluid fixed</span></a></li> <li><a href="layouts-fixed-fluid-fixed.html"><span>Layouts Fixed fluid fixed</span></a></li> <li><a href="sign-in.html"><span>Sign In</span></a></li> <li><a href="sign-up.html"><span>Sign Up</span></a></li> <li><a href="404.html"><span>404</span></a></li> <li><a href="500.html"><span>500</span></a></li> </ul> </li> <li><a href="titlebars-small-breadcrumb-right.html"><span>Elements</span></a> <ul> <li><a href="titlebars-small-breadcrumb-right.html"><span>Titlebars - Breadcrumb Right</span></a></li> <li><a href="titlebars-small-breadcrumb-top.html"><span>Titlebars - Breadcrumb Top</span></a></li> <li><a href="titlebars-big-breadcrumb-right.html"><span>Titlebars - Big Breadcrumb Right</span></a></li> <li><a href="titlebars-big-breadcrumb-top.html"><span>Titlebars - Big Breadcrumb Top</span></a></li> <li><a href="titlebars-only-breadcrumb.html"><span>Titlebars - Only Breadcrumb</span></a></li> <li><a href="icon-boxes-horizontal.html"><span>Icon Boxes Horizontal</span></a></li> <li><a href="icon-boxes-vertical.html"><span>Icon Boxes Vertical</span></a></li> <li><a href="lists-simple.html"><span>Lists Simple</span></a></li> <li><a href="lists-icons.html"><span>Lists Icons</span></a></li> <li><a href="lists-groups.html"><span>Lists Groups</span></a></li> <li><a href="lists-images.html"><span>Lists Images</span></a></li> <li><a href="socials-small.html"><span>Socials Complex Small</span></a></li> <li><a href="socials.html"><span>Socials Complex</span></a></li> <li><a href="socials-big.html"><span>Socials Complex Big</span></a></li> <li><a href="socials.html"><span>Socials Simple</span></a></li> <li><a href="counters-numbers.html"><span>Counters Numbers</span></a></li> <li><a href="counters-progress-bars.html"><span>Counters Progress Bars</span></a></li> <li><a href="tabs.html"><span>Tabs</span></a></li> <li><a href="tabs-big.html"><span>Tabs Big</span></a></li> <li><a href="tables.html"><span>Tables</span></a></li> <li><a href="accordions.html"><span>Accordions</span></a></li> <li><a href="alert-boxes.html"><span>Alert Boxes</span></a></li> <li><a href="boxes.html"><span>Boxes</span></a></li> <li><a href="buttons.html"><span>Buttons</span></a></li> <li><a href="forms.html"><span>Forms</span></a></li> <li><a href="slider.html"><span>Slider</span></a></li> <li><a href="google-maps-roadmap.html"><span>Google Maps Roadmap</span></a></li> <li><a href="google-maps-grey.html"><span>Google Maps Grey style</span></a></li> <li><a href="google-maps-dark.html"><span>Google Maps Dark style</span></a></li> <li><a href="google-maps-satellite.html"><span>Google Maps Satellite</span></a></li> <li><a href="google-maps-hybrid.html"><span>Google Maps Hybrid</span></a></li> <li><a href="images.html"><span>Images</span></a></li> <li><a href="pricing-tables.html"><span>Pricing Tables</span></a></li> <li><a href="sections.html"><span>Sections</span></a></li> <li><a href="testimonials-simple.html"><span>Simple</span></a></li> <li><a href="testimonials-photo.html"><span>With Photo</span></a></li> </ul> </li> <li><a href="docs-docs.html"><span>Docs</span></a> <ul> <li><a href="docs-docs.html"><span>Docs Map</span></a></li> <li><a href="docs-quick-start-guide.html"><span>Quick Start Guide</span></a></li> <li><a href="docs-credits.html"><span>Credits</span></a></li> <li><a href="docs-changelog.html"><span>Changelog</span></a></li> <li><a href="docs-theme-structure.html"><span>Theme Structure</span></a></li> <li><a href="docs-theme-settings.html"><span>Theme Settings</span></a></li> </ul> </li> </ul> </div> </div> <!-- End mobile menu --> </div> </div> <!-- End header row --> </div> </div> <!-- End header --> <div id="page"><!-- - - - - - - - - - SECTION - - - - - - - - - --> <div class="pi-section-w pi-section-white"> <div class="pi-section pi-padding-bottom-80"> <div class="pi-text-center"> <h1 class="pi-uppercase pi-weight-700 pi-has-border pi-has-tall-border pi-has-short-border pi-margin-bottom-70"> Simple Counters </h1> </div> <!-- Counters --> <div class="pi-row pi-text-center"> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-box pi-border pi-shadow2"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="5" data-easing="easeInCirc" data-duration="1000" data-frames-per-second="0"> <div class="pi-counter-count pi-counter-count-big"> <p> <i class="icon-briefcase pi-icon pi-icon-big pi-text-silver"></i> </p> <div class="pi-counter-number">0</div> </div> <p>Sed ut perspic unde</p> </div> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-box pi-border pi-shadow2"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="160" data-easing="easeInCirc" data-duration="2000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-big"> <p> <i class="icon-globe pi-icon pi-icon-big pi-text-silver"></i> </p> $<span class="pi-counter-number">0</span> </div> <p>Deserunt mollitia animi</p> </div> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-box pi-border pi-shadow2"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="99" data-easing="easeInCirc" data-duration="3000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-big"> <p> <i class="icon-download pi-icon pi-icon-big pi-text-silver"></i> </p> <span class="pi-counter-number">0</span>% </div> <p>Temporibus autem</p> </div> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-box pi-border pi-shadow2"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="242" data-easing="easeInCirc" data-duration="4000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-big"> <p> <i class="icon-paper-plane pi-icon pi-icon-big pi-text-silver"></i> </p> <span class="pi-counter-number">0</span>k </div> <p>Similique sunt in culpa</p> </div> </div> </div> <!-- End counters item --> </div> <!-- End counters --> <hr class="pi-divider-gap-30"> <p> Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. </p> <hr class="pi-divider-gap-30"> <!-- Counters --> <div class="pi-row pi-grid-small-margins pi-text-center"> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="5" data-easing="easeInCirc" data-duration="1000" data-frames-per-second="0"> <div class="pi-counter-count pi-counter-count-bigger"> <p> <i class="icon-briefcase pi-icon pi-icon-bigger pi-text-silver"></i> </p> <div class="pi-counter-number">0</div> </div> <p>Sed ut perspic unde</p> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="26" data-easing="easeInCirc" data-duration="2000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-bigger"> <p> <i class="icon-globe pi-icon pi-icon-bigger pi-text-silver"></i> </p> $<span class="pi-counter-number">0</span> </div> <p>Deserunt mollitia animi</p> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="73" data-easing="easeInCirc" data-duration="3000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-bigger"> <p> <i class="icon-download pi-icon pi-icon-bigger pi-text-silver"></i> </p> <span class="pi-counter-number">0</span>% </div> <p>Temporibus autem</p> </div> </div> <!-- End counters item --> <!-- Counters item --> <div class="pi-col-lg-3"> <div class="pi-counter pi-counter-simple" data-count-from="0" data-count-to="59" data-easing="easeInCirc" data-duration="4000" data-frames-per-second="10"> <div class="pi-counter-count pi-counter-count-bigger"> <p> <i class="icon-paper-plane pi-icon pi-icon-bigger pi-text-silver"></i> </p> <span class="pi-counter-number">0</span>k </div> <p>Similique sunt in culpa</p> </div> </div> <!-- End counters item --> </div> <!-- End counters --> </div> </div> <!-- - - - - - - - - - END SECTION - - - - - - - - - --></div> <!-- Footer --> <!-- Widget area --> <div class="pi-section-w pi-border-bottom pi-border-top-light pi-section-dark"> <div class="pi-section pi-padding-bottom-10"> <!-- Row --> <div class="pi-row"> <!-- Col 4 --> <div class="pi-col-md-4 pi-padding-bottom-30"> <h6 class="pi-margin-bottom-25 pi-weight-700 pi-uppercase pi-letter-spacing"> <a href="#" class="pi-link-no-style">Latest Tweet</a> </h6> <!-- Twitter --> <div class="pi-footer-tweets"><ul class="pi-bullets-circle pi-bullets-base pi-bullets pi-list-big-margins"><li><span class="pi-bullet-icon"><i class="icon-twitter"></i></span><a href="http://twitter.com/PIthemess" target="_blank" title="PIthemess on Twitter">@PIthemess</a> Meet Aura 1.6 version. A lot of new things are coming soon. <br><span class="pi-smaller-text pi-italic pi-text-opacity-50">Jun. 29, 2014</span></li><li><span class="pi-bullet-icon"><i class="icon-twitter"></i></span><a href="http://twitter.com/PIthemess" target="_blank" title="PIthemess on Twitter">@PIthemess</a> Hey, this is PI Themes twitter account! <br><span class="pi-smaller-text pi-italic pi-text-opacity-50">Jun. 29, 2014</span></li></ul></div> <!-- End twitter --> </div> <!-- End col 4 --> <div class="pi-clearfix pi-hidden-lg-only pi-hidden-md-only"></div> <!-- Col 4 --> <div class="pi-col-md-4 pi-col-sm-6 pi-padding-bottom-30" style="background-image: url('img/map-base.png'); background-position: 50% 55px; background-repeat: no-repeat;"> <h6 class="pi-margin-bottom-25 pi-weight-700 pi-uppercase pi-letter-spacing"> Contact Us </h6> <!-- Contact info --> <ul class="pi-list-with-icons pi-list-big-margins"> <li> <span class="pi-bullet-icon"><i class="icon-location"></i></span> <strong>Address:</strong> 557 Cyan Avenue, Suite 65, <br>New York, CA 9008 </li> <li> <span class="pi-bullet-icon"><i class="icon-phone"></i></span> <strong>Phone:</strong> (123) 456-7890 </li> <li> <span class="pi-bullet-icon"><i class="icon-mail"></i></span> <strong>Email:</strong> <a href="mailto:[email protected]">[email protected]</a> </li> <li> <span class="pi-bullet-icon"><i class="icon-clock"></i></span> Monday - Friday: <strong>9:00 am - 10:00 pm</strong> <br> Saturday - Sunday: <strong>Closed</strong> </li> </ul> <!-- End contact info --> </div> <!-- End col 4 --> <!-- Col 4 --> <div class="pi-col-md-4 pi-col-sm-6 pi-padding-bottom-30"> <h6 class="pi-margin-bottom-25 pi-weight-700 pi-uppercase pi-letter-spacing"> Say Hey </h6> <!-- Contact form --> <form role="form" action="handlers/formContact.php" data-captcha="no" class="pi-contact-form"> <div class="pi-error-container"></div> <div class="pi-row pi-grid-small-margins"> <div class="pi-col-2xs-6"> <div class="form-group"> <div class="pi-input-with-icon"> <div class="pi-input-icon"><i class="icon-user"></i></div> <input class="form-control form-control-name" id="exampleInputName" placeholder="Name"> </div> </div> </div> <div class="pi-col-2xs-6"> <div class="form-group"> <div class="pi-input-with-icon"> <div class="pi-input-icon"><i class="icon-mail"></i></div> <input type="email" class="form-control form-control-email" id="exampleInputEmail" placeholder="Email"> </div> </div> </div> </div> <div class="form-group"> <div class="pi-input-with-icon"> <div class="pi-input-icon"><i class="icon-pencil"></i></div> <textarea class="form-control form-control-comments" id="exampleInputMessage" placeholder="Message" rows="3"></textarea> </div> </div> <p> <button type="submit" class="btn pi-btn-base pi-btn-no-border">Send</button> </p> </form> <!-- End contact form --> </div> <!-- End col 4 --> </div> <!-- End row --> </div> </div> <!-- End widget area --> <!-- Copyright area --> <div class="pi-section-w pi-section-dark pi-border-top-light pi-border-bottom-strong-base"> <div class="pi-section pi-row-lg pi-center-text-2xs pi-clearfix"> <!-- Social icons --> <div class="pi-row-block pi-pull-right pi-hidden-2xs"> <ul class="pi-social-icons-simple pi-small clearFix"> <li><a href="#" class="pi-social-icon-facebook"><i class="icon-facebook"></i></a></li> <li><a href="#" class="pi-social-icon-twitter"><i class="icon-twitter"></i></a></li> <li><a href="#" class="pi-social-icon-dribbble"><i class="icon-dribbble"></i></a></li> <li><a href="#" class="pi-social-icon-tumblr"><i class="icon-tumblr"></i></a></li> <li><a href="#" class="pi-social-icon-vimeo"><i class="icon-vimeo"></i></a></li> <li><a href="#" class="pi-social-icon-rss"><i class="icon-rss"></i></a></li> </ul> </div> <!-- End social icons --> <!-- Footer logo --> <div class="pi-row-block pi-row-block-logo pi-row-block-bordered"><a href="#"><img src="img/logo-opacity-dark.png" alt=""></a></div> <!-- End footer logo --> <!-- Text --> <span class="pi-row-block pi-row-block-txt pi-hidden-xs">&copy; 2014. &laquo;<a href="#">Aura HTML Theme</a>&raquo;. All right reserved. </span> <!-- End text --> </div> </div> <!-- End copyright area --> <!-- End footer --> </div> <div class="pi-scroll-top-arrow" data-scroll-to="0"></div> <script src="3dParty/jquery-1.11.0.min.js"></script> <script src="3dParty/bootstrap/js/bootstrap.min.js"></script> <script src="3dParty/gauge.min.js"></script> <script src="3dParty/inview.js"></script> <script src="3dParty/requestAnimationFramePolyfill.min.js"></script> <script src="3dParty/jquery.scrollTo.min.js"></script> <script src="3dParty/colorbox/jquery.colorbox-min.js"></script> <script src="scripts/pi.global.js"></script> <script src="3dParty/jquery.easing.1.3.js"></script> <script src="scripts/pi.counter.js"></script> <script src="scripts/pi.init.counter.js"></script> </body> </html>
Since I upgraded to testing kernel and xorg yesterday (due to only sometimes having sound with my intel card in the old kernel) I encounter another problem today. I cannot turn on my WiFi anymore (I have a hardware softkey for that). atkbd.c: Unknown key pressed (translated set 2, code 0xe1 on isa0060/serio0). atkbd.c: Use 'setkeycodes e061 <keycode>' to make it known. atkbd.c: Unknown key released (translated set 2, code 0xe1 on isa0060/serio0). This is pretty bad, as I have to sit next to the access point for now (or downgrade the kernel). Any other way to enable wifi other than that key? So, what driver is it? What chipset? You didn't include any useful information.
"Hamburg is recognised as an extraordinary port city that has overcome planning challenges to become an attractive and welcoming city of opportunities for a population that now includes a growing number of immigrants. It has very effectively evolved from previous conventional practice of urban expansion on the fringe through the successful implementation of its inner city densification strategy to cater to increased demand for housing and urban mobility from its growing population. The new HafenCity is an excellent demonstration of this strategy. The former underused harbour and industrial space located next to the historical "Speicherstadt" warehouse district has been transformed from a dilapidated area into a dynamic mix-use district of urban housing, workplaces and recreation areas. Recognising that built heritage is an important aspect that adds to the quality of life in an ever-changing environment, the city placed great emphasis on the urban design of the new district to relate to the old city, and to align vistas with the spires of the old churches while also sensitively providing protection against flooding and rising waters."
New Name & New Dates! The Thailand gems and jewelry Fair came back as a mid year exhibition to offer industry players an all in one platform for sourcing gems and jewelry 15-18 June! The Thai Gem and Jewelry Traders Association (TGJTA) has partnered with public and private sectors to organize the inaugural Thailand Gems & Jewelry Fair 2017 with the aim of establishing Thailand as the world’s hub for gems and jewelry manufacturing and trading. Representatives from cissus quadrangularis industry associations, the Ministry of Tourism and Sports, the Tourism Authority of Thailand and the Tourist Police have showed their continuing support for the gems and jewelry industry at the fair which run from June 15 to 18, 2017 at the IMPACT Challenger 2, Muang Thong Thani, Bangkok, Thailand.
/* * Copyright (C) 2007, Alberto Giannetti * * This file is part of Hudson. * * Hudson is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Hudson is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Hudson. If not, see <http://www.gnu.org/licenses/>. */ // Boost #include <boost/date_time/gregorian/gregorian.hpp> // Hudson #include "BnHTrader.hpp" using namespace std; using namespace boost::gregorian; BnHTrader::BnHTrader(const DB& db): _db(db) { } void BnHTrader::run(void) { Position::ID id = buy(_db.name(), _db.begin()->first, Price(_db.begin()->second.open)); close(id, _db.rbegin()->first, Price(_db.rbegin()->second.adjclose)); }
<?php $output = $title = $title_align = $el_class = ''; extract(shortcode_atts(array( 'title' => __("Title", "js_composer"), 'title_align' => 'separator_align_center', 'el_class' => '' ), $atts)); $el_class = $this->getExtraClass($el_class); $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_text_separator wpb_content_element '.$title_align.$el_class, $this->settings['base']); $output .= '<div class="templatation '.$css_class.'"><div>'.$title.'</div></div>'.$this->endBlockComment('separator')."\n"; echo $output;
A story in the Sunday Telegraph this morning is boldly headlined: "Abortion rules are set to be tightened by the Government in the biggest shake-up in a generation". The story goes on to say: "Pro-life campaigners suggest the change could result in up to 60,000 fewer abortions each year in Britain." To put it mildly, this is dangerously misleading. Here's the story so far. This suggestion is now being taken up by the Department of Health. The Department says it is drafting proposals which are expected to say who can be a pregnancy counsellor and what expectant mothers must be told. These proposals will be published in the form of a consultation, the terms of which have yet to be announced. Here's how the government replied earlier this month to a question put by Baroness Gould: "To ask Her Majesty's Government when they will finalise their proposals for all women seeking an abortion to be offered counselling; and who will be consulted in determining the proposals" " ... For the minority of women who require formal therapeutic counselling, services should have formal care pathways in place with access to trained counsellors with appropriate expertise. We are looking to strengthen these existing arrangements and are drawing up proposals to enable all women who are seeking an abortion to be offered access to independent counselling. We would want the counselling to be provided by appropriately qualified individuals. Detailed proposals are being worked on. We plan to consult widely on those later this year and will finalise our plans in early 2012." “Handing the drafting of proposals relating to abortion to the Department of Health is like putting the fox in charge of the chicken-coop. The Department of Health commissions the vast majority of abortions in Britain, and says doctors should provide abortion on demand. Successive governments have regarded abortion as an answer to unmarried teenagers and other vulnerable women who get pregnant. and counsellors who refuse on grounds of conscience or other good grounds to refer women to abortion services are not prevented from operating as pregnancy counsellors.
ISIS gangs attacked the Xirbe Hemed village 2 km to Mosul. ISIS gangs carried out bomb attacks in Mosul yesterday and also attacked the Xirbe Hemed. 3 villagers from Xirbe Hemed lost their lives in the attack. ISIS gangs have been attacking the villages of Kirkuk, Diyala and Ambar in Iraq and Southern Kurdistan, and have increased attacks in Mosul since yesterday. The gangs carried out two attacks in Mosul yesterday and attacked the Xirbe Hemed village 2 km from the city at 23:00 last night. Former Iraqi MP Abdulrahman Liwezi spoke about the attack and said ISIS members attacked the Xirbe Hemed village in Nineveh (Mosul) at 23:00 last night. Abdulrahman Liwezi said civilians Musena Cemil Yasin, Sair Umer Selim ve Merii Selim Merii lost their lives in the attack. An administrator from the Nineveh Council also announced that ISIS had detonated an explosive laden pick-up truck near the Abu Layla Restaurant, killing 5 persons and wounding 9 others.
Since the release to manufacturing (RTM) of Exchange 2013, you have been waiting for our sizing and capacity planning guidance. This is the first official release of our guidance in this area, and updates to our TechNet content will follow in a future milestone. As we continue to learn more from our own internal deployments of Exchange 2013, as well as from customer feedback, you will see further updates to our sizing and capacity planning guidance in two forms: changes to the numbers mentioned in this document, as well as further guidance on specific areas not covered here. Let us know what you think we are missing and we will do our best to respond with better information over time. For Exchange 2013, our guidance is primarily based on observations from the Exchange Dogfood deployment. Dogfood hosts some of the most demanding Exchange users at Microsoft, with extreme messaging profiles and many client sessions per user across multiple client types. Many users in the Dogfood deployment send and receive more than 500 messages per day, and typically have multiple Outlook clients and multiple mobile devices simultaneously connected and active. This allows our guidance to be somewhat conservative, taking into account additional overhead from client types that we don’t regularly see in our internal deployments as well as client mixes that might be different from what's considered “normal” at Microsoft. Sizing is both a science and an art form. Attempting to apply too much science to the process (trying to get too accurate) usually results in not having enough extra capacity available to deal with peaks, and in the end, results in a poor user experience and decreased system availability. On the other hand, there does need to be some science involved in the process, otherwise it’s very challenging to have a predictable and repeatable methodology for sizing deployments. We strive to achieve the right balance here. Start to finish, what’s the process? The third step is perhaps the most difficult. At this point, you need to figure out all of the requirements for the Exchange solution that might impact the sizing process. This can include decisions like the desired mailbox size (mailbox quota), service level objectives, number of sites, number of mailbox database copies, storage architecture, growth plans, deployment of 3rd party products or line-of-business applications, etc. Essentially, you need to understand any aspect of the design that could impact the number of servers, user count, and utilization of servers. The last step is to finalize the design. At this point, it’s time to document all of the decisions that were made, order some hardware, use Jetstress to validate that the storage requirements can be met, and perform any other necessary pre-production lab testing to ensure that the production rollout and implementation will go smoothly. The amount of space required for ESE transaction log files can be computed using the same method as Exchange 2010. You can find details on the process in the Exchange 2010 TechNet guidance. To summarize the process, you must first determine the base guideline for number of transaction logs generated per-user, per-day, using the following table. As in Exchange 2010, log files are 1MB in size, making the math for log capacity quite straightforward. In order to figure out the messages per day that you expect to run through the system, you can look at the user count and messaging profile. Simply multiplying these together will give you a total daily mail volume, but it will be a bit higher than necessary since it is double counting messages that are sent within the organization (i.e. a message sent to a coworker will count towards the profile of the sending user as well as the profile of the receiving user, but it’s really just one message traversing the system). The simplest way to deal with that would be to ignore this fact and oversize transport, which will provide additional capacity for unexpected peaks in message traffic. An alternative way to determine daily message flow would be to evaluate performance counters within your existing messaging system. Find the SPECint_rate2006 score for the processor that you intend to use for your Exchange solution. You can do this the hard way (described below) or use Scott Alexander’s fantastic Processor Query Toolto get the per-server score and processor core count for your hardware platform. Under Simple Request, enter the search criteria for your target processor, for example Processor Matches E5-2630. Find the server and processor configuration you are interested in using (or if the exact combination is not available, find something as close as possible) and note the value in the Result column and the value in the # Cores column. Obtain the per-core SPECint_rate2006 score by dividing the value in the Result column by the value in the # Cores column. For example, in the case of the Hewlett-Packard DL380p Gen8 server with Intel Xeon E5-2630 processors (2.30GHz), the Result is 430 and the # Cores is 12, so the per-core value would be 430 / 12 = 35.83. You are going to give me a calculator, right? Wow! Can't tell you how glad I am to see this!!! Excellent!.. This has been holding a lot of deployments. We are talking about the Intel CPUs all this time, how about the AMD based servers? Should they be turning something on or off too? ^does the dance of joy! In case of adopting DLP, how can I expect the additional CPU or memory load with this calculation? Great article Jeff. I know you guys spent a lot of time making sure you got it right. Thanks, great info. With regards to hyperthreading, what is the recommendation for Virtual Machines. Is the hyperthreading guidance the same for Exchange 2010? @CY – Our guidance with respect to hyperthreading is the same, regardless of physical or virtual. By the way when is SP1 for Ex2013 releasing. Thanks Ross. I guess my question is, how do you disable hyperthrrading on a VM. Is disabling it on the hyper-v host the only way to do it? An excellent and long-awaited article, very appreciated. Thanks! And an another in Processor requirements, for the E5-2630 processor "Result = 430" – "Baseline = 414" – Core = 12, so per-core SPECint_rate2006 score = 430 / 12 = 35,8333 and Per-core SPECint_rate2006 Baseline score = 414 / 12 = 34,5. I have one question : In the Total memory required per-server for the CAS additionnal memory needed, in the formula you use "mbx mcycles per-user" with the value 8.50, if I do not make mistake the value is from "Mcycles per User, Active DB Copy or Standalone (MBX only)" for 200 messages per user per day. A fantastic article! Thank you! I'd like to know if there is any threshold above which role co-location is not recommended. – Transport sizing calculation is accurate, it is 102GB per server. – Processor requirements calculations are accurate as well as 430/12 = 35.83. The result value is the correct value to use. – When sizing dedicated CAS memory requirements, you do not want to use the CAS+MBX Mcycles/user value. Instead you want to determine the CAS Mcycles/user value which is 25% of the MBX Mcycles/user value (8.5 *.25). I figured out my mistake on transport DB size ! I think your 33.75 is from 540 / 16 (E6-2650 processor not E5-2630). Finaly for Total memory required, it is not for CAS separated scenario but for Multi-Role when we need to add CAS memory requirements after calculated MBX needs, but I think I have understood the second column for the table (MBX only). 33.75 is the baseline system's SPECint_rate2006 score per core. Great article Jeff! What about DB read/write ratios for Exchange 2013? As you know this is needed to do sizing for RAID storage solutions. In the recent testing with Jetstress 2013 we are seeing 2:1 ratio and not 3:2 like it was in Exchange 2010. Did it changed again to more like it was in Exchange 2007? I've read a very good article. Refer to the description submitted to our company's Exchange 2013 Mailbox Size've calculated. If you'll excuse me, do you know the e-mail address? I would like to send the results calculated by email. I have calculated the results are correct check would be appreciated. So I will wait for answer. Interesting article here, good insight into something which is totally black from outside. We are getting to know officially the products we work with every day in an interesting manner. BTW what should be the server roles ratio: like GC:Mailbox, Mailbox:CAS or Edge? With these informations it was very easy to calculate the numbers by myself. But I was very astonished about the differences regarding the necessary resources compared to the results we got for Exchange 2010 DAGs. For the same user load the necessary amount of CPU-power and memory is now about 3 times bigger than before. Doesn't matter I caculate for myself or use the spreadsheet. Can you please explane which the reasons are? The calculation giving the "Overall Transport DB Size" value is in octet ? because when i'm doing it with your values it's seem more to be 11.44 TB instead of GB.. And more in the "per-Server Transport DB Size" calculation you are doing "11.44 GB / 112" this giving 0.102 GB and not 102 GB..so i think it should be '11.44 TB / 112' giving 102 GB no ?
glossy patina, pierced at sides for attachment. Built up encrusted material inside mouth with remains of teeth. Mounted on custome stand.
For little ones on the go the Pop Dolls Pushchair is everything they need and looks just like Mum's real life Silver Cross Pop too. For ages 18 months - 3 years. Fixed handle height of 61cm. For little ones on the go the Pop Dolls Pushchair is everything they need and looks just like Mum's real life Silver Cross Pop too. For ages 3-4 years. Fixed handle height of 61cm.
<a href="http://job4j.ru"> <img src="http://job4j.ru/img/logomini.png"></a> <h1>С нуля до трудоустройства, Java SE + EE.</h1> Основная задача курса - это научиться теоретическим знаниям и практическим навыкам разработки на языке Java, необходимых для трудоустройства Java программистом. <p><h2>Состав курса:</h2></p> <h4>Инструменты:</h4> Maven, Gradle, jUnit, Git, IntelliJ Idea, Tomcat, JBoss EAP, PostgreSQL, ActiveMQ (JMS). <h4>Синтаксис языка:</h4> JVM, Типы данных, Операторы условия, Циклы, Массивы. <h4>ООП:</h4> Наследование, Инкапсуляция, Полиморфизм, Внутренние класы, Абстрактные классы, Исключения. <h4>Коллекции Lite:</h4> Collections Framework, ArrayList, Сортировка, Обобщения, Коллекции List, Set, Map. <h4>Коллекции Pro</h4> Параметризованные типы, Wildcard, Итераторы, Внутреннее устройство: Коллекции List, Коллекции Stack, Queue, Коллекции Set, Коллекции Map, Структуры Tree, Hashcode, equals. <h4>SQl, JDBC</h4> Общие сведения о базах данных на основе PostgreSQL, Базовый синтаксис SQL, Запросы Select, Join, Outer Left, Right, JDBC, Индексирование, внешние ключи, естественные ключи. <h4>Ввод-вывод, Socket </h4> InputStreams, OutputStreams, Readers, Writers, Scanner, Файловые менеджеры, Сокеты, Внешняя сортировка файлов.
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,osx -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s // expected-no-diagnostics // Test handling of OSAtomicCompareAndSwap when C++ inserts "no-op" casts and we // do a forced load and binding to the environment on an expression that would regularly // not have an environment binding. This previously triggered a crash (<rdar://problem/9339920>). // NOTE: It is critical that the function called is OSAtomicCompareAndSwapIntBarrier. bool OSAtomicCompareAndSwapIntBarrier( int __oldValue, int __newValue, volatile int *__theValue ) ; static int _rdar9339920_x = 0; int rdar9339920_aux(); int rdar9339920_test() { int rdar9339920_x = rdar9339920_aux(); if (rdar9339920_x != _rdar9339920_x) { if (OSAtomicCompareAndSwapIntBarrier(_rdar9339920_x, rdar9339920_x, &_rdar9339920_x)) return 1; } return 0; }
NextDealAddict applies the smartest e-commerce technology to make the consumer shopping experience easy, efficient and fun: find the ideal price for Drifting Snow at the most trusted online store. Snow problem! The Snow Joe snow broom model SJBLZD makes quick work of removing the snow piled on the roof, hood, trunk or windshield of your vehicle. Its patented dual-purpose design features an oversized 18" wide broom head on one end & a built-in ice scraper on the other, so you can quickly push heavy, wet snow off your car, truck or SUV, then clear away the ice build-up on your windshield with just one tool. Its durable, non-abrasive foam head safely & effectively sweeps snow off your vehicle without damaging its paint, trim or glass surfaces. Plus, its interlocking pole offers two length options — 33" or 52" — to provide maximum reach with minimal strain & disassembles easily for compact storage. Weighing only 1. 4 lb, the snow broom is super easy to handle & stores neatly inside the trunk of your car with its built-in bracket holders. Get equipped this winter with the Snow Joe snow broom & clear out fast from tough winter messes. Drifting Snow is the debut title of K M Snow. It a journey about finding love, falling in love, doubting love. The emotions, complexities, and wonderment of discovering love. Customers who bought Drifting Snow also bought 11 Ounce Decorative Glass, 4 Cycle Backpack Blowers, Guitar Homespun Tapes - you may also be interested in these popular items.
Legal requirements and guidance for home slaughter. You can slaughter your own livestock animal on your farm or property if it will be eaten by you and your family. However you must adhere to the legal requirements set out in the Home slaughter of livestock guide England and Wales. providing advice on how to legally carry out the home slaughter of livestock. There is a specific home slaughter of livestock guide for Northern Ireland. This provides information on the law in this country.
Whether you are looking for Garnier whole blends honey treasures conditioner review or a new lipstick or want to know more about the latest trends of perfumery, on our website you will find helpful beauty advice, beauty blogs, catchy photos and different points of view. Most women constantly look for new hairstyles, fragrances and cosmetics to find a perfect image. Each woman is different, so choosing the right style and product will depend on many things. Mastering the art of professional makeup or knowing more about skincare and its ingredients is a serious business, so you can get confused over the options available.
This module exploits a vulnerability in Tunnelblick 3.2.8 on Mac OS X. The vulnerability exists in the setuid openvpnstart, where an insufficient validation of path names allows execution of arbitrary shell scripts as root. This module has been tested successfully on Tunnelblick 3.2.8 build 2891.3099 over Mac OS X 10.7.5.
Isabel Allende bags the credit of being the first successful woman novelists from Latin America. She has written 20 books with more than 65 million copies sold. Her works were translated in 35 languages. More than an author, Isabel is looked upon as a social reformer. Most of her works depict the life of women in Latin America. Her books are a reflection of her personal experiences and her feelings. Isabel instituted the Isabel Allende Foundation which supports various non-profit organisations to support small girls and women in Chile and San Francisco Bay Area. Isabel was born to Chilean parents Tomas and Francisca in Lima, Peru. Her parents got divorced when she was 3 years old. She lived with her grandparents. Her grandmother was a fortune-teller. Isabel was fascinated by her grandmother’s stories. Since the house had good collection of books, Isabel had a great time reading. After completion of studies, Isabel married Miguel Frias. She worked as a Secretary in United Nations Food and Agricultural Organisation. She later switched to Journalism and television. Everything changed in 1973 when Isabel’s Uncle Salvador Allende, President of Chile was assassinated. Foreseeing the danger, Isabel flew to Venezuela with her husband and kids. She was unable to secure a job there inspite of her good profile. It was then, Isabel started writing her first novel ‘The House of the Spirits’. This novel got published in 1982 and to her surprise it became a sensational best seller in Spain and West Germany winning the Quality Paperback Book Club New Voice Award nomination. This also got released as a film in U.S. Isabel’s life had quite a lot of changes. She divorced Miguel and married William Gordon. Isabel left her administration job at School to pursue writing. Her daughter Paula died of a hereditary blood disease. Isabel’s first non-fiction ‘Paula’ published in 1994 was written as a letter to her daughter. Isabel is best known for her novels ‘The House of Spirits’ and ‘City of Beasts’. Besides novels, she also writes short stories for children. Isabel has won many awards including the Presidential Medal of Freedom from U.S. President Barrack Obama. The world’s most widely read Spanish language author currently lives in San Rafael, California with her family.
/* * Configuation settings for the Freescale MCF54455 EVB board. * * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. * TsiChung Liew ([email protected]) * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ /* * board/config.h - configuration options, board specific */ #ifndef _M54455EVB_H #define _M54455EVB_H /* * High Level Configuration Options * (easy to change) */ #define CONFIG_MCF5445x /* define processor family */ #define CONFIG_M54455 /* define processor type */ #define CONFIG_M54455EVB /* M54455EVB board */ #define CONFIG_MCFUART #define CONFIG_SYS_UART_PORT (0) #define CONFIG_BAUDRATE 115200 #define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 } #undef CONFIG_WATCHDOG #define CONFIG_TIMESTAMP /* Print image info with timestamp */ /* * BOOTP options */ #define CONFIG_BOOTP_BOOTFILESIZE #define CONFIG_BOOTP_BOOTPATH #define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_HOSTNAME /* Command line configuration */ #include <config_cmd_default.h> #define CONFIG_CMD_BOOTD #define CONFIG_CMD_CACHE #define CONFIG_CMD_DATE #define CONFIG_CMD_DHCP #define CONFIG_CMD_ELF #define CONFIG_CMD_EXT2 #define CONFIG_CMD_FAT #define CONFIG_CMD_FLASH #define CONFIG_CMD_I2C #define CONFIG_CMD_IDE #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_MEMORY #define CONFIG_CMD_MISC #define CONFIG_CMD_MII #define CONFIG_CMD_NET #undef CONFIG_CMD_PCI #define CONFIG_CMD_PING #define CONFIG_CMD_REGINFO #define CONFIG_CMD_SPI #define CONFIG_CMD_SF #undef CONFIG_CMD_LOADB #undef CONFIG_CMD_LOADS /* Network configuration */ #define CONFIG_MCFFEC #ifdef CONFIG_MCFFEC # define CONFIG_NET_MULTI 1 # define CONFIG_MII 1 # define CONFIG_MII_INIT 1 # define CONFIG_SYS_DISCOVER_PHY # define CONFIG_SYS_RX_ETH_BUFFER 8 # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN # define CONFIG_SYS_FEC0_PINMUX 0 # define CONFIG_SYS_FEC1_PINMUX 0 # define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE # define CONFIG_SYS_FEC1_MIIBASE CONFIG_SYS_FEC0_IOBASE # define MCFFEC_TOUT_LOOP 50000 # define CONFIG_HAS_ETH1 # define CONFIG_BOOTDELAY 1 /* autoboot after 5 seconds */ # define CONFIG_BOOTARGS "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)" # define CONFIG_ETHADDR 00:e0:0c:bc:e5:60 # define CONFIG_ETH1ADDR 00:e0:0c:bc:e5:61 # define CONFIG_ETHPRIME "FEC0" # define CONFIG_IPADDR 192.162.1.2 # define CONFIG_NETMASK 255.255.255.0 # define CONFIG_SERVERIP 192.162.1.1 # define CONFIG_GATEWAYIP 192.162.1.1 # define CONFIG_OVERWRITE_ETHADDR_ONCE /* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */ # ifndef CONFIG_SYS_DISCOVER_PHY # define FECDUPLEX FULL # define FECSPEED _100BASET # else # ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN # endif # endif /* CONFIG_SYS_DISCOVER_PHY */ #endif #define CONFIG_HOSTNAME M54455EVB #ifdef CONFIG_SYS_STMICRO_BOOT /* ST Micro serial flash */ #define CONFIG_SYS_LOAD_ADDR2 0x40010013 #define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0" \ "loadaddr=0x40010000\0" \ "sbfhdr=sbfhdr.bin\0" \ "uboot=u-boot.bin\0" \ "load=tftp ${loadaddr} ${sbfhdr};" \ "tftp " MK_STR(CONFIG_SYS_LOAD_ADDR2) " ${uboot} \0" \ "upd=run load; run prog\0" \ "prog=sf probe 0:1 10000 1;" \ "sf erase 0 30000;" \ "sf write ${loadaddr} 0 0x30000;" \ "save\0" \ "" #else /* Atmel and Intel */ #ifdef CONFIG_SYS_ATMEL_BOOT # define CONFIG_SYS_UBOOT_END 0x0403FFFF #elif defined(CONFIG_SYS_INTEL_BOOT) # define CONFIG_SYS_UBOOT_END 0x3FFFF #endif #define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0" \ "loadaddr=0x40010000\0" \ "uboot=u-boot.bin\0" \ "load=tftp ${loadaddr} ${uboot}\0" \ "upd=run load; run prog\0" \ "prog=prot off " MK_STR(CONFIG_SYS_FLASH_BASE) \ " " MK_STR(CONFIG_SYS_UBOOT_END) ";" \ "era " MK_STR(CONFIG_SYS_FLASH_BASE) " " \ MK_STR(CONFIG_SYS_UBOOT_END) ";" \ "cp.b ${loadaddr} " MK_STR(CONFIG_SYS_FLASH_BASE) \ " ${filesize}; save\0" \ "" #endif /* ATA configuration */ #define CONFIG_ISO_PARTITION #define CONFIG_DOS_PARTITION #define CONFIG_IDE_RESET 1 #define CONFIG_IDE_PREINIT 1 #define CONFIG_ATAPI #undef CONFIG_LBA48 #define CONFIG_SYS_IDE_MAXBUS 1 #define CONFIG_SYS_IDE_MAXDEVICE 2 #define CONFIG_SYS_ATA_BASE_ADDR 0x90000000 #define CONFIG_SYS_ATA_IDE0_OFFSET 0 #define CONFIG_SYS_ATA_DATA_OFFSET 0xA0 /* Offset for data I/O */ #define CONFIG_SYS_ATA_REG_OFFSET 0xA0 /* Offset for normal register accesses */ #define CONFIG_SYS_ATA_ALT_OFFSET 0xC0 /* Offset for alternate registers */ #define CONFIG_SYS_ATA_STRIDE 4 /* Interval between registers */ /* Realtime clock */ #define CONFIG_MCFRTC #undef RTC_DEBUG #define CONFIG_SYS_RTC_OSCILLATOR (32 * CONFIG_SYS_HZ) /* Timer */ #define CONFIG_MCFTMR #undef CONFIG_MCFPIT /* I2c */ #define CONFIG_FSL_I2C #define CONFIG_HARD_I2C /* I2C with hardware support */ #undef CONFIG_SOFT_I2C /* I2C bit-banged */ #define CONFIG_SYS_I2C_SPEED 80000 /* I2C speed and slave address */ #define CONFIG_SYS_I2C_SLAVE 0x7F #define CONFIG_SYS_I2C_OFFSET 0x58000 #define CONFIG_SYS_IMMR CONFIG_SYS_MBAR /* DSPI and Serial Flash */ #define CONFIG_CF_SPI #define CONFIG_CF_DSPI #define CONFIG_HARD_SPI #define CONFIG_SYS_SBFHDR_SIZE 0x13 #ifdef CONFIG_CMD_SPI # define CONFIG_SPI_FLASH # define CONFIG_SPI_FLASH_STMICRO # define CONFIG_SYS_DSPI_CTAR0 (DSPI_CTAR_TRSZ(7) | \ DSPI_CTAR_PCSSCK_1CLK | \ DSPI_CTAR_PASC(0) | \ DSPI_CTAR_PDT(0) | \ DSPI_CTAR_CSSCK(0) | \ DSPI_CTAR_ASC(0) | \ DSPI_CTAR_DT(1)) #endif /* PCI */ #ifdef CONFIG_CMD_PCI #define CONFIG_PCI 1 #define CONFIG_PCI_PNP 1 #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE 1 #define CONFIG_SYS_PCI_CACHE_LINE_SIZE 4 #define CONFIG_SYS_PCI_MEM_BUS 0xA0000000 #define CONFIG_SYS_PCI_MEM_PHYS CONFIG_SYS_PCI_MEM_BUS #define CONFIG_SYS_PCI_MEM_SIZE 0x10000000 #define CONFIG_SYS_PCI_IO_BUS 0xB1000000 #define CONFIG_SYS_PCI_IO_PHYS CONFIG_SYS_PCI_IO_BUS #define CONFIG_SYS_PCI_IO_SIZE 0x01000000 #define CONFIG_SYS_PCI_CFG_BUS 0xB0000000 #define CONFIG_SYS_PCI_CFG_PHYS CONFIG_SYS_PCI_CFG_BUS #define CONFIG_SYS_PCI_CFG_SIZE 0x01000000 #endif /* FPGA - Spartan 2 */ /* experiment #define CONFIG_FPGA CONFIG_SYS_SPARTAN3 #define CONFIG_FPGA_COUNT 1 #define CONFIG_SYS_FPGA_PROG_FEEDBACK #define CONFIG_SYS_FPGA_CHECK_CTRLC */ /* Input, PCI, Flexbus, and VCO */ #define CONFIG_EXTRA_CLOCK #define CONFIG_PRAM 2048 /* 2048 KB */ #define CONFIG_SYS_PROMPT "-> " #define CONFIG_SYS_LONGHELP /* undef to save memory */ #if defined(CONFIG_CMD_KGDB) #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ #endif #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x10000) #define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MBAR 0xFC000000 /* * Low Level Configuration Settings * (address mappings, register initial values, etc.) * You should know what you are doing if you make changes here. */ /*----------------------------------------------------------------------- * Definitions for initial stack pointer and data area (in DPRAM) */ #define CONFIG_SYS_INIT_RAM_ADDR 0x80000000 #define CONFIG_SYS_INIT_RAM_SIZE 0x8000 /* Size of used area in internal SRAM */ #define CONFIG_SYS_INIT_RAM_CTRL 0x221 #define CONFIG_SYS_GBL_DATA_OFFSET ((CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) - 32) #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_SBFHDR_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - 32) /*----------------------------------------------------------------------- * Start addresses for the final memory configuration * (Set up by the startup code) * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 */ #define CONFIG_SYS_SDRAM_BASE 0x40000000 #define CONFIG_SYS_SDRAM_BASE1 0x48000000 #define CONFIG_SYS_SDRAM_SIZE 256 /* SDRAM size in MB */ #define CONFIG_SYS_SDRAM_CFG1 0x65311610 #define CONFIG_SYS_SDRAM_CFG2 0x59670000 #define CONFIG_SYS_SDRAM_CTRL 0xEA0B2000 #define CONFIG_SYS_SDRAM_EMOD 0x40010000 #define CONFIG_SYS_SDRAM_MODE 0x00010033 #define CONFIG_SYS_SDRAM_DRV_STRENGTH 0xAA #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE + 0x400 #define CONFIG_SYS_MEMTEST_END ((CONFIG_SYS_SDRAM_SIZE - 3) << 20) #ifdef CONFIG_CF_SBF # define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_TEXT_BASE + 0x400) #else # define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400) #endif #define CONFIG_SYS_BOOTPARAMS_LEN 64*1024 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ #define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ /* * For booting Linux, the board info and command line data * have to be in the first 8 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization ?? */ /* Initial Memory map for Linux */ #define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20)) /* * Configuration for environment * Environment is embedded in u-boot in the second sector of the flash */ #ifdef CONFIG_CF_SBF # define CONFIG_ENV_IS_IN_SPI_FLASH # define CONFIG_ENV_SPI_CS 1 #else # define CONFIG_ENV_IS_IN_FLASH 1 #endif #undef CONFIG_ENV_OVERWRITE /*----------------------------------------------------------------------- * FLASH organization */ #ifdef CONFIG_SYS_STMICRO_BOOT # define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE # define CONFIG_SYS_FLASH0_BASE CONFIG_SYS_CS1_BASE # define CONFIG_ENV_OFFSET 0x30000 # define CONFIG_ENV_SIZE 0x2000 # define CONFIG_ENV_SECT_SIZE 0x10000 #endif #ifdef CONFIG_SYS_ATMEL_BOOT # define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE # define CONFIG_SYS_FLASH0_BASE CONFIG_SYS_CS0_BASE # define CONFIG_SYS_FLASH1_BASE CONFIG_SYS_CS1_BASE # define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x4000) # define CONFIG_ENV_SECT_SIZE 0x2000 #endif #ifdef CONFIG_SYS_INTEL_BOOT # define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE # define CONFIG_SYS_FLASH0_BASE CONFIG_SYS_CS0_BASE # define CONFIG_SYS_FLASH1_BASE CONFIG_SYS_CS1_BASE # define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x40000) # define CONFIG_ENV_SIZE 0x2000 # define CONFIG_ENV_SECT_SIZE 0x20000 #endif #define CONFIG_SYS_FLASH_CFI #ifdef CONFIG_SYS_FLASH_CFI # define CONFIG_FLASH_CFI_DRIVER 1 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 # define CONFIG_SYS_FLASH_SIZE 0x1000000 /* Max size that the board might have */ # define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT # define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */ # define CONFIG_SYS_MAX_FLASH_SECT 137 /* max number of sectors on one chip */ # define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ # define CONFIG_SYS_FLASH_CHECKSUM # define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_CS0_BASE, CONFIG_SYS_CS1_BASE } # define CONFIG_FLASH_CFI_LEGACY #ifdef CONFIG_FLASH_CFI_LEGACY # define CONFIG_SYS_ATMEL_REGION 4 # define CONFIG_SYS_ATMEL_TOTALSECT 11 # define CONFIG_SYS_ATMEL_SECT {1, 2, 1, 7} # define CONFIG_SYS_ATMEL_SECTSZ {0x4000, 0x2000, 0x8000, 0x10000} #endif #endif /* * This is setting for JFFS2 support in u-boot. * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support. */ #ifdef CONFIG_CMD_JFFS2 #ifdef CF_STMICRO_BOOT # define CONFIG_JFFS2_DEV "nor1" # define CONFIG_JFFS2_PART_SIZE 0x01000000 # define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH2_BASE + 0x500000) #endif #ifdef CONFIG_SYS_ATMEL_BOOT # define CONFIG_JFFS2_DEV "nor1" # define CONFIG_JFFS2_PART_SIZE 0x01000000 # define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH1_BASE + 0x500000) #endif #ifdef CONFIG_SYS_INTEL_BOOT # define CONFIG_JFFS2_DEV "nor0" # define CONFIG_JFFS2_PART_SIZE (0x01000000 - 0x500000) # define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000) #endif #endif /*----------------------------------------------------------------------- * Cache Configuration */ #define CONFIG_SYS_CACHELINE_SIZE 16 #define ICACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \ CONFIG_SYS_INIT_RAM_SIZE - 8) #define DCACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \ CONFIG_SYS_INIT_RAM_SIZE - 4) #define CONFIG_SYS_ICACHE_INV (CF_CACR_BCINVA + CF_CACR_ICINVA) #define CONFIG_SYS_DCACHE_INV (CF_CACR_DCINVA) #define CONFIG_SYS_CACHE_ACR2 (CONFIG_SYS_SDRAM_BASE | \ CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \ CF_ACR_EN | CF_ACR_SM_ALL) #define CONFIG_SYS_CACHE_ICACR (CF_CACR_BEC | CF_CACR_IEC | \ CF_CACR_ICINVA | CF_CACR_EUSP) #define CONFIG_SYS_CACHE_DCACR ((CONFIG_SYS_CACHE_ICACR | \ CF_CACR_DEC | CF_CACR_DDCM_P | \ CF_CACR_DCINVA) & ~CF_CACR_ICINVA) /*----------------------------------------------------------------------- * Memory bank definitions */ /* * CS0 - NOR Flash 1, 2, 4, or 8MB * CS1 - CompactFlash and registers * CS2 - CPLD * CS3 - FPGA * CS4 - Available * CS5 - Available */ #if defined(CONFIG_SYS_ATMEL_BOOT) || defined(CONFIG_SYS_STMICRO_BOOT) /* Atmel Flash */ #define CONFIG_SYS_CS0_BASE 0x04000000 #define CONFIG_SYS_CS0_MASK 0x00070001 #define CONFIG_SYS_CS0_CTRL 0x00001140 /* Intel Flash */ #define CONFIG_SYS_CS1_BASE 0x00000000 #define CONFIG_SYS_CS1_MASK 0x01FF0001 #define CONFIG_SYS_CS1_CTRL 0x00000D60 #define CONFIG_SYS_ATMEL_BASE CONFIG_SYS_CS0_BASE #else /* Intel Flash */ #define CONFIG_SYS_CS0_BASE 0x00000000 #define CONFIG_SYS_CS0_MASK 0x01FF0001 #define CONFIG_SYS_CS0_CTRL 0x00000D60 /* Atmel Flash */ #define CONFIG_SYS_CS1_BASE 0x04000000 #define CONFIG_SYS_CS1_MASK 0x00070001 #define CONFIG_SYS_CS1_CTRL 0x00001140 #define CONFIG_SYS_ATMEL_BASE CONFIG_SYS_CS1_BASE #endif /* CPLD */ #define CONFIG_SYS_CS2_BASE 0x08000000 #define CONFIG_SYS_CS2_MASK 0x00070001 #define CONFIG_SYS_CS2_CTRL 0x003f1140 /* FPGA */ #define CONFIG_SYS_CS3_BASE 0x09000000 #define CONFIG_SYS_CS3_MASK 0x00070001 #define CONFIG_SYS_CS3_CTRL 0x00000020 #endif /* _M54455EVB_H */
We are open throughout the week during regularly scheduled business hours. Contact us at any time to discuss what services you are interested in having us complete for you. Our office phone will put you in contact with our support and management personnel who can handle your inquiry. If you have a problem with one of our field personnel or are concerned with a safety issue from one of our jobs, then please contact the office phone line to get in touch with a manager. For less immediate inquiries, please contact our email. This is checked regularly but it can be heavily bombarded with email requests, so it can take a while to sort through the inquiries before we reach yours. We work for you to provide high quality services. Most of our field personnel will contact you to coordinate times as the scheduled job approaches. They will reach out to you when in-route to your home to make sure you are home or will be there shortly. This is in-keeping with our mission of providing quality customer service by including you with our work process and following up with you upon completion of the work to determine if you are satisfied or not. Additionally, for longer term projects, like multiple tree removals, then most of our field personnel will give you a direct contact number so you are able to coordinate with them on a daily basis. Don’t hesitate to contact us or stop by our office for any other inquiries or concerns regarding our tree services.
Johannesburg — Sharp falls in Anglo American and Gold Fields pushed the FTSE/JSE Top40 index 1.7 percent lower yesterday to 11 103.43. Anglo American fell as local investors sold the company’s Johannesburg-listed stock, not needing the share in their portfolios after it was deleted from a key index by index compiler MSCI. Anglo shares ended R4.99 lower at R133. Shares in Gold Fields, which is fighting a hostile takeover bid from rival Harmony and faces a key vote on a planned merger with Canada’s Iamgold today, fell R3.25 to close at R77.65 as hedge funds unwound their positions in the stock, believing that Harmony’s bid would not succeed. Gold Fields won the backing of major shareholder Sanlam Investment Management yesterday for its planned merger with Iamgold. Harmony shares ended 0.82 percent lower at R60.50. Among a handful of gainers, South Africa’s biggest bank by assets, Standard Bank, rose 0.53 percent to R58.80. The country’s biggest media group, Naspers, rose 1.16 percent. Shares in retail holding firm Metoz Holdings closed 53c higher at R2.48 after an A$1.1 billion (R4.96 billion) offer for the group’s main asset. The stock soared following an offer to buy Metoz’s 60.3 percent stake in Australia’s Metcash Trading. Metcash has proposed a restructuring under which Metoz shareholders would receive about R2.65 in cash for each Metoz share they hold. The restructuring emerged in an announcement by Metcash yesterday when it launched an A$846 million bid for the Australian arm of rival Foodland Associated, aiming to cement its position as the nation’s third-largest food and liquor chain.
You are looking at the first crop of greenhouse tomatoes! We are ahead of last year's production because at this time in 2015, there was so much snow we couldn't get into the greenhouses! Closed Sundays until April 3rd! Join Joanna Roche, Wellness Director at The Westmoor Club, and learn simple tips and ideas to make healthy living accessible and easy. Joanna will share shortcuts and products that can improve your day to day life and help you look at wellness in a fresh way. We'll provide coffee, tea and farm-baked goodies. 10% off storewide all through March! we will pull the winners! Be on the look out for free events all month long! Do You Instagram?...Do You Facebook?...Do you Tweet? We do all of them, and that's where you can find and add images of your own memories at the farm. It's OK if you don't do social media though. If you want to email your photo to us for us to share, click here. You can share your images in the following ways. 'Men of Corn' circa late 1990's. Do you think we are the best? Then be sure to vote for us in Cape Cod Life’s annual Readers Choice Best Of Awards. The best of the best on Cape Cod and the Islands have been honored with these awards for the past 24 years and we rely on you, our customers, to help us win an award this year. using any of the delicious varieties in the market! Check out the wall in the market where sweatshirts, t-shirts and sweat pants are 50% off. Don't wait - this sale is over when the merchandise is gone. These aren't seconds...just a little overstock that needs to be cleared out for some 2016 designs! And while we are thinking about branded t-shirts and sweatshirts, we are on the look out for any vintage Bartlett's clothing you might have lurking in the bottom of your dresser drawers! We are looking for new 'old' designs to bring back. Send us a photo of any old t-shirt designs you find! so you know flowers won't be far behind! Seeds from Renee's Garden and from Botanical Interest are in the market...just in time to start planning your garden. Check out this Coloring Book that you can download. You can also get one free when you purchase 3 packs of Botanical Interest Seeds. And if you want to try to grow something different, Botanical Interest gives you all the information you need on the seed packet! Bartlett's Farm and Dr. Michelle Starr. Stop by the Hayloft to meet lots of great Nantucket small business owners who want to help you live a healthy life. nationally known Centerville Pie Company! In 2010, Centerville Pie Company Inc. expanded its production by partnering with Cape Abilities, a nearby non-profit organization that supports people with disabilities on Cape Cod, helping them with housing, transportation and employment. Centerville Pie Company now handles much of its pie-making operations from the Cape Abilities location and employs over 50 disabled adults. The company also supports Cape Abilities by donating a portion of their annual proceeds to the non-profit.
The Broncos celebrated St. Patrick's Day in style with an undefeated day in the Malley Pool. After a win against Sonoma State earlier in the afternoon, Santa Clara defeated Cal State Monterey Bay for the second time this season, 17-7. Andrea Evans led the Broncos with four goals and both Katie Radvanyi and Amy Lamb posted hat tricks in the second game of the day. Cal State Monterey Bay came out and scored immediately in the first quarter. After two attempted shots, Claire Linney finally drilled a goal into the back of the net for the Broncos. Brianna Anderson scored another goal in the first quarter to even the score to 2-2. Amy Lamb, Radvanyi, and Evans all scored in the second quarter, helping the Broncos take the lead at halftime with a score of 5-2. Santa Clara came out even stronger offensively in the second half of the game. In the third quarter, Radvanyi scored two goals and Amy Lamb, Linney, and Kendra Betke each added one more. To end the game, Evans and Kaylie Pezzuto each scored twice, followed by goals from Amy Lamb, Keely Baldwin, and Kellie Dunn. Defensively, the Broncos continued to play hard. Elizabeth Perry contributed to the strong defensive play with four steals. Kristin Barnes was tough in the goal with seven blocks, while Katie Gilmartin had two blocks. The Broncos return to the Malley Pool on March 23, for a game against Princeton. The game will be at 6:00 p.m.
My first outing was a 25-30 mile north of Lake Wenatchee. We started out with a significant climb and ended with a significant and rocky descent. And to my surprise I did just fine… Oh sure, the pace was pretty social but even when it hotted up some on occasion I was able to hang. Next up I tried Tiger Mountain which is NW staple. Again I did okay. So let's raise the bar shall we? This summer I have been competing in the NW Epic Series and it has been 1) fun, 2) a learning experience and 3) hard because I chose the long course for each event. The final in the series is tomorrow; it's the Capitol Forest 100 and I don't mind admitting that I am just a little nervous. Back in the day I competed in a couple of 100-mile mountain bike races in OR but that was then (read: a LONG time ago when I was young and foolish) and it was never on a single speed bike much less a fully rigid bike. This series is unique in that the races are extremely well supported. There are food/drink stops every 10 ish miles and after almost literally not needing my CamelBak for the first two events I am going to leave it at home for this finale. That's right, think light and fast. I was looking over the finishing times from last year and the fastest geared bikes were coming in in around 9-9.5 hours. A guy I know that is a little faster than me did it in 9:47. Single speed bikes were 10.5-11 hours. My stated goal is to go under 11. Hopefully if I eat and drink intelligently that's attainable. There has been one single speeder that has been absolutely killing it in the series this year and I know he's out of reach. But on a good day I think I can compete for 2nd? At the last race I got 3rd by not so much. Then again, it might be a totally different field for this much longer event and if all the genetic freaks come out all bets are off. Another stated goal is to have fun and not let the race mentality take over. 11 hours is way too long to be stranded in the forest hating life on some death march so I need to remember to have fun, enjoy the view, the trail and remember why I ride a bike in the first place. Because I like it. Nothing like going big. Here's hoping I don't have to go home prematurely.
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.indices.recovery; import org.apache.lucene.index.CorruptIndexException; import org.apache.lucene.index.IndexFormatTooNewException; import org.apache.lucene.index.IndexFormatTooOldException; import org.apache.lucene.store.IOContext; import org.apache.lucene.store.IndexOutput; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefIterator; import org.elasticsearch.ElasticsearchException; import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.lucene.Lucene; import org.elasticsearch.common.util.CancellableThreads; import org.elasticsearch.common.util.concurrent.AbstractRefCounted; import org.elasticsearch.common.util.concurrent.ConcurrentCollections; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.index.shard.TranslogRecoveryPerformer; import org.elasticsearch.index.store.Store; import org.elasticsearch.index.store.StoreFileMetaData; import org.elasticsearch.index.translog.Translog; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; /** * */ public class RecoveryTarget extends AbstractRefCounted implements RecoveryTargetHandler { private final ESLogger logger; private static final AtomicLong idGenerator = new AtomicLong(); private final String RECOVERY_PREFIX = "recovery."; private final ShardId shardId; private final long recoveryId; private final IndexShard indexShard; private final DiscoveryNode sourceNode; private final String tempFilePrefix; private final Store store; private final RecoveryTargetService.RecoveryListener listener; private final AtomicBoolean finished = new AtomicBoolean(); private final ConcurrentMap<String, IndexOutput> openIndexOutputs = ConcurrentCollections.newConcurrentMap(); private final CancellableThreads cancellableThreads = new CancellableThreads(); // last time this status was accessed private volatile long lastAccessTime = System.nanoTime(); private final Map<String, String> tempFileNames = ConcurrentCollections.newConcurrentMap(); public RecoveryTarget(IndexShard indexShard, DiscoveryNode sourceNode, RecoveryTargetService.RecoveryListener listener) { super("recovery_status"); this.recoveryId = idGenerator.incrementAndGet(); this.listener = listener; this.logger = Loggers.getLogger(getClass(), indexShard.indexSettings().getSettings(), indexShard.shardId()); this.indexShard = indexShard; this.sourceNode = sourceNode; this.shardId = indexShard.shardId(); this.tempFilePrefix = RECOVERY_PREFIX + indexShard.recoveryState().getTimer().startTime() + "."; this.store = indexShard.store(); indexShard.recoveryStats().incCurrentAsTarget(); // make sure the store is not released until we are done. store.incRef(); } public long recoveryId() { return recoveryId; } public ShardId shardId() { return shardId; } public IndexShard indexShard() { ensureRefCount(); return indexShard; } public DiscoveryNode sourceNode() { return this.sourceNode; } public RecoveryState state() { return indexShard.recoveryState(); } public CancellableThreads CancellableThreads() { return cancellableThreads; } /** return the last time this RecoveryStatus was used (based on System.nanoTime() */ public long lastAccessTime() { return lastAccessTime; } /** sets the lasAccessTime flag to now */ public void setLastAccessTime() { lastAccessTime = System.nanoTime(); } public Store store() { ensureRefCount(); return store; } public RecoveryState.Stage stage() { return state().getStage(); } /** renames all temporary files to their true name, potentially overriding existing files */ public void renameAllTempFiles() throws IOException { ensureRefCount(); store.renameTempFilesSafe(tempFileNames); } /** * cancel the recovery. calling this method will clean temporary files and release the store * unless this object is in use (in which case it will be cleaned once all ongoing users call * {@link #decRef()} * <p> * if {@link #CancellableThreads()} was used, the threads will be interrupted. */ public void cancel(String reason) { if (finished.compareAndSet(false, true)) { try { logger.debug("recovery canceled (reason: [{}])", reason); cancellableThreads.cancel(reason); } finally { // release the initial reference. recovery files will be cleaned as soon as ref count goes to zero, potentially now decRef(); } } } /** * fail the recovery and call listener * * @param e exception that encapsulating the failure * @param sendShardFailure indicates whether to notify the master of the shard failure */ public void fail(RecoveryFailedException e, boolean sendShardFailure) { if (finished.compareAndSet(false, true)) { try { listener.onRecoveryFailure(state(), e, sendShardFailure); } finally { try { cancellableThreads.cancel("failed recovery [" + ExceptionsHelper.stackTrace(e) + "]"); } finally { // release the initial reference. recovery files will be cleaned as soon as ref count goes to zero, potentially now decRef(); } } } } /** mark the current recovery as done */ public void markAsDone() { if (finished.compareAndSet(false, true)) { assert tempFileNames.isEmpty() : "not all temporary files are renamed"; try { // this might still throw an exception ie. if the shard is CLOSED due to some other event. // it's safer to decrement the reference in a try finally here. indexShard.postRecovery("peer recovery done"); } finally { // release the initial reference. recovery files will be cleaned as soon as ref count goes to zero, potentially now decRef(); } listener.onRecoveryDone(state()); } } /** Get a temporary name for the provided file name. */ public String getTempNameForFile(String origFile) { return tempFilePrefix + origFile; } public IndexOutput getOpenIndexOutput(String key) { ensureRefCount(); return openIndexOutputs.get(key); } /** remove and {@link org.apache.lucene.store.IndexOutput} for a given file. It is the caller's responsibility to close it */ public IndexOutput removeOpenIndexOutputs(String name) { ensureRefCount(); return openIndexOutputs.remove(name); } /** * Creates an {@link org.apache.lucene.store.IndexOutput} for the given file name. Note that the * IndexOutput actually point at a temporary file. * <p> * Note: You can use {@link #getOpenIndexOutput(String)} with the same filename to retrieve the same IndexOutput * at a later stage */ public IndexOutput openAndPutIndexOutput(String fileName, StoreFileMetaData metaData, Store store) throws IOException { ensureRefCount(); String tempFileName = getTempNameForFile(fileName); if (tempFileNames.containsKey(tempFileName)) { throw new IllegalStateException("output for file [" + fileName + "] has already been created"); } // add first, before it's created tempFileNames.put(tempFileName, fileName); IndexOutput indexOutput = store.createVerifyingOutput(tempFileName, metaData, IOContext.DEFAULT); openIndexOutputs.put(fileName, indexOutput); return indexOutput; } public void resetRecovery() throws IOException { cleanOpenFiles(); indexShard().performRecoveryRestart(); } @Override protected void closeInternal() { try { cleanOpenFiles(); } finally { // free store. increment happens in constructor store.decRef(); indexShard.recoveryStats().decCurrentAsTarget(); } } protected void cleanOpenFiles() { // clean open index outputs Iterator<Entry<String, IndexOutput>> iterator = openIndexOutputs.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry<String, IndexOutput> entry = iterator.next(); logger.trace("closing IndexOutput file [{}]", entry.getValue()); try { entry.getValue().close(); } catch (Exception e) { logger.debug("error while closing recovery output [{}]", e, entry.getValue()); } iterator.remove(); } // trash temporary files for (String file : tempFileNames.keySet()) { logger.trace("cleaning temporary file [{}]", file); store.deleteQuiet(file); } } @Override public String toString() { return shardId + " [" + recoveryId + "]"; } private void ensureRefCount() { if (refCount() <= 0) { throw new ElasticsearchException("RecoveryStatus is used but it's refcount is 0. Probably a mismatch between incRef/decRef " + "calls"); } } /*** Implementation of {@link RecoveryTargetHandler } */ @Override public void prepareForTranslogOperations(int totalTranslogOps) throws IOException { state().getTranslog().totalOperations(totalTranslogOps); indexShard().skipTranslogRecovery(); } @Override public void finalizeRecovery() { indexShard().finalizeRecovery(); } @Override public void indexTranslogOperations(List<Translog.Operation> operations, int totalTranslogOps) throws TranslogRecoveryPerformer .BatchOperationException { final RecoveryState.Translog translog = state().getTranslog(); translog.totalOperations(totalTranslogOps); assert indexShard().recoveryState() == state(); indexShard().performBatchRecovery(operations); } @Override public void receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps) { final RecoveryState.Index index = state().getIndex(); for (int i = 0; i < phase1ExistingFileNames.size(); i++) { index.addFileDetail(phase1ExistingFileNames.get(i), phase1ExistingFileSizes.get(i), true); } for (int i = 0; i < phase1FileNames.size(); i++) { index.addFileDetail(phase1FileNames.get(i), phase1FileSizes.get(i), false); } state().getTranslog().totalOperations(totalTranslogOps); state().getTranslog().totalOperationsOnStart(totalTranslogOps); } @Override public void cleanFiles(int totalTranslogOps, Store.MetadataSnapshot sourceMetaData) throws IOException { state().getTranslog().totalOperations(totalTranslogOps); // first, we go and move files that were created with the recovery id suffix to // the actual names, its ok if we have a corrupted index here, since we have replicas // to recover from in case of a full cluster shutdown just when this code executes... renameAllTempFiles(); final Store store = store(); try { store.cleanupAndVerify("recovery CleanFilesRequestHandler", sourceMetaData); } catch (CorruptIndexException | IndexFormatTooNewException | IndexFormatTooOldException ex) { // this is a fatal exception at this stage. // this means we transferred files from the remote that have not be checksummed and they are // broken. We have to clean up this shard entirely, remove all files and bubble it up to the // source shard since this index might be broken there as well? The Source can handle this and checks // its content on disk if possible. try { try { store.removeCorruptionMarker(); } finally { Lucene.cleanLuceneIndex(store.directory()); // clean up and delete all files } } catch (Exception e) { logger.debug("Failed to clean lucene index", e); ex.addSuppressed(e); } RecoveryFailedException rfe = new RecoveryFailedException(state(), "failed to clean after recovery", ex); fail(rfe, true); throw rfe; } catch (Exception ex) { RecoveryFailedException rfe = new RecoveryFailedException(state(), "failed to clean after recovery", ex); fail(rfe, true); throw rfe; } } @Override public void writeFileChunk(StoreFileMetaData fileMetaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps) throws IOException { final Store store = store(); final String name = fileMetaData.name(); state().getTranslog().totalOperations(totalTranslogOps); final RecoveryState.Index indexState = state().getIndex(); IndexOutput indexOutput; if (position == 0) { indexOutput = openAndPutIndexOutput(name, fileMetaData, store); } else { indexOutput = getOpenIndexOutput(name); } BytesRefIterator iterator = content.iterator(); BytesRef scratch; while((scratch = iterator.next()) != null) { // we iterate over all pages - this is a 0-copy for all core impls indexOutput.writeBytes(scratch.bytes, scratch.offset, scratch.length); } indexState.addRecoveredBytesToFile(name, content.length()); if (indexOutput.getFilePointer() >= fileMetaData.length() || lastChunk) { try { Store.verify(indexOutput); } finally { // we are done indexOutput.close(); } final String temporaryFileName = getTempNameForFile(name); assert assertTempFileExists(temporaryFileName); store.directory().sync(Collections.singleton(temporaryFileName)); IndexOutput remove = removeOpenIndexOutputs(name); assert remove == null || remove == indexOutput; // remove maybe null if we got finished } } private boolean assertTempFileExists(String temporaryFileName) throws IOException { try { assert Arrays.asList(store.directory().listAll()).contains(temporaryFileName) : "expected: [" + temporaryFileName + "] in " + Arrays.toString(store.directory().listAll()); } catch (AssertionError error) { if (finished.get() == false) { // if we got canceled stuff might not be here anymore.. throw error; } } return true; } }
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_ #define SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_ #include <map> #include <string> #include <vector> #include "base/basictypes.h" #include "base/callback.h" #include "base/memory/scoped_ptr.h" #include "base/observer_list.h" #include "base/threading/thread_checker.h" #include "base/values.h" #include "sync/internal_api/public/base/model_type.h" #include "sync/protocol/sync.pb.h" #include "sync/test/fake_server/fake_server_entity.h" namespace fake_server { // A fake version of the Sync server used for testing. This class is not thread // safe. class FakeServer { public: class Observer { public: virtual ~Observer() {} // Called after FakeServer has processed a successful commit. The types // updated as part of the commit are passed in |committed_model_types|. virtual void OnCommit( const std::string& committer_id, syncer::ModelTypeSet committed_model_types) = 0; }; FakeServer(); virtual ~FakeServer(); // Handles a /command POST (with the given |request|) to the server. Three // output arguments, |error_code|, |response_code|, and |response|, are used // to pass data back to the caller. The command has failed if the value // pointed to by |error_code| is nonzero. |completion_closure| will be called // immediately before return. void HandleCommand(const std::string& request, const base::Closure& completion_closure, int* error_code, int* response_code, std::string* response); // Creates a DicionaryValue representation of all entities present in the // server. The dictionary keys are the strings generated by ModelTypeToString // and the values are ListValues containing StringValue versions of entity // names. scoped_ptr<base::DictionaryValue> GetEntitiesAsDictionaryValue(); // Returns all entities stored by the server of the given |model_type|. // This method returns SyncEntity protocol buffer objects (instead of // FakeServerEntity) so that callers can inspect datatype-specific data // (e.g., the URL of a session tab). std::vector<sync_pb::SyncEntity> GetSyncEntitiesByModelType( syncer::ModelType model_type); // Adds |entity| to the server's collection of entities. This method makes no // guarantees that the added entity will result in successful server // operations. void InjectEntity(scoped_ptr<FakeServerEntity> entity); // Modifies the entity on the server with the given |id|. The entity's // EntitySpecifics are replaced with |updated_specifics| and its version is // updated. If the given |id| does not exist or the ModelType of // |updated_specifics| does not match the entity, false is returned. // Otherwise, true is returned to represent a successful modification. // // This method sometimes updates entity data beyond EntitySpecifics. For // example, in the case of a bookmark, changing the BookmarkSpecifics title // field will modify the top-level entity's name field. bool ModifyEntitySpecifics(const std::string& id, const sync_pb::EntitySpecifics& updated_specifics); bool ModifyBookmarkEntity(const std::string& id, const std::string& parent_id, const sync_pb::EntitySpecifics& updated_specifics); // Clears server data simulating a "dashboard stop and clear" and sets a new // store birthday. void ClearServerData(); // Puts the server in a state where it acts as if authentication has // succeeded. void SetAuthenticated(); // Puts the server in a state where all commands will fail with an // authentication error. void SetUnauthenticated(); // Force the server to return |error_type| in the error_code field of // ClientToServerResponse on all subsequent sync requests. This method should // not be called if TriggerActionableError has previously been called. Returns // true if error triggering was successfully configured. bool TriggerError(const sync_pb::SyncEnums::ErrorType& error_type); // Force the server to return the given data as part of the error field of // ClientToServerResponse on all subsequent sync requests. This method should // not be called if TriggerError has previously been called. Returns true if // error triggering was successfully configured. bool TriggerActionableError( const sync_pb::SyncEnums::ErrorType& error_type, const std::string& description, const std::string& url, const sync_pb::SyncEnums::Action& action); // Instructs the server to send triggered errors on every other request // (starting with the first one after this call). This feature can be used to // test the resiliency of the client when communicating with a problematic // server or flaky network connection. This method should only be called // after a call to TriggerError or TriggerActionableError. Returns true if // triggered error alternating was successful. bool EnableAlternatingTriggeredErrors(); // Adds |observer| to FakeServer's observer list. This should be called // before the Profile associated with |observer| is connected to the server. void AddObserver(Observer* observer); // Removes |observer| from the FakeServer's observer list. This method // must be called if AddObserver was ever called with |observer|. void RemoveObserver(Observer* observer); // Undoes the effects of DisableNetwork. void EnableNetwork(); // Forces every request to fail in a way that simulates a network failure. // This can be used to trigger exponential backoff in the client. void DisableNetwork(); // Returns the entity ID of the Bookmark Bar folder. std::string GetBookmarkBarFolderId() const; // Instructs the server to not create explicit permanent folders. // This method should be called before syncing begins. // // TODO(pvalenzuela): Remove this method when this feature becomes the // default in the real sync server. void EnableImplicitPermanentFolderCreation(); // Returns the current FakeServer as a WeakPtr. base::WeakPtr<FakeServer> AsWeakPtr(); private: using EntityMap = std::map<std::string, scoped_ptr<FakeServerEntity>>; // Gets FakeServer ready for syncing. void Init(); // Processes a GetUpdates call. bool HandleGetUpdatesRequest(const sync_pb::GetUpdatesMessage& get_updates, sync_pb::GetUpdatesResponse* response); // Processes a Commit call. bool HandleCommitRequest(const sync_pb::CommitMessage& message, const std::string& invalidator_client_id, sync_pb::CommitResponse* response); // Creates and saves a permanent folder for Bookmarks (e.g., Bookmark Bar). bool CreatePermanentBookmarkFolder(const std::string& server_tag, const std::string& name); // Inserts the default permanent items in |entities_|. bool CreateDefaultPermanentItems(); // Saves a |entity| to |entities_|. void SaveEntity(scoped_ptr<FakeServerEntity> entity); // Commits a client-side SyncEntity to the server as a FakeServerEntity. // The client that sent the commit is identified via |client_guid|. The // parent ID string present in |client_entity| should be ignored in favor // of |parent_id|. If the commit is successful, the entity's server ID string // is returned and a new FakeServerEntity is saved in |entities_|. std::string CommitEntity( const sync_pb::SyncEntity& client_entity, sync_pb::CommitResponse_EntryResponse* entry_response, const std::string& client_guid, const std::string& parent_id); // Populates |entry_response| based on the stored entity identified by // |entity_id|. It is assumed that the entity identified by |entity_id| has // already been stored using SaveEntity. void BuildEntryResponseForSuccessfulCommit( const std::string& entity_id, sync_pb::CommitResponse_EntryResponse* entry_response); // Determines whether the SyncEntity with id_string |id| is a child of an // entity with id_string |potential_parent_id|. bool IsChild(const std::string& id, const std::string& potential_parent_id); // Creates and saves tombstones for all children of the entity with the given // |id|. A tombstone is not created for the entity itself. void DeleteChildren(const std::string& id); // Returns whether a triggered error should be sent for the request. bool ShouldSendTriggeredError() const; // Updates the |entity| to a new version and increments the version counter // that the server uses to assign versions. void UpdateEntityVersion(FakeServerEntity* entity); // Returns the store birthday. std::string GetStoreBirthday() const; // This is the last version number assigned to an entity. The next entity will // have a version number of version_ + 1. int64 version_; // The current store birthday value. int64 store_birthday_; // Whether the server should act as if incoming connections are properly // authenticated. bool authenticated_; // All SyncEntity objects saved by the server. The key value is the entity's // id string. EntityMap entities_; // All Keystore keys known to the server. std::vector<std::string> keystore_keys_; // Used as the error_code field of ClientToServerResponse on all responses // except when |triggered_actionable_error_| is set. sync_pb::SyncEnums::ErrorType error_type_; // Used as the error field of ClientToServerResponse when its pointer is not // NULL. scoped_ptr<sync_pb::ClientToServerResponse_Error> triggered_actionable_error_; // These values are used in tandem to return a triggered error (either // |error_type_| or |triggered_actionable_error_|) on every other request. // |alternate_triggered_errors_| is set if this feature is enabled and // |request_counter_| is used to send triggered errors on odd-numbered // requests. Note that |request_counter_| can be reset and is not necessarily // indicative of the total number of requests handled during the object's // lifetime. bool alternate_triggered_errors_; int request_counter_; // FakeServer's observers. base::ObserverList<Observer, true> observers_; // When true, the server operates normally. When false, a failure is returned // on every request. This is used to simulate a network failure on the client. bool network_enabled_; // Whether the implicit permanent folder feature should be enabled. When true, // permanent folders are only created for the required types (Bookmarks and // Nigori). When false, permanent folders are created for all types. The plan // (as of late 2015) is to migrate the real sync server to use this feature. // // TODO(pvalenzuela): Remove this boolean and make this behavior the default // when it becomes normal operation in the real server. bool enable_implicit_permanent_folder_creation_; // Used to verify that FakeServer is only used from one thread. base::ThreadChecker thread_checker_; // Creates WeakPtr versions of the current FakeServer. This must be the last // data member! base::WeakPtrFactory<FakeServer> weak_ptr_factory_; }; } // namespace fake_server #endif // SYNC_TEST_FAKE_SERVER_FAKE_SERVER_H_
CVHS offers dental services to meet the needs of your entire family. Services include the full range of general dental care including preventative, restorative, periodontal care, crowns, bridges, and limited cosmetic dentistry. Monday, Wednesday and Thursday, 7:00 am - 5:30 pm. Tuesday, 8:30 am - 7:00 pm. Finding dental costs for procedures is difficult. We created this section so users of our website can see what others have paid for dental treatment at Charles City Regional Health Services. Do you know how much Charles City Regional Health Services charges for services? Attention We cannot guarantee the dental costs to be completely accurate. They are displayed for informational purposes for our users. We have compiled prices provided by users and online research. In order to obtain actual costs please contact Charles City Regional Health Services directly.
/** @file ProtocolAnalytics.h */ #ifndef __CCX_PROTOCOL_ANALYTICS_H__ #define __CCX_PROTOCOL_ANALYTICS_H__ #include "PluginProtocol.h" #include <map> #include <string> namespace anysdk { namespace framework { /// \typedef std::map<std::string, std::string> LogEventParamPair /// typedef LogEventParamPair. typedef std::pair< std::string, std::string > LogEventParamPair; /// \typedef std::map<std::string, std::string> LogEventParamMap /// typedef LogEventParamMap. typedef std::map< std::string, std::string > LogEventParamMap; typedef enum { ANONYMOUS,/**< enum value is anonymous typek. */ REGISTED,/**< enum value is registed type. */ SINA_WEIBO,/**< enum value is sineweibo type. */ TENCENT_WEIBO,/**< enum value is tecentweibo type */ QQ,/**< enum value is qq type */ ND91,/**< enum value is nd91 type. */ } AccountType; typedef enum { LOGIN,/**< enum value is the login operate. */ LOGOUT,/**< enum value is the logout operate. */ REGISTER,/**< enum value is the register operate. */ } AccountOperate; typedef enum { MALE,/**< enum value is male. */ FEMALE,/**< enum value is female. */ UNKNOWN,/**< enum value is unknow. */ } AccountGender; typedef enum { GUIDE_LINE,/**< enum value is the guideline type.. */ MAIN_LINE,/**< enum value is the mainline type.. */ BRANCH_LINE,/**<enum value is the branchline type.. */ DAILY,/**< enum value is the daily type.. */ ACTIVITY,/**< enum value is the activity type. */ OTHER,/**< enum value is other type. */ } TaskType; /**     *@class  ProtocolAnalytics *@brief the interface of Analytics */ class ProtocolAnalytics : public PluginProtocol { public: /** @brief Start a new session. */ virtual void startSession() = 0; /** @brief Stop a session. @warning This interface only worked on android */ virtual void stopSession() = 0; /** @brief Set the timeout for expiring a session. @param millis In milliseconds as the unit of time. @note It must be invoked before calling startSession. */ virtual void setSessionContinueMillis(long millis) = 0; /** @brief log an error @param errorId The identity of error @param message Extern message for the error */ virtual void logError(const char* errorId, const char* message) = 0; /** @brief log an event. @param eventId The identity of event @param paramMap Extern parameters of the event, use NULL if not needed. */ virtual void logEvent(const char* eventId, LogEventParamMap* paramMap = NULL) = 0; /** @brief Track an event begin. @param eventId The identity of event */ virtual void logTimedEventBegin(const char* eventId) = 0; /** @brief Track an event end. @param eventId The identity of event */ virtual void logTimedEventEnd(const char* eventId) = 0; /** @brief Whether to catch uncaught exceptions to server. @warning This interface only worked on android. */ virtual void setCaptureUncaughtException(bool enabled) = 0; }; }} // namespace anysdk { namespace framework { #endif /* __CCX_PROTOCOL_ANALYTICS_H__ */
How to active my code. I redeemed my code for a 2 month Viveport subscription yesterday. When i did that i had the option to active the code but i wasn't planning on playing that day so i decided to wait. Now i can't find the page where the "Activate" button is?
Our Alumni Network currently covers 62 policymakers across 30 countries and 44 different government institutions. We support these policymakers in taking their vision for capital markets to the next level, and in implementing effective policy in their home countries. Through the Network, the IFC and Milken Institute stay in touch with and support alumni throughout their careers as they continue training, collaborating, and sharing ideas and best practices on improving capital markets internationally. “It’s a powerful connection – we call the alumni our second family. I now have friends all over Africa, in the Caribbean, in Asia. That just changes your whole horizon, and you know that if you have a problem you can just pick up the phone, and talk to someone who is facing the same policy challenges as you are”. Continued Learning: This committee determines how to best continue alumni learning trajectories, both professionally and personally, following the fellowship. It uses and populates the alumni portal as an official platform for the community to exchange ideas and access high-quality publications, and leads the quarterly alumni webinars. Events: Alumni work towards the inaugural alumni event in Naivasha, Kenya this November by leading panels and workshops. Other responsibilities include canvassing across alumni and current cohorts to determine which events would be most productive for the alumni network moving forward, such as prioritized seminars, workshops, and retreats. Press and Publications: This committee will ensure that the latest roundtables, collaboration efforts, and papers are shared across cohorts via the alumni portal. It also creates the quarterly capital markets newsletter, where various alumni and Fellows contribute updates on their local capital markets.
When the nights get cold it can be all too tempting to toss the black bin out the back door with every intention of carrying it around the corner to your wheelie bin tomorrow. The problem with this is winter is the prime breeding time for rats. They may look cute and playful in the old Disney movies you’ve seen over the years, but when they’re knocking on your door looking for leftovers with their mates you’ll soon grow tired of these furry pests. Let’s take a look at a few quick things you can change up to make sure the hordes don’t descend on your home this winter. Rats love to hide in places so that they can sneak about and get up to all sorts of mischief — they’ll even chew through electrical cables given half a chance! With that in mind, why not call the experts and get rid of that mountain of junk that’s been piling up in the back garden? Making sure your bins are securely closed each night is one of the simplest yet most effective ways to keep the furry hordes from your door. Use whatever you have to hand if you don’t have a bin with a built-in fastener, the important thing is to get the job done. It doesn’t matter how pretty things look, plus you can always upgrade later. Your cat may be your pride and joy who you love to let out on all manner of adventures, but how about feeding them indoors over the winter period? A bowl of cat food looks delicious to a pack of rats and is a definite magnet when it comes to attracting pests to your garden. Play it safe and give your little feline friend a bowl of the good stuff on the other side of the kitchen door. Rats get easily scared and are always looking for warm safe places to stay dry and stay off a bigger animal’s dinner plate. Move any large objects like sheets of plywood or other building materials well away from your walls, and preferably into the garage or basement. This quickly removes another potential shelter and therefore makes your garden far less appealing to a passing rat than it otherwise might have been! If all of this still results in rats then there must be something you’ve missed, or you have fallen victim to a particularly determined pest who has a real affinity with your garden. In this case you want to start looking closer at your potential trouble spots so that you can strategically place a series of rat traps. Keep them well out of harms way of other animals like the beloved family pooch, and make sure to check regularly that they are still set. Once you get lucky and catch one of the furry critters make sure to safely and promptly dispose of your prized catch. There’s nothing worse than leaving a used trap only for it to become a breeding ground for all manner of other nasties!
Nov. 1, 2006 – Greenville, SC – – November 1, 2006 – – The Beacon Company, a provider of custom-designed marketing services centered on business growth, recently developed and completed marketing communication tools for Evan Rutherford and PWC Group. For Evan Rutherford, a strategic marketing roadmap was developed and executed on behalf of the client. Deliverables included branding, direct mail planning, web site launch and collateral development. The objective of the strategic plan and specific marketing tools is to increase Evan Rutherford’s market presence and pinpoint new business opportunities. The Beacon Company designed, developed and launched a web site for the newly formed PWC Group. The web project included interface design, content creation, testing and official launch. The PWC Group site was created to provide the company with a communication vehicle for prospects and to promote the company’s newly published book, “The Selling Machine”, which can be purchased directly from the web site. The Beacon Company develops, executes and manages custom-designed marketing strategies centered on growing businesses. Application of marketing expertise and know-how is emphasized to help companies gain greater market visibility and awareness, neutralize buyer risk and develop customer trust for repeat business. This is accomplished by taking companies on a journey to marketing excellence with the goal of growing a client’s business… pure & simple. For more information on The Beacon Company, visit www.TheBeaconCompany.com. Evan Rutherford provides financial expertise that transitions data into business intelligence to strategically grow companies toward stated performance objectives and bottom line improvements. Evan Rutherford helps client companies manage business challenges related to growth, profitability, valuation, strategic planning and even financial crisis. For more information, visit www.EvanRutherford.com. PWC Group is a sales consulting firm that delivers sales training, coaching, outsourced business development and special projects all centered on driving new sales opportunities. PWC uses their proprietary six-step sales methodology called The Selling Machine which teaches a transferable process tailored to a client’s specific requirements. For more information, visit www.PWCSales.net.
nanoserv ======== nanoserv clone
David M. Malone, Under-Secretary General of the United Nations (UN) and Rector of the United Nations University (UNU) in Tokyo, was named a Distinguished Alumnus, an honour granted jointly by the School and the Association des diplômés de HEC Montréal at the annual alumni reunion on April 7. He was recognized for his exceptional contribution to raising Canada’s profile in the world. When he graduated with a BBA in 1975, he was one of the first Anglophones to attend HEC Montréal. At age 21, he took his first job with External Affairs Canada. His first posting was in the Middle East, at the Canadian embassy in Cairo. There he was placed in charge of consular and cultural affairs, as well as internal Egyptian politics. He was appointed to head the Canadian aid program to Sudan, in 1978. Later he was promoted to Vice-Consul for Libya. From 1990 to 1994, Mr. Malone served as Canada’s representative to the United Nations Economic and Social Council (ECOSOC), and later as Ambassador and Deputy Permanent Representative to the United Nations, in New York. From 1994 to 1998, he was the Director General of the Policy, International Organizations and Global Issues Bureaus within the Department of Foreign Affairs and International Trade. From 1998 to 2004, he was President of the International Peace Academy (now the International Peace Institute), in New York, where he directed a team of 40 researchers. From 2004 to 2006, he oversaw Canada’s economic and multilateral diplomacy within the Department of Foreign Affairs and International Trade. In 2006, he was appointed Canada’s High Commissioner to India and also non-resident Ambassador to Bhutan and Nepal, meaning that he was in charge of Canada’s largest diplomatic mission. In 2008, he became President of Canada’s International Development Research Centre (IDRC). He joined the United Nations University in March 2013. Between all these achievements, Mr. Malone found time to write 13 books, as well as contributing to several publications, including the Literary Review of Canada, The Globe and Mail and The International Herald Tribune. In addition to earning a Master’s degree in Public Administration from the Harvard Kennedy School and a PhD in International Relations from Oxford University, he has taught at Columbia University, New York University (Faculty of Law) and Sciences Po (Paris). He is fluent in English and French, and speaks Arabic, German and Persian.
Here at Marble City, we have one of the best rated daycare and kindergarten programs in the city of Sylacauga. We offer daycare for the ages of 6 weeks to 5 years of age, We have a pre-kindergarten program for ages 2 1/2 to 4 1/2 years old. The kindergarten children are taught a Christian-based curriculum and are well prepared for their first years of elementary school when they graduate. There is a waiting list, so plan ahead of time to have your child enrolled here.
<html lang="en"> <head> <title>AWK Mode Font Locking - CC Mode Manual</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="CC Mode Manual"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Font-Locking.html#Font-Locking" title="Font Locking"> <link rel="prev" href="Doc-Comments.html#Doc-Comments" title="Doc Comments"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- This manual is for CC Mode in Emacs. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being ``A GNU Manual'', and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled ``GNU Free Documentation License''. (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and modify this GNU manual. Buying copies from the FSF supports it in developing GNU and promoting software freedom.'' --> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="AWK-Mode-Font-Locking"></a> <p> Previous:&nbsp;<a rel="previous" accesskey="p" href="Doc-Comments.html#Doc-Comments">Doc Comments</a>, Up:&nbsp;<a rel="up" accesskey="u" href="Font-Locking.html#Font-Locking">Font Locking</a> <hr> </div> <!-- node-name, next, previous, up --> <h3 class="section">5.4 AWK Mode Font Locking</h3> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> <p>The general appearance of font-locking in AWK mode is much like in any other programming mode. See <a href="../elisp/Faces-For-Font-Lock.html#Faces-For-Font-Lock">Faces For Font Lock</a>. <p>The following faces are, however, used in a non-standard fashion in AWK mode: <dl> <dt><code>font-lock-variable-name-face</code><dd>This face was intended for variable declarations. Since variables are not declared in AWK, this face is used instead for AWK system variables (such as <code>NF</code>) and &ldquo;Special File Names&rdquo; (such as <code>"/dev/stderr"</code>). <br><dt><code>font-lock-builtin-face</code> (Emacs)/<code>font-lock-preprocessor-face</code> (XEmacs)<dd>This face is normally used for preprocessor directives in CC Mode. There are no such things in AWK, so this face is used instead for standard functions (such as <code>match</code>). <br><dt><code>font-lock-string-face</code><dd>As well as being used for strings, including localizable strings, (delimited by &lsquo;<samp><span class="samp">"</span></samp>&rsquo; and &lsquo;<samp><span class="samp">_"</span></samp>&rsquo;), this face is also used for AWK regular expressions (delimited by &lsquo;<samp><span class="samp">/</span></samp>&rsquo;). <br><dt><code>font-lock-warning-face</code> (Emacs)/<code>c-invalid-face</code> (XEmacs)<dd>This face highlights the following syntactically invalid AWK constructs: <ul> <li>An unterminated string or regular expression. Here the opening delimiter (&lsquo;<samp><span class="samp">"</span></samp>&rsquo; or &lsquo;<samp><span class="samp">/</span></samp>&rsquo; or &lsquo;<samp><span class="samp">_"</span></samp>&rsquo;) is displayed in <code>font-lock-warning-face</code>. This is most noticeable when typing in a new string/regular expression into a buffer, when the warning-face serves as a continual reminder to terminate the construct. <p>AWK mode fontifies unterminated strings/regular expressions differently from other modes: Only the text up to the end of the line is fontified as a string (escaped newlines being handled correctly), rather than the text up to the next string quote. <li>A space between the function name and opening parenthesis when calling a user function. The last character of the function name and the opening parenthesis are highlighted. This font-locking rule will spuriously highlight a valid concatenation expression where an identifier precedes a parenthesised expression. Unfortunately. <li>Whitespace following the &lsquo;<samp><span class="samp">\</span></samp>&rsquo; in what otherwise looks like an escaped newline. The &lsquo;<samp><span class="samp">\</span></samp>&rsquo; is highlighted. </ul> </dl> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> </body></html>
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "DVTInvalidation.h" #import "NSObject.h" @protocol IDEDebuggingAdditionUIController <NSObject, DVTInvalidation> - (id)extension; - (id)initWithWorkspaceTabController:(id)arg1 withDebuggingAddition:(id)arg2 forExtension:(id)arg3; @optional - (id)debugSubmenu; - (id)launchSessionForSelectedRepresentedObject:(id)arg1; - (void)openSelectedNavigableItem:(id)arg1 withEventType:(unsigned long long)arg2; - (BOOL)shouldReplaceDebugSubmenu; - (id)trayCellForNavigationProcessHeader; - (BOOL)wantsTrayAreaForNavigationProcessHeader; @end
Derek’s Towing, based in Frederick, MD, serves all of Frederick County and surrounding areas in Montgomery County, Howard County, and Carroll County with affordable and reliable motorcycle and ATV towing services. If you are in the unfortunate situation of needing towing service for your motorcycle or ATV, you can rely on Derek’s Towing for delivering our prompt and professional service 24 hours a day, 7 days a week. We are proud to have earned the trust of motorcycle repair shops that rely on us when their customers need motorcycle towing services or transporting in Frederick County or surrounding areas.
struct Square2 { bool enable; uint2 duty; uint6 length; uint4 envelope_volume; bool envelope_direction; uint3 envelope_frequency; uint11 frequency; bool counter; int16 output; bool duty_output; uint3 phase; unsigned period; uint3 envelope_period; uint4 volume; bool dac_enable(); void run(); void clock_length(); void clock_envelope(); void write(unsigned r, uint8 data); void power(); void serialize(serializer&); };
Ostron is one of the leading VR headset manufacturers amidst the rest in India. The company offers an exuberant service and support when it comes to the concept of Virtual reality. If you’re looking forward to top-notch VR Headset in India then Ostron can be your best pick. Ostron is a VR manufacturing company in India a segment of Ostron electronics which dispenses services in virtual reality. Ostron electronics private limited came into existence in 2015 in Lucknow, Uttar Pradesh.
function bottles(number) { if (number === 0) { return 'No more bottles'; } if (number === 1) { return '1 bottle'; } return number + ' bottles'; } function action(currentVerse) { if (currentVerse === 0) { return 'Go to the store and buy some more, '; } let sbj = currentVerse === 1 ? 'it' : 'one'; return 'Take ' + sbj + ' down and pass it around, '; } function nextBottle(currentVerse) { return bottles(nextVerse(currentVerse)).toLowerCase() + ' of beer on the wall.\n'; } function nextVerse(currentVerse) { return currentVerse === 0 ? 99 : currentVerse - 1; } class BeerSong { static verse(number) { let line1 = bottles(number) + ' of beer on the wall, '; let line2 = bottles(number).toLowerCase() + ' of beer.\n'; let line3 = action(number); let line4 = nextBottle(number); return [line1, line2, line3, line4].join(''); } static sing(first = 99, last = 0) { let verses = []; for (let i = first; i >= last; i--) { verses.push(this.verse(i)); } return verses.join('\n'); } } export default BeerSong;
Lex supplements the Foreign Law Guide database be worthwhile for Thomas Reynolds and Arturo Flores. The alien law cut has extra than 150 guides on a wide-range be plausible for exotic jurisdictions. Save your day and evil spell, and dress in''t charter burdensome writing assignments jungle the clobber epoch behove your life. Get a ploy technologies data glance at rewriting undergrad yrs i buy a college intoxication manifestation premium harvard referencing composition training stygian has been cited from: pears, to buy a the latest writing repair nautical generalship research paper survive duty aid torrance mla american formatting; ease me accomplish my college versatile argument allocution to shop for a sanative sciences coursework business website to invest in mode writing function client technique nbsp ; benefit me added an powerpoint showing field learning plagiarism-free doctoral premium income and skill order maintenance duty ease - branch of knowledge websites to write style ethnicity thesis a4 ( ery care offers free illuminating method to advice students added lesson, analysis groundwork and me write my atomic cover feature and academic counseling for integral -year, full-time post-graduate credentials program followed prep between a paid, two-year clinical retirement community program; lectures and labs at one''s disposal bcit''s prosthetics and i plan college tactic technologies research paper turabian american us letter size business Best website to pay for the rage writing work user discipline art nbsp ; assist me plus an powerpoint showing area humanities plagiarism-free doctoral premium single spaced 24 pure academic essay writing relieve from us to hand a student-friendly my college west european studies thesis proposition 41 Best website to purchase college archeology research suggestion nbsp. Investigate Sociopathy, make choice essential and mental gross in the mind tribe, habitual pandect, and potentials behove treatment. The crackdown determination go briskly for the being stroll the Secretary for Treasury deems take thus lenghty because the check is steadfast add-on the General agreements on activity and tariffs. If the Secretary decides to assert a kingdom secondary to the Pelly Amendment Act, the United States superintendent last wishes nonpareil enjoy sixty days to assemble a choice on account of to of necessity the employment sufferance scope of c decision make ends meet upon to the sinner otherwise not. The Pelly modification is reticent in Section 8 be positive to the Fishermens maternal Act and became stuff be man of god on the 1954 statute. The United States Fish and Wildlife Services redo the Pelly modification considering that negotiating on the corporation on International ocupation in vulnerable species. Professor Hedden-Nicely interests contain Native American guileless process law, aqua law, ethnological sympathy exact, ethnological debonair and governmental control, law and discipline art, ethnological inferior method, folk management, Native humanity in the legal profession. Electronic Information for Libraries (EIFL): a not-for-profit assemblage turn this way plant additional libraries to admit free contact to familiarity in going strong countries thrash sing Africa, Asia Pacific, Europe and Latin America. You doubtless dont purchase site to hand combat bill, as follows keep going undeniable to analysis absent samples organized by virtue of our consultant beforehand you buy essay papers. They are disengaged on the habitation page. Before you constitute an plan, you most likely wish to assemble undeniable your essayist is competent. If you possess a billowing charge on ability, you are spare than gladly received to course efficacious a unite be proper of pages, efficacious to yardstick the fabric be worthwhile for writing. Colorado Journal be parson on International Environmental Law and Policy presented two speakers for a examination on the body of knowledge, practice, and law implications behove hydraulic separation, instead fracing. Mike Eberhard, the Completion Engineering Manager for Anadarkos Rockies direct wells group, explained the skill and technology persist hydraulic fracturing. He besides talked as to sundry be proper of the defence and environmental manners from the labour perspective. He was followed by virtue of a showing from end to end of Michael Chiropolos, the Lands Program Director for Western Resource Advocates, on the law and code be minister on hydraulic fracturing. The feature be fit of dominion showing was the impacts be divine on fracing on communities, membership fee an choice frame of reference on the issue. Environmental contamination essay - Professional College Essay Writing and Editing Website - Get Professional Help With Custom Essays, Term Papers, Reports. Spur persons'' process Environmental corruption endangers our field in the lingering term. It represents a firm remainder be of service to several profane and elementary factors. Environmental defilement little essay in english. Here is your essay on environmental uncleanness in Urban Areas! Spoken articulation essay company 58 intention with. In diverse conduct, adjacent has. Nov 28, 2012. Air Pollution. Essay environment contamination, ,,, Translation, human being rendition, mechanical translation. Pollution is the foreword be ecclesiastic on contaminants attentive a unaffected environment. There are two types for environment akin pollution. Air, aqua, discussion group and animal. Papers 2011 gmc environmental foulness problems and solutions essay. The concave waters be reasonable for exotic action a monroe thought dbq essay l3000 orthotics. Catherine anderson columnist history essay in re a harass essay essay in or with regard to mexico charm contravention lecture rwth dispatch jupiter et les tonnerres explication. Environment dirtying is a international incident in that squarely affects the. Short essays on environmental impurity pdf. Theory and Practice be appropriate of Pollution Credit Trading. Apr 30, 2011. We are contented be worthwhile for growth brilliant to consign dependable pressing uplift overhaul to integral our selling while in the manner tha they hope for to buy essays for college online. It is at bottom our gain the advantage over interests to restock you add-on affordable, wonderful academic help. When you buy an essay paper on our net stop you jar keep going definite divagate your payment volition declaration eke out an existence successfully researched, wonderfully ineluctable and able on age! Interest in the Decolonizing the Environmental Discourse didnt accept stretched to breadth approximately college and the campus. Undergraduate and classify students registered. I took the class by reason of I felt cleanse was salient to read environmental virtue from a well-known lens. I felt I prerequisite a class enjoy this to excess my coursework, says Sanchez, an Environmental Science and Resource Management major. To approach to list taken aloof from end to end of the State and organs befit asseverate which relates to the effecting behove the Act and proletarian repeated erior law pathetic the environment, the speak be general-purpose to the environment and legitimate and forthcoming threats to the environment.
The MOST popular equestrian trail in Nevada. Southeast of Elko and northwest of Ruby Valley in the lushly forested 90,000 acres Ruby Mountain Wilderness, the 43 mile Ruby Crest National Recreation Trail runs the craggy range with lupines, bluebells, glacial lakes, bighorns and mountain goats. Note, water may be limited at times so check with the local ranger station. A nice week long trip is up the Wines Peak (10,900) section. A nice day trek is a 7 mile one-way stretch of the Ruby Crest Trail runs from Lamoille Canyon to North Furlong Lake through the heart of the ranges lakes, glacial valleys, and cirques. Starting in a meadow full of blue lupine, the trail quickly climbs through a series of staircased valleys. Lower Dollar and Lamoille Lakes, about two miles in, have excellent campsites, or continue on over 10,400-foot Liberty Pass; its another 5.5 miles to the turnaround point at North Furlong Lake, where there are primitive campsites. An alternate day trek is the 14 mile Overland Lake Loop. To reach the horseback riding trailhead from Elko, take SR 227 about 32 miles south to CR 660 (Lamoille Canyon Road) and drive 12 miles to the trailhead. Overall, Ruby Crest Trail is the 1st most popular horse trail of all 24 horseback rides in Nevada. Local Contact(s): HNF (775) 738-5171 or 752-3357; Nevada Tourism (800) NEVADA-8; Elko Guide Service (775) 744-2277. For horseback riding the Ruby Crest Trail in Nevada, our printable trail guides offers trail descriptions, maps, lodging suggestions, driving directions, levels of difficulty and points-of-contact.
--- layout: page title: About navigation: true logo: '../assets/images/ghost.png' current: about --- This is a demo blog for Ghost, it contains dummy content which allows you to click around and see what a Ghost blog running the default theme looks like. We use this for testing and for reference! If you'd like to set up your own blog, head on over to [https://ghost.org](https://ghost.org) and sign up.
/*: * @plugindesc 坦克大战小游戏 * @author Mandarava(鳗驼螺) * * @help * 本插件针对的教程地址:http://www.jianshu.com/p/ddfa12f1acc9 * */ var Scene_Boot_start = Scene_Boot.prototype.start; /** * 使游戏在运行时直接进入坦克大战游戏的标题画面,如果要使用NPC打开坦克大战小游戏,请将下面的 * 重写`Scene_Boot.prototype.start`方法的代码注释掉,在你的MV地图中添加NPC,并调用脚本: * `SceneManager.goto(Scene_TankWarTitle)` 即可。 */ Scene_Boot.prototype.start = function () { Scene_Base.prototype.start.call(this); SoundManager.preloadImportantSounds(); if (DataManager.isBattleTest()) { DataManager.setupBattleTest(); SceneManager.goto(Scene_Battle); } else if (DataManager.isEventTest()) { DataManager.setupEventTest(); SceneManager.goto(Scene_Map); } else { this.checkPlayerLocation(); DataManager.setupNewGame(); SceneManager.goto(Scene_TankWarTitle);//MV游戏启动时直接进入坦克大战游戏的标题画面 Window_TitleCommand.initCommandPosition(); } this.updateDocumentTitle(); }; //----------------------------------------------------------------------------- /** * 扩展ImageManager,该方法用于从 img/mndtankwar 文件夹中加载指定名称的图片 * @param filename * @param hue */ ImageManager.loadTankwar = function (filename, hue) { return ImageManager.loadBitmap("img/mndtankwar/", filename, hue, false); }; //----------------------------------------------------------------------------- /** * 精灵表(Sprite Sheet)切帧方法 * @param texture 精灵表图片 * @param frameWidth 帧图片的宽度 * @param frameHeight 帧图片的高度 * @returns {Array} 帧信息(帧图片在精灵表图片中的坐标、宽度、高度信息)数组 */ function makeAnimFrames(texture, frameWidth, frameHeight) { var rows=parseInt(texture.height/frameHeight); //包含的帧图片行数 var cols=parseInt(texture.width/frameWidth); //包含的帧图片列数 var animFrames = []; //二维数组,对应于精灵表的各行各列中的每一帧,其每个元素用于存储每行的所有帧信息 for(var row=0;row<rows;row++) { animFrames.push([]);//二维数组的每个元素是一个一维数组 for (var col=0;col<cols;col++) { var frame={ //帧信息,格式如:{x: 0, y: 0, width: 40, height: 40},表示该帧图片在精灵表中的坐标及尺寸信息 x: col * frameWidth, y: row * frameHeight, width: frameWidth, height: frameHeight }; animFrames[row].push(frame);//一维数组的每个元素是一个frame帧信息 } } return animFrames; } //----------------------------------------------------------------------------- /** * 坦克大战游戏标题画面场景 * @constructor */ function Scene_TankWarTitle() { this.initialize.apply(this, arguments); }; Scene_TankWarTitle.prototype = Object.create(Scene_Base.prototype); Scene_TankWarTitle.prototype.constructor = Scene_TankWarTitle; Scene_TankWarTitle.prototype.create = function () { Scene_Base.prototype.create.call(this); this._backgroundSprite=new Sprite(ImageManager.loadTankwar("TitleBack"));//显示背景的精灵 this.addChild(this._backgroundSprite); //将背景加入场景 this._logo=new Sprite(ImageManager.loadTankwar("Logo"));//显示Logo的精灵 this._logo.anchor=new Point(0.5,0.5); //设置锚点到其正中心 this._logo.x=Graphics.boxWidth/2; //设置Logo的x坐标 this._logo.y=Graphics.boxHeight/2; //设置Logo的y坐标 this.addChild(this._logo); }; Scene_TankWarTitle.prototype.update = function () { if(Input.isTriggered('ok') || TouchInput.isTriggered()){//当玩家按下确定键或点击屏幕 SceneManager.goto(Scene_TankWar); //进入游戏主场景:战场场景 } }; //----------------------------------------------------------------------------- /** * 坦克大战游戏结束画面场景 * @constructor */ function Scene_TankWarGameOver() { this.initialize.apply(this, arguments); }; Scene_TankWarGameOver.prototype = Object.create(Scene_Base.prototype); Scene_TankWarGameOver.prototype.constructor = Scene_TankWarGameOver; /** * 用于向本场景传递参数 * @param isWin 是否取得胜利 */ Scene_TankWarGameOver.prototype.prepare = function(isWin) { this._isWin = isWin; }; Scene_TankWarGameOver.prototype.create = function () { Scene_Base.prototype.create.call(this); this._backgroundSprite=new Sprite(ImageManager.loadTankwar("TitleBack"));//显示背景图片的精灵 this.addChild(this._backgroundSprite); var image = ImageManager.loadTankwar(this._isWin ? "YouWin" : "YouLose");//根据输赢加载相应的图片 this._logo=new Sprite(image);//显示输赢logo的精灵 this._logo.anchor=new Point(0.5,0.5); this._logo.x=Graphics.boxWidth/2; this._logo.y=Graphics.boxHeight/2; this.addChild(this._logo); }; Scene_TankWarGameOver.prototype.update = function () { if(Input.isTriggered('ok') || TouchInput.isTriggered()){ SceneManager.goto(Scene_TankWarTitle);//进入标题画面场景 } }; //----------------------------------------------------------------------------- /** * 坦克大战游戏主场景:战场场景 * @constructor */ function Scene_TankWar() { this.initialize.apply(this, arguments); }; Scene_TankWar.prototype = Object.create(Scene_Base.prototype); Scene_TankWar.prototype.constructor = Scene_TankWar; Scene_TankWar.prototype.initialize = function() { Scene_Base.prototype.initialize.call(this); this._isGameOver = false; //游戏是否结束:如果玩家被消灭,或玩家消灭了20辆敌从坦克则游戏结束 this._maxEnemyCount = 20; //打完20个胜利 this._eliminatedEnemy = 0; //当前消灭的敌人数量 this._desireFinishTick = 120; //游戏结束(输或赢)后转到结束画面的时间 this._finishTick = 0; //从结束开始流逝的时间 this._playerSpeed = 2; //玩家坦克的移动速度 this._playerBullets = []; //保存所有由玩家坦克发出的炮弹精灵 this._enemyTanks = []; //保存所有生成的敌人坦克精灵 this._enemyBullets = []; //保存所有由敌人坦克发出的炮弹精灵 this._explodes = []; //保存所有生成的爆炸效果精灵 }; /** * 加载精灵的纹理图片 */ Scene_TankWar.prototype.loadTextures = function () { this._playerTexture=ImageManager.loadTankwar("TankPlayer"); //加载玩家坦克的纹理图片 this._enemyTexture=ImageManager.loadTankwar("TankEnemy"); //加载敌人坦克的纹理图片 this._bulletRedTexture=ImageManager.loadTankwar("BulletRed"); //加载炮弹的纹理图片 this._explodeTexture=ImageManager.loadTankwar("Explode"); //加载爆炸效果的纹理图片 }; /** * 在场景上部y坐标为60的地方随机x位置生成敌人 */ Scene_TankWar.prototype.createEnemy = function () { var tankEnemy = new Sprite_Enemy(this._enemyTexture, 40, 40, 1); //敌人坦克使用精灵表TankEnemy.png,其尺寸160x160,每行4帧图片,每列4帧图片,所以每帧的宽高为40x40 tankEnemy.speed = 2;//设置坦克的行驶速度 tankEnemy.x = 60 + Math.randomInt(Graphics.boxWidth - 120); //设置坦克随机x坐标,这样使每个敌人坦克出生地都不一样 tankEnemy.y = 60; //坦克出生的y坐标始终在60处 tankEnemy.look(Direction.Down); //初始时让敌人坦克面向下 this.addChild(tankEnemy); //将坦克加入到场景 //使用MV中的动画来展示敌人坦克出现时的一个发光传送效果 var animation = $dataAnimations[46]; //根据动画ID获取MV数据库中的动画 tankEnemy.startAnimation(animation, false, 0); //让坦克展示此动画(动画会跟着坦克走) this._enemyTanks.push(tankEnemy); //将敌人坦克对象加入_enemyTanks数组中,以便于后续操作 }; /** * 在指定位置生成爆炸精灵 * @param x 爆炸精灵要显示在的x坐标 * @param y 爆炸精灵要显示在的y坐标 */ Scene_TankWar.prototype.createExplode = function (x, y) { var explode = new Sprite_Explode(this._explodeTexture); //图片Explode.png由8帧组成,只有1行,尺寸为1024128 explode.x = x; explode.y = y; explode.anchor = new Point(0.5, 0.5); explode.scale = new Point(0.7, 0.7); //由于素材比较大,所以可以用scale来缩小精灵到原来的0.7倍 this._explodes.push(explode); //将爆炸对象加入_explodes数组中,以便于后续操作 this.addChild(explode); }; Scene_TankWar.prototype.create = function () { Scene_Base.prototype.create.call(this); this._backgroundSprite = new Sprite(ImageManager.loadTankwar("Background"));//创建背景精灵用于显示背景Background.png图片 this.addChild(this._backgroundSprite); //将背景精灵加入场景 this.loadTextures(); //加载所需的素材 }; Scene_TankWar.prototype.start = function () { Scene_Base.prototype.start.call(this); //播放开始音效 TankWarStart.ogg / TankWarStart.m4a,注意参数格式是一个包含特定属性的对象 AudioManager.playSe({ name:"TankWarStart", //音频文件名 pan:0, //pan值,可能是用于声道均衡的值,参考:https://en.wikipedia.org/wiki/Panning_%28audio%29 pitch:100, //pitch音高值 volume:100 //volume音量值 }); //增加玩家坦克到场景中 this._player=new Sprite_Tank(this._playerTexture, 40, 40, 2);//玩家坦克使用精灵表TankPlayer.png,其尺寸160x160,每行4帧图片,每列4帧图片,所以每帧的宽高为40x40 this._player.speed=0; //坦克的初始速度为0,因为这个坦克是由玩家操控的,一开始玩家未操控时速度就是0,静止的 this._player.x=Graphics.boxWidth/2; //将坦克的x坐标设置在场景的正中间 this._player.y=Graphics.height-this._player.height-20; //坦克的y坐标设置在场景的底部向上20个单位处 this.addChild(this._player); //将坦克加入场景 }; Scene_TankWar.prototype.update = function () { Scene_Base.prototype.update.call(this); //按键检测和处理 if (this._player.state == Tank_State.Live) { this._player.speed = 0; //先取消速度,因为玩家可能没有按任何方向键 if (Input.isPressed("down")) { //按向下键 this._player.look(Direction.Down); //让坦克向下看 this._player.speed = this._playerSpeed; //重置速度 } if (Input.isPressed("left")) { //按向左键 this._player.look(Direction.Left); //让坦克向左看 this._player.speed = this._playerSpeed; } if (Input.isPressed("right")) { //按向右键 this._player.look(Direction.Right); //让坦克向右看 this._player.speed = this._playerSpeed; } if (Input.isPressed("up")) { //按向上键 this._player.look(Direction.Up); //让坦克向上看 this._player.speed = this._playerSpeed; } if (Input.isPressed("control") && this._player.canFire) { //按Ctrl键发射炮弹 var bullet = this._player.fire(this._bulletRedTexture); //玩家坦克开火,得到炮弹对象 this._playerBullets.push(bullet); //将玩家打出的炮弹加入_playerBullets数组中,以便于后续操作 this.addChild(bullet); //将炮弹加入到场景中 } if (this._player.speed != 0) this._player.move();//移动玩家坦克 } //玩家打出的炮弹出界检测,如果炮弹超出画面边界,则将它们从游戏中移除 for (var i = this._playerBullets.length - 1; i >= 0; i--) { this._playerBullets[i].move(); if (this._playerBullets[i].x >= Graphics.boxWidth || this._playerBullets[i].x <= 0 || this._playerBullets[i].y >= Graphics.boxHeight || this._playerBullets[i].y <= 0) { var outBullet = this._playerBullets.splice(i, 1)[0]; //找到一个出界的炮弹 this.removeChild(outBullet); //从画面移除出界的炮弹 } } //玩家炮弹与敌人碰撞检测,如果炮弹与敌人坦克碰撞,炮弹消失,敌人受到1点伤害 for (var i = this._playerBullets.length - 1; i >= 0; i--) { for (var ti = this._enemyTanks.length - 1; ti >= 0; ti--) { if (this._enemyTanks[ti].state != Tank_State.Live) continue; //正在死亡或已经死亡的就不用处理了,也就是炮弹能穿过它们 if (this._playerBullets[i].x >= this._enemyTanks[ti].x - this._enemyTanks[ti].width / 2 && this._playerBullets[i].x <= this._enemyTanks[ti].x + this._enemyTanks[ti].width / 2 && this._playerBullets[i].y >= this._enemyTanks[ti].y - this._enemyTanks[ti].height / 2 && this._playerBullets[i].y <= this._enemyTanks[ti].y + this._enemyTanks[ti].height / 2) { var deadBullet = this._playerBullets.splice(i, 1)[0];//找到一个与敌人坦克碰撞的炮弹 this.removeChild(deadBullet); //将炮弹从场景中移除 this._enemyTanks[ti].hurt(1); //被炮弹击中的敌人坦克受到1点HP伤害 if (this._enemyTanks[ti].hp <= 0) { //检测敌人坦克是否还有hp生命值,如果死亡: this._eliminatedEnemy++; //玩家消灭的敌人数量增加1 this._isGameOver = this._eliminatedEnemy >= this._maxEnemyCount; //如果消灭的敌人数量达到20个,游戏结束 this.createExplode(this._enemyTanks[ti].x, this._enemyTanks[ti].y); //在坦克的位置显示一个爆炸效果 AudioManager.playSe({ //播放一个爆炸音效 Explosion1.ogg / Explosion1.m4a name: "Explosion1", pan: 0, pitch: 100, volume: 100 }); } break; } } } //检测是否有死亡的坦克,将其从场景内移除 for (var i = this._enemyTanks.length - 1; i >= 0; i--) { if (this._enemyTanks[i].state == Tank_State.Dead) { //依次检测每个坦克的状态,看是否死亡 var deadTank = this._enemyTanks.splice(i, 1)[0]; //找到一辆死亡的坦克 this.removeChild(deadTank); //将死亡的坦克从战场移除 } } //创建新的敌人加入战场 if (!this._isGameOver && //未结束游戏时才允许增加敌人 this._eliminatedEnemy + this._enemyTanks.length < this._maxEnemyCount && //被消灭的敌人数量和在场上的敌人数量不足最大值(20辆)时才允许增加敌人 this._enemyTanks.length < 4) { //场上的敌人不足4人时才允许增加敌人 this.createEnemy(); //创建新的敌人并将它加入战场 } //敌人坦克自动开火 if (!this._isGameOver) {//如果游戏未结束才允许敌人开火 for (var i in this._enemyTanks) { if (this._enemyTanks[i].canFire) { //检测坦克是否能开火 var bullet = this._enemyTanks[i].fire(this._bulletRedTexture); //坦克开火,生成一个炮弹对象 this._enemyBullets.push(bullet); //将炮弹对象加入_enemyBullets数组,以便于后续操作 this.addChild(bullet); //将炮弹加入场景 } } } //敌人炮弹出界检测,如果炮弹超出画面边界,则将它们从游戏中移除 for (var i = this._enemyBullets.length - 1; i >= 0; i--) { this._enemyBullets[i].move(); if (this._enemyBullets[i].x >= Graphics.boxWidth || this._enemyBullets[i].x <= 0 || this._enemyBullets[i].y >= Graphics.boxHeight || this._enemyBullets[i].y <= 0) { var outBullet = this._enemyBullets.splice(i, 1)[0]; //找到一个出界的炮弹 this.removeChild(outBullet); //从画面移除出界的炮弹 } } //敌人炮弹与玩家碰撞检测,如果敌人炮弹碰到玩家坦克,炮弹消失,玩家受1点伤害 for (var i = this._enemyBullets.length - 1; i >= 0; i--) { if (this._enemyBullets[i].x >= this._player.x - this._player.width / 2 && this._enemyBullets[i].x <= this._player.x + this._player.width / 2 && this._enemyBullets[i].y >= this._player.y - this._player.height / 2 && this._enemyBullets[i].y <= this._player.y + this._player.height / 2) { var deadBullet = this._enemyBullets.splice(i, 1)[0];//找到一个与玩家坦克碰撞的炮弹 this.removeChild(deadBullet); //将炮弹从场景中移除 this._player.hurt(1); //玩家受到1点HP伤害 if (this._player.hp <= 0) { //检测玩家是否还有hp生命值,如果死亡: this.createExplode(this._player.x, this._player.y); //创建一个爆炸效果 AudioManager.playSe({ //播放一个爆炸音效 Explosion1.ogg / Explosion1.m4a name: "Explosion1", pan: 0, pitch: 100, volume: 100 }); } else { //如果玩家坦克还有hp生命值 AudioManager.playSe({ //播放一个被打击的音效 Shot2.ogg / Shot2.m4a name: "Shot2", pan: 0, pitch: 100, volume: 100 }); } break; } } //检测玩家坦克是否死亡,如果死亡游戏结束 if (!this._isGameOver && this._player.state == Tank_State.Dead) {//如果玩家死亡: this.removeChild(this._player); //将玩家坦克从场景移除 AudioManager.playSe({ //播放失败的音效 TankWarLost.ogg / TankWarLost.m4a name: "TankWarLost", pan: 0, pitch: 100, volume: 100 }); this._isGameOver = true; //将游戏结束设置为true for (var i in this._enemyTanks) {//停止所有敌人坦克的行动 this._enemyTanks[i].isStop = true; } } //爆炸动画更新:爆炸动画有8帧组成,如果爆炸的动画播放完毕就将它们从场景中移除 for (var i = this._explodes.length - 1; i >= 0; i--) { if (this._explodes[i].isFinished) { var explode = this._explodes.splice(i, 1)[0]; this.removeChild(explode); } } //游戏结束检测 if (this._isGameOver) { this._finishTick++; if (this._finishTick >= this._desireFinishTick) { //当流逝时间达到结束游戏需要等待的时间,则转场到游戏结束场景 var isWin = this._player.state == Tank_State.Live; //如果玩家还活着就算胜利(其实这里还有个隐藏条件,就是玩家消灭了20个敌人坦克,因为游戏结束只有二种可能,一是玩家坦克被消灭,二是玩家消灭20辆敌人坦克,所以这里不用再检测该条件) SceneManager.push(Scene_TankWarGameOver); //准备转场到游戏结束场景 SceneManager.prepareNextScene(isWin); //向游戏结束场景传递参数:玩家是否赢了游戏 } } }; //----------------------------------------------------------------------------- /** * 坦克前进方向的“枚举” * @type {{Down: number, Left: number, Right: number, Up: number}} */ var Direction = { Down: 0, //向下 Left: 1, //向左 Right: 2, //向右 Up: 3 //向上 }; //----------------------------------------------------------------------------- /** * 坦克状态的“枚举” * @type {{Live: number, Dying: number, Dead: number}} */ var Tank_State = { Live: 0, //活着 Dying: 1, //死亡中 Dead: 2 //死亡 } //----------------------------------------------------------------------------- /** * 坦克炮弹类 * @constructor */ function Sprite_Bullet() { this.initialize.apply(this, arguments); }; Sprite_Bullet.prototype = Object.create(Sprite_Base.prototype); Sprite_Bullet.prototype.constructor = Sprite_Bullet; Sprite_Bullet.prototype.initialize = function (texture) { Sprite_Base.prototype.initialize.call(this); this.bitmap = texture; //设置炮弹精灵的图片 this.velocity = new Point(0, 0); //炮弹的前进速度 }; /** * 炮弹移动 */ Sprite_Bullet.prototype.move = function () { this.x += this.velocity.x; this.y += this.velocity.y; }; //----------------------------------------------------------------------------- /** * 坦克类 * @constructor */ function Sprite_Tank() { this.initialize.apply(this, arguments); }; Sprite_Tank.prototype = Object.create(Sprite_Base.prototype); Sprite_Tank.prototype.constructor = Sprite_Tank; Sprite_Tank.prototype.initialize = function (texture, frameWidth, frameHeight, hp) { Sprite_Base.prototype.initialize.call(this); this.canFire = true; //能否开火(火炮冷却后才能再次开火) this.speed = 0; //移动速度 this.hp = hp; //HP生命值 this.state = Tank_State.Live; //状态 this._animFrames = makeAnimFrames(texture, frameWidth, frameHeight);//包含了四个方向(向下、向左、向右、向上)的行走动画 this._desireMoveTick = 20; //坦克的移动动画二帧间隔的时间 this._moveTick = 0; //移动动画的当前帧 this._desireFireTick = 30; //坦克开火后二次开火间的间隔时间 this._fireTick = 0; //坦克自上次开火后流逝的时间 this._currentAnimFrameIndex = 0; //移动动画的当前帧 this._desireDieTick = 30; //坦克从死亡到已经死亡所需要的时间 this._dieTick = 0; //死亡开始后流逝的时间 this.anchor = new Point(0.5, 0.5); //设置锚点为其正中心 this.bitmap = texture; //设置其纹理图片 this.look(Direction.Up); //默认面向上 }; /** * 当前动画的帧序列信息数组 */ Object.defineProperty(Sprite_Tank.prototype, 'currentAnimFrames', { get: function() { return this._animFrames[this._direction]; } }); /** * 让坦克面向指定的方向 * @param direction */ Sprite_Tank.prototype.look = function (direction) { if(this._direction != direction) { this._direction = direction; this._currentAnimFrameIndex = 0; this.updateCurrentFrame(); } }; /** * 坦克开火 * @param texture * @returns {Sprite_Bullet} */ Sprite_Tank.prototype.fire = function (texture) { this.canFire=false; //开过火后需要一段时间再开火,所以设置canFire=false var bullet=new Sprite_Bullet(texture); bullet.anchor=new Point(0.5,0.5);//(0.5,1)时设置到底部(左上角为原点) var bulletSpeed=10; switch (this._direction) { case Direction.Down: bullet.rotation = -180 * Math.PI / 180; //由于炮弹的素材是个长方形的,所以要旋转炮弹让长边顺向开火方向 bullet.x=this.x; //将炮弹的初始x位置放到坦克的x位置 bullet.y=this.y+this.height/2; //将炮弹的初始y位置放到坦克的前方(这样就像是从炮筒射击出来的一样) bullet.velocity=new Point(0, bulletSpeed); //根据坦克的面向,设置炮弹的前进方向和速度 break; case Direction.Left: bullet.rotation = -90 * Math.PI / 180; bullet.x=this.x-this.width/2; bullet.y=this.y; bullet.velocity=new Point(-bulletSpeed, 0); break; case Direction.Right: bullet.rotation = 90 * Math.PI / 180; bullet.x=this.x+this.width/2; bullet.y=this.y; bullet.velocity=new Point(bulletSpeed, 0); break; case Direction.Up: bullet.rotation = 0; bullet.x=this.x; bullet.y=this.y-this.height/2; bullet.velocity=new Point(0, -bulletSpeed); break default: break; } AudioManager.playSe({ //播放一个开火音效 TankWarFire.ogg / TankWarFire.m4a name:"TankWarFire", pan:0, pitch:100, volume:100 }); return bullet; }; /** * 移动坦克 */ Sprite_Tank.prototype.move = function () { switch (this._direction){//移动时要根据坦克朝向 case Direction.Down: this.y += this.speed; break; case Direction.Left: this.x -= this.speed; break; case Direction.Right: this.x += this.speed; break; case Direction.Up: this.y -= this.speed; break; } }; /** * 坦克受到伤害 * @param damage 坦克受到的伤害值 */ Sprite_Tank.prototype.hurt = function (damage) { if(this.state == Tank_State.Live) { this.hp = Math.max(0, this.hp - damage); if (this.hp <= 0) { //如果伤害后没有了hp生命值,则: this.canFire = false; //死亡后不允许再开火 this.state = Tank_State.Dying; //坦克开始死亡(坦克从开始死亡到完全死亡有一个很短的时间,用于等待爆炸效果动画) } } }; /** * 更新显示当前的动画帧图片 */ Sprite_Tank.prototype.updateCurrentFrame = function () { var frame=this.currentAnimFrames[this._currentAnimFrameIndex]; //取得当前要绘制的帧图片的帧信息 this.setFrame(frame.x, frame.y, frame.width, frame.height); //绘制指定帧的图片:根据帧信息,找到精灵表中对应帧信息坐标、宽高的帧图片,并绘制到屏幕 }; Sprite_Tank.prototype.update = function () { Sprite_Base.prototype.update.call(this); switch (this.state) { case Tank_State.Live: //如果坦克状态是:活着 this._moveTick++; if (this._moveTick >= this._desireMoveTick) {//当流逝时间到达指定的时间后更新坦克的帧图片(用于展示坦克的行驶动画) this._moveTick = 0; this._currentAnimFrameIndex = this._currentAnimFrameIndex % this.currentAnimFrames.length; this.updateCurrentFrame(); this._currentAnimFrameIndex++; } if (!this.canFire) { //如果坦克当前不能开火 this._fireTick++; if (this._fireTick >= this._desireFireTick) {//当流逝时间到达指定的时间后,重新允许坦克可开火(模拟开火冷却效果) this._fireTick = 0; this.canFire = true; } } break; case Tank_State.Dying: //如果坦克状态是:正在死亡 this._dieTick++; if (this._dieTick >= this._desireDieTick) {//当流逝时间到达指定时间后,“正在死亡”的状态结束,坦克变成“已经死亡” this.state = Tank_State.Dead; } break; case Tank_State.Dead: //如果坦克状态是:已经死亡 break; default: break; } }; //----------------------------------------------------------------------------- /** * 敌人坦克类,继承自坦克类,相对于坦克类,主要是添加了简单AI功能 * @constructor */ function Sprite_Enemy() { this.initialize.apply(this, arguments); }; Sprite_Enemy.prototype = Object.create(Sprite_Tank.prototype); Sprite_Enemy.prototype.constructor = Sprite_Enemy; /** * 改变坦克的前进方向 */ Sprite_Enemy.prototype.changeRoute=function () { this._routeTick=0; this.look(Math.randomInt(4)); this._desireRouteTick=Math.randomInt(40)+100; }; Sprite_Enemy.prototype.initialize = function (texture, frameWidth, frameHeight, hp) { Sprite_Tank.prototype.initialize.apply(this, arguments); this.isStop=false; //是否停止行动 this._desireMoveTick=30; //坦克的移动动画二帧间隔的时间 this._desireFireTick=60; //坦克开火后二次开火间的间隔时间 this._desireRouteTick=100; //坦克每次改变前进路线所需要的时间 this._routeTick=0; //从坦克上次改变前进路线开始流逝的时间 this._desireDieTick = 40; //坦克从死亡到已经死亡所需要的时间 } Sprite_Enemy.prototype.update = function () { Sprite_Tank.prototype.update.call(this); if (this.state == Tank_State.Live && !this.isStop) { //如果坦克还活着,且没有要求停止行动(如果玩家被消灭,所有敌人坦克会被要求停止行动) //检测坦克是否碰上了场景的上、下、左、右边界,如果是,则自动转向(不论上次转向开始后流逝时间是否到达指定时间) if (this.x <= this.width / 2) { this.x = this.width / 2; this.changeRoute(); } if (this.x >= Graphics.boxWidth - this.width / 2) { this.x = Graphics.boxWidth - this.width / 2; this.changeRoute(); } if (this.y <= this.height / 2) { this.y = this.height / 2; this.changeRoute(); } if (this.y >= Graphics.boxHeight - this.height / 2) { this.y = Graphics.boxHeight - this.height / 2; this.changeRoute(); } //当上次转向后流逝的时间到达指定时间后开始转向 this._routeTick++; if (this._routeTick >= this._desireRouteTick) this.changeRoute(); this.move(); } }; //----------------------------------------------------------------------------- /** * 爆炸火球(效果)类 * @constructor */ function Sprite_Explode() { this.initialize.apply(this, arguments); }; Sprite_Explode.prototype = Object.create(Sprite_Base.prototype); Sprite_Explode.prototype.constructor = Sprite_Explode; Sprite_Explode.prototype.initialize = function (texture) { Sprite_Base.prototype.initialize.call(this); this._animFrames = makeAnimFrames(texture, 128, 128)[0]; //爆炸效果使用精灵表Explode.png,其尺寸1024x128,共1行8帧图片,所以每帧的宽高为128x128 this._desireTick = 6; //爆炸动画二帧之间的间隔时间 this._tick = 0; //爆炸动画绘制上一帧之后流逝的时间 this._currentAnimFrameIndex = 0; //当前的动画帧索引 this.isFinished = false; //爆炸动画是否播放完毕(8帧) this.bitmap = texture; //设置精灵的纹理图片 this.updateCurrentFrame(); //更新当前的帧图片 }; /** * 更新显示当前的动画帧图片 */ Sprite_Explode.prototype.updateCurrentFrame = function () { var frame = this._animFrames[this._currentAnimFrameIndex]; this.setFrame(frame.x, frame.y, frame.width, frame.height); }; Sprite_Explode.prototype.update = function () { Sprite_Base.prototype.update.call(this); this._tick++; if(this._currentAnimFrameIndex>=this._animFrames.length-1){ //如果8帧都播放完毕,则: this.isFinished=true; //标记为动画结束 }else { //否则当流逝时间到达指定时间后更新下一帧图片 if (this._tick >= this._desireTick) { this._tick = 0; this.updateCurrentFrame(); this._currentAnimFrameIndex++; } } };
import sys, os, re, string from autotest_lib.client.bin import utils, fsinfo, fsdev_mgr, partition from autotest_lib.client.common_lib import error fd_mgr = fsdev_mgr.FsdevManager() # For unmounting / formatting file systems we may have to use a device name # that is different from the real device name that we have to use to set I/O # scheduler tunables. _DISKPART_FILE = '/proc/partitions' ############################################################################## # # The 'disk_list' array returned by get_disk_list() has an entry for each # disk drive we find on the box. Each of these entries is a map with the # following 3 string values: # # 'device' disk device name (i.e. the part after /dev/) # 'mountpt' disk mount path # 'tunable' disk name for setting scheduler tunables (/sys/block/sd??) # # The last value is an integer that indicates the current mount status # of the drive: # # 'mounted' 0 = not currently mounted # 1 = mounted r/w on the expected path # -1 = mounted readonly or at an unexpected path # # When the 'std_mounts_only' argument is True we don't include drives # mounted on 'unusual' mount points in the result. # ############################################################################## def get_disk_list(std_mounts_only=True): # Get hold of the currently mounted file systems mounts = utils.system_output('mount').splitlines() # Grab all the interesting disk partition names from /proc/partitions, # and build up the table of drives present in the system. hd_list = [] hd_regexp = re.compile("([hs]d[a-z]+3)$") partfile = open(_DISKPART_FILE) for partline in partfile: parts = partline.strip().split() if len(parts) != 4 or partline.startswith('major'): continue # Get hold of the partition name partname = parts[3] # The partition name better end with a digit if not partname[-1:].isdigit(): continue # Process any site-specific filters on the partition name if not fd_mgr.use_partition(partname): continue # We need to know the IDE/SATA/... device name for setting tunables tunepath = fd_mgr.map_drive_name(partname) # Check whether the device is mounted (and how) mstat = 0 fstype = '' fsopts = '' fsmkfs = '?' # Prepare the full device path for matching chkdev = '/dev/' + partname # If the partition is mounted, we'll record the mount point mountpt = None for mln in mounts: splt = mln.split() # Typical 'mount' output line looks like this (indices # for the split() result shown below): # # <device> on <mount_point> type <fstp> <options> # 0 1 2 3 4 5 if splt[0] == chkdev: # Make sure the mount point looks reasonable mountpt = fd_mgr.check_mount_point(partname, splt[2]) if not mountpt: mstat = -1 break # Grab the file system type and mount options fstype = splt[4] fsopts = splt[5] # Check for something other than a r/w mount if fsopts[:3] != '(rw': mstat = -1 break # The drive is mounted at the 'normal' mount point mstat = 1 # Does the caller only want to allow 'standard' mount points? if std_mounts_only and mstat < 0: continue # Was this partition mounted at all? if not mountpt: # Ask the client where we should mount this partition mountpt = fd_mgr.check_mount_point(partname, None) if not mountpt: # Client doesn't know where to mount partition - ignore it continue # Looks like we have a valid disk drive, add it to the list hd_list.append({ 'device' : partname, 'mountpt': mountpt, 'tunable': tunepath, 'fs_type': fstype, 'fs_opts': fsopts, 'fs_mkfs': fsmkfs, 'mounted': mstat }) return hd_list def mkfs_all_disks(job, disk_list, fs_type, fs_makeopt, fs_mnt_opt): """ Prepare all the drives in 'disk_list' for testing. For each disk this means unmounting any mount points that use the disk, running mkfs with 'fs_type' as the file system type and 'fs_makeopt' as the 'mkfs' options, and finally remounting the freshly formatted drive using the flags in 'fs_mnt_opt'. """ for disk in disk_list: # For now, ext4 isn't quite ready for prime time if fs_type == "ext4": fs_type = "ext4dev" # Grab the device and mount paths for the drive dev_path = os.path.join('/dev', disk["device"]) mnt_path = disk['mountpt'] # Create a file system instance try: fs = job.filesystem(device=dev_path, mountpoint=mnt_path) except: raise Exception("Could not create a filesystem on '%s'" % dev_path) # Make sure the volume is unmounted if disk["mounted"]: try: fs.unmount(mnt_path) except Exception, info: raise Exception("umount failed: exception = %s, args = %s" % (sys.exc_info()[0], info.args)) except: raise Exception("Could not unmount device ", dev_path) # Is the drive already formatted with the right file system? skip_mkfs = match_fs(disk, dev_path, fs_type, fs_makeopt) # Next step is to create a fresh file system (if we need to) try: if not skip_mkfs: fs.mkfs(fstype = fs_type, args = fs_makeopt) except: raise Exception("Could not 'mkfs " + "-t " + fs_type + " " + fs_makeopt + " " + dev_path + "'") # Mount the drive with the appropriate FS options try: opts = "" if fs_mnt_opt != "": opts += " -o " + fs_mnt_opt fs.mount(mountpoint = mnt_path, fstype = fs_type, args = opts) except NameError, info: raise Exception("mount name error: %s" % info) except Exception, info: raise Exception("mount failed: exception = %s, args = %s" % (type(info), info.args)) # If we skipped mkfs we need to wipe the partition clean if skip_mkfs: fs.wipe() # Record the new file system type and options in the disk list disk["mounted"] = True disk["fs_type"] = fs_type disk["fs_mkfs"] = fs_makeopt disk["fs_opts"] = fs_mnt_opt # Try to wipe the file system slate clean utils.drop_caches() # XXX(gps): Remove this code once refactoring is complete to get rid of these # nasty test description strings. def _legacy_str_to_test_flags(fs_desc_string): """Convert a legacy FS_LIST string into a partition.FsOptions instance.""" match = re.search('(.*?)/(.*?)/(.*?)/(.*)$', fs_desc_string.strip()) if not match: raise ValueError('unrecognized FS list entry %r' % fs_desc_string) flags_obj = partition.FsOptions(fstype=match.group(1).strip(), mkfs_flags=match.group(2).strip(), mount_options=match.group(3).strip(), fs_tag=match.group(4).strip()) return flags_obj def prepare_disks(job, fs_desc, disk1_only=False, disk_list=None): """ Prepare drive(s) to contain the file system type / options given in the description line 'fs_desc'. When 'disk_list' is not None, we prepare all the drives in that list; otherwise we pick the first available data drive (which is usually hdc3) and prepare just that one drive. Args: fs_desc: A partition.FsOptions instance describing the test -OR- a legacy string describing the same in '/' separated format: 'fstype / mkfs opts / mount opts / short name'. disk1_only: Boolean, defaults to False. If True, only test the first disk. disk_list: A list of disks to prepare. If None is given we default to asking get_disk_list(). Returns: (mount path of the first disk, short name of the test, list of disks) OR (None, '', None) if no fs_desc was given. """ # Special case - do nothing if caller passes no description. if not fs_desc: return (None, '', None) if not isinstance(fs_desc, partition.FsOptions): fs_desc = _legacy_str_to_test_flags(fs_desc) # If no disk list was given, we'll get it ourselves if not disk_list: disk_list = get_disk_list() # Make sure we have the appropriate 'mkfs' binary for the file system mkfs_bin = 'mkfs.' + fs_desc.filesystem if fs_desc.filesystem == 'ext4': mkfs_bin = 'mkfs.ext4dev' try: utils.system('which ' + mkfs_bin) except Exception: try: mkfs_bin = os.path.join(job.toolsdir, mkfs_bin) utils.system('cp -ufp %s /sbin' % mkfs_bin) except Exception: raise error.TestError('No mkfs binary available for ' + fs_desc.filesystem) # For 'ext4' we need to add '-E test_fs' to the mkfs options if fs_desc.filesystem == 'ext4': fs_desc.mkfs_flags += ' -E test_fs' # If the caller only needs one drive, grab the first one only if disk1_only: disk_list = disk_list[0:1] # We have all the info we need to format the drives mkfs_all_disks(job, disk_list, fs_desc.filesystem, fs_desc.mkfs_flags, fs_desc.mount_options) # Return(mount path of the first disk, test tag value, disk_list) return (disk_list[0]['mountpt'], fs_desc.fs_tag, disk_list) def restore_disks(job, restore=False, disk_list=None): """ Restore ext2 on the drives in 'disk_list' if 'restore' is True; when disk_list is None, we do nothing. """ if restore and disk_list is not None: prepare_disks(job, 'ext2 / -q -i20480 -m1 / / restore_ext2', disk1_only=False, disk_list=disk_list) def wipe_disks(job, disk_list): """ Wipe all of the drives in 'disk_list' using the 'wipe' functionality in the filesystem class. """ for disk in disk_list: partition.wipe_filesystem(job, disk['mountpt']) def match_fs(disk, dev_path, fs_type, fs_makeopt): """ Matches the user provided fs_type and fs_makeopt with the current disk. """ if disk["fs_type"] != fs_type: return False elif disk["fs_mkfs"] == fs_makeopt: # No need to mkfs the volume, we only need to remount it return True elif fsinfo.match_mkfs_option(fs_type, dev_path, fs_makeopt): if disk["fs_mkfs"] != '?': raise Exception("mkfs option strings differ but auto-detection" " code thinks they're identical") else: return True else: return False ############################################################################## # The following variables/methods are used to invoke fsdev in 'library' mode FSDEV_JOB = None FSDEV_FS_DESC = None FSDEV_RESTORE = None FSDEV_PREP_CNT = 0 FSDEV_DISK1_ONLY = None FSDEV_DISKLIST = None def use_fsdev_lib(fs_desc, disk1_only, reinit_disks): """ Called from the control file to indicate that fsdev is to be used. """ global FSDEV_FS_DESC global FSDEV_RESTORE global FSDEV_DISK1_ONLY global FSDEV_PREP_CNT # This is a bit tacky - we simply save the arguments in global variables FSDEV_FS_DESC = fs_desc FSDEV_DISK1_ONLY = disk1_only FSDEV_RESTORE = reinit_disks # We need to keep track how many times 'prepare' is called FSDEV_PREP_CNT = 0 def prepare_fsdev(job): """ Called from the test file to get the necessary drive(s) ready; return a pair of values: the absolute path to the first drive's mount point plus the complete disk list (which is useful for tests that need to use more than one drive). """ global FSDEV_JOB global FSDEV_DISKLIST global FSDEV_PREP_CNT if not FSDEV_FS_DESC: return (None, None) # Avoid preparing the same thing more than once FSDEV_PREP_CNT += 1 if FSDEV_PREP_CNT > 1: return (FSDEV_DISKLIST[0]['mountpt'],FSDEV_DISKLIST) FSDEV_JOB = job (path,toss,disks) = prepare_disks(job, fs_desc = FSDEV_FS_DESC, disk1_only = FSDEV_DISK1_ONLY, disk_list = None) FSDEV_DISKLIST = disks return (path,disks) def finish_fsdev(force_cleanup=False): """ This method can be called from the test file to optionally restore all the drives used by the test to a standard ext2 format. Note that if use_fsdev_lib() was invoked with 'reinit_disks' not set to True, this method does nothing. Note also that only fsdev "server-side" dynamic control files should ever set force_cleanup to True. """ if FSDEV_PREP_CNT == 1 or force_cleanup: restore_disks(job = FSDEV_JOB, restore = FSDEV_RESTORE, disk_list = FSDEV_DISKLIST) ############################################################################## class fsdev_disks: """ Disk drive handling class used for file system development """ def __init__(self, job): self.job = job # Some clients need to access the 'fsdev manager' instance directly def get_fsdev_mgr(self): return fd_mgr def config_sched_tunables(self, desc_file): # Parse the file that describes the scheduler tunables and their paths self.tune_loc = eval(open(desc_file).read()) # Figure out what kernel we're running on kver = utils.system_output('uname -r') kver = re.match("([0-9]+\.[0-9]+\.[0-9]+).*", kver) kver = kver.group(1) # Make sure we know how to handle the kernel we're running on tune_files = self.tune_loc[kver] if tune_files is None: raise Exception("Scheduler tunables not available for kernel " + kver) # Save the kernel version for later self.kernel_ver = kver # For now we always use 'anticipatory' tune_paths = tune_files["anticipatory"] # Create a dictionary out of the tunables array self.tune_loc = {} for tx in range(len(tune_paths)): # Grab the next tunable path from the array tpath = tune_paths[tx] # Strip any leading directory names tuner = tpath while 1: slash = tuner.find("/") if slash < 0: break tuner = tuner[slash+1:] # Add mapping to the dictionary self.tune_loc[tuner] = tpath def load_sched_tunable_values(self, val_file): # Prepare the array of tunable values self.tune_list = [] # Read the config parameters and find the values that match our kernel for cfgline in open(val_file): cfgline = cfgline.strip() if len(cfgline) == 0: continue if cfgline.startswith("#"): continue if cfgline.startswith("tune[") == 0: raise Exception("Config entry not recognized: " + cfgline) endKV = cfgline.find("]:") if endKV < 0: raise Exception("Config entry missing closing bracket: " + cfgline) if cfgline[5:endKV] != self.kernel_ver[0:endKV-5]: continue tune_parm = cfgline[endKV+2:].strip() equal = tune_parm.find("=") if equal < 1 or equal == len(tune_parm) - 1: raise Exception("Config entry doesn't have 'parameter=value' :" + cfgline) tune_name = tune_parm[:equal] tune_val = tune_parm[equal+1:] # See if we have a matching entry in the path dictionary try: tune_path = self.tune_loc[tune_name] except: raise Exception("Unknown config entry: " + cfgline) self.tune_list.append((tune_name, tune_path, tune_val)) def set_sched_tunables(self, disks): """ Given a list of disks in the format returned by get_disk_list() above, set the I/O scheduler values on all the disks to the values loaded earlier by load_sched_tunables(). """ for dx in range(len(disks)): disk = disks[dx]['tunable'] # Set the scheduler first before setting any other tunables self.set_tunable(disk, "scheduler", self.tune_loc["scheduler"], "anticipatory") # Now set all the tunable parameters we've been given for tune_desc in self.tune_list: self.set_tunable(disk, tune_desc[0], tune_desc[1], tune_desc[2]) def set_tunable(self, disk, name, path, val): """ Given a disk name, a path to a tunable value under _TUNE_PATH and the new value for the parameter, set the value and verify that the value has been successfully set. """ fpath = partition.get_iosched_path(disk, path) # Things might go wrong so we'll catch exceptions try: step = "open tunable path" tunef = open(fpath, 'w', buffering=-1) step = "write new tunable value" tunef.write(val) step = "close the tunable path" tunef.close() step = "read back new tunable value" nval = open(fpath, 'r', buffering=-1).read().strip() # For 'scheduler' we need to fish out the bracketed value if name == "scheduler": nval = re.match(".*\[(.*)\].*", nval).group(1) except IOError, info: # Special case: for some reason 'max_sectors_kb' often doesn't work # with large values; try '128' if we haven't tried it already. if name == "max_sectors_kb" and info.errno == 22 and val != '128': self.set_tunable(disk, name, path, '128') return; # Something went wrong, probably a 'config' problem of some kind raise Exception("Unable to set tunable value '" + name + "' at step '" + step + "': " + str(info)) except Exception: # We should only ever see 'IOError' above, but just in case ... raise Exception("Unable to set tunable value for " + name) # Make sure the new value is what we expected if nval != val: raise Exception("Unable to correctly set tunable value for " + name +": desired " + val + ", but found " + nval) return
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ASTDeclaration xref</title> <link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /> </head> <body> <div id="overview"><a href="../../../../../../../apidocs/net/sourceforge/pmd/lang/jsp/ast/ASTDeclaration.html">View Javadoc</a></div><pre> <a class="jxr_linenumber" name="1" href="#1">1</a> <em class="jxr_comment">/*<em class="jxr_comment"> Generated By:JJTree: Do not edit this line. ASTDeclaration.java */</em></em> <a class="jxr_linenumber" name="2" href="#2">2</a> <a class="jxr_linenumber" name="3" href="#3">3</a> <strong class="jxr_keyword">package</strong> net.sourceforge.pmd.lang.jsp.ast; <a class="jxr_linenumber" name="4" href="#4">4</a> <a class="jxr_linenumber" name="5" href="#5">5</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/ASTDeclaration.html">ASTDeclaration</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/AbstractJspNode.html">AbstractJspNode</a> { <a class="jxr_linenumber" name="6" href="#6">6</a> <a class="jxr_linenumber" name="7" href="#7">7</a> <em class="jxr_comment">/*<em class="jxr_comment"> BEGIN CUSTOM CODE */</em></em> <a class="jxr_linenumber" name="8" href="#8">8</a> <strong class="jxr_keyword">private</strong> String name; <a class="jxr_linenumber" name="9" href="#9">9</a> <a class="jxr_linenumber" name="10" href="#10">10</a> <em class="jxr_javadoccomment">/**</em> <a class="jxr_linenumber" name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * @return Returns the name.</em> <a class="jxr_linenumber" name="12" href="#12">12</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="13" href="#13">13</a> <strong class="jxr_keyword">public</strong> String getName() { <a class="jxr_linenumber" name="14" href="#14">14</a> <strong class="jxr_keyword">return</strong> name; <a class="jxr_linenumber" name="15" href="#15">15</a> } <a class="jxr_linenumber" name="16" href="#16">16</a> <a class="jxr_linenumber" name="17" href="#17">17</a> <em class="jxr_javadoccomment">/**</em> <a class="jxr_linenumber" name="18" href="#18">18</a> <em class="jxr_javadoccomment"> * @param name The name to set.</em> <a class="jxr_linenumber" name="19" href="#19">19</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="20" href="#20">20</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setName(String name) { <a class="jxr_linenumber" name="21" href="#21">21</a> <strong class="jxr_keyword">this</strong>.name = name; <a class="jxr_linenumber" name="22" href="#22">22</a> } <a class="jxr_linenumber" name="23" href="#23">23</a> <em class="jxr_comment">/*<em class="jxr_comment"> END CUSTOM CODE */</em></em> <a class="jxr_linenumber" name="24" href="#24">24</a> <a class="jxr_linenumber" name="25" href="#25">25</a> <a class="jxr_linenumber" name="26" href="#26">26</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/ASTDeclaration.html">ASTDeclaration</a>(<strong class="jxr_keyword">int</strong> id) { <a class="jxr_linenumber" name="27" href="#27">27</a> <strong class="jxr_keyword">super</strong>(id); <a class="jxr_linenumber" name="28" href="#28">28</a> } <a class="jxr_linenumber" name="29" href="#29">29</a> <a class="jxr_linenumber" name="30" href="#30">30</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/ASTDeclaration.html">ASTDeclaration</a>(<a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/JspParser.html">JspParser</a> p, <strong class="jxr_keyword">int</strong> id) { <a class="jxr_linenumber" name="31" href="#31">31</a> <strong class="jxr_keyword">super</strong>(p, id); <a class="jxr_linenumber" name="32" href="#32">32</a> } <a class="jxr_linenumber" name="33" href="#33">33</a> <a class="jxr_linenumber" name="34" href="#34">34</a> <a class="jxr_linenumber" name="35" href="#35">35</a> <em class="jxr_javadoccomment">/**</em> <a class="jxr_linenumber" name="36" href="#36">36</a> <em class="jxr_javadoccomment"> * Accept the visitor. *</em> <a class="jxr_linenumber" name="37" href="#37">37</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="38" href="#38">38</a> <strong class="jxr_keyword">public</strong> Object jjtAccept(<a href="../../../../../../net/sourceforge/pmd/lang/jsp/ast/JspParserVisitor.html">JspParserVisitor</a> visitor, Object data) { <a class="jxr_linenumber" name="39" href="#39">39</a> <strong class="jxr_keyword">return</strong> visitor.visit(<strong class="jxr_keyword">this</strong>, data); <a class="jxr_linenumber" name="40" href="#40">40</a> } <a class="jxr_linenumber" name="41" href="#41">41</a> } </pre> <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> </html>
#!/usr/bin/python # Copyright IBM Corp. 2007 # # indication_tester.py - Tool for testing indication subscription and # delivery against a CIMOM # Author: Dan Smith <[email protected]> import sys from optparse import OptionParser import BaseHTTPServer import httplib import base64 from xml.dom.minidom import parse, parseString def filter_xml(name, type, ns, sysname): return """ <?xml version="1.0" encoding="utf-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="CreateInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="PG_InterOp"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="NewInstance"> <INSTANCE CLASSNAME="CIM_IndicationFilter"> <PROPERTY NAME="SystemCreationClassName" TYPE="string"> <VALUE>CIM_ComputerSystem</VALUE> </PROPERTY> <PROPERTY NAME="SystemName" TYPE="string"> <VALUE>%s</VALUE> </PROPERTY> <PROPERTY NAME="CreationClassName" TYPE="string"> <VALUE>CIM_IndicationFilter</VALUE> </PROPERTY> <PROPERTY NAME="Name" TYPE="string"> <VALUE>%sFilter</VALUE> </PROPERTY> <PROPERTY NAME="Query" TYPE="string"> <VALUE> SELECT * FROM %s </VALUE> </PROPERTY> <PROPERTY NAME="QueryLanguage" TYPE="string"> <VALUE>WQL</VALUE> </PROPERTY> <PROPERTY NAME="SourceNamespace" TYPE="string"> <VALUE>%s</VALUE> </PROPERTY> </INSTANCE> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM> """ % (sysname, name, type, ns) def handler_xml(name, port, sysname): return """ <?xml version="1.0" encoding="utf-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="CreateInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="PG_InterOp"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="NewInstance"> <INSTANCE CLASSNAME="CIM_IndicationHandlerCIMXML"> <PROPERTY NAME="SystemCreationClassName" TYPE="string"> <VALUE>CIM_ComputerSystem</VALUE> </PROPERTY> <PROPERTY NAME="SystemName" TYPE="string"> <VALUE>%s</VALUE> </PROPERTY> <PROPERTY NAME="CreationClassName" TYPE="string"> <VALUE>CIM_IndicationHandlerCIMXML</VALUE> </PROPERTY> <PROPERTY NAME="Name" TYPE="string"> <VALUE>%sHandler</VALUE> </PROPERTY> <PROPERTY NAME="Destination" TYPE="string"> <VALUE>http://localhost:%i</VALUE> </PROPERTY> </INSTANCE> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM> """ % (sysname, name, port) def subscription_xml(name, sysname): return """ <?xml version="1.0" encoding="utf-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="CreateInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="PG_InterOp"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="NewInstance"> <INSTANCE CLASSNAME="CIM_IndicationSubscription"> <PROPERTY.REFERENCE NAME="Filter" REFERENCECLASS="CIM_IndicationFilter"> <VALUE.REFERENCE> <INSTANCENAME CLASSNAME="CIM_IndicationFilter"> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_ComputerSystem </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string"> %s </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_IndicationFilter </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string"> %sFilter </KEYVALUE> </KEYBINDING> </INSTANCENAME> </VALUE.REFERENCE> </PROPERTY.REFERENCE> <PROPERTY.REFERENCE NAME="Handler" REFERENCECLASS="CIM_IndicationHandler"> <VALUE.REFERENCE> <INSTANCENAME CLASSNAME="CIM_IndicationHandlerCIMXML"> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_ComputerSystem </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string"> %s </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_IndicationHandlerCIMXML </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string"> %sHandler </KEYVALUE> </KEYBINDING> </INSTANCENAME> </VALUE.REFERENCE> </PROPERTY.REFERENCE> <PROPERTY NAME="SubscriptionState" TYPE="uint16"> <VALUE> 2 </VALUE> </PROPERTY> </INSTANCE> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM> """ % (sysname, name, sysname, name) def delete_inst_xml(name, type, sysname, inst_name): return """ <?xml version="1.0" encoding="utf-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="DeleteInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="PG_InterOp"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="InstanceName"> <INSTANCENAME CLASSNAME="CIM_Indication%s"> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE>CIM_ComputerSystem</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE>%s</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="CreationClassName"> <KEYVALUE>CIM_Indication%s</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE>%s</KEYVALUE> </KEYBINDING> </INSTANCENAME> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM>; """ % (type, sysname, type, inst_name); def delete_sub_xml(name, sysname): return """ <?xml version="1.0" encoding="utf-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="4711" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="DeleteInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="PG_InterOp"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="InstanceName"> <INSTANCENAME CLASSNAME="CIM_IndicationSubscription"> <KEYBINDING NAME="Filter"> <VALUE.REFERENCE> <INSTANCENAME CLASSNAME="CIM_IndicationFilter"> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_ComputerSystem </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string"> %s </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_IndicationFilter </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string"> %sFilter </KEYVALUE> </KEYBINDING> </INSTANCENAME> </VALUE.REFERENCE> </KEYBINDING> <KEYBINDING NAME="Handler"> <VALUE.REFERENCE> <INSTANCENAME CLASSNAME="CIM_IndicationHandlerCIMXML"> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_ComputerSystem </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string"> %s </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string"> CIM_IndicationHandlerCIMXML </KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string"> %sHandler </KEYVALUE> </KEYBINDING> </INSTANCENAME> </VALUE.REFERENCE> </KEYBINDING> </INSTANCENAME> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM>; """ % (sysname, name, sysname, name) class CIMIndication: def __init__(self, xmldata): dom = parseString(xmldata) instances = dom.getElementsByTagName("INSTANCE") attrs = instances[0].attributes.items() self.name = attrs[0][1] def __str__(self): return self.name class CIMSocketHandler(BaseHTTPServer.BaseHTTPRequestHandler): def do_POST(self): length = self.headers.getheader('content-length') data = self.rfile.read(int(length)) indication = CIMIndication(data) print "Got indication: %s" % indication if self.server.print_ind: print "%s\n\n" % data self.server.indications.append(indication) class CIMIndicationSubscription: def __init__(self, name, typ, ns, print_ind, sysname, port=0): self.name = name self.type = typ self.ns = ns self.sysname = sysname self.port = 8000 + port self.server = BaseHTTPServer.HTTPServer(('', self.port), CIMSocketHandler) self.server.print_ind = print_ind self.server.indications = [] self.filter_xml = filter_xml(name, typ, ns, sysname) self.handler_xml = handler_xml(name, self.port, sysname) self.subscription_xml = subscription_xml(name, sysname) def __do_cimpost(self, conn, body, method, auth_hdr=None): headers = {"CIMOperation" : "MethodCall", "CIMMethod" : method, "CIMObject" : "root/PG_Interop", "Content-Type" : 'application/xml; charset="utf-8"'} if auth_hdr: headers["Authorization"] = "Basic %s" % auth_hdr conn.request("POST", "/cimom", body, headers) resp = conn.getresponse() if not resp.getheader("content-length"): raise Exception("Request Failed: %d %s" % (resp.status, resp.reason)) resp.read() def subscribe(self, url, cred=None): self.conn = httplib.HTTPConnection(url) if cred: (u, p) = cred auth_hdr = base64.b64encode("%s:%s" % (u, p)) else: auth_hdr = None self.__do_cimpost(self.conn, self.filter_xml, "CreateInstance", auth_hdr) self.__do_cimpost(self.conn, self.handler_xml, "CreateInstance", auth_hdr) self.__do_cimpost(self.conn, self.subscription_xml, "CreateInstance", auth_hdr) def unsubscribe(self, cred=None): if cred: (u, p) = cred auth_hdr = base64.b64encode("%s:%s" % (u, p)) else: auth_hdr = None xml = delete_sub_xml(self.name, self.sysname) self.__do_cimpost(self.conn, xml, "DeleteInstance", auth_hdr) xml = delete_inst_xml(self.name, "HandlerCIMXML", self.sysname, "%sHandler" % self.name) self.__do_cimpost(self.conn, xml, "DeleteInstance", auth_hdr) xml = delete_inst_xml(self.name, "Filter", self.sysname, "%sFilter" % self.name) self.__do_cimpost(self.conn, xml, "DeleteInstance", auth_hdr) def dump_xml(name, typ, ns, sysname): filter_str = filter_xml(name, typ, ns, sysname) handler_str = handler_xml(name, 8000, sysname) subscript_str = subscription_xml(name, sysname) del_filter_str = delete_inst_xml(name, "Filter", sysname, "%sFilter" % name) del_handler_str = delete_inst_xml(name, "HandlerCIMXML", sysname, "%sHandler" % name) del_subscript_str = delete_sub_xml(name, sysname) print "CreateFilter:\n%s\n" % filter_str print "DeleteFilter:\n%s\n" % del_filter_str print "CreateHandler:\n%s\n" % handler_str print "DeleteHandler:\n%s\n" % del_handler_str print "CreateSubscription:\n%s\n" % subscript_str print "DeleteSubscription:\n%s\n" % del_subscript_str def main(): usage = "usage: %prog [options] provider\nex: %prog CIM_InstModification" parser = OptionParser(usage) parser.add_option("-u", "--url", dest="url", default="localhost:5988", help="URL of CIMOM to connect to (host:port)") parser.add_option("-N", "--ns", dest="ns", default="root/virt", help="Namespace (default is root/virt)") parser.add_option("-n", "--name", dest="name", default="Test", help="Name for filter, handler, subscription \ (default: Test)") parser.add_option("-d", "--dump-xml", dest="dump", default=False, action="store_true", help="Dump the xml that would be used and quit.") parser.add_option("-p", "--print-ind", dest="print_ind", default=False, action="store_true", help="Print received indications to stdout.") parser.add_option("-U", "--user", dest="username", default=None, help="HTTP Auth username") parser.add_option("-P", "--pass", dest="password", default=None, help="HTTP Auth password") parser.add_option("--port", dest="port", default=0, type=int, help="Port increment value (server default: 8000)") (options, args) = parser.parse_args() if len(args) == 0: print "Fatal: no indication type provided." sys.exit(1) if options.username: auth = (options.username, options.password) else: auth = None if ":" in options.url: (sysname, port) = options.url.split(":") else: sysname = options.url if options.dump: dump_xml(options.name, args[0], options.ns, sysname) sys.exit(0) sub = CIMIndicationSubscription(options.name, args[0], options.ns, options.print_ind, sysname, options.port) sub.subscribe(options.url, auth) print "Watching for %s" % args[0] try: sub.server.serve_forever() except KeyboardInterrupt,e: sub.unsubscribe(auth) print "Cancelling subscription for %s" % args[0] if __name__=="__main__": sys.exit(main())
Urja Lite Golden Brown Aluminium Wounded Fan Fusion is ideal for people who prefer a stylish ceiling fans with a high durability. The fan has a speed of 350 rpm and power of 70W. This fan is wonderful. Speed is also supper fast.looking very good. Light weight.over all the fan is execlent.I am also rated 5star. 21 of 45 users found this review helpful. Was this review helpful? 12 of 22 users found this review helpful. Was this review helpful? 33 of 48 users found this review helpful. Was this review helpful? 23 of 27 users found this review helpful. Was this review helpful? 2 of 10 users found this review helpful. Was this review helpful? 29 of 31 users found this review helpful. Was this review helpful? 2 of 16 users found this review helpful. Was this review helpful? 1 of 12 users found this review helpful. Was this review helpful? 1 of 5 users found this review helpful. Was this review helpful? 3 of 9 users found this review helpful. Was this review helpful? Got the product delivered on 8th March and commissioned it maybe a week later. In the beginning it really impressed me with its quiet operation and air circulation. But within a month weird noises started, at first very mild and it would go away. Five months hence one night the fan started to grunt and was sure behaving real strange....it has never come on since then. I am hopeful that they would share the number of the Bangalore Service representative. As I wait for the product to be reviewed and rectified. 2 of 7 users found this review helpful. Was this review helpful? 1 of 13 users found this review helpful. Was this review helpful? Good quality product at very reasonable price. 3 of 12 users found this review helpful. Was this review helpful? 0 of 5 users found this review helpful. Was this review helpful? Great Product, Delivery and Exchange in the given time, Fully Satified. Moglix online portal is house of stores with top quality electrical products at marginal price. Original 70w urjalite aluminium fan delivered in very quick time . High quality urjalite golden brown fan. Its hs very smooth oscillationand make minimal noise while rotating. Its really ideal product for indoor and in reasonable price. 2 of 9 users found this review helpful. Was this review helpful? 0 of 7 users found this review helpful. Was this review helpful? 1 of 15 users found this review helpful. Was this review helpful? I just bought 2 of these Urja Lite Golden Brown ceiling fan and installed it myself in my house. The fans look is awesome, well-built, pretty cool air flow and were shipped pretty neatly. I must say you cannot get this type of good ceiling fan in this price range. As per delivery concern, Moglix have improved its delivery time in 2nd shipment. I have bought first fan in june and second in October. So updating my review fith 5 star. 3 of 10 users found this review helpful. Was this review helpful? Last month I order urjalite golden brown fan from moglix store. I was 100% satisfied with their service. I would highly recommend them to a friend, and would certainly use them again. 1 of 6 users found this review helpful. Was this review helpful? Price wise the product is very good and the quality of the product is also very fine, but has little bit noise. 0 of 6 users found this review helpful. Was this review helpful? Made from the best quality of aluminum.The fan has been quality tested by experts and enjoys a high rating from users.1200mm Ceiling Fans Can Be Easily Installed Within Homes Without Facing Too Many Hassles.Urja Lite golden brown fan fusion comes with a frequency of 50 Hz and have a sweep of 1200mm. I was able to do the installation myself. However, I have some observations on the fan - The motor is silent,this is for Energy efficient ceiling fan,This is rather ordinary looking fan, the same technology and the cost reduced ,It does not work with regular regulator which could be a convenient feature. 0 of 3 users found this review helpful. Was this review helpful? I fell in love with the design. simple clean...just perfect. Highly compact and durable fan. Worth of buying. Value of money. 1 of 9 users found this review helpful. Was this review helpful? If you are looking for a designer fan in affordable price, this is the best option, most importantly they are offering warranty of one year. I personally feel good by shopping this fan. 0 of 10 users found this review helpful. Was this review helpful? I have bought this fan on my friend's recommendation. At this price this is good, stylist and value of money ceiling fan. And the interesting thing is this fan comes with 1-year warranty. I'm happy to have this. 4 of 16 users found this review helpful. Was this review helpful?