 Making herself remain seated, she crossed her legs and kicked her foot idly, but she could not keep exasperation out of her voice. “Go to her! Speak to her!”
“Why?” he snapped. “I know which letter to believe, now. It’s better this way. She’s safe, now. From anyone who wants to strike at me. Safe from me! It’s better!” But he stalked up and down in his shirtsleeves between the two rows of chairs in front of the Dragon Throne, his fists white-knuckle hard, glaring to beat the black clouds beyond the casements that were laying a new blanket of snow on Cairhien.
Min exchanged looks with Fedwin Morr, who stood by the sun-carved doors. The Maidens now let anyone who was not an obvious threat walk in unannounced, but those Rand did not want to see this morning would be turned away by the husky boy. He wore the Dragon and Sword on his black collar, and Min knew he had already seen more battles—more horror—than most men three times his age, yet he was a boy. Today, casting uneasy glances at Rand, he seemed younger than ever. The sword on his hip still looked out of place, to her.
“The Dragon Reborn is a man, Fedwin,” she said. “And like any man, he’s sulking because he thinks a woman doesn’t want to see him again.”
Goggling, the boy jerked as if she had goosed him. Rand stopped to scowl at her sullenly. All that kept her from laughing was knowing that he was hiding pain as real as any stab wound. That, and the sure knowledge that he would be as hurt if she had done what had been done. Not that she would ever have the chance to rip down his banners, but the point applied. Rand had been stunned at first by the news Taim brought from Caemlyn at dawn, but as soon as the man left, he had stopped looking like a poleaxed bull and started . . . This!
Standing, she adjusted her pale green coat, folded her arms beneath her breasts, and confronted him directly. “What else can it be?” she asked calmly. Well, she tried for calm, and almost made it. She loved the man, but after a morning of this, she wanted to box his ears soundly. “You haven’t mentioned Mat twice, and you don’t know whether he’s even alive.”
“Mat’s alive,” Rand snarled. “I’d know if he was dead. What do you mean I’m—!” His jaw clenched as if he could not make himself say the word.
“Sulking,” she provided. “Soon, you’ll be pouting. Some women think men are prettier when they pout. I’m not one of them.” Well, enough of that. His face had darkened, and he was not blushing. “Haven’t you twisted yourself into knots to make sure she got the throne of Andor? Which is hers by right, might I add. Didn’t you say you wanted her to have Andor whole, not ripped apart like Cairhien or Tear?”
“I did!” he roared. “And now it’s hers, and she wants me out of it! Good enough, I say! And don’t tell me again to stop shouting! I’m not—!” He realized that he was, and clamped his teeth shut. A low growl came from his throat. Morr set to studying one of his buttons, twisting it back and forth. He had been doing a lot of that this morning.
Min kept her face smooth. She was not going to slap him, and he was too big for her to spank. “Andor is hers, just as you wanted,” she said. Calmly. Almost. “None of the Forsaken are going after her now she’s torn your banners down.” A dangerous light appeared in those blue-gray eyes, but she pressed on. “Just as you wanted. And you can’t believe she’s siding with your enemies. Andor will follow the Dragon Reborn, and you know it. So the only reason for you to be in a snit is because you think she doesn’t want to see you.  The next part was the hardest to say. “Before you can say two words, she’ll be kissing you.” Light, she loved Elayne almost as much as she did Rand—maybe as much, in a very different way—but how was a woman to compete with a beautiful golden-haired queen who had a powerful nation at her beck and call?
“I am not . . . angry,” Rand said in a tight voice. And started pacing again. Min considered kicking him square in the bottom. Hard.
One of the doors opened to admit leathery white-haired Sorilea, who brushed Morr aside even as he was looking to see whether Rand wanted her allowed entry.  Their feet were wrapped in rags.
Min’s scalp prickled. To her eyes, images and auras danced and vanished and were replaced around all six women, just as around Rand. She had been hoping he had forgotten those five were alive. What in the name of the Light was that wicked old woman doing?
Sorilea gestured once in a clatter of gold and ivory bracelets, and the five hastily arranged themselves in a line atop the golden Rising Sun set in the stone floor. Rand strode along that row, stripping back hoods, baring faces that he stared into cold-eyed.
Every one of the black-robed women was unwashed, her hair lank and dirty with sweat.  Nesune Bihara, a slender Brown, studied him as intently as he did her. Sarene Nemdahl, so beautiful even in her dirt that you thought her agelessness must be natural, appeared to be holding to her White Ajah coolness by a fingernail. Beldeine Nyram, too new to the shawl to have the ageless features, essayed an uncertain smile that melted under his stare. Erian Boroleos, pale and almost as lovely as Sarene, flinched, then visibly forced herself to look into that frigid gaze. Those last two also were Green, and all five had been among the sisters who kidnapped him on Elaida’s orders. Some had been among those who tortured him while trying to carry him to Tar Valon. Sometimes Rand still woke, sweating and panting, mumbling about being confined, being beaten. Min hoped she did not see murder in his stare.
“These were named da’tsang, Rand al’Thor,” Sorilea said. “I think they feel their shame in the bone, now. Erian Boroleos was the first to ask to be beaten as you were, sunrise and sunset, but now each has done so. That plea has been granted. Each has asked to serve you however she may. The toh for their betrayal cannot be met,” her voice darkened for a moment; to the Aiel, the betrayal of the kidnapping was far worse than what they had done after, “yet they know their shame, and they wish to try. We have decided to leave the choice to you.”
Min frowned. Leave the choice to him? Wise Ones rarely left any choice they could make to anyone else. Sorilea never did. The sinewy Wise One casually shifted her dark shawl on her shoulders and watched Rand as if this was of no importance at all. But she shot one blue ice glance at Min, and suddenly Min was sure that if she said the wrong thing here, that bony old woman would have her hide. It was not a viewing. She just knew Sorilea better than she wanted to, by now.
Determinedly she set to studying what was appearing and vanishing around the women. No easy task when they stood so close together she could not be certain whether a particular image belonged to one woman or the woman next to her. At least the auras were always certain. Light, let her be able to understand at least some of what she saw!
Rand took Sorilea’s announcement coolly, on the surface. He rubbed his hands together slowly, then thoughtfully examined the herons branded on his palms. He examined each of those Aes Sedai faces in turn. Finally, he focused on Erian.
“Why?” he asked her in a mild voice.  Why?” Min winced. Rand was many things, but seldom mild. And Erian was one of the few who had beaten him more than once.
The pale Illianer sister straightened. Images danced, and auras flashed and were gone. Nothing Min could read. Dirty-faced and her long black hair matted, Erian gathered Aes Sedai authority around her and met his gaze levelly. But her answer came simply and directly. “We did be wrong in taking you. I have considered long on it. You must fight the Last Battle, and we must help you. If you will no accept me, I do understand, but I will help as you do require if you will allow.”
Rand stared at her without expression.
He put that same one-word question to each, and their answers were as different as the women.
“The Green is the Battle Ajah,” Beldeine told him proudly, and despite smudges on her cheeks and dark circles beneath her eyes, she did look a Queen of Battles. But then, Saldaean women seemed to find that second nature. “When you go to Tarmon Gai’don, the Green must be there. I will follow, if you will accept me.” Light, she was going to bond an Asha’man as a Warder! How . . . ? No; it was not important now.
“What we did was logical at the time.” Sarene’s tightly held cool serenity slipped into clear worry, and she shook her head. “I say that to explain, not to exculpate. Circumstances have changed. For you, the logical course might seem to . . . ” She drew a decidedly unsteady breath. Images and auras; a tempestuous love affair, of all things! The woman was ice, however beautiful.  “To send us back to captivity,” she went on, “or even execute us. For me, logic says I must serve you.”
Nesune tilted her head, and her nearly black eyes seemed to be trying to store away every scrap of him. One red-and-green aura spoke of honors, and fame. A huge building appeared above her head and vanished. A library she would found. “I want to study you,” she said simply. “I can hardly do that carrying stones or digging holes. They do leave plenty of time for thought, but serving you seems a fair exchange for what I might learn.” Rand blinked at the directness of that, but otherwise, his expression did not alter.
The most surprising answer came from Elza, in her manner of delivery more than the words. Sinking to her knees, she gazed up at Rand with feverish eyes. Her whole face seemed to shine with fervor. Auras flared and images cascaded around her, telling nothing. “You are the Dragon Reborn,” she said breathlessly. “You must be there for the Last Battle. I must help you be there! Whatever is necessary, I will do!”  Even Sorilea looked taken aback, and Sarene’s mouth dropped open. Morr gaped at her and hastily returned to twisting his button. Min thought he giggled nervously, almost under his breath.
Turning on his heel, Rand stalked halfway to the Dragon Throne, where his scepter and the crown of Illian rested atop his gold-embroidered red coat. His face was so bleak that Min wanted to rush to him no matter who was watching, but she continued to study the Aes Sedai. And Sorilea. She had never seen anything really useful around that white-haired harridan.
Abruptly, Rand turned back, striding toward the line of women so quickly that Beldeine and Sarene stepped back. A sharp gesture from Sorilea jerked them into place again.
“Would you accept being confined in a box?” His voice grated, stone grinding on frozen stone.  That was what they had done to him.
“Yes!” Elza moaned against the floor. “Whatever I must do, I will!”
“If you do require it,” Erian managed shakily, and, faces aghast, the others nodded slowly.
Min stared in amazement, knotting her fists in her coat pockets. That he might think of getting his own back in the same manner seemed almost natural, but she had to stop it, somehow. She knew him better than he did himself; she knew where he was hard as a knife blade, and where he was vulnerable no matter how he denied it. He would never forgive himself this. But how?  He muttered one word aloud that she understood. Ta’veren. Sorilea stood there calmly examining him as closely as Nesune did. Not even the threat of the chest shook the Brown. Except for Elza, still moaning and kissing the floor, the others were hollow-eyed, as if seeing themselves doubled up and bound as he had been.
Among all of those images spilling around Rand and the women, suddenly an aura flashed, blue and yellow tinged with green, encompassing them all. And Min knew its meaning. She gasped, half in surprise, half in relief.
“They will serve you, each in her fashion, Rand,” she said hurriedly. “I saw it.” Sorilea would serve him? Suddenly Min wondered exactly what “in her fashion” meant. The words came with the knowing, but she did not always know what the words themselves meant. But they would serve; that much was plain.
The fury drained from Rand’s face as he silently studied the Aes Sedai. Some of them glanced at Min with raised eyebrows, obviously marveling that a few words from her carried so much weight, but for the most part, they watched Rand and hardly seemed to breathe. Even Elza lifted her head to gaze up at him. Sorilea gave Min one quick look, and the faintest nod. Approving, Min thought. So the old woman pretended not to care one way or the other, did she?
At last, Rand spoke. “You can swear to me as Kiruna and the others did. That, or go back to wherever the Wise Ones have been keeping you. I’ll accept nothing less.” Despite a hint of demand in his voice, he looked as if he, too, did not care, arms folded, eyes impatient. The oath he demanded of them came out in a rush.
Min did not expect quibbles, not after her viewing, yet it was still a surprise when Elza scrambled up to her knees, and the others lowered themselves to theirs. In ragged unison, five more Aes Sedai swore under the Light and by their hope of salvation to serve the Dragon Reborn faithfully until the Last Battle had come and gone. Nesune delivered the words as though examining each one, Sarene as if stating a principle of logic, Elza wearing a wide, victorious smile, but they all swore. How many Aes Sedai would he gather around him?
With the oath, Rand seemed to lose interest. “Find them clothes and put them with your other ‘apprentices,’ ” he told Sorilea absently. He was frowning, but not at her or the Aes Sedai. “How many do you think you’ll end up with?” Min almost jumped at the echo of her own thought.
“However many are necessary,” Sorilea said dryly. “I think more will come.” She clapped her hands once and gestured, and the five sisters sprang to their feet. Only Nesune looked surprised at the alacrity with which they had obeyed. Sorilea smiled, a very satisfied smile for an Aiel, and Min did not think it was caused by the other women’s obedience.
Nodding, Rand turned away. He was already beginning to pace again, already beginning to scowl over Elayne. Min settled into her chair once more, wishing she had one of Master Fel’s books to read. Or to throw at Rand. Well, one of Master Fel’s to read, and someone else’s to throw.
Sorilea herded the black-clad sisters out of the room, but at the last, she paused with one hand holding a door and looked back at Rand striding away from her toward the gilded throne. Her lips pursed thoughtfully. “That woman, Cadsuane Melaidhrin, is beneath this roof again today,” she said at last, to his back.  With that, she left.
For a long moment, Rand stood staring at the throne. Or maybe at something beyond it. Abruptly, he gave himself a shake and strode the remaining distance to pick up the Crown of Swords. On the point of setting it on his head, though, he hesitated, then put it back. Donning the coat, he left crown and scepter where they lay.
“I mean to find out what Cadsuane wants,” he announced. “She doesn’t come to the palace every day because she likes a trip through the snow. Will you come with me, Min? Maybe you’ll have a viewing.”
She was on her feet faster than any of those Aes Sedai. A visit with Cadsuane would likely be as pleasurable as a visit with Sorilea, yet anything was better than sitting there alone. Besides, maybe she would have a viewing. Fedwin fell in behind her and Rand with an alert look in his eyes.
The six Maidens outside in the tall vaulted hallway rose, but they did not follow. Somara was the only one Min knew; she gave Min a brief smile, and Rand a flat, disapproving stare. The others glowered. The Maidens had accepted his explanation about why he had gone without them in the first place, so any watchers would believe for as long as possible that he was still in Cairhien, but they still demanded to know why he had not sent for them afterward, and Rand had had no answers. He muttered something under his breath, and quickened his pace so Min had to stretch her legs to keep up.
“Watch Cadsuane carefully, Min,” he said. “And you, too, Morr. She’s up to some Aes Sedai scheme, but burn me if I can see what. I don’t know. There’s—”
A stone wall seemed to strike Min from behind; she thought she heard roaring, crashing. And then Rand was turning her over—she was lying on the floor?—looking down at her with the first fear she remembered seeing in those morning-blue eyes. It only faded when she sat up, coughing. The air was full of dust! And then she saw the corridor.
The Maidens were gone from in front of Rand’s doors. The doors themselves were gone, along with most of the wall, and a jagged hole nearly as big gaped in the wall opposite. She could see into his apartments clearly despite the dust, into devastation. Massive piles of rubble lay everywhere, and above, the ceiling yawned open to the sky. Snow swirled down onto flames dancing among the rubble. One of the massive blackwood posts of his bed stuck burning out of shattered stone, and she realized she could see all the way outside to the stepped towers veiled by the snowfall. It was as if a huge hammer had smashed into the Sun Palace. And had they been in there, instead of going to see Cadsuane . . . Min shivered.
“What . . . ?” she began unsteadily, then abandoned the useless question. Any fool would see what had happened. “Who?” she asked instead.
Covered in dust, hair every which way, and with tears in their coats, the two men looked as if they had been rolled along the corridor, and perhaps they had. She thought they were all a good ten paces farther from the doors than she remembered. From where the doors had been. In the distance, anxious shouts rose, echoing along the halls. Neither man answered her.
“Can I trust you, Morr?” Rand asked.
Fedwin met his gaze openly. “With your life, my Lord Dragon,” he said simply.
“That’s what I am trusting you with,” Rand said. His fingers brushed her cheek, and then he stood abruptly. “Guard her with your life, Morr.” Hard as steel, his voice. Grim as death. “If they’re still in the Palace, they’ll feel you try to make a gateway, and strike before you can finish. Don’t channel at all unless you must, but be ready. Take her down to the servants’ quarters, and kill anyone or anything that tries to get to her. Anyone!”
With a last look down at her—oh, Light, any other time, she would have thought she could die happily, seeing that look in his eyes!—he went running, away from the ruination. Away from her. Whoever had tried to kill him would be hunting for him.
Morr patted her on the arm with a dusty hand and gave her a boyish grin. “Don’t worry, Min. I’ll take care of you.”
But who was going to take care of Rand? Can I trust you, he had asked this boy who had been one of the first to come asking to learn. Light, who would make him safe?
Rounding a corner, Rand stopped with a hand against one wall to seize the Source. A fool thing, not wanting Min to see him stagger when someone tried to kill him, but there it was. Not just any someone. A man, Demandred, or perhaps Asmodean come back at last. Maybe both; there had been an oddity, as if the weaving came from different directions. He had felt the channeling too late to do anything. He would have died, in his rooms. He was ready to die. But not Min, no, not Min. Elayne was better off, turning against him. Oh, Light, she was!
He seized the Source, and saidin flooded him with molten cold and freezing heat, with life and sweetness, filth and death.  For an instant, he thought he saw a face.  A man, shimmering and unrecognizable, gone. He floated in the Void, empty, and full of the Power.
You won’t win, he told Lews Therin.
I should have sent Ilyena away, Lews Therin whispered back. She would have lived.
Pushing the voice away as he pushed himself from the wall, Rand slipped along the Palace corridors with all the stealth he could muster, stepping lightly, gliding close to tapestry-hung walls, around gold-worked chests and gilded cabinets bearing fragile golden porcelains and ivory statuettes. His eyes searched for his attackers. They would not be satisfied short of finding his body, but they would be very careful in approaching his rooms in case he had survived by some ta’veren swirl of fate. They would wait, to see whether he stirred. In the Void, he was as near one with the Power as any man could live through. In the Void, as with a sword, he was one with his surroundings.
Frantic shouts and clamor rose in every direction, some screaming to know what had happened, others crying that the Dragon Reborn had gone mad. The bundle of frustration in his head that was Alanna provided one small comfort. She was out of the Palace, as she had been all morning, maybe even outside the city walls. He wished Min was, too. Sometimes he saw men and women down one hallway or another, black-liveried servants mainly, running, falling down and scrambling up to run again. They did not see him. With the Power in him, he could hear every whisper. Including the whisper of soft boots running, light-footed.
Backing against the wall beside a long table topped with porcelain, he quickly wove Fire and Air around himself and held very still wrapped in Folded Light.
Maidens appeared, a stream of them, veiled, and ran by without seeing him. Toward his apartments. He could not let them accompany him; he had promised, but to let them fight, not to lead them to slaughter. When he found Demandred and Asmodean, all the Maidens could do was die, and he already had five names to learn and add to his list. Somara of the Bent Peak Daryne was already there. A promise he had had to make, a promise he had to keep. For that promise alone, he deserved to die!
Eagles and women can only be kept safe in cages, Lews Therin said as though quoting, then abruptly began weeping as the last of the Maidens vanished.
Rand moved on, sweeping back and forth through the palace in arcs that slowly moved away from his apartments. Folded Light used very little of the Power—so little no man could have felt the use of saidin unless right on top of it—and he used it whenever anyone seemed about to see him. His attackers had not struck at his rooms on the chance he would be there. They had eyes-and-ears in the Palace. Maybe it had been ta’veren work that pulled him out of the apartments, if a ta’veren could work on himself, and maybe just happenstance, but perhaps his tugging at the Pattern could bring his attackers within his grasp while they thought him dead or injured. Lews Therin chuckled at the thought. Rand could almost feel the man rubbing his hands in anticipation.
Three more times he had to hide behind the Power as veiled Maidens rushed by, and once when he saw Cadsuane sweeping along the corridor ahead with no fewer than six Aes Sedai at her heels, and not one other that he recognized besides her. They seemed to be hunting. He was not afraid of the gray-haired sister, precisely. No, of course not afraid! But he waited until she and her friends were well out of sight before letting his concealing weave go. Lews Therin did not chuckle over Cadsuane. He was deathly silent until she was gone.
Rand stepped away from the wall, a door opened right beside him, and Ailil peeked out. He had not known he was near her rooms.  Shalon, Windfinder to Harine din Togara, the Atha’an Miere ambassador who had moved into the Palace with her retinue almost as Merana informed him of the agreement. And meeting with a woman who might want him dead. Their eyes popped at the sight of him.
He was as gentle as he could be, but he had to be quick. A few moments after the door opened, he was tucking a somewhat rumpled Ailil beneath her bed alongside Shalon. Perhaps they were not part of what was happening. Perhaps. Safe was better than sorry. Glaring at him above mouths wadded full of Ailil’s scarves, the two women writhed against the torn strips of bedsheet he had used to bind their wrists and ankles. The shield he had tied off on Shalon would hold her for a day or two before the knot unraveled, but someone would find them and cut their other bonds before too much longer.
Worrying about that shield, he opened the door enough to check the hallway, and hurried out, along the empty corridor. He could not have left the Windfinder free to channel, but shielding a woman was not a matter of dribbles of the Power. If one of his attackers had been close enough . . . But he saw no one down any of the crossing corridors, either.
Fifty paces beyond Ailil’s rooms, the corridor opened into a square-railed balcony of blue marble with broad stairs at either end, fronting a square chamber with a high, vaulted ceiling and the same sort of balcony at the other side. Tapestries ten paces long hung along the walls, birds soaring to the skies in rigid patterns. Below, Dashiva stood looking about, licking his lips uncertainly. Gedwyn and Rochaid were with him! Lews Therin chittered of killing.
“ . . . telling you I felt nothing,” Gedwyn was saying. “He’s dead!”
And Dashiva saw Rand, at the head of the stairs.
The only warning he had was the sudden snarl that contorted Dashiva’s face. Dashiva channeled, and with no time to think, Rand wove—as so often, he did not know what; something dredged from Lews Therin’s memories; he was not even sure he created the weave entirely himself, or whether Lews Therin snatched at saidin—Air and Fire and Earth woven around himself just so. The fire that leaped from Dashiva erupted, shattering marble, flinging Rand back down the hallway, bounding and rolling in his cocoon.
That barrier would keep out anything short of balefire. Including air to breathe. Rand released it panting, scraping along the floor, with the crash of the explosions still ringing in the air, dust still hanging and bits of broken marble tumbling. As much as for breath, though, he let it go because what could keep the Power out, kept it in. Before he stopped sliding, he channeled Fire and Air, but woven much differently than for Folded Light. Thin red wires leaped from his left hand, fanning out as they sliced through the intervening stone toward where Dashiva and the others had been standing. From his left sped balls of flame, Fire woven with Air, faster than he could count, and they burned through the stone before exploding in that chamber. One continuous deafening roar made the Palace tremble. Dust that had fallen rose up again, and pieces of stone bounced.
Almost immediately, though, he was up and running, back past Ailil’s apartments. The man who struck and stayed in one spot was asking to die. He was ready to die, but not yet. Snarling soundlessly, he sped down another hall, descended narrow servants’ stairs, and came out on the floor below.
He took care making his way back to where he had seen Dashiva, deadly weaves ready to fling at so much as a glimpse.
I should have killed them all in the beginning, Lews Therin panted. I should have killed them all!
Rand let him rage.
The large chamber seemed to have been washed in fire. Only charred fragments licked by flames remained of the tapestries, and great gouges a pace across had been burned into floor and walls. The stairs Rand had been about to descend ended in a ten-foot gap halfway down. Of the three men, there was no sign. They would not have been consumed completely. Something would have remained.
A servant in a black coat cautiously poked his head from a tiny door beside the stairs on the other side of the chamber. His eyes fell on Rand, rolled up in his head, and he fell forward in a heap. Another servant peeped out of a corridor, then gathered her skirts and raced back the way she had come, shrieking at the top of her lungs that the Dragon Reborn was killing everyone in the Palace.
Rand slipped out of the chamber grimacing. He was very good at frightening people who could not harm him. Very good at destroying.
To destroy, or be destroyed, Lews Therin laughed. When that’s your choice, is there a difference?
Somewhere in the Palace, a man channeled enough of the Power to make a gateway. Dashiva and the others fleeing? Or wanting him to think that?
He walked the corridors of the Palace, no longer bothering to hide. Everyone else seemed to be. The few servants he saw, fled screaming.  He had no need of Lews Therin’s ragged laughter and ravings to be filled with a desire to kill.
 Rand let the weave subside, but did not let it go. Had he killed him?
“My Lord Dragon,” a voice shouted from beyond the torn stonework, “it’s me, Narishma! And Flinn!”
“I didn’t recognize you,” Rand lied. “Come here.”
“I think maybe your blood’s hot,” Flinn’s voice called, “I think may we should wait for everybody to cool down.”
“Yes,” Rand said slowly. Had he really tried to kill Narishma? He did not think he could claim the excuse of Lews Therin. “Yes, that might be best. For a little while longer.” There was no answer. Did he hear boots retreating? He forced his hands down and turned another way.
He searched through the Palace for hours without finding a sign of Dashiva or the others. The corridors and great halls, even the kitchens, were empty of people. He found nothing, and learned nothing. No. He realized that he had learned one thing. Trust was a knife, and the hilt was as sharp as the blade.
Then he found pain.
The small stone-walled room was deep below the Sun Palace and warm despite the lack of a fireplace, but Min felt cold. Three gilded lamps on the tiny wooden table gave more than enough light. Rand had said that from there, he could get her away even if someone tried to root the Palace out of the ground. He had not sounded as if he were joking.
Holding the crown of Illian on her lap, she watched Rand. Watched Rand watching Fedwin. Her hands tightened on the crown, and loosened immediately at the stabs of those small swords hidden among the laurel leaves. Strange, that the crown and scepter should have survived when the Dragon Throne itself was a pile of gilded splinters buried in rubble. A large leather scrip beside her chair, with Rand’s sword belt and scabbarded sword resting against it, held what else he had been able to salvage. Strange choices for the most part, in her estimation.
You brainless loobie, she thought.
Rand sat cross-legged on the bare stone floor, still covered in dust and scratches, his coat torn. His face might have been carved. He seemed to watch Fedwin without blinking. The boy was sitting on the floor, too, his legs sprawled out. Tongue caught between his teeth, Fedwin was concentrating on making a tower out of blocks of wood. Min swallowed hard.
She could still remember the horror when she realized the boy “guarding” her now had the mind of a small child. The sadness remained, too—Light, he was only a boy! it was not right!—but she hoped Rand still had him shielded. It had not been easy, talking Fedwin into playing with those wooden blocks instead of pulling stones out of the walls with the Power to make a “big tower to keep you safe in.” And then she had sat guarding him until Rand came. Oh, Light, she wanted to cry. For Rand even more than Fedwin.
“You hide yourself in the depths, it appears.”
The deep voice was not finished speaking from the doorway before Rand was on his feet, facing Mazrim Taim.  Unlike the other Asha’man, he had neither Sword nor Dragon on his high collar.  Now, staring at Taim, Rand seemed to be gritting his teeth. Min surreptitiously eased a knife in her coatsleeve. As many images and auras danced around one as the other, but it was not a viewing that made her suddenly wary. She had seen a man trying to decide whether to kill another before, and she was seeing it again.
“You come here holding saidin, Taim?” Rand said, much too softly. Taim spread his hands, and Rand said, “That’s better.” But he did not relax.
“It was just that I thought I might be stabbed by accident,” Taim said, “making my way here through corridors packed with those Aiel women. They seem agitated.” His eyes never left Rand, but Min was sure he had noticed her touching her knife. “Understandably, of course,” he went on smoothly. “I cannot express my joy at finding you alive after seeing what I did above. I came to report deserters. Normally, I wouldn’t have bothered, but these are Gedwyn, Rochaid, Torval, and Kisman. It seems they were malcontented over events in Altara, but I never thought they would go this far. I haven’t seen any of the men I left with you.” For an instant, his gaze flickered to Fedwin. For no more than an instant. “There were . . . other . . . casualties? I will take this one with me, if you wish.”
“I told them to stay out of sight,” Rand said in a harsh voice. “And I’ll take care of Fedwin. Fedwin Morr, Taim; not ‘this one.’ ” He actually backed to the small table to pick up the silver cup sitting among the lamps. Min’s breath caught.
“The Wisdom in my village could cure anything,” Rand said as he knelt beside Fedwin. Somehow, he managed to smile at the boy without taking his eyes from Taim. Fedwin smiled back happily and tried to take the cup, but Rand held it for him to drink. “She knows more about herbs than anybody I’ve ever met. I learned a little from her, which are safe, which not.” Fedwin sighed as Rand took the cup away and held the boy to his chest. “Sleep, Fedwin,” Rand murmured.
It did seem that the boy was going to sleep. His eyes closed. His chest rose and fell more slowly. Slower. Until it stopped. The smile never left his lips.
“A little something in the wine,” Rand said softly as he laid Fedwin down. Min’s eyes burned, but she would not cry. She would not!
“You are harder than I thought,” Taim muttered.
Rand smiled at him, a hard feral smile. “Add Corlan Dashiva to your list of deserters, Taim. Next time I visit the Black Tower, I expect to see his head on your Traitor’s Tree.”
“Dashiva?” Taim snarled, his eyes widening in surprise. “It will be as you say. When next you visit the Black Tower.” That quickly, he recovered himself, all polished stone and poise once more. How she wished she could read her viewings of him.
“Return to the Black Tower, and don’t come here again.” Standing, Rand faced the other man over Fedwin’s body. “I may be moving about for a while.”
Taim’s bow was minuscule. “As you command.”
As the door closed behind him, Min let out a long breath.
“No point wasting time, and no time to waste,” Rand muttered. Kneeling in front of her, he took the crown and slipped it into the scrip with the other things. “Min, I thought I was the whole pack of hounds, chasing down one wolf after another, but it seems I’m the wolf.”
“Burn you,” she breathed. Tangling both hands in his hair, she stared in his eyes. Now blue, now gray, a morning sky just at sunrise. And dry. “You can cry, Rand al’Thor. You won’t melt if you cry!”
“I don’t have time for tears, either, Min,” he said gently. “Sometimes the hounds catch the wolf and wish they hadn’t. Sometimes he turns on them, or waits in ambush. But first, the wolf has to run.”
“When do we go?” she asked. She did not let go of his
hair. She was never going to let go of him. Never.


Click the button to display todays day of the week.
Try it
Sunday
Monday
Tuesday
Wednesday
Thrusday
Friday
Saturday


I am on a bit of a quest to bring Mathematical Optimization to the masses, or at least to Software Developers. I often come across problems where people are wanting to find the best plan for their problem but they lack to tools to express the problem. Typically the way this is “solved” is by some domain expert coming up with a laborious heuristic in Excel which involves outrageous amount of copying and pasting. I have seen this is take place in tiny companies all the way up to multi-billion dollar enterprises. What really breaks my heart when I see this is that I know there is a better way, but people are just are not aware of it. This is why I am pushing for more training on Mathematical Optimization at my company and why I am starting a blog series on Mathematical Modeling.
The Goal
My hope with these blog posts is to start from a barebones introduction to the concepts which undergird mathematical modeling and slowly introduce newer and more advanced modeling techniques. I don’t think I will ever finish because I am always across new and interesting problems. What I will emphasize is the beautiful interplay between Machine Learning and Mathematical Optimization. I have been blessed to work on several projects where we were able to marry these tools to great effect. If you have any problems that you would like me to look at and write a blog post on, I would be happy to. My hope is to give examples which help people with their own work.
Ingredients for an Optimization Problem
There are three things you need to have before you are reading to apply Mathematical Optimization. You need 1) A Quantifiable Objective 2) Decisions you control and 3) Rules to follow. When you have these three things, you have a problem ripe for Mathematical Optimization. Let me unpack them a little to make sure you understand what I am talking about as we move forward.
A Quantifiable Objective
For you to apply Mathematical Optimization to a problem you need a way to measure how successful you are. Without this, a Solver will not have a way to check if the solutions that it is finding are actually an improvement or not. You are typically trying to maximize some value or minimize it. Common Objectives are Maximize Revenue, Minimize Waste, Maximize User Engagement, Minimize Energy Use, or Minimize Cost. What you are trying to achieve could really be anything, the key is that you have the ability to quantify it.
Decisions You Control
When you create a Mathematical Model of your problem you are going to define the Decisions which need to be made. This is often something like how many people you assign to a task, how much water to put where, where to place a warehouse, which ad to show where. These are all examples of decisions you will be making in your business. The important thing is that you actually have control over them. When you solve the Optimization Model, you will get answers for what values you should use for your Decisions. It will tell you how many people to assign to a task or where to put the water or which ad to show where.
Rules to Follow
Strictly speaking, it is possible to have an Optimization Problem without a set of rules to follow but it is rare. Most real world problems will have some kind of constraint on what you are allowed to do. Typically there are a limited number of people or only so many locations where you can place a warehouse or only so much power available. It is often the rules to follow which make a Optimization Problem interesting. Most often someone is trying to find the best plan given a set of restrictions that they need to follow. These restrictions are what make finding the best answer difficult.
Where we go from here
Let’s say that we have checked all the boxes and it looks like you have a problem which is a good candidate for Mathematical Optimization. What do we do now? We formulate a model. How we do that is what I am looking forward to opening up to you in this and future blog posts. Once we have a Model of our problem we are able to hand it to a piece of software called a Solver which knows how to take the model and search for the best possible solution.
My plan for this series is to follow a simple pattern. First, present a real world problem which will help us ground the concepts. Second, develop the mathematical model and walk through how it works. There will be some math notation but I’ll walk through it slowly so you don’t get lost. Thirdly, translate the model into code. I will be using Python and the PuLP library for my examples. Python is ubiquitous and the PuLP library is open source and easy to install.
In the rest of this post I will walk through a toy problem for the purpose of introducing the vocabulary of Mathematical Optimization Modeling. In future posts I will work more complex problems which will have interesting characteristics.
The Food Truck Problem
One of the example problems I like to use is that of a Food Truck. I am from Portland, OR USA originally and we had food trucks everywhere. In this example we are running a food truck and we have to decide what items to pack for the day. We sell Hamburgers and Burritos. Hamburgers sell for \$5.00 and Burritos sell for \$7.50 (they are big Burritos). Each Hamburger requires us to carry 1.0 Lb. of ingredients on the truck and each Burrito requires 1.5 Lbs. (I told you they are big). We have a small Food Truck so we can only carry up to 650 Lbs. of ingredients. We also forgot to go to stock up the day before so we only have 200 Hamburger buns on hand and only 300 tortillas for Burritos. Since we run an awesome Food Truck, we always sell out of everything we bring. The question now becomes, how much Hamburgers do we pack for and how many Burritos so that we maximize our profit?
Note: This example problem is meant to be simple. I am mostly concerned with introducing the vocabulary of Optimization Modeling. Future problems will be more complex.
This problem is a clear example of a Mathematical Optimization Problem. It has a Quantifiable Objective, Maximize Revenue. It has Decisions which we can control: the number of Hamburgers and Burritos we will pack for. Finally it has rules we must follow, the Food Truck can only carry 650 Lbs, we only have 200 Hamburger Buns and we only have 300 tortillas for Burritos. Now, I am going to show you how we formulate this as an Optimization Model and then I will walk through each piece so that it makes sense. For this model I am going to use the variable $x_{1}$ to represent the number of Hamburgers we are going to pack for and $x_{2}$ to represent the number of Burritos.
$$ \begin{align} &\text{Maximize: }5.00 x_{1} + 7.50 x_{2} \\ &\text{Subject to:} \\ \end{align} $$ $$ \begin{align} x_{1} \leq& 200 \\ x_{2} \leq& 300 \\ 1.0x_{1} + 1.5x_{2}\leq& 650 \\ x_{1}, x_{2} \geq& 0 \end{align} $$
Let’s unpack this. The first line of any Mathematical Optimization Model is going to be the Objective Function. This is the function which is used to quantify success. It will start with whether we are trying to Maximize the value of the Objective Function or Minimize it. In this case we are trying to Maximize. The formula that you see is the calculation for Revenue. Remember, $x_{1}$ is the number of Hamburgers and $x_{2}$ is the number of Burritos. For every Hamburger we will earn \$5.00 and for each Burrito we will earn \$7.50. This means to calculate the total revenue we multiply the number of Hamburgers by the revenue per Hamburger and the number of Burritos by the revenue per Burrito: $5.00x_{1} + 7.50x_{2}$.
After the Objective Function we get to a section referred to as the Constraints. This section typically begins with either a “Subject to” or just “S.t.” as a shorthand. This section is describing the rules that we need to follow. The first constraint is our limitation on the number of Hamburgers due to the number of buns that we have. We only have 200 buns available which means that $x_{1}$ must be less than or equal to 200. We write that as a constraint in this way: $x_{2} \leq 200$. The next constraint is describing our limit on the number of Burritos we could pack since we only have 300 tortillas. $x_{2}$ represents the number of Burritos we plan to pack and it must be less than 300 therefore we add this constraint: $x_{2} \leq 300$.
The third constraint represents the weight limit of our Food Truck. We can only carry 650 Lbs. so the combination of the number of Hamburgers and the number of Burritos must be less than this. We multiply the number of Hamburgers by the lbs per Hamburger and the number of Burritos by the lbs per Burrito and add them together to get the total weight. That total must be less than the capacity of the Food Truck. This gives us this constraint: $1.0x_{1} + 1.5x_{2} \leq 650$.
The final line of the model states the number of Hamburgers and Burritos cannot be less than zero. This is implicitly obvious to us as people but a Solver won’t have our context so we have to tell it that those numbers cannot be negative. This is where we are brining our added context to the problem.
To the Code
Now that we have walked through this small problem, let’s see how it translates to code. I am using Python 3.8 and PuLP 1.6.8. The first thing we do is import PuLP
and create a new instance of a problem
object.
# Import the PuLP Library
from pulp import *
# Create an instance of a Problem object to populate
problem = LpProblem("Food Truck", LpMaximize)
PuLP
provides us the tools we will need to create the Optimization Model and then solve it. Out of the box the PuLP
library comes with some open source solvers so you can build and solve models without having to purchase a solver license.
The first argument of the LpProblem
function is the name of our problem. The second is the type of optimization we want to perform, Maximization or Minimization. In this case we are wanting to maximize revenue so we use the argument value of LpMaximize
. If we wanted to minimize we could have used the LpMinimize
value.
Now let’s create some decision variables to represent how many burgers and tacos we are going to bring on our food truck. We do this by using the LpVariable
function.
x1 = LpVariable("burgers", 0)
x2 = LpVariable("tacos", 0)
The arguments for LpVariable
are the name of the variable and the lower bound on the possible value. In some problems, the decision variables can take on negative numbers. In this case, having negative tacos or negative hamburgers does not make any sense so we specifiy that the lower bound is 0.
We now have the Decision Variables for the problems so we can now add the Objective Function and the Constraints. Let’s start with adding the Objective Function. Whenever we want to add something to a problem
we use the +=
operator. The PuLP
library will infer whether we are adding an Objective Function or a Constraint based on the right hand side argument. All we need to do for the Objective Function is to provide the equation.
# Add the Objective Function
problem += 5.00*x1 + 7.50*x2
The problem
object now has an Objective Function. Now let’s go about adding the constraints. The first constraint is the Max Burgers constraint. To do this we use the +=
operator to add constraints to our problem
object. We then give the equation for the constraint and the name of the constraint.
# Add Max Burgers constraint
problem += x1 <= 200, "Max Burgers"
We then need to add the Max Burritos constraint.
# Add Max Burritos Constraint
problem += x2 <= 300, "Max Burritos"
Finally we need the Max Weight constraint.
# Add Max Weight Constraint
problem += 1.0*x1 + 1.5*x2 <= 650, "Max Weight"
We now have a fully populated problem. To solve it, all we need to do is call the solve()
method.
# Solve the problem
problem.solve()
> 1
We get a numeric response back but it will not mean much until we translate it to something we can understand. Fortunately, the PuLP
library has a dictionary which stores the mapping from the numeric status of the problem to a human readable string. This dictionary is the LpStatus
dictionary. Let’s use this to print out the string representation of the problem status.
# Print the problem status
print(LpStatus[problem.status])
> Optimal
We should see the string optimal
. This means that the solver was able to find the optimal answer. In the future we will go over the other possible statuses and what they mean.
Now, let’s look at what values for the Decision Variables the Solver chose.
# Loop through each of the Decision Variables in the problem
for v in problem.variables():
# Print the name of the Variable and the Value the Solver chose
print(v.name,'=',v.varValue)
> burgers = 200.0
> tacos = 300.0
Let’s see what kind of Revenue we should expect if we follow this plan.
# Get the expected Revenue
revenue = value(problem.objective)
# Print the expected result
print(f"${revenue:,.2f}")
> $3,250.00
There you have it. A tiny Mathematical Optimization problem. Granted, this was completely overkill for such a simple problem. My goal was to introduce these concepts and start growing our vocabulary around Optimization. From here we will adjust how we are managing the data and Decision Variables for our problem. This approach will not scale. In the next post we will look at adding the concept of Sets and Parameters. This will make it easy for us to create large optimization problems involving hundreds of thousands, if not millions of Decision Variables and Constraints.


Home
Category
Listing
Contact Us
Add Your Listing
Menu
Check Out Our Listings
Item listings of Different Categories
Apartments
Food & Life
Cars
Traveling
Contact Now
Sunshine Paradise Apartment
by: Real ESTATE Agent
$600 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Best one in this category
by: Real ESTATE Agent
$800 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Amazing Dj Party House
by: Real ESTATE Agent
$950 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Sunshine Villa Condo
by: Real ESTATE Agent
$450 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Gaming Studio Units
by: Real ESTATE Agent
$550 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Amazing Dj Party House
by: Real ESTATE Agent
$650 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Third Page Apartment
by: Real Estate Agent
$600 to $950 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
New Gaming Townhouse
by: Real ESTATE Agent
$840 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Amazing Party Villa
by: Real ESTATE Agent
$950 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Food First page
by: Food Delivery
$600 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Food Item 2
by: Food Delivery
$540 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Food Item 3
by: Food Delivery
$720 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
FOOD Second Page
by: Food Delivery
$420 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Best Food Item 5
by: Food Delivery
$450 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Amazing Food Item 6
by: Food Delivery
$500 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Third Category First Page
by: Sale Agent
$750 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Car Item 2
by: Sale Agent
$880 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Car Item 3
by: Sale Agent
$770 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Third Category Second Page
by: Sale Agent
$660 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Car Item 5
by: Sale Agent
$550 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Car Item 6
by: Sale Agent
$440 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Traveling Item 1
by: Travel Agent
$400 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Traveling Item 2
by: Travel Agent
$500 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Traveling Item 3
by: Travel Agent
$342 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
4th Category 2nd Page
by: Travel Agent
$268 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Traveling Item 5
by: Travel Agent
$145 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
Traveling Item 6
by: Travel Agent
$240 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms
Contact Now
4th Category 3rd Page
by: Travel Agent
$360 / month included tax
Details:
860 sq ft
2 Bedrooms
3 Bathrooms


Search inputs are a new HTML type that is styled with pill-shaped corners and adds a "x" icon to clear the field once you start typing. Start with an input with a type="search" attribute in your markup. View the data- attribute reference to see all the possible attributes you can add to search inputs.
input
type="search"
Set the for attribute of the label to match the ID of the input so they are semantically associated. It's possible to accessibly hide the label if it's not desired in the page layout, but we require that it is present in the markup for semantic and accessibility reasons.
for
label
Search Input: <input type="search" name="search" id="searc-basic" value="" />
This will produce a basic search input. The default styles set the width of the input to 100% of the parent container and stack the label on a separate line.
For a more compact version that is useful in toolbars and tight spaces, add the data-mini="true" attribute to the element to create a mini version.
data-mini="true"
Search Input: <input type="search" name="search" id="searc-basic" value="" data-mini="true" />
This will produce a search input that is not as tall as the standard version and has a smaller text size.
Optionally wrap the search input in a container with the data-role="fieldcontain" attribute to help visually group it in a longer form.
data-role="fieldcontain"

 Search Input: <input type="search" name="password" id="search" value="" />

The search input is now displayed like this:
The data-theme attribute can be added to the search input to set the theme to any swatch letter.
data-theme
The text for the button used to clear the search input of text can be configured for all search inputs by binding to the mobileinit event and setting the $.mobile.textinput.prototype.options.clearSearchButtonText property to a string of your choosing.
mobileinit
$.mobile.textinput.prototype.options.clearSearchButtonText
This plugin will auto-initialize on any page that contains a text input with the type="search" attribute without any need for a data-role attribute in the markup. However, if needed, you can directly call the textinput plugin on a selector, just like any jQuery plugin:
data-role
textinput
$('.mySearchInput').textinput();


The xNetworking module is a part of the Windows PowerShell Desired State Configuration (DSC) Resource Kit, which is a collection of DSC Resources produced by the PowerShell Team. This module contains the xFirewall, xIPAddress and xDnsServerAddress resources. These DSC Resources allow configuration of a node’s IP Address, DNS Server Address, and Firewall Rules.
All of the resources in the DSC Resource Kit are provided AS IS, and are not supported through any Microsoft standard support program or service. The “x” in xNetworking stands for experimental, which means that these resources will be fix forward and monitored by the module owner(s).
Please leave comments, feature requests, and bug reports in the Q & A tab for this module.
If you would like to modify xNetworking module, feel free. When modifying, please update the module name, resource friendly name, and MOF class name (instructions below). As specified in the license, you may copy or modify this resource as long as they are used on the Windows Platform.
For more information about Windows PowerShell Desired State Configuration, check out the blog posts on the
PowerShell Blog (this
is a good starting point). There are also great community resources, such as
PowerShell.org
, or
PowerShell Magazine
. For more information on the DSC Resource Kit, check out
this blog post.
To install
xNetworking module
Unzip the content under $env:ProgramFiles\WindowsPowerShell\Modules folder
To confirm installation:
Run Get-DSCResource to see that
xFirewall, xIPAddress and xDnsServerAddress are among the DSC Resources listed
This module requires the latest version of PowerShell (v4.0, which ships in Windows 8.1 or Windows Server 2012R2). To easily use PowerShell 4.0 on older operating systems, install WMF 4.0 . Please read the installation instructions that are present on both the download page and the release notes for WMF 4.0.
Description
The xNetworking
module contains the xIPAddress, and DSC Resources. Instead of needing to know and remember the functionality and syntax for the IPAddress and DNS cmdlets, these DSC Resources allow you to easily configure and maintain your
networking settings by writing simple configurations. The
xFirewall
resource allows configuration of Firewall rules.
xIPAddress resource has following properties:
xDnsServerAddress resource has following properties:
xFirewall resource has following properties:
When making changes to these resources, we suggest the following practice:
Update the following names by replacing MSFT with your company/community name and replacing the “x” with "c" (short for "Community") or another prefix of your choice:
Update module and metadata information in the module manifest
Update any configuration that use these resources
We reserve resource and module names without prefixes ("x" or "c") for future use (e.g. "MSFT_xIPAddress" or "IPAddress"). If the next version of Windows Server ships with a "IPAddress" resource, we don't want to break any configurations that use any community modifications. Please keep a prefix such as "c" on all community modifications.
This configuration will set IP Address with some typical values for network interface alias = Ethernet.
configuration Sample_xIPAddress_FixedValue { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xIPAddress NewIPAddress { IPAddress = "2001:4898:200:7:6c71:a102:ebd8:f482" InterfaceAlias = "Ethernet" SubnetMask = 24 AddressFamily = "IPV6" } } }
configuration Sample_xIPAddress_FixedValue { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xIPAddress NewIPAddress { IPAddress = "2001:4898:200:7:6c71:a102:ebd8:f482" InterfaceAlias = "Ethernet" SubnetMask = 24 AddressFamily = "IPV6" } } }
This configuration will set IP Address along with default gateway on a network interface that is identified by its alias.
configuration Sample_xIPAddress_Parameterized { param ( [string[]]$NodeName = 'localhost', [Parameter(Mandatory)] [string]$IPAddress, [Parameter(Mandatory)] [string]$InterfaceAlias, [Parameter(Mandatory)] [string]$DefaultGateway, [int]$SubnetMask = 16, [ValidateSet("IPv4","IPv6")] [string]$AddressFamily = 'IPv4' ) Import-DscResource -Module xNetworking Node $NodeName { xIPAddress NewIPAddress { IPAddress = $IPAddress InterfaceAlias = $InterfaceAlias DefaultGateway = $DefaultGateway SubnetMask = $SubnetMask AddressFamily = $AddressFamily } } }
configuration Sample_xIPAddress_Parameterized { param ( [string[]]$NodeName = 'localhost', [Parameter(Mandatory)] [string]$IPAddress, [Parameter(Mandatory)] [string]$InterfaceAlias, [Parameter(Mandatory)] [string]$DefaultGateway, [int]$SubnetMask = 16, [ValidateSet("IPv4","IPv6")] [string]$AddressFamily = 'IPv4' ) Import-DscResource -Module xNetworking Node $NodeName { xIPAddress NewIPAddress { IPAddress = $IPAddress InterfaceAlias = $InterfaceAlias DefaultGateway = $DefaultGateway SubnetMask = $SubnetMask AddressFamily = $AddressFamily } } }
This configuration will set DNS Server Address on a network interface that is identified by its alias.
configuration Sample_xDnsServerAddress { param ( [string[]]$NodeName = 'localhost', [Parameter(Mandatory)] [string]$DnsServerAddress, [Parameter(Mandatory)] [string]$InterfaceAlias, [ValidateSet("IPv4","IPv6")] [string]$AddressFamily = 'IPv4' ) Import-DscResource -Module xNetworking Node $NodeName { xDnsServerAddress DnsServerAddress { Address = $DnsServerAddress InterfaceAlias = $InterfaceAlias AddressFamily = $AddressFamily } } }
configuration Sample_xDnsServerAddress { param ( [string[]]$NodeName = 'localhost', [Parameter(Mandatory)] [string]$DnsServerAddress, [Parameter(Mandatory)] [string]$InterfaceAlias, [ValidateSet("IPv4","IPv6")] [string]$AddressFamily = 'IPv4' ) Import-DscResource -Module xNetworking Node $NodeName { xDnsServerAddress DnsServerAddress { Address = $DnsServerAddress InterfaceAlias = $InterfaceAlias AddressFamily = $AddressFamily } } }
# DSC configuration for Firewall configuration Add_FirewallRule { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = "MyAppFirewallRule" ApplicationPath = "c:\windows\system32\MyApp.exe" Access = "Allow" } } }
# DSC configuration for Firewall # configuration Add_FirewallRuleToExistingGroup { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = "MyFirewallRule" DisplayName = "My Firewall Rule" DisplayGroup = "My Firewall Rule Group" Access = "Allow" } xFirewall Firewall1 { Name = "MyFirewallRule1" DisplayName = "My Firewall Rule" DisplayGroup = "My Firewall Rule Group" Ensure = "Present" Access = "Allow" State = "Enabled" Profile = ("Domain", "Private") } } }
# DSC configuration for Firewall # configuration Disable_AccessToApplication { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = "NotePadFirewallRule" DisplayName = "Firewall Rule for Notepad.exe" DisplayGroup = "NotePad Firewall Rule Group" Ensure = "Present" Access = "Block" Description = "Firewall Rule for Notepad.exe" ApplicationPath = "c:\windows\system32\notepad.exe" } } }
# DSC configuration for Firewall configuration Sample_xFirewall { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = "NotePadFirewallRule" DisplayName = "Firewall Rule for Notepad.exe" DisplayGroup = "NotePad Firewall Rule Group" Ensure = "Present" Access = "Allow" State = "Enabled" Profile = ("Domain", "Private") Direction = "OutBound" RemotePort = ("8080", "8081") LocalPort = ("9080", "9081") Protocol = "TCP" Description = "Firewall Rule for Notepad.exe" ApplicationPath = "c:\windows\system32\notepad.exe" Service = "WinRM" } } } Sample_xFirewall Start-DscConfiguration -Path Sample_xFirewall -Wait -Verbose -Force
<IP_ADDRESS>
Initial release with the following resources
<IP_ADDRESS>
Adding the xFirewall resource
2.1.0
2.1.1
Updated to fix issue with Get-DscConfiguration and xFirewall


>>
<<
Usr
Pri
JfC
LJ
Phr
Dic
Voc
!:
Help
Dictionary
I. Locatives
Locative abc_f_ refers to abc
in locale f; indirect locative abc__xy
refers to abc in the locale whose name is the current value
of xy. For compatibility with previous versions,
the non-standard abc__ is accepted and is the same
as abc_base_. Thus:
b=: 1
Rome=: 2
Rome_NewYork_=: 20
f_NewYork_=: 3 : '3*b=: Rome+y'
f_NewYork_ 10
90
b,Rome
1 2
b_NewYork_
30
A name is global if it is not assigned by =.
within Explicit Definition (:).
Every global name is executed in the current locale.
Initially, the current locale is base.
A locative f_abc_, while it is executing,
switches the current locale to abc.
The verb 18!:4
also switches the current locale,
and 18!:5 gives its name.
The name f_abc_ is executed in locale abc
in the sense that a global name referenced in f
is sought therein and, if not found, is then sought in the
locales in the path of abc
(but is still executed in abc).
The path of a locale is initially ,<,'z' ,
except that locale z has an empty path initially,
and may be changed using 18!:2 .
A locale is commonly populated by a script, by appropriate
naming of the verb used to execute the script.
For example, if the file stats contains the script:
mean=: sum % #
sum=: +/
Then:
ssx_z_=: 0!:10 Silent script execution
ssx_a_ <'stats' Populate locale a
mean=: 'in base locale'
mean_a_ 3 4 5
4
ssx_bc_ <'stats' Populate locale bc
sum_bc_ 3 4 5
12
The example also illustrates the use of locale paths,
in this case the z locale: First,
the utility ssx is defined in the z locale.
In executing ssx_a_, ssx is not found in
locale a and is therefore sought (and found) in
locale z. Since ssx_a_ is executed
in locale a, the names in the stats script are
defined in locale a, populating it thereby.
Similarly for ssx_bc_.
See also 18!: in
Appendix A and the “Locales” and “Object Oriented Programming”
labs distributed with the system.
>>
<<
Usr
Pri
JfC
LJ
Phr
Dic
Voc
!:
Help
Dictionary


Installation of Joomla on your LAMP web server with Arch Linux.
Install and configure Joomla on your LAMP server - Arch Linux
Difficulty: 1
Time: 5 minutes
Joomla is an open source content management system that helps you build websites and online applications. Joomla is built in PHP and makes use of a database system like MySQL.
This article walks you through the installation of Joomla on your Debian server. Before getting started, you need to have LAMP (Linux, Apache, MySQL, PHP) set up on your server. For instructions, see the article: Installing LAMP stack.
Download Joomla
-
Before you download the installation files, create a directory.
sudo mkdir temp
- Go to that directory.
cd temp
-
Download the latest version of Joomla from the Joomla website.
sudo wget http://joomlacode.org/gf/download/frsrelease/17410/76021/Joomla_2.5.7-Stable-Full_Package.tar.gz
-
Unzip the downloaded package, moving it to the default Apache directory.
sudo tar zxvf Joomla_2.5.7-Stable-Full_Package.tar.gz -C /srv/http
Grant permissions
Create Joomla database and user
-
Login to MySQL.
sudo mysql -u root -p
When prompted, enter the MySQL root password that you set during the MySQL installation.
-
Create a database with any name.
CREATE DATABASE testdb;
You will see:
Query OK, 1 row affected (0.00 sec)
-
Create user.
CREATE USER newuser@localhost;
- Set the password for the newly created user.
SET PASSWORD FOR newuser@localhost= PASSWORD("pass");
- Grant privileges to the newly created user.
 TO newuser@localhost IDENTIFIED BY 'pass';
-
Refresh MySQL.
FLUSH PRIVILEGES;
-
Exit the MySQL shell.
exit
-
You also need to edit the MySQL configuration in the
php.ini
file.
sudo vim /etc/php/php.ini
- Uncomment the following line in the file:
extension=mysql.so
-
Restart Apache.
sudo systemctl restart httpd
Install Joomba
-
In your browser, navigate to http://server-ip-address. You will see the Joomla installation page.
-
On the Pre-installation Check and License page, click Next.
- On the Configure the database connection settings page, enter the credentials you created in the previous section.
- Enter configuration information for your website, such as the name of the site, and email and password for the administrator.
- Click Install Sample Data.
To complete the installation you will be asked to remove the installation folder.
-
Go back to your console, delete the installation folder, and change the permission on the configuration file.
sudo rm -rf /srv/http/installation/
sudo chmod 755 /srv/http/configuration.php
- In your browser, navigate to http://server-ip-address/index.php or domain name. The new Joomla page displays.
Next steps
Now that you have set up a Joomla site, you can install Joomla Console to manage your Joomla site by command line.


Vizualize expressions involving addition and multiplicaiton. Click and drag to explore or type something new.
Use two number lines to visualize addition. Partition the partition to add fractions with different denominators.
Use two number lines to visualize multiplication. See why multiplying fractions less than one makes the product smaller than the original factors.


--- layout: page title: 'g-module: console app for google queries' date: 2007-07-04 08:55:33.000000000 +02:00 type: page published: true status: publish categories: [] tags: [] meta: _publicize_pending: '1' _wp_page_template: default original_post_id: '128' _wp_old_slug: '128' _oembed_48f037fbbe649c0141412b3386e3f6fd: "{{unknown}}" _oembed_82e206cd7828b373fd08b5d3454550ce: "{{unknown}}" _oembed_9228be58d0c805a4d5d0d6879d0feceb: "{{unknown}}" author: login: joesixpack email<EMAIL_ADDRESS>display_name: dirk lüsebrink first_name: '' last_name: '' ---
so i found myself the other day sitting there in front of my command line just about to look up something for reference from google. No big deal, google search box is part of every major browser and myriads of other options of OS integrated searches are available as well. But i’m so old school, the command line is where i spend most of my time, which means using the web browser is a context switch nonetheless. The Mac OS X became so appealing exactly because it is basically Unix with a commandline shell and a nice GUI in front of it, and not a GUI instead of a shell.
I put together a little ruby google script to run some of the most basic google queries from the command line, like:
$ g ruby command line tools <return>
-> shows index page with results found for further query
or a direct jump to the ”I’m Feeling Lucky” result:
$ g :lucky ruby -python google <return>
-> directly jump open the browser on the first link found
I use ':'
to modify the default behaviour of the script. Normaly you do this with options but I prefered ':'
over '-'
and reserve the dash for the query itself. :lucky
is just overwriting the default behaviour here. The next modifiers to implement where :count
and :fight
modifiers like:
$ g :count your search here
about 1,330,000,000 results for <your search here> (0.09 seconds)
$ g :fight "left" "right"
http://www.googlefight.com
:count
is obvious and :fight
of course got its inspiration from the awesom http://www.googlefight.com/.
I used Hpricot because i got used to it and it does actually everything i need in an elegant and concise way. The script does NOT use the Google Ajax Search API, but does scrape its results from the normal HTML response page. I simple didn’t want to make my simple script dependent on signing up for an Google API Key.
With the right stuff in place,
require 'rubygems'
require 'cgi'
require 'open-uri'
require 'hpricot'
the :lucky
screen scraping for example basically boils down to:
q = %w{meine kleine suchanfrage}.map { |w| CGI.escape(w) }.join("+")
url = "http://www.google.com/search?q=#{q}"
doc = Hpricot(open(url).read)
lucky_url = (doc/"div[@class='g'] a").first["href"]
system 'open #{lucky_url}'
and you can easily spot a problem here. system 'open ...'
is hardly cross platform, but on Mac OSX it opens the default browser with the given URL. To give users a chance to customize things a little i put settings in a defaults value hash which will be overwritten at startup by values loaded from a users preference file in their home directory. My built-in default values are:
C = {
:count => 4, # number of results showed
:indent => 8, :tw => 70, # indentation and descripton width
:goog => "http://www.google.com", # where to ask?
:open => "system 'open ${url}'", # loads into HTTP browser on Mac OSX
}
and the user preferences are loaded from: ~/.g


Allocator deleter. More...
#include <os-memory.h>
Public Types | |
| using | allocator_traits = std::allocator_traits< A > |
| Standard allocator traits definition. | |
| using | allocator_type = A |
| Standard allocator type definition. | |
| using | pointer = typename allocator_traits::pointer |
Public Member Functions | |
Constructors & Destructor | |
| allocator_deleter () | |
| Default constructor. | |
| allocator_deleter (const allocator_type &other) | |
| Copy constructor. | |
| allocator_deleter (allocator_deleter &&other)=default | |
| Move constructor. | |
| ~allocator_deleter ()=default | |
| Destruct the allocator deleter. | |
Operators | |
| allocator_deleter & | operator= (const allocator_deleter &other)=default |
| Copy assignment operator. | |
| allocator_deleter & | operator= (allocator_deleter &&other)=default |
| Move assignment operator. | |
| void | operator() (pointer addr) const |
Allocator deleter.
| A | Allocator type. |
This class acts as a function to be used as deleter by smart pointers, like unique_ptr<>
.
It refers to the allocator to destruct and deallocate the object.
Definition at line 849 of file os-memory.h.
| using os::rtos::memory::allocator_deleter< A >::allocator_traits = std::allocator_traits<A> |
Standard allocator traits definition.
Definition at line 861 of file os-memory.h.
| using os::rtos::memory::allocator_deleter< A >::allocator_type = A |
Standard allocator type definition.
Definition at line 856 of file os-memory.h.
| using os::rtos::memory::allocator_deleter< A >::pointer = typename allocator_traits::pointer |
Definition at line 863 of file os-memory.h.
| os::rtos::memory::allocator_deleter< A >::allocator_deleter | ( | ) |
Default constructor.
| os::rtos::memory::allocator_deleter< A >::allocator_deleter | ( | const allocator_type & | other | ) |
Copy constructor.
| other | Reference to allocator. |
|
default |
Move constructor.
| other | Reference to existing allocator. |
|
default |
Destruct the allocator deleter.
| void os::rtos::memory::allocator_deleter< A >::operator() | ( | pointer | addr | ) | const |
|
default |
Move assignment operator.
| other | Reference to existing allocator. |
|
default |
Copy assignment operator.
| other | Reference to existing allocator. |


IntroductionFrequently asked questionsSyntax, keywords and built-in functionsStandard distributionimport implementationBrowser interface
Introduction - DOM API
Creating a document Accessing elements Attributes and methods Events Mouse events Keyboard events Focus events Drag events Query string Using Javascript objects and libraries Brython-specific built-in modules
browser
browser.ajax browser.html browser.local_storage browser.markdown browser.object_storage browser.session_storage browser.svg browser.timer browser.websocket javascript Working with Brython
Options of function
brython()
Installing the development environment Testing and debugging Deploying an application Brython for Firefox OSCookbook |
Development environmentDevelopers should use the environment available for download : choose the zip file starting with "BrythonX.Y.Z_site_mirror" where X.Y.Z is the version number and unzip it in a directory (we refer to this directory as brython_directory in the next paragraphs). A web server is necessary to test the scripts locally while developing. Any web server that can serve files with the brython_directory/www as document root will work ; you can use the built-in web server provided in the distribution : open a console window, go to the directory, and runpython server.py . This will
start the server on port 8000 (if you want to use a different port number you can use
python server.py --port 8001 to use port 8001).
Once the server is started, point your web browser to http://localhost:8000/ :
the same page as the Brython site homepage should
appear.
Create a new directory (eg "whatever") in brython_directory/www. With a text
editor, create a file called index.html with the content below and save it in
the directory brython_directory/www/whatever/index.html:
<html> <head> <meta charset="iso-8859-1"> <script src="../src/brython.js"></script> </head> <body onLoad="brython()"> <script type="text/python"> from browser import document as doc from browser import alert def echo(ev): alert("Hello %s !" %doc["zone"].value) doc["echo"].bind('click', echo) </script> <p>Your name is : <input id="zone"><button id="echo">click !</button> </body> </html>Point the browser to http://localhost:8000/whatever/index.html : bingo, you have written your first Brython script!! Use this environment for testing and developing. Just remember to point the script brython.js to the right location relatively to the directory where the HTML page stands. |


- getAccessToken() - Method in class com.smartcar.sdk.data.Auth
-
Returns the currently stored access token.
- getAccessToken() - Method in class com.smartcar.sdk.Vehicle
-
Returns the currently stored access token.
- getAge() - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Return the age of the response
- getAuthUrl(String, boolean) - Method in class com.smartcar.sdk.AuthClient
-
Returns the assembled authentication URL.
- getAuthUrl(String) - Method in class com.smartcar.sdk.AuthClient
-
Returns the assembled authentication URL.
- getAuthUrl(boolean) - Method in class com.smartcar.sdk.AuthClient
-
Returns the assembled authentication URL.
- getAuthUrl() - Method in class com.smartcar.sdk.AuthClient
-
Returns the assembled authentication URL.
- getCode() - Method in enum com.smartcar.sdk.SmartcarException.Status
-
Returns the code representation.
- getCount() - Method in class com.smartcar.sdk.data.ResponsePaging
-
Returns the response count
- getData() - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Return the response data
- getDistance() - Method in class com.smartcar.sdk.data.VehicleOdometer
-
Returns the odometer distance
- getExpiration() - Method in class com.smartcar.sdk.data.Auth
-
Returns the expiration timestamp for the current access token.
- getId() - Method in class com.smartcar.sdk.data.VehicleInfo
-
Returns the vehicle id.
- getLatitude() - Method in class com.smartcar.sdk.data.VehicleLocation
-
Returns the latitude of the vehicle
- getLimit() - Method in class com.smartcar.sdk.data.RequestPaging
-
Returns the response limit
- getLongitude() - Method in class com.smartcar.sdk.data.VehicleLocation
-
Returns the longitude of the vehicle
- getMake() - Method in class com.smartcar.sdk.data.VehicleInfo
-
Returns the vehicle make
- getModel() - Method in class com.smartcar.sdk.data.VehicleInfo
-
Returns the vehicle model
- getOffset() - Method in class com.smartcar.sdk.data.RequestPaging
-
Returns the response offset
- getOffset() - Method in class com.smartcar.sdk.data.ResponsePaging
-
Returns the response offset
- getPaging() - Method in class com.smartcar.sdk.data.ApplicationPermissions
-
Returns the paging information of the response
- getPaging() - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Return paging information
- getPermissions() - Method in class com.smartcar.sdk.data.ApplicationPermissions
-
Returns the application permissions
- getRefreshExpiration() - Method in class com.smartcar.sdk.data.Auth
-
Returns the expiration timestamp for the current refresh token.
- getRefreshToken() - Method in class com.smartcar.sdk.data.Auth
-
Returns the currently stored refresh token.
- getRequest() - Method in exception com.smartcar.sdk.SmartcarException
-
Returns the HTTP request associated with the exception.
- getResponse() - Method in exception com.smartcar.sdk.SmartcarException
-
Returns the HTTP response associated with the exception.
- getStatus() - Method in exception com.smartcar.sdk.SmartcarException
-
Returns the status associated with the SmartcarException.
- getText() - Method in enum com.smartcar.sdk.SmartcarException.Status
-
Returns the text representation.
- getUnitSystem() - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Return the unit system of the response
- getUnitSystem() - Method in class com.smartcar.sdk.Vehicle
-
Returns the currently set unit system.
- getUserId(String) - Static method in class com.smartcar.sdk.AuthClient
-
Retrieves the user ID of the user authenticated with the specified access
token.
- getVehicleId() - Method in class com.smartcar.sdk.Vehicle
-
Returns the currently stored vehicle ID.
- getVehicleIds(String, RequestPaging) - Static method in class com.smartcar.sdk.AuthClient
-
Retrieves all vehicle IDs associated with the authenticated user.
- getVehicleIds(String) - Static method in class com.smartcar.sdk.AuthClient
-
Retrieves all vehicle IDs associated with the authenticated user.
- getVehicleIds() - Method in class com.smartcar.sdk.data.VehicleIds
-
Returns the vehicle IDs.
- getVin() - Method in class com.smartcar.sdk.data.VehicleVin
-
Returns the vehicle vin
- getYear() - Method in class com.smartcar.sdk.data.VehicleInfo
-
Returns the year of the vehicle
- setAccessToken(String) - Method in class com.smartcar.sdk.data.Auth
-
Stores a new access token.
- setAccessToken(String) - Method in class com.smartcar.sdk.Vehicle
-
Stores the accessToken
- setAge(Date) - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Stores the age of the response
- setCount(int) - Method in class com.smartcar.sdk.data.ResponsePaging
-
Stores the response count
- setData(T) - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Stores the response data
- setDistance(double) - Method in class com.smartcar.sdk.data.VehicleOdometer
-
Stores the odomter distance
- setExpiration(Date) - Method in class com.smartcar.sdk.data.Auth
-
Stores a new expiration timestamp for the current access token.
- setId(String) - Method in class com.smartcar.sdk.data.VehicleInfo
-
Stores the vehicle id
- setLatitude(double) - Method in class com.smartcar.sdk.data.VehicleLocation
-
Stores the latitude of the vehicle
- setLimit(int) - Method in class com.smartcar.sdk.data.RequestPaging
-
Stores the response limit
- setLongitude(double) - Method in class com.smartcar.sdk.data.VehicleLocation
-
Stores the longitude of the vehicle
- setMake(String) - Method in class com.smartcar.sdk.data.VehicleInfo
-
Stores the vehicle make
- setModel(String) - Method in class com.smartcar.sdk.data.VehicleInfo
-
Stores the vehicle model
- setOffset(int) - Method in class com.smartcar.sdk.data.RequestPaging
-
Stores the response offset
- setOffset(int) - Method in class com.smartcar.sdk.data.ResponsePaging
-
Stores the response offset
- setPaging(ResponsePaging) - Method in class com.smartcar.sdk.data.ApplicationPermissions
-
Stores the paging information of the response
- setPaging(ResponsePaging) - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Stores the paging information
- setPermissions(String[]) - Method in class com.smartcar.sdk.data.ApplicationPermissions
-
Stores the application permissions
- setRefreshExpiration(Date) - Method in class com.smartcar.sdk.data.Auth
-
Stores a new expiration timestamp for the current refresh token.
- setRefreshToken(String) - Method in class com.smartcar.sdk.data.Auth
-
Stores a new refresh token.
- setUnitSystem(String) - Method in class com.smartcar.sdk.data.SmartcarResponse
-
Stores the unit system of the response
- setUnitSystem(Vehicle.UnitSystem) - Method in class com.smartcar.sdk.Vehicle
-
Sets the preferred unit system for subsequent API requests.
- setVehicleId(String) - Method in class com.smartcar.sdk.Vehicle
-
Stores the vehicleId
- setVehicleIds(String[]) - Method in class com.smartcar.sdk.data.VehicleIds
-
Sets the vehicle IDs.
- setVin(String) - Method in class com.smartcar.sdk.data.VehicleVin
-
Stores the vehicle vin
- setYear(int) - Method in class com.smartcar.sdk.data.VehicleInfo
-
Stores the year of the vehicle
- SmartcarException - Exception in com.smartcar.sdk
-
Thrown when the Smartcar API library encounters a problem.
- SmartcarException() - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with default values.
- SmartcarException(String) - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with the specified message.
- SmartcarException(SmartcarException.Status) - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with the specified status.
- SmartcarException(String, SmartcarException.Status) - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with the specified message and
status.
- SmartcarException(Request, Response) - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with the specified message and
status.
- SmartcarException(String, SmartcarException.Status, Request, Response) - Constructor for exception com.smartcar.sdk.SmartcarException
-
Initializes a new Smartcar API exception with the specified message,
status, request, and response.
- SmartcarException.Status - Enum in com.smartcar.sdk
-
- SmartcarResponse<T extends ApiData> - Class in com.smartcar.sdk.data
-
POJO for Wrapping ApiData with meta data
- SmartcarResponse(T, String, Date, ResponsePaging) - Constructor for class com.smartcar.sdk.data.SmartcarResponse
-
Initializes an instance of SmartcarResponse
- SmartcarResponse(T, String, Date) - Constructor for class com.smartcar.sdk.data.SmartcarResponse
-
Initializes an instance of SmartcarResponse
- SmartcarResponse(T, ResponsePaging) - Constructor for class com.smartcar.sdk.data.SmartcarResponse
-
Initializes an instance of SmartcarResponse
- SmartcarResponse(T) - Constructor for class com.smartcar.sdk.data.SmartcarResponse
-
Initializes an instance of SmartcarResponse
- valueOf(String) - Static method in enum com.smartcar.sdk.SmartcarException.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.smartcar.sdk.Vehicle.UnitSystem
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.smartcar.sdk.SmartcarException.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.smartcar.sdk.Vehicle.UnitSystem
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Vehicle - Class in com.smartcar.sdk
-
Smartcar Vehicle API Object
- Vehicle(String, String, Vehicle.UnitSystem) - Constructor for class com.smartcar.sdk.Vehicle
-
Initializes a new Vehicle.
- Vehicle(String, String) - Constructor for class com.smartcar.sdk.Vehicle
-
Initializes a new Vehicle.
- Vehicle.UnitSystem - Enum in com.smartcar.sdk
-
- VehicleIds - Class in com.smartcar.sdk.data
-
POJO for Smartcar /vehicles endpoint.
- VehicleIds(String[]) - Constructor for class com.smartcar.sdk.data.VehicleIds
-
Initializes a new instance of VehicleIds
- VehicleInfo - Class in com.smartcar.sdk.data
-
POJO for Smartcar /info endpoint
- VehicleInfo(String, String, String, int) - Constructor for class com.smartcar.sdk.data.VehicleInfo
-
Initializes a new instance of VehicleInfo
- VehicleLocation - Class in com.smartcar.sdk.data
-
POJO for Smartcar /location endpodouble
- VehicleLocation(double, double) - Constructor for class com.smartcar.sdk.data.VehicleLocation
-
Initializes a new instance of VehicleLocation
- VehicleOdometer - Class in com.smartcar.sdk.data
-
POJO for Smartcar /odometer endpoint
- VehicleOdometer(double) - Constructor for class com.smartcar.sdk.data.VehicleOdometer
-
Initializes a new instance of the VehicleOdometer
- VehicleVin - Class in com.smartcar.sdk.data
-
POJO for Smartcar /vin endpoint
- VehicleVin(String) - Constructor for class com.smartcar.sdk.data.VehicleVin
-
Initializes a new instance of VehicleVin
- vin() - Method in class com.smartcar.sdk.Vehicle
-
Send request to the /vin endpoint


Loading...
Created Dudes:
Max Dudes:
Control Swaps:
Individual Steps:
Total Steps:
Stuck? Try
starting over
.


Building an Application with Angular
TODO
- Make a StackBlitz example
I will be going through the motions of creating a service in Angular
Updated: 06/23/2019
Angular CLI: 8.0.3
Node: 10.13.0
Angular: 8.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.3
@angular-devkit/build-angular 0.800.3
@angular-devkit/build-optimizer 0.800.3
@angular-devkit/build-webpack 0.800.3
@angular-devkit/core 8.0.3
@angular-devkit/schematics 8.0.3
@angular/cli 8.0.3
@ngtools/webpack 8.0.3
@schematics/angular 8.0.3
@schematics/update 0.800.3
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Create a Logging Class
The first thing I like to do when creating an Angular project is to
create a common logging utility. You may call it whatever you like
but for the sake of this tutorial FileAware.
All classes will extend this class. It can become tricky if you have other
extended extended files. As an alternative you may just add this as a
variable in the class using it and call it a log file.
{{ i }}{{ part.content }}
{{ message }}


Success!
Welcome to my blog.
Danger!
This is a danger.
Info!
This is a info.
Warnning!
This is a warnning.
Important!
This is a important action.
Secondary!
This is a Secondary action.

This is a post title
技术


Hi,
Beatriz
You are applying for
${{selected_premium_amount/1000}}K
of life insurence coverage for
{{seleted_premium_span}}
years
About You
Your Health
Your Beneficlaries
Please respond to all health questions
{{q.sequence}}. {{q.text}}
Yes
No
{{p.sub_questions[k].ans[0].text}}
{{p.sub_questions[k].ans[1].text}}
{{p.sub_questions[k].ans[2].text}}
{{j.text}}
{{p.sub_questions[k].odd_ans[$index].text}}