I HAVE endeavoured in this Ghostly little book, to raise the Ghost
of an Idea, which shall not put my readers out of humour with themselves, with each
other, with the season, or with me. May it haunt their houses pleasantly, and no
one wish to lay it.
Their faithful Friend and Servant,
C. D.
December, 1843.
Marley was dead: to begin with. There is no doubt whatever about that. The register of his burial was signed by the clergyman, the clerk, the undertaker, and the chief mourner. Scrooge signed it: and Scrooge’s name was good upon ’Change, for anything he chose to put his hand to. Old Marley was as dead as a door-nail.
Mind! I don’t mean to say that I know, of my own knowledge, what there is particularly dead about a door-nail. I might have been inclined, myself, to regard a coffin-nail as the deadest piece of ironmongery in the trade. But the wisdom of our ancestors is in the simile; and my unhallowed hands shall not disturb it, or the Country’s done for. You will therefore permit me to repeat, emphatically, that Marley was as dead as a door-nail.
Scrooge knew he was dead? Of course he did. How could it be otherwise? Scrooge and he were partners for I don’t know how many years. Scrooge was his sole executor, his sole administrator, his sole assign, his sole residuary legatee, his sole friend, and sole mourner. And even Scrooge was not so dreadfully cut up by the sad event, but that he was an excellent man of business on the very day of the funeral, and solemnised it with an undoubted bargain.
The mention of Marley’s funeral brings me back to the point I started from. There is no doubt that Marley was dead. This must be distinctly understood, or nothing wonderful can come of the story I am going to relate. If we were not perfectly convinced that Hamlet’s Father died before the play began, there would be nothing more remarkable in his taking a stroll at night, in an easterly wind, upon his own ramparts, than there would be in any other middle-aged gentleman rashly turning out after dark in a breezy spot—say Saint Paul’s Churchyard for instance—literally to astonish his son’s weak mind.
Scrooge never painted out Old Marley’s name. There it stood, years afterwards, above the warehouse door: Scrooge and Marley. The firm was known as Scrooge and Marley. Sometimes people new to the business called Scrooge Scrooge, and sometimes Marley, but he answered to both names. It was all the same to him.
Oh! But he was a tight-fisted hand at the grindstone, Scrooge! a squeezing, wrenching, grasping, scraping, clutching, covetous, old sinner! Hard and sharp as flint, from which no steel had ever struck out generous fire; secret, and self-contained, and solitary as an oyster. The cold within him froze his old features, nipped his pointed nose, shrivelled his cheek, stiffened his gait; made his eyes red, his thin lips blue; and spoke out shrewdly in his grating voice. A frosty rime was on his head, and on his eyebrows, and his wiry chin. He carried his own low temperature always about with him; he iced his office in the dog-days; and didn’t thaw it one degree at Christmas.
External heat and cold had little influence on Scrooge. No warmth could warm, no wintry weather chill him. No wind that blew was bitterer than he, no falling snow was more intent upon its purpose, no pelting rain less open to entreaty. Foul weather didn’t know where to have him. The heaviest rain, and snow, and hail, and sleet, could boast of the advantage over him in only one respect. They often “came down” handsomely, and Scrooge never did.
Nobody ever stopped him in the street to say, with gladsome looks, “My dear Scrooge, how are you? When will you come to see me?” No beggars implored him to bestow a trifle, no children asked him what it was o’clock, no man or woman ever once in all his life inquired the way to such and such a place, of Scrooge. Even the blind men’s dogs appeared to know him; and when they saw him coming on, would tug their owners into doorways and up courts; and then would wag their tails as though they said, “No eye at all is better than an evil eye, dark master!”
But what did Scrooge care! It was the very thing he liked. To edge his way along the crowded paths of life, warning all human sympathy to keep its distance, was what the knowing ones call “nuts” to Scrooge.
Once upon a time—of all the good days in the year, on Christmas Eve—old Scrooge sat busy in his counting-house. It was cold, bleak, biting weather: foggy withal: and he could hear the people in the court outside, go wheezing up and down, beating their hands upon their breasts, and stamping their feet upon the pavement stones to warm them. The city clocks had only just gone three, but it was quite dark already—it had not been light all day—and candles were flaring in the windows of the neighbouring offices, like ruddy smears upon the palpable brown air. The fog came pouring in at every chink and keyhole, and was so dense without, that although the court was of the narrowest, the houses opposite were mere phantoms. To see the dingy cloud come drooping down, obscuring everything, one might have thought that Nature lived hard by, and was brewing on a large scale.
The door of Scrooge’s counting-house was open that he might keep his eye upon his clerk, who in a dismal little cell beyond, a sort of tank, was copying letters. Scrooge had a very small fire, but the clerk’s fire was so very much smaller that it looked like one coal. But he couldn’t replenish it, for Scrooge kept the coal-box in his own room; and so surely as the clerk came in with the shovel, the master predicted that it would be necessary for them to part. Wherefore the clerk put on his white comforter, and tried to warm himself at the candle; in which effort, not being a man of a strong imagination, he failed.
“A merry Christmas, uncle! God save you!” cried a cheerful voice. It was the voice of Scrooge’s nephew, who came upon him so quickly that this was the first intimation he had of his approach.
“Bah!” said Scrooge, “Humbug!”
He had so heated himself with rapid walking in the fog and frost, this nephew of Scrooge’s, that he was all in a glow; his face was ruddy and handsome; his eyes sparkled, and his breath smoked again.
“Christmas a humbug, uncle!” said Scrooge’s nephew. “You don’t mean that, I am sure?”
“I do,” said Scrooge. “Merry Christmas! What right have you to be merry? What reason have you to be merry? You’re poor enough.”
“Come, then,” returned the nephew gaily. “What right have you to be dismal? What reason have you to be morose? You’re rich enough.”
Scrooge having no better answer ready on the spur of the moment, said, “Bah!” again; and followed it up with “Humbug.”
“Don’t be cross, uncle!” said the nephew.
“What else can I be,” returned the uncle, “when I live in such a world of fools as this? Merry Christmas! Out upon merry Christmas! What’s Christmas time to you but a time for paying bills without money; a time for finding yourself a year older, but not an hour richer; a time for balancing your books and having every item in ’em through a round dozen of months presented dead against you?  He should!”
“Uncle!” pleaded the nephew.
“Nephew!” returned the uncle sternly, “keep Christmas in your own way, and let me keep it in mine.”
“Keep it!” repeated Scrooge’s nephew. “But you don’t keep it.”
“Let me leave it alone, then,” said Scrooge. “Much good may it do you! Much good it has ever done you!”
“There are many things from which I might have derived good, by which I have not profited, I dare say,” returned the nephew. “Christmas among the rest. But I am sure I have always thought of Christmas time, when it has come round—apart from the veneration due to its sacred name and origin, if anything belonging to it can be apart from that—as a good time; a kind, forgiving, charitable, pleasant time; the only time I know of, in the long calendar of the year, when men and women seem by one consent to open their shut-up hearts freely, and to think of people below them as if they really were fellow-passengers to the grave, and not another race of creatures bound on other journeys. And therefore, uncle, though it has never put a scrap of gold or silver in my pocket, I believe that it has done me good, and will do me good; and I say, God bless it!”
The clerk in the Tank involuntarily applauded. Becoming immediately sensible of the impropriety, he poked the fire, and extinguished the last frail spark for ever.
“Let me hear another sound from you,” said Scrooge, “and you’ll keep your Christmas by losing your situation! You’re quite a powerful speaker, sir,” he added, turning to his nephew.  Come! Dine with us to-morrow.”
Scrooge said that he would see him—yes, indeed he did. He went the whole length of the expression, and said that he would see him in that extremity first.
“But why?” cried Scrooge’s nephew. “Why?”
“Why did you get married?” said Scrooge.
 “Good afternoon!”
“Nay, uncle, but you never came to see me before that happened. Why give it as a reason for not coming now?”
“Good afternoon,” said Scrooge.
“I want nothing from you; I ask nothing of you; why cannot we be friends?”
“Good afternoon,” said Scrooge.
“I am sorry, with all my heart, to find you so resolute. We have never had any quarrel, to which I have been a party. But I have made the trial in homage to Christmas, and I’ll keep my Christmas humour to the last. So A Merry Christmas, uncle!”
“Good afternoon!” said Scrooge.
“And A Happy New Year!”
“Good afternoon!” said Scrooge.
His nephew left the room without an angry word, notwithstanding. He stopped at the outer door to bestow the greetings of the season on the clerk, who, cold as he was, was warmer than Scrooge; for he returned them cordially.
“There’s another fellow,” muttered Scrooge; who overheard him: “my clerk, with fifteen shillings a week, and a wife and family, talking about a merry Christmas. I’ll retire to Bedlam.”
This lunatic, in letting Scrooge’s nephew out, had let two other people in. They were portly gentlemen, pleasant to behold, and now stood, with their hats off, in Scrooge’s office. They had books and papers in their hands, and bowed to him.
“Scrooge and Marley’s, I believe,” said one of the gentlemen, referring to his list. “Have I the pleasure of addressing Mr. Scrooge, or Mr. Marley?”
“Mr. Marley has been dead these seven years,” Scrooge replied. “He died seven years ago, this very night.”
“We have no doubt his liberality is well represented by his surviving partner,” said the gentleman, presenting his credentials.
It certainly was; for they had been two kindred spirits. At the ominous word “liberality,” Scrooge frowned, and shook his head, and handed the credentials back.
“At this festive season of the year, Mr. Scrooge,” said the gentleman, taking up a pen, “it is more than usually desirable that we should make some slight provision for the Poor and destitute, who suffer greatly at the present time. Many thousands are in want of common necessaries; hundreds of thousands are in want of common comforts, sir.”
“Are there no prisons?” asked Scrooge.
“Plenty of prisons,” said the gentleman, laying down the pen again.
“And the Union workhouses?” demanded Scrooge.  Still,” returned the gentleman, “I wish I could say they were not.”
“The Treadmill and the Poor Law are in full vigour, then?” said Scrooge.
“Both very busy, sir.”
“Oh! I was afraid, from what you said at first, that something had occurred to stop them in their useful course,” said Scrooge. “I’m very glad to hear it.”
“Under the impression that they scarcely furnish Christian cheer of mind or body to the multitude,” returned the gentleman, “a few of us are endeavouring to raise a fund to buy the Poor some meat and drink, and means of warmth. We choose this time, because it is a time, of all others, when Want is keenly felt, and Abundance rejoices. What shall I put you down for?”
“Nothing!” Scrooge replied.
“You wish to be anonymous?”
“I wish to be left alone,” said Scrooge. “Since you ask me what I wish, gentlemen, that is my answer. I don’t make merry myself at Christmas and I can’t afford to make idle people merry. I help to support the establishments I have mentioned—they cost enough; and those who are badly off must go there.”
“Many can’t go there; and many would rather die.”
“If they would rather die,” said Scrooge, “they had better do it, and decrease the surplus population. Besides—excuse me—I don’t know that.”
“But you might know it,” observed the gentleman.
“It’s not my business,” Scrooge returned. “It’s enough for a man to understand his own business, and not to interfere with other people’s. Mine occupies me constantly. Good afternoon, gentlemen!”
Seeing clearly that it would be useless to pursue their point, the gentlemen withdrew. Scrooge resumed his labours with an improved opinion of himself, and in a more facetious temper than was usual with him.
Meanwhile the fog and darkness thickened so, that people ran about with flaring links, proffering their services to go before horses in carriages, and conduct them on their way. The ancient tower of a church, whose gruff old bell was always peeping slily down at Scrooge out of a Gothic window in the wall, became invisible, and struck the hours and quarters in the clouds, with tremulous vibrations afterwards as if its teeth were chattering in its frozen head up there. The cold became intense. In the main street, at the corner of the court, some labourers were repairing the gas-pipes, and had lighted a great fire in a brazier, round which a party of ragged men and boys were gathered: warming their hands and winking their eyes before the blaze in rapture. The water-plug being left in solitude, its overflowings sullenly congealed, and turned to misanthropic ice. The brightness of the shops where holly sprigs and berries crackled in the lamp heat of the windows, made pale faces ruddy as they passed. Poulterers’ and grocers’ trades became a splendid joke: a glorious pageant, with which it was next to impossible to believe that such dull principles as bargain and sale had anything to do. The Lord Mayor, in the stronghold of the mighty Mansion House, gave orders to his fifty cooks and butlers to keep Christmas as a Lord Mayor’s household should; and even the little tailor, whom he had fined five shillings on the previous Monday for being drunk and bloodthirsty in the streets, stirred up to-morrow’s pudding in his garret, while his lean wife and the baby sallied out to buy the beef.
Foggier yet, and colder. Piercing, searching, biting cold. If the good Saint Dunstan had but nipped the Evil Spirit’s nose with a touch of such weather as that, instead of using his familiar weapons, then indeed he would have roared to lusty purpose. The owner of one scant young nose, gnawed and mumbled by the hungry cold as bones are gnawed by dogs, stooped down at Scrooge’s keyhole to regale him with a Christmas carol: but at the first sound of
|
“God bless you, merry gentleman! May nothing you dismay!” |
Scrooge seized the ruler with such energy of action, that the singer fled in terror, leaving the keyhole to the fog and even more congenial frost.
At length the hour of shutting up the counting-house arrived. With an ill-will Scrooge dismounted from his stool, and tacitly admitted the fact to the expectant clerk in the Tank, who instantly snuffed his candle out, and put on his hat.
“You’ll want all day to-morrow, I suppose?” said Scrooge.
“If quite convenient, sir.”
“It’s not convenient,” said Scrooge, “and it’s not fair. If I was to stop half-a-crown for it, you’d think yourself ill-used, I’ll be bound?”
The clerk smiled faintly.
“And yet,” said Scrooge, “you don’t think me ill-used, when I pay a day’s wages for no work.”
The clerk observed that it was only once a year.
“A poor excuse for picking a man’s pocket every twenty-fifth of December!” said Scrooge, buttoning his great-coat to the chin. “But I suppose you must have the whole day. Be here all the earlier next morning.”
The clerk promised that he would; and Scrooge walked out with a growl. The office was closed in a twinkling, and the clerk, with the long ends of his white comforter dangling below his waist (for he boasted no great-coat), went down a slide on Cornhill, at the end of a lane of boys, twenty times, in honour of its being Christmas Eve, and then ran home to Camden Town as hard as he could pelt, to play at blindman’s-buff.
Scrooge took his melancholy dinner in his usual melancholy tavern; and having read all the newspapers, and beguiled the rest of the evening with his banker’s-book, went home to bed. He lived in chambers which had once belonged to his deceased partner. They were a gloomy suite of rooms, in a lowering pile of building up a yard, where it had so little business to be, that one could scarcely help fancying it must have run there when it was a young house, playing at hide-and-seek with other houses, and forgotten the way out again. It was old enough now, and dreary enough, for nobody lived in it but Scrooge, the other rooms being all let out as offices. The yard was so dark that even Scrooge, who knew its every stone, was fain to grope with his hands. The fog and frost so hung about the black old gateway of the house, that it seemed as if the Genius of the Weather sat in mournful meditation on the threshold.
Now, it is a fact, that there was nothing at all particular about the knocker on the door, except that it was very large. It is also a fact, that Scrooge had seen it, night and morning, during his whole residence in that place; also that Scrooge had as little of what is called fancy about him as any man in the city of London, even including—which is a bold word—the corporation, aldermen, and livery. Let it also be borne in mind that Scrooge had not bestowed one thought on Marley, since his last mention of his seven years’ dead partner that afternoon. And then let any man explain to me, if he can, how it happened that Scrooge, having his key in the lock of the door, saw in the knocker, without its undergoing any intermediate process of change—not a knocker, but Marley’s face.
Marley’s face. It was not in impenetrable shadow as the other objects in the yard were, but had a dismal light about it, like a bad lobster in a dark cellar. It was not angry or ferocious, but looked at Scrooge as Marley used to look: with ghostly spectacles turned up on its ghostly forehead. The hair was curiously stirred, as if by breath or hot air; and, though the eyes were wide open, they were perfectly motionless. That, and its livid colour, made it horrible; but its horror seemed to be in spite of the face and beyond its control, rather than a part of its own expression.
As Scrooge looked fixedly at this phenomenon, it was a knocker again.
To say that he was not startled, or that his blood was not conscious of a terrible sensation to which it had been a stranger from infancy, would be untrue. But he put his hand upon the key he had relinquished, turned it sturdily, walked in, and lighted his candle.
He did pause, with a moment’s irresolution, before he shut the door; and he did look cautiously behind it first, as if he half expected to be terrified with the sight of Marley’s pigtail sticking out into the hall. But there was nothing on the back of the door, except the screws and nuts that held the knocker on, so he said “Pooh, pooh!” and closed it with a bang.
The sound resounded through the house like thunder. Every room above, and every cask in the wine-merchant’s cellars below, appeared to have a separate peal of echoes of its own. Scrooge was not a man to be frightened by echoes. He fastened the door, and walked across the hall, and up the stairs; slowly too: trimming his candle as he went.
You may talk vaguely about driving a coach-and-six up a good old flight of stairs, or through a bad young Act of Parliament; but I mean to say you might have got a hearse up that staircase, and taken it broadwise, with the splinter-bar towards the wall and the door towards the balustrades: and done it easy. There was plenty of width for that, and room to spare; which is perhaps the reason why Scrooge thought he saw a locomotive hearse going on before him in the gloom. Half-a-dozen gas-lamps out of the street wouldn’t have lighted the entry too well, so you may suppose that it was pretty dark with Scrooge’s dip.
Up Scrooge went, not caring a button for that. Darkness is cheap, and Scrooge liked it. But before he shut his heavy door, he walked through his rooms to see that all was right. He had just enough recollection of the face to desire to do that.
Sitting-room, bedroom, lumber-room. All as they should be. Nobody under the table, nobody under the sofa; a small fire in the grate; spoon and basin ready; and the little saucepan of gruel (Scrooge had a cold in his head) upon the hob. Nobody under the bed; nobody in the closet; nobody in his dressing-gown, which was hanging up in a suspicious attitude against the wall. Lumber-room as usual. Old fire-guard, old shoes, two fish-baskets, washing-stand on three legs, and a poker.
Quite satisfied, he closed his door, and locked himself in; double-locked himself in, which was not his custom.
 He was obliged to sit close to it, and brood over it, before he could extract the least sensation of warmth from such a handful of fuel. The fireplace was an old one, built by some Dutch merchant long ago, and paved all round with quaint Dutch tiles, designed to illustrate the Scriptures. There were Cains and Abels, Pharaoh’s daughters; Queens of Sheba, Angelic messengers descending through the air on clouds like feather-beds, Abrahams, Belshazzars, Apostles putting off to sea in butter-boats, hundreds of figures to attract his thoughts; and yet that face of Marley, seven years dead, came like the ancient Prophet’s rod, and swallowed up the whole. If each smooth tile had been a blank at first, with power to shape some picture on its surface from the disjointed fragments of his thoughts, there would have been a copy of old Marley’s head on every one.
“Humbug!” said Scrooge; and walked across the room.
After several turns, he sat down again. As he threw his head back in the chair, his glance happened to rest upon a bell, a disused bell, that hung in the room, and communicated for some purpose now forgotten with a chamber in the highest story of the building. It was with great astonishment, and with a strange, inexplicable dread, that as he looked, he saw this bell begin to swing. It swung so softly in the outset that it scarcely made a sound; but soon it rang out loudly, and so did every bell in the house.
This might have lasted half a minute, or a minute, but it seemed an hour. The bells ceased as they had begun, together. They were succeeded by a clanking noise, deep down below; as if some person were dragging a heavy chain over the casks in the wine-merchant’s cellar. Scrooge then remembered to have heard that ghosts in haunted houses were described as dragging chains.
The cellar-door flew open with a booming sound, and then he heard the noise much louder, on the floors below; then coming up the stairs; then coming straight towards his door.
“It’s humbug still!” said Scrooge. “I won’t believe it.”
His colour changed though, when, without a pause, it came on through the heavy door, and passed into the room before his eyes. Upon its coming in, the dying flame leaped up, as though it cried, “I know him; Marley’s Ghost!” and fell again.
The same face: the very same.  The chain he drew was clasped about his middle. It was long, and wound about him like a tail; and it was made (for Scrooge observed it closely) of cash-boxes, keys, padlocks, ledgers, deeds, and heavy purses wrought in steel. His body was transparent; so that Scrooge, observing him, and looking through his waistcoat, could see the two buttons on his coat behind.
Scrooge had often heard it said that Marley had no bowels, but he had never believed it until now.
No, nor did he believe it even now. Though he looked the phantom through and through, and saw it standing before him; though he felt the chilling influence of its death-cold eyes; and marked the very texture of the folded kerchief bound about its head and chin, which wrapper he had not observed before; he was still incredulous, and fought against his senses.
“How now!” said Scrooge, caustic and cold as ever. “What do you want with me?”
“Much!”—Marley’s voice, no doubt about it.
“Who are you?”
“Ask me who I was.”
“Who were you then?” said Scrooge, raising his voice. “You’re particular, for a shade.” He was going to say “to a shade,” but substituted this, as more appropriate.
“In life I was your partner, Jacob Marley.”
“Can you—can you sit down?” asked Scrooge, looking doubtfully at him.
“I can.”
“Do it, then.”
Scrooge asked the question, because he didn’t know whether a ghost so transparent might find himself in a condition to take a chair; and felt that in the event of its being impossible, it might involve the necessity of an embarrassing explanation. But the ghost sat down on the opposite side of the fireplace, as if he were quite used to it.
“You don’t believe in me,” observed the Ghost.
“I don’t,” said Scrooge.
“What evidence would you have of my reality beyond that of your senses?”
“I don’t know,” said Scrooge.
“Why do you doubt your senses?”
“Because,” said Scrooge, “a little thing affects them. A slight disorder of the stomach makes them cheats. You may be an undigested bit of beef, a blot of mustard, a crumb of cheese, a fragment of an underdone potato. There’s more of gravy than of grave about you, whatever you are!”
Scrooge was not much in the habit of cracking jokes, nor did he feel, in his heart, by any means waggish then. The truth is, that he tried to be smart, as a means of distracting his own attention, and keeping down his terror; for the spectre’s voice disturbed the very marrow in his bones.
To sit, staring at those fixed glazed eyes, in silence for a moment, would play, Scrooge felt, the very deuce with him. There was something very awful, too, in the spectre’s being provided with an infernal atmosphere of its own. Scrooge could not feel it himself, but this was clearly the case; for though the Ghost sat perfectly motionless, its hair, and skirts, and tassels, were still agitated as by the hot vapour from an oven.
“You see this toothpick?” said Scrooge, returning quickly to the charge, for the reason just assigned; and wishing, though it were only for a second, to divert the vision’s stony gaze from himself.
“I do,” replied the Ghost.
“You are not looking at it,” said Scrooge.
“But I see it,” said the Ghost, “notwithstanding.”
“Well!” returned Scrooge, “I have but to swallow this, and be for the rest of my days persecuted by a legion of goblins, all of my own creation. Humbug, I tell you! humbug!”
At this the spirit raised a frightful cry, and shook its chain with such a dismal and appalling noise, that Scrooge held on tight to his chair, to save himself from falling in a swoon. But how much greater was his horror, when the phantom taking off the bandage round its head, as if it were too warm to wear indoors, its lower jaw dropped down upon its breast!
Scrooge fell upon his knees, and clasped his hands before his face.
“Mercy!” he said. “Dreadful apparition, why do you trouble me?”
“Man of the worldly mind!” replied the Ghost, “do you believe in me or not?”
“I do,” said Scrooge. “I must. But why do spirits walk the earth, and why do they come to me?”
“It is required of every man,” the Ghost returned, “that the spirit within him should walk abroad among his fellowmen, and travel far and wide; and if that spirit goes not forth in life, it is condemned to do so after death. It is doomed to wander through the world—oh, woe is me!—and witness what it cannot share, but might have shared on earth, and turned to happiness!”
Again the spectre raised a cry, and shook its chain and wrung its shadowy hands.
“You are fettered,” said Scrooge, trembling. “Tell me why?”
“I wear the chain I forged in life,” replied the Ghost. “I made it link by link, and yard by yard; I girded it on of my own free will, and of my own free will I wore it. Is its pattern strange to you?”
Scrooge trembled more and more.
“Or would you know,” pursued the Ghost, “the weight and length of the strong coil you bear yourself? It was full as heavy and as long as this, seven Christmas Eves ago. You have laboured on it, since. It is a ponderous chain!”
Scrooge glanced about him on the floor, in the expectation of finding himself surrounded by some fifty or sixty fathoms of iron cable: but he could see nothing.
“Jacob,” he said, imploringly. “Old Jacob Marley, tell me more. Speak comfort to me, Jacob!”
“I have none to give,” the Ghost replied. “It comes from other regions, Ebenezer Scrooge, and is conveyed by other ministers, to other kinds of men. Nor can I tell you what I would. A very little more is all permitted to me. I cannot rest, I cannot stay, I cannot linger anywhere. My spirit never walked beyond our counting-house—mark me!—in life my spirit never roved beyond the narrow limits of our money-changing hole; and weary journeys lie before me!”
It was a habit with Scrooge, whenever he became thoughtful, to put his hands in his breeches pockets. Pondering on what the Ghost had said, he did so now, but without lifting up his eyes, or getting off his knees.
“You must have been very slow about it, Jacob,” Scrooge observed, in a business-like manner, though with humility and deference.
“Slow!” the Ghost repeated.
“Seven years dead,” mused Scrooge. “And travelling all the time!”
“The whole time,” said the Ghost. “No rest, no peace. Incessant torture of remorse.”
“You travel fast?” said Scrooge.
“On the wings of the wind,” replied the Ghost.
“You might have got over a great quantity of ground in seven years,” said Scrooge.
The Ghost, on hearing this, set up another cry, and clanked its chain so hideously in the dead silence of the night, that the Ward would have been justified in indicting it for a nuisance.
“Oh! captive, bound, and double-ironed,” cried the phantom, “not to know, that ages of incessant labour by immortal creatures, for this earth must pass into eternity before the good of which it is susceptible is all developed. Not to know that any Christian spirit working kindly in its little sphere, whatever it may be, will find its mortal life too short for its vast means of usefulness. Not to know that no space of regret can make amends for one life’s opportunity misused! Yet such was I! Oh! such was I!”
“But you were always a good man of business, Jacob,” faltered Scrooge, who now began to apply this to himself.
“Business!” cried the Ghost, wringing its hands again. “Mankind was my business. The common welfare was my business; charity, mercy, forbearance, and benevolence, were, all, my business. The dealings of my trade were but a drop of water in the comprehensive ocean of my business!”
It held up its chain at arm’s length, as if that were the cause of all its unavailing grief, and flung it heavily upon the ground again.
“At this time of the rolling year,” the spectre said, “I suffer most. Why did I walk through crowds of fellow-beings with my eyes turned down, and never raise them to that blessed Star which led the Wise Men to a poor abode! Were there no poor homes to which its light would have conducted me!”
Scrooge was very much dismayed to hear the spectre going on at this rate, and began to quake exceedingly.
“Hear me!” cried the Ghost. “My time is nearly gone.”
“I will,” said Scrooge. “But don’t be hard upon me! Don’t be flowery, Jacob! Pray!”
“How it is that I appear before you in a shape that you can see, I may not tell. I have sat invisible beside you many and many a day.”
It was not an agreeable idea. Scrooge shivered, and wiped the perspiration from his brow.
“That is no light part of my penance,” pursued the Ghost. “I am here to-night to warn you, that you have yet a chance and hope of escaping my fate. A chance and hope of my procuring, Ebenezer.”
“You were always a good friend to me,” said Scrooge. “Thank’ee!”
“You will be haunted,” resumed the Ghost, “by Three Spirits.”
Scrooge’s countenance fell almost as low as the Ghost’s had done.
“Is that the chance and hope you mentioned, Jacob?” he demanded, in a faltering voice.
“It is.”
“I—I think I’d rather not,” said Scrooge.
“Without their visits,” said the Ghost, “you cannot hope to shun the path I tread. Expect the first to-morrow, when the bell tolls One.”
“Couldn’t I take ’em all at once, and have it over, Jacob?” hinted Scrooge.
“Expect the second on the next night at the same hour. The third upon the next night when the last stroke of Twelve has ceased to vibrate. Look to see me no more; and look that, for your own sake, you remember what has passed between us!”
When it had said these words, the spectre took its wrapper from the table, and bound it round its head, as before. Scrooge knew this, by the smart sound its teeth made, when the jaws were brought together by the bandage. He ventured to raise his eyes again, and found his supernatural visitor confronting him in an erect attitude, with its chain wound over and about its arm.
The apparition walked backward from him; and at every step it took, the window raised itself a little, so that when the spectre reached it, it was wide open.
It beckoned Scrooge to approach, which he did. When they were within two paces of each other, Marley’s Ghost held up its hand, warning him to come no nearer. Scrooge stopped.
Not so much in obedience, as in surprise and fear: for on the raising of the hand, he became sensible of confused noises in the air; incoherent sounds of lamentation and regret; wailings inexpressibly sorrowful and self-accusatory. The spectre, after listening for a moment, joined in the mournful dirge; and floated out upon the bleak, dark night.
Scrooge followed to the window: desperate in his curiosity. He looked out.
The air was filled with phantoms, wandering hither and thither in restless haste, and moaning as they went. Every one of them wore chains like Marley’s Ghost; some few (they might be guilty governments) were linked together; none were free. Many had been personally known to Scrooge in their lives. He had been quite familiar with one old ghost, in a white waistcoat, with a monstrous iron safe attached to its ankle, who cried piteously at being unable to assist a wretched woman with an infant, whom it saw below, upon a door-step. The misery with them all was, clearly, that they sought to interfere, for good, in human matters, and had lost the power for ever.
Whether these creatures faded into mist, or mist enshrouded them, he could not tell. But they and their spirit voices faded together; and the night became as it had been when he walked home.
Scrooge closed the window, and examined the door by which the Ghost had entered.
It was double-locked, as he had locked it with his own hands, and the bolts were
undisturbed. He tried to say “Humbug!” but stopped at the first syllable.
And being, from the emotion he had undergone, or the fatigues of the day, or his
glimpse of the Invisible World, or the dull conversation of the Ghost, or the lateness
of the hour, much in need of repose; went straight to bed, without undressing, and
fell asleep upon the instant.
When Scrooge awoke, it was so dark, that looking out of bed, he could scarcely distinguish the transparent window from the opaque walls of his chamber. He was endeavouring to pierce the darkness with his ferret eyes, when the chimes of a neighbouring church struck the four quarters. So he listened for the hour.
To his great astonishment the heavy bell went on from six to seven, and from seven to eight, and regularly up to twelve; then stopped. Twelve! It was past two when he went to bed. The clock was wrong. An icicle must have got into the works. Twelve!
He touched the spring of his repeater, to correct this most preposterous clock.
“Why, it isn’t possible,” said Scrooge, “that I can have slept through a whole day and far into another night. It isn’t possible that anything has happened to the sun, and this is twelve at noon!”
The idea being an alarming one, he scrambled out of bed, and groped his way to the window. He was obliged to rub the frost off with the sleeve of his dressing-gown before he could see anything; and could see very little then. All he could make out was, that it was still very foggy and extremely cold, and that there was no noise of people running to and fro, and making a great stir, as there unquestionably would have been if night had beaten off bright day, and taken possession of the world. This was a great relief, because “three days after sight of this First of Exchange pay to Mr. Ebenezer Scrooge or his order,” and so forth, would have become a mere United States’ security if there were no days to count by.
Scrooge went to bed again, and thought, and thought, and thought it over and over and over, and could make nothing of it. The more he thought, the more perplexed he was; and the more he endeavoured not to think, the more he thought.
Marley’s Ghost bothered him exceedingly. Every time he resolved within himself, after mature inquiry, that it was all a dream, his mind flew back again, like a strong spring released, to its first position, and presented the same problem to be worked all through, “Was it a dream or not?”
Scrooge lay in this state until the chime had gone three quarters more, when he remembered, on a sudden, that the Ghost had warned him of a visitation when the bell tolled one. He resolved to lie awake until the hour was passed; and, considering that he could no more go to sleep than go to Heaven, this was perhaps the wisest resolution in his power.
The quarter was so long, that he was more than once convinced he must have sunk into a doze unconsciously, and missed the clock. At length it broke upon his listening ear.
“Ding, dong!”
“A quarter past,” said Scrooge, counting.
“Ding, dong!”
“Half-past!” said Scrooge.
“Ding, dong!”
“A quarter to it,” said Scrooge.
“Ding, dong!”
“The hour itself,” said Scrooge, triumphantly, “and nothing else!”
He spoke before the hour bell sounded, which it now did with a deep, dull, hollow, melancholy One. Light flashed up in the room upon the instant, and the curtains of his bed were drawn.
Read the entire book at Project Gutenberg ;)


#assign n0_intro="active"> <#assign n1_queries="active"> <#assign dtoQuery="active">
We can specify the query as SQL and have that automatically mapped into DTO beans.
In typical recent applications around 10%
of queries were DTO queries.
public class CustomerDto { Integer id; String name; ... // getters & setters } List<|CustomerDto> beans = DB.findDto(CustomerDto.class, "select id, name from customer where name = ?") .setParameter(1, "Rob") .findList();
class CustomerDto { var id: Int = 0 var name: String? = null } val beans = DB.findDto(CustomerDto::class.java, "select id, name from customer where name = ?") .setParameter(1, "Rob") .findList()


Polynomial¶
Operations involving multivariate polynomials
-
class
effective_quadratures.polynomial.
Polynomial
(uq_parameters, index_sets=None)¶ This class defines a polynomial and its associated functions.
Parameters: - of Parameters uq_parameters (array) – A list of Parameters
- index_set (IndexSet) – An instance of the IndexSet class, in case the user wants to overwrite the indices that are obtained using the orders of the univariate parameters in Parameters uq_parameters. The latter corresponds to a tensor grid index set and is the default option if no index_set parameter input is given.
Sample declarations
>> s = Parameter(lower=-2, upper=2, param_type='Uniform', points=4) >> T = IndexSet('Total order', [3,3]) >> polyObject = Polynomial([s,s],T) # basis is defined by T >> s = Parameter(lower=-2, upper=2, param_type='Uniform') >> polyObject = Polynomial([s,s]) # Tensor basis is used
-
getIndexSet
()¶ Returns the index set used for computing the multivariate polynomials
Parameters: self (Polynomial) – An instance of the Polynomial class Returns: index_set, cardinality-by-dimension matrix which is obtained by calling the getIndexSet() routine of the IndexSet object Return type: ndarray Sample declaration
>> s = Parameter(lower=-2, upper=2, param_type='Uniform') >> polyObject = Polynomial([s,s]) >> I = polyObject.getIndexSet()
-
getMultivariatePolynomial
(stackOfPoints, indexsets=None)¶ Returns multivariate orthonormal polynomials and their derivatives
Parameters: self (Polynomial) – An instance of the Polynomial class Param: ndarray stackOfPoints: An m-by-d matrix that contains points along which the polynomials (and their derivatives) must be evaluated at; here m represents the total number of points across d dimensions. Note that the derivatives are only computed if the Parameters have the derivative_flag set to 1. Returns: polynomial, m-by-N matrix where m are the number of points at which the multivariate orthonormal polynomial must be evaluated at, and N is the cardinality of the index set used when declaring a Polynomial object. Return type: ndarray Returns: derivatives, m-by-N matrix for each cell (total cells are d) where m are the number of points at which the multivariate orthonormal polynomial must be evaluated at, and N is the cardinality of the index set used when declaring a Polynomial object. Return type: cell object Sample declaration
>> s = Parameter(lower=-1, upper=1, param_type='Uniform', points=2, derivative_flag=1) >> uq_parameters = [s,s] >> uq = Polynomial(uq_parameters) >> pts, x1, x2 = utils.meshgrid(-1.0, 1.0, 10, 10) >> P , Q = uq.getMultivariatePolynomial(pts)
-
getPointsAndWeights
(override_orders=None)¶ Returns the nD Gaussian quadrature points and weights based on the recurrence coefficients of each Parameter. This function computes anisotropic and isotropic tensor product rules using a series of Kronecker product operations on univariate Gauss quadrature points and weights. For details on the univariate rules, see Parameter.getLocalQuadrature()
Parameters: - self (Polynomial) – An instance of the Polynomial class
- override_orders (array) – Optional input of orders that overrides the orders defined for each Parameter. This functionality is used by the integrals function.
Returns: points, N-by-d matrix that contains the tensor grid Gauss quadrature points
Return type: ndarray
Returns: weights, 1-by-N matrix that contains the tensor grid Gauss quadrature weights
Return type: ndarray
Sample declaration
>> s = Parameter(lower=-2, upper=2, param_type='Uniform') >> polyObject = Polynomial([s,s]) >> p, w = polyObject.getPointsAndWeights()
-
getPolynomialApproximation
(function, plotting_pts, coefficients=None)¶ Returns the polynomial approximation of a function. This routine effectively multiplies the coefficients of a polynomial expansion with its corresponding basis polynomials.
Parameters: self (Polynomial) – An instance of the Polynomial class Param: callable function: The function that needs to be approximated (or interpolated) Param: ndarray plotting_pts: The points at which the polynomial approximation should be evaluated at Returns: polyapprox: The polynomial expansion of a function Return type: numpy matrix
-
getPolynomialCoefficients
(function)¶ Returns multivariate orthonormal polynomial coefficients. Depending on the choice of the index set, this function will either return a tensor grid of pseudospectral coefficients or a sparse grid using the SPAM technique by Constantine et al (2012).
Parameters: self (Polynomial) – An instance of the Polynomial class Param: callable function: The function that needs to be approximated (or interpolated) Returns: coefficients: The pseudospectral coefficients Return type: ndarray Returns: indexset: The indices used for the pseudospectral computation Return type: ndarray Returns: evaled_pts: The points at which the function was evaluated Return type: ndarray


Hi there! I'm a software engineer and U.S. expatriate who currently lives in Costa Rica.
Twitter
Microsoft 2021-03-15 —
Software Engineer II
Built big data analytics pipeline for Teams backend and improved devops processes within the wider team.
Highlights
- Built regionalized data analytics pipeline using Spark and Azure Synapse. The pipeline provides insight into provisioned Microsoft Teams customers. The pipeline processes billions of rows and considers data boundary and data privacy concerns.
- Wrote custom orchestrator/job which runs Dependabot inside our Azure Dev Ops organization. Dependabot helps maintain the Nuget packages of over 400 git repositories. To date, dependabot has submitted over 1k pull requests with dependency update recommendations.
- Leading a multi-dev project to improve deployment processes for services within our wider team. To date we have simplified builds, collected unified quality metrics, and reduced the manual steps required to deploy services to production.
Amazon 2019-03-01 — 2021-03-12
Software Development Engineer I & II
Built self service and automation solutions for Amazon's Selling Partners.
Highlights
- Built cross service automation workflows aimed at increasing the automation of internal processes and providing self service solutions to Amazon Sellers. Up to ~85% reduction in human handled support cases for certain scenarios.
- Improved developer onboarding of team's services. Reduced onboarding time for some services from hours to minutes.
- Championed team's shift to building infrastructure as code through the use of AWS CDK.
- Actively lead the deprecation of a legacy internal service with 13 client applications - 4 clients remain.
- Was promoted from SDE I to SDE II in ~19 months - which is above average for Amazon.
simMachines 2018-07-09 — 2019-03-01
Software Engineer and Data Analyst
Worked as a full stack software engineer at a fast paced machine learning startup.
Highlights
- Leader in company's transition to an automated CI/CD processes. Products are now built and deployed in minutes instead of days.
- Integral designer and developer of full stack A/B Testing project. The product uses proprietary Machine Learning models to explain the 'Why' behind customer's preferences.
Amazon 2017-07-24 — 2017-11-25
Software Development Engineer - Intern
Created internal Java microservice that allows internal applications to easily communicate with Amazon's email service.
Highlights
- Greatly simplified the existing solution that was being used to send emails from internal IT applications.
- Leveraged AWS SNS and SQS to create a highly portable and scalable service.
- Created internal documentation and metrics dashboards.
- Setup near real-time logs and alarms using AWS CloudWatch.
- After the internship, I was greenlit by the bar raiser and team to be hired as a full time SDE at Amazon.
ITCR's Chemistry School 2016-08-27 — 2017-01-13
Assistant
Assisted with the development of a cross-platform Java Swing application with the goal of processing data from a spectrophotometer.
Highlights
- Implemented encrypted file Save/Open feature for Java desktop application.
- Created a REST API using Node.js to securely expose MySQL procedures over HTTPS.
- Created complementary web app using polymer, which displays real time data from REST API and graphs data using highcharts.
Costa Rica Institute of Technology 2014-02-12 — 2018-03-09
Computer Science
Bachelor
Backend
- Java/Scala
- Python
- Node Express
- Ruby Rails
- Serverless
- In memory DB
- SQL
- NoSQL
Cloud
- AWS
- Azure
- Firebase
DevOps
- CircleCI
- AWS Cloudformation
- AWS Code Deploy
- Azure Dev Ops
- Azure Resource manager
- Gulp
- Docker
- Github
- Github Actions
Web Development
- HTML
- CSS
- JavaScript/TypeScript
- Hugo/Jekyll
- Electron
Video Game Development
- Unity Engine - C#
- PixiJS
Mobile
- Android Studio
- React Native
- Flutter
English
Native speaker
Spanish
Fluent


Percentile, threshold and time period all work together.
Every minute, the given percentile (e.g. 95)
will be calculated over the given prior time period (e.g. the last 5 minutes) and if it exceeds the given
threshold (e.g. 2000 milliseconds) then the alert will be triggered.
The threshold that will trigger the alert.
The time period over which the percentile is calculated.
Time periods with very few transactions have much less reliable percentiles, so increasing this can be used
to suppress alerts from being generated unless the time period meets this minimum transaction count.


What about connecting to a REST WebServer ? Well it’s precisely Repositories’ purpose.
Repository is a Class that provides CRUD (Create Retrieve Update Delete) methods to handle a distant Resource, held by a REST WebServer.
Repository defines only static methods, because these functionalities could be accessed from every controller in the application. It provides:
/**
* Creates a new resource.
*/
save : function(callback, data, errorCallback)
/**
* Gets a resource from its id.
*/
read : function(callback, id, errorCallback)
/**
* Updates values of an existing resource (identified by its id).
*/
update : function(callback, id, data, errorCallback)
/**
* Deletes a resource with its id.
*/
remove : function(callback, id, errorCallback)
/**
* Gets the paginated list of all existing resources.
*/
list: function(callback, page, size)
All we need to do is to declare a subclass, with the root url of your REST WebServer in a user.repository.js file. In this example, we extend the basic CRUD repository in order to specify the ROOT URL (api/user) and to add a specific method (check) that makes an ajax call to the distant webserver. Don’t forget the last bracket pair {}, that means the the methods we add are statics, like original Repository ones
define([ 'lib/repository' ], function(Repository) {
return Repository.extend("UserRepository", {
root : 'api/user/',
check : function(callback, data) {
this._post(this.root + 'check/', callback, data);
}
}, {});
});
You can easily create mock repositories by returning JSON files on the client side (mostly for read and list functions).


{{Infobox prepared food | name = Pastina | image = | caption = | alternate_name = | country = Italy | region = | creator = | course = | type = Pasta | served = | main_ingredient = Wheat flour | variations = | calories = | other = }}
Pastina ({{lang-tr|Şehriye}}) (literally "little pasta") is a variety of pasta consisting of tiny pieces of pasta available in a variety of shapes. It is the smallest type of pasta produced. It is made of wheat flour and may also include egg.
Pastina is typically used in broth soups in Italian and Turkish cuisine
{{Commonscat|Pastina}}
{{Pasta}}
{{Italy-cuisine-stub}} {{Turkey-cuisine-stub}}


2 writes to Reason
System.Management.Automation (2)
engine\hostifaces\Pipeline.cs (2)
191
Reason
= reason;
206
Reason
= pipelineStateInfo.Reason;
13 references to Reason
Microsoft.PowerShell.ConsoleHost (3)
host\msh\Executor.cs (3)
250
if (tempPipeline.PipelineStateInfo.State == PipelineState.Failed && tempPipeline.PipelineStateInfo.
Reason
!= null)
255
exceptionThrown = tempPipeline.PipelineStateInfo.
Reason
;
260
AsyncPipelineFailureHandler(tempPipeline.PipelineStateInfo.
Reason
);
System.Management.Automation (10)
engine\hostifaces\Pipeline.cs (1)
206
Reason = pipelineStateInfo.
Reason
;
engine\hostifaces\pipelinebase.cs (3)
402
else if (PipelineStateInfo.State == PipelineState.Failed && PipelineStateInfo.
Reason
!= null)
408
this.Runspace.ExecutionContext.InternalHost.UI.TranscribeResult(this.Runspace, PipelineStateInfo.
Reason
.Message);
411
throw PipelineStateInfo.
Reason
;
engine\hostifaces\PowerShell.cs (1)
209
_exceptionReason = pipelineStateInfo.
Reason
;
engine\remoting\client\Job.cs (4)
3388
&& pipeline.PipelineStateInfo.
Reason
!= null
3389
&& pipeline.PipelineStateInfo.
Reason
is not PipelineStoppedException))
3393
failureException = pipeline.PipelineStateInfo.
Reason
;
3420
errorRecord = new ErrorRecord(pipeline.PipelineStateInfo.
Reason
,
engine\remoting\commands\ReceivePSSession.cs (1)
1015
Exception reason = _remotePipeline.PipelineStateInfo.
Reason
;


- I_AM_A_SERVER - Static variable in class ec.island.IslandModel
-
- IDeepCloner - Interface in ec.util.deepclone.cloning
-
used by fast cloners to deep clone objects
- IDumpCloned - Interface in ec.util.deepclone.cloning
-
- IF_TSP_TRUE_IF_VRP_FALSE - Static variable in class ec.util.Constants
-
- IFastCloner - Interface in ec.util.deepclone.cloning
-
allows a custom cloner to be created for a specific class.
- IFreezable - Interface in ec.util.deepclone.cloning
-
- IInstantiationStrategy - Interface in ec.util.deepclone.cloning
-
- im - Variable in class ec.algorithms.ga.Evolve
-
- Immutable - Annotation Type in ec.util.deepclone.cloning
-
marks the specific class as immutable and the cloner avoids cloning it
- index - Variable in class ec.algorithms.alps.system.ALPSLayers
-
- indexes - Variable in class ec.operator.Operator
-
- Individual - Class in ec.individuals
-
- Individual() - Constructor for class ec.individuals.Individual
-
- INDIVIDUAL_CATCH_INTERVAL - Static variable in class ec.util.Constants
-
Interval between saved individuals in the population
- IndividualInterface - Interface in ec.individuals
-
- individualLayerMovements(ALPSLayers, int, Individual) - Method in class ec.algorithms.alps.replacement.ALPSReplacementStrategy
-
- INITIAL_CHROMOSOME_SIZE - Static variable in class ec.util.Constants
-
Length of input for random initialisation
- INITIAL_PHEROMONES - Static variable in class ec.util.Constants
-
the initial pheromones on the edges
starting pheromone
- InitialisationModule - Interface in ec.operator
-
- Initialise - Class in ec.operator.initialiser
-
- Initialise() - Constructor for class ec.operator.initialiser.Initialise
-
- INITIALISER - Static variable in class ec.util.Constants
-
Class name of initialiser operation.
- InitializationException - Exception in ec.exceptions
-
- InitializationException() - Constructor for exception ec.exceptions.InitializationException
-
Creates a new instance of InitializationException
- InitializationException(String) - Constructor for exception ec.exceptions.InitializationException
-
Constructor
- InitializationException(double, int, int) - Constructor for exception ec.exceptions.InitializationException
-
- InitializeParams - Class in ec.algorithms.alps.layers
-
- InitializeParams() - Constructor for class ec.algorithms.alps.layers.InitializeParams
-
- initializerFlag - Variable in class ec.algorithms.alps.layers.Layer
-
- Insertion - Class in ec.operator.mutation
-
- Insertion(String) - Constructor for class ec.operator.mutation.Insertion
-
- Instance - Class in ec.parameter
-
- Instance() - Constructor for class ec.parameter.Instance
-
- integerGene(int, int) - Method in class ec.individuals.Representation
-
Deprecated.
- interLayerMigrations(ArrayList<Layer>, Population, int) - Method in class ec.algorithms.alps.replacement.ALPSReplacementStrategy
-
- IntRep - Class in ec.individuals.representation
-
Deprecated.
- IntRep() - Constructor for class ec.individuals.representation.IntRep
-
Deprecated.
- Inversion - Class in ec.operator.mutation
-
- Inversion() - Constructor for class ec.operator.mutation.Inversion
-
- isCityInPath(int[], int) - Method in class ec.algorithms.simulatedannealing.core.Tool
-
Check if the city is in the path
- isCloneAnonymousParent() - Method in class ec.util.deepclone.cloning.Cloner
-
- isCloningEnabled() - Method in class ec.util.deepclone.cloning.Cloner
-
- isDumpClonedClasses() - Method in class ec.util.deepclone.cloning.Cloner
-
- isEvaluated() - Method in class ec.individuals.Individual
-
- isEvaluated() - Method in interface ec.individuals.IndividualInterface
-
Has the individual been evaluated
- isExistIndex(ArrayList<Integer>, String) - Static method in class ec.util.random.GenerateMask
-
- isExistIndexPareto(ArrayList<Double>, Double) - Static method in class ec.util.random.GenerateMask
-
make exhaustive search for existence of value in c1
- isFeasible(int[], ArrayList<String>) - Method in class ec.algorithms.simulatedannealing.core.Tool
-
- isFeasible(ArrayList<Gene>) - Method in class ec.individuals.Chromosome
-
- isFrozen() - Method in interface ec.util.deepclone.cloning.IFreezable
-
- IslandModel - Class in ec.island
-
- IslandModel(Properties) - Constructor for class ec.island.IslandModel
-
- isNullTransient() - Method in class ec.util.deepclone.cloning.Cloner
-
- isSatisfied(Population) - Method in class ec.operator.operations.StoppingCondition
-
- isStopFlag() - Method in class ec.algorithms.alps.layers.InitializeParams
-
- isTooLongEvalTime(long) - Method in class ec.fitnessevaluation.FitnessExtension
-
- isValid() - Method in class ec.individuals.Individual
-
- isValid() - Method in interface ec.individuals.IndividualInterface
-
Get the validity of the individual


Just released
State of Inbound 2015
Get your copy of HubSpot's global report on inbound marketing and sales trends.
Inbound Marketing
HubSpot brings together all the tools you'll need to attract, understand, and delight customers.
Inbound Sales
With HubSpot's free CRM and HubSpot Sales, the sales process becomes easier for salespeople and better for the buyer, too.
HubSpot Sales: Transform your sales process to match the way modern buyers shop
Hundreds of Thousands Strong
Research
State of Inbound 2016: Take the survey and get early access to the report
Year In Review
The people, places, and products that moved us ahead in 2015
Academy
HubSpot's Free Inbound Marketing Course & Certification
Website Grader
How strong is your website?
Community
Join the club and rub elbows with the Internet's smartest community
We saw the integration, innovation & automation and that’s why we knew we had to get over to HubSpot.
Matt Rivera
Vice President, YOH
Thousands of people already have.


--- pagination: data: orgs size: 1 alias: org addAllPagesToCollections: true permalink: "/{{ org.path }}/" ---
{{ org.tagline }}


| Highland City Striders Running Schedule April 2018 |
| Day | Date | Time | Type | Dist | Location | Comments |
| Sun | 04/01 | 8:00AM | Run | | Ariba Coffee | 3 to 10 mile loops around Honey Pot Orchard
|
| Sun | 04/01 | 8:00AM | Trail | | Chauncy | Meet in Parking Lot at 289 Lyman Street, Westboro
|
| Mon | 04/02 | 6-9PM | Drink | | Medusa | Bri McCusker Boston Marathon fundraise event for The Play Brigade
|
| Tue | 04/03 | 6:30PM | Dark | 5m | See FB page | Striders After Dark
|
| Thu | 04/05 | 6:30PM | Dark | 5m | See FB page | Striders After Dark
|
| Sat | 04/07 | 8:00AM | Run | 5m | Ghiloni Park | Off Concord Rd, Marlboro – meet at softball field
|
| Sat | 04/07 | 8:00AM | Race | 50k | Pomfret VT | Runamuck 50K Suicide 6 Ski Area https://ultrasignup.com/register.aspx?did=51114
|
| Sat | 04/07 | 10AM | Race | 5k | Marlboro MA | AMSA 5K Fun Run for Autism Speaks and Paws 201 Forest St., Marlborough, MA https://my.racewire.com/event/5311
|
| Sun | 04/08 | 8:00AM | Run | 6m | McD's Rt. 85 | Marlboro McDonalds Maple St. - Southboro loops
|
| Sun | 04/08 | 8:00AM | Trail | | Chauncy | Meet in Parking Lot at 289 Lyman Street, Westboro
|
| Sun | 04/08 | 10AM | Hills | | Hosmer | Long slow hills practice to prep for Mt. Wash - all are invited Park at Memorial Beach Lot on Hosmer Street in Marlboro
|
| Tue | 04/10 | 6:30PM | Dark | 5m | See FB page | Striders After Dark
|
| Thu | 04/12 | 6:30PM | Dark | 5m | See FB page | Striders After Dark
|
| Sat | 04/14 | 8:00AM | Run | 6m | Rail Trail | Brite Clean parking lot, up to 10K out & back course
|
| Sun | 04/15 | 8:00AM | Run | | Panera Bread | Rt. 20 West (2 to 10 mile loops)
|
| Sun | 04/15 | 8:00AM | Trail | | Chauncy | Meet in Parking Lot at 289 Lyman Street, Westboro
|
| Sun | 04/15 | 10AM | Hills | | Harvard Hills | Long slow hills practice to prep for Mt. Wash - all are invited Park at 176 Swanson Rd (Eliot House), Boxborough, MA
|
| Mon | 04/16 | 8:40AM | Race | 26.2 | Hopkinton | 123rd Running of Boston Marathon – Good luck to our Striders
|
| Tue | 04/17 | 6:30PM | Speed | | HHS Track | Mile warmup, combo of 400s & 800s, timed mile end of month.
|
| Thu | 04/19 | 6:00PM | Hills | 3m | Skate Park | Pre-Medusa Hill Loops: Walnut, Giasson, Mason
|
| Thu | 04/19 | 6:30PM | Drink | 5k | Medusa | 5K Fun Run – Start on South St, beer and pizza after
|
| Sat | 04/21 | 8:00AM | Run | 5m | Ghiloni Park | Off Concord Rd, Marlboro – meet at softball field
|
| Sat | 04/21 | 8:00AM | Race | | Weston MA | TARC Spring Classic 296 Concord Rd 50K, 26.2, 13.1, 10K https://ultrasignup.com/register.aspx?did=52473
|
| Sun | 04/22 | 8:00AM | Run | 6m | Stephen Anthony | Rt. 20 east (near Sudbury line) course near Wayside Inn
|
| Sun | 04/22 | 8:00AM | Trail | | Chauncy | Meet in Parking Lot at 289 Lyman Street, Westboro
|
| Sun | 04/22 | 10AM | Hills | | Wataquadoc | Long slow hills practice to prep for Mt. Wash - all are invited Park at Nashoba Regional School off Route 117 in Bolton
|
| Tue | 04/24 | 6:30PM | Hills | | Eaton | Eaton Street loop - park at Avon Drive off Old Bolton Road
|
| Thu | 04/26 | 6:30PM | Speed | | MHS Track | Mile warmup, combo of 400s & 800s, timed mile end of month.
|
| Sat | 04/28 | 8:00AM | Run | 6m | Rail Trail | Brite Clean parking lot, up to 10K out & back course
|
| Sat | 04/28 | Noon | Race | 5k | Worcester | Worcester Craft Brew Race with a full fledged beer festival https://craftbrewraces.com/worcester/
|
| Sun | 04/29 | 8:00AM | Run | 6m | Delaney | Delaney Flood Control Site in Stow on Harvard Road off Route 117
|
| Sun | 04/29 | 8:00AM | Trail | | Chauncy | Meet in Parking Lot at 289 Lyman Street, Westboro
|
| Sun | 04/29 | 10AM | Hills | | Clinton Dam | Long slow hills practice to prep for Mt. Wash - all are invited Park at Wachusett Dam on Route 62 (Boylston St) in Clinton
|
| Sun | 04/29 | 10AM | Race | 5k | Marlboro MA | Marlborough Education Fund Spring Thaw 5K Marlboro Middle School, 25 Union St http://www.mefonline.org/
|
| Sun | 04/29 | 11AM | Race | 10k | Dedham MA | James Joyce Ramble 10k Endicott Estate, 656 East Street http://www.ramble.org/ Meet at StopShop for carpool 9 AM
|


24 These ask features and more in the Menus library. The of block has an extended menu of attributes of a sprite. Position reports an (x,y) vector. Size reports the percentage of normal size, as controlled by the set size block in the Looks category. Left, right, etc. report the stage coordinates of the corresponding edge of the sprite’s bounding box. Variables reports a list of the names of all variables in scope (global, sprite-local, and script variables if the right input is a script. The RGB(A) option accepts a single number, which is a grayscale value 0-255; a two- number list, grayscale plus opacity 0-255; a three-item RGB list, or a four-item RGBA list.


---
layout: archive
title: Lean Prover Zulip Chat Archive
permalink: 116395maths/40272hasscalarformonoidactions.html
---
The archive URL format has changed. Please find this page at:
https://leanprover-community.github.io/archive/stream/116395-maths/topic/has_scalar.20for.20monoid.20actions.html


Blender Day 2019 in Poland: November 23
by Piotr Arlukowiczpiotao writes:
Blender Day, Nov 23, Saturday, from 10am to 6pm.
Place: Poland, Gdańsk University, Faculty of Mathematics, Physics and Informatics, Wit Stwosz Street 57, lecture hall nr 1
See all upcoming events on the Community Agenda. Here's how to add your own events.


This is an index of the following types:
The first column is the type's initial character.
| Name | Origin | Description | |
|---|---|---|---|
M |
err() | Result | Constructs a failure result of some error type E. To construct a failure an exception must be supplied. |
M |
getErr() | Result | Returns the inner error of a failure. This returns null if the result is a success. |
M |
isError() | Result | Returns true if the result is a failure |
M |
isOk() | Result | Returns true if the result is a success |
M |
ok() | Result | Constructs a successful result of some type T. |
C |
Result | Result | Class Result |
M |
value() | Result | Attempts to extract and return the success value. |
M |
valueOr() | Result | Returns the success value if the result was a success. If the result was a failure, then instead of throwing the inner error the fallback value is returned. |
P |
$Result | Result | |
P |
$Result | Result |


Home
Astronomy
Chemistry
Electronics
Engineering
Physics
Order
Customer Order Form
*
Indicates a required field.
Customer Informatiom:
First Name
*
Last Name
*
Phone
*
Street Address
*
City
*
State
*
ZIP
*
Email
*
Payment Information
Credit Card Number
*
Credit Card
*
American Express
Discover
Master Card
Visa
Expiration Date
*
January (01)
February (02)
March (03)
April (04)
May (05)
June (06)
July (07)
August (08)
September (09)
October (10)
November (11)
December (12)
2011
2012
2013
2014
2015
Order Information:
Category
Astronomy
Chemistry
Electronics
Engineering
Physics
Stock Number
RK01-085
ND25-100
CG13-810
RF02-421
CP21-789
SM4-411
SM5-411
LMS01-101
LHP1-700
PT40-232
TT10-001
CH2000-100
SM4-411
EZ01-941
WK24-811
EL1-001
EL1-002
EL1-003
EL1-004
EL2-001
EL3-017
EL5-001
EL3-010
DFG4-412
ST1-003
BS40-232
BS40-232
TC24-981
VI-322
AD10-710
MDR1-001
PF2-001
LK100-001
MIS24-056
MI24-057
HK03-001
MI24-072
Shipping Options
USPS Ground (7-10 Business Days) - $7.00
Air (2-3 Business Days) - $15.00
Next Day Express - $25.00
Comments
would like to receive special offers from us?
Comments


Package and un-package modules of some sort (in tar/gz bundles). This is mostly useful for package managers. Note that it doesn’t check for or touch package.json
so it can be used even if that’s not the way you store your package info.
$ npm install tar-pack
Pack the folder at folder
into a gzipped tarball and return the tgz as a stream. Files ignored by .gitignore
will not be in the package.
You can optionally pass a fstream.DirReader
directly, instead of folder. For example, to create an npm package, do:
js
pack(require("fstream-npm")(folder), [options])
Options:
noProprietary
(defaults to false
) Set this to true
to prevent any proprietary attributes being added to the tarball. These attributes are allowed by the spec, but may trip up some poorly written tarball parsers.fromBase
(defaults to false
) Set this to true
to make sure your tarballs root is the directory you pass in.ignoreFiles
(defaults to ['.gitignore']
) These files can specify files to be excluded from the package using the syntax of .gitignore
. This option is ignored if you parse a fstream.DirReader
instead of a string for folder.filter
(defaults to entry => true
) A function that takes an entry and returns true
if it should be included in the package and false
if it should not. Entryies are of the form {path, basename, dirname, type}
where (type is “Directory” or “File”). This function is ignored if you parse a fstream.DirReader
instead of a string for folder.Example:
js
var write = require('fs').createWriteStream
var pack = require('tar-pack').pack
pack(process.cwd())
.pipe(write(__dirname + '/package.tar.gz'))
.on('error', function (err) {
console.error(err.stack)
})
.on('close', function () {
console.log('done')
})
Return a stream that unpacks a tarball into a folder at folder
. N.B. the output folder will be removed first if it already exists.
The callback is called with an optional error and, as its second argument, a string which is one of:
'directory'
, indicating that the extracted package was a directory (either .tar.gz
or .tar
)'file'
, incating that the extracted package was just a single file (extracted to defaultName
, see options)Basic Options:
defaultName
(defaults to index.js
) If the package is a single file, rather than a tarball, it will be “extracted” to this file name, set to false
to disable.Advanced Options (you probably don’t need any of these):
gid
- (defaults to null
) the gid
to use when writing filesuid
- (defaults to null
) the uid
to use when writing filesdmode
- (defaults to 0777
) The mode to use when creating directoriesfmode
- (defaults to 0666
) The mode to use when creating filesunsafe
- (defaults to false
) (on non win32 OSes it overrides gid
and uid
with the current processes IDs)strip
- (defaults to 1
) Number of path segments to strip from the root when extractingkeepFiles
- (defaults to false
) Set this to true
to prevent target directory to be removed. Extracted files overwrite existing files.Example:
js
var read = require('fs').createReadStream
var unpack = require('tar-pack').unpack
read(process.cwd() + '/package.tar.gz')
.pipe(unpack(__dirname + '/package/', function (err) {
if (err) console.error(err.stack)
else console.log('done')
}))
BSD


WITNESS LIST Law Enforcement Committee August 19, 2004-10:00A Charge 1 On: Gaylor, Tom (Texas Municipal Police Association) Charge 2 For: Bryant, Dennis (Texas Burglar & Fire Alarm Association) On: Zacharias, Larry (Texas Police Chiefs Association) Registering, but not testifying: On: Reed, Malcolm (Self and Texas Burglar & Fire Alarm Association) Charge 2 - Home Alarm Systems On: Lyons, Steve (Houston Police Department) Charge 3 On: Christian, Burton (DPS) Mica, Tara (National Rifle Association) Pestana, Becky (Office of the Attorney General) Tripp, Alice (Texas State Rifle Association) Registering, but not testifying: On: Ridlehuber, John (Self and Texas Concealed Handgun Association) Charge 3 - Concealed Handguns On: West, Dan (Self and Concealed Handgun Association) Charge 4 On: Nicholas, Ken (Governor's Office - Crime Stoppers) Registering, but not testifying: On: Gillen, Janice (Crime Stoppers Advisory Council - Governor's Office) Charges 1 & 4 On: Smith, Dan (Texas Commission on Law Enforcement Officer Standards and Education) Charges 3 & 4 On: Davis, Tommy (Texas Department of Public Safety) Fulmer, Valerie (Texas Department of Public Safety) Concealed Handgun Licensing On: Klein, Angie (Texas Department of Public Safety) Continuing Ed. for peace officers For: Gillham, Patsy (Self) Continuing Education for police For: Meadours, Stennie (Self) Hearing On: DiTucci, Frank (Texas Polygraph Examiners Board) Home Alarm Systems Registering, but not testifying: On: Brye, Gary (Texas Police Chiefs Association) Interim Charges On: Dozier, Jim (TCLEOSE) Mallett, Paul (Commission on State Emergency Communications) Officer Training On: Barber, Dave (Texas Police Chiefs Association) Retired Officers Right to Carry On: Barber, Dave (Southeast Texas Law Enforcement Administrators Associations)


Namespace Bifrost.Tasks
Classes
Task
Defines a task that can run and can potentially be paused, resumed and persisted
TaskContext
Represents the context used when executing ITask
TaskEntity
Represents an enity of a Task that can be persisted
TaskManager
Represents a ITaskManager
TaskRepository
Represents a ITaskRepository
TaskResult
Represents the result of a task
Tasks
Represents an implementation of ITasks
TaskScheduler
Represents a ITaskScheduler
Structs
TaskId
Defines an identifier for Task
Interfaces
ITask
Defines a task that gets executed
ITaskManager
Defines a manager for working with Task
ITaskRepository
Defines a repository for working with Task
ITasks
Defines a system that coordinates ITask
ITaskScheduler
Defines an executor for executing Task
ITaskStatusReporter
Defines a interface for receiving status reports for tasks
Enums
TaskStatus
Represents the status of a ITask running in a TaskContext
Delegates
TaskCancelled
Delegate that gets called when a task is cancelled
TaskCompleted
Delegate that gets called when a task is completed
TaskFailed
Delegate that gets called when a task is failed
TaskOperation
Represents the method that gets called to handle a operation within a Task
TaskStateChange
Represents the method that gets called from a Task when it has progress or state change
TaskSucceeded
Delegate that gets called when a task is succeeded


Volunteer Work, Athens GR
Member of the Organizing Committee / Athens Pride
2009 - 2012
▪ Coordination of a large scale event (6,000 – 10,000 participants)
▪ Logistics handling
▪ Volunteers recruiting, training and coordination
Founding Member / Colour Youth, LGBTQ Youth Community
2010 - 2012
▪ Secretary in the BoD
▪ Strategic planning of the organization’s operations
▪ Volunteers recruiting, training and coordination
Merchandising and Clothes Shop / Hellenic Red Cross
2009 - 2011
▪ Shop manager
▪ Market Research
▪ Sales
Retail Experience, Madrid ES
Fashion Advisor / “Uterqüe” Flagship Store (Inditex)
Nov 2015 - Jun 2016
▪ Exclusive fashion advising to premium (high value) customers
▪ Zoning & Visual Merchandising
▪ Sales maximization according to pre-specified KPIs
Sales Manager & Shift Manager / Bovinus Luxury
Sep 2014 - Sep 2015
▪ Management of the day-to-day operation of a premium food market stall
▪ Service quality management and assurance
▪ Selection and training of employees
Su Chef, Sales / Exargia
Jun 2012 - Jul 2014
▪ Preparation of traditional greek dishes
▪ Merchandising and customer service
Student Jobs, København DK
Bartender / Cosy Bar
Sep 2017 - Current
Old gaybar in downtown Copenhagen, cosy atmosphere. I work long night shifts every other weekend, so I get more time to concentrate on my studies.
Head Waiter / Asador
Jun 2016 - Sep 2017
Argentenian Stakehouse in Cristianshavn borrow, good meat and whine. I still have excellent relationship with the owners, and work extra shifts when needed.
Internship, ProjectLab KEA DK
AR Module / Københavner Ture
Oct 2018 - Nov 2018
In a multidisciplinary team of 2 software developers and 2 multimedia designers, we developed an AR solution for this local guided-tours company. Our goal is to "Bring Stories Alive" as well as to add a competitive advantage in the company's SoMe presence. Received good feedback.
VR Module / Chase-Race
Aug 2018 - Oct 2018
Working with various product development tecniques, we designed and developed a VR experience for marketing purposes. We went also through an intensive 3-day course on Unity 3D.


Source code for pymuscle.muscle
"""
Contains base Muscle class and its immediate descendants.
"""
import numpy as np
from typing import Union
from .potvin_fuglevand_2017_muscle_fibers import PotvinFuglevand2017MuscleFibers
from .potvin_fuglevand_2017_motor_neuron_pool import PotvinFuglevand2017MotorNeuronPool
from .pymuscle_fibers import PyMuscleFibers
from .model import Model
[docs]class Muscle(object):
"""
A user-created :class:`Muscle <Muscle>` object.
Used to simulate the input-output relationship between motor neuron
excitation and muscle fibers contractile state over time.
:param motor_neuron_pool_model:
The motor neuron pool implementation to use with this muscle.
:param muscle_fibers_model:
The muscle fibers model implementation to use with this muscle.
:param motor_unit_count: How many motor units comprise this muscle.
Usage::
from pymuscle import (Muscle,
PotvinFuglevand2017MotorNeuronPool as Pool,
PotvinFuglevand2017MuscleFibers as Fibers)
motor_unit_count = 60
muscle = Muscle(
Pool(motor_unit_count),
Fibers(motor_unit_count),
)
excitation = 32.0
force = muscle.step(excitation, 1 / 50.0)
"""
def __init__(
self,
motor_neuron_pool_model: Model,
muscle_fibers_model: Model,
):
assert motor_neuron_pool_model.motor_unit_count == \
muscle_fibers_model.motor_unit_count
self._pool = motor_neuron_pool_model
self._fibers = muscle_fibers_model
@property
def motor_unit_count(self):
return self._pool.motor_unit_count
@property
def current_forces(self):
return self._fibers.current_forces
[docs] def step(
self,
motor_pool_input: Union[float, np.ndarray],
step_size: float
) -> float:
"""
Advances the muscle model one step.
:param motor_pool_input:
Either a single value or an array of values representing the
excitatory input to the motor neuron pool for this muscle
:param step_size:
How far to advance the simulation in time for this step.
"""
# Expand a single input to the muscle to a full array
if isinstance(motor_pool_input, float) or \
isinstance(motor_pool_input, int):
motor_pool_input = np.full(
self._pool.motor_unit_count,
motor_pool_input
)
motor_pool_output = self._pool.step(motor_pool_input, step_size)
return self._fibers.step(motor_pool_output)
[docs]class PotvinFuglevandMuscle(Muscle):
"""
A thin wrapper around :class:`Muscle <Muscle>` which pre-selects the
Potvin fiber and motor neuron models.
"""
def __init__(
self,
motor_unit_count: int,
apply_central_fatigue: bool = True,
apply_peripheral_fatigue: bool = True,
pre_calc_firing_rates: bool = False
):
pool = PotvinFuglevand2017MotorNeuronPool(
motor_unit_count,
apply_fatigue=apply_central_fatigue,
pre_calc_firing_rates=pre_calc_firing_rates
)
fibers = PotvinFuglevand2017MuscleFibers(
motor_unit_count,
apply_fatigue=apply_peripheral_fatigue
)
super().__init__(
motor_neuron_pool_model=pool,
muscle_fibers_model=fibers
)
class StandardMuscle(Muscle):
"""
A thin wrapper around :class:`Muscle <Muscle>` which pre-selects the
Potvin motor neuron model and the PyMuscle specific fiber model.
It is expected that this will use a motor neuron model specific to PyMuscle
(to be called the PyMuscleMotorNeuronPool) in the future.
This muscle does *not* include central (motor neuron) fatigue as the
equations for recovery are not yet available.
This muscle does include both peripheral fatigue and recovery.
"""
def __init__(
self,
motor_unit_count: int,
apply_central_fatigue: bool = False,
apply_peripheral_fatigue: bool = True,
pre_calc_firing_rates: bool = False
):
pool = PotvinFuglevand2017MotorNeuronPool(
motor_unit_count,
apply_fatigue=apply_central_fatigue,
pre_calc_firing_rates=pre_calc_firing_rates
)
fibers = PyMuscleFibers(
motor_unit_count,
apply_fatigue=apply_peripheral_fatigue
)
super().__init__(
motor_neuron_pool_model=pool,
muscle_fibers_model=fibers
)


Utils.ContextMenuParams Class
Context Menu Params
This is an object that is available to the ContextMenuComponent
's block template.
{{#uic-context-menu as |params|}}
// params is this object
{{/uic-context-menu}}
Event
This is the event that triggered the context menu.
{{#uic-context-menu as |params|}}
{{#if params.event.altKey}}
// ... do something when Alt key is pressed ...
{{/if}}
{{/uic-context-menu}}
Context
This is typically the component that opened the context menu.
{{#each array as model}}
{{list-item
model=model
contextMenu=(open-context-menu "item-menu")}}
{{/each}}
{{#uic-context-menu as |params|}}
<menuitem {{action "edit" params.context}}>Edit</menuitem>
{{/uic-context-menu}}
In the example above, the params.context
property is the {{list-item}}
component in the array.
The edit
action will recieve the list-item
component as the first argument.
NOTE: There is no need to pass in the model
as the second argument of the
open-context-menu
helper because the model
is available on the list-item
component.
In this following example the edit
action will recieve the model
as the first argument:
{{#each array as model}}
{{list-item
model=model
contextMenu=(open-context-menu "list-item-menu")}}
{{/each}}
{{#uic-context-menu id="list-item-menu" as |params|}}
<menuitem {{action "edit" params.context.model}}>Edit</menuitem>
{{/uic-context-menu}}
Model
If the element doesn't have a component, then the context
property will be less helpful.
In cases like this you can pass the model as the second argument to the open-context-menu
helper
which will then be available to the context menu as params.model
.
{{#each array as model}}

{{model.name}}

{{/each}}
{{#uic-context-menu id="item-menu" as |params|}}
<menuitem {{action "edit" params.model}}>Edit</menuitem>
{{/uic-context-menu}}
Methods
getContext
-
target
This method finds the closest .ember-view
walking up the dom tree from
the target element and then returns the component for that view.
Parameters:
-
target
Object
Returns:
Properties
context
Object
This is typically the component that opened the context-menu.
event
Object
This is the event
object.


{{ config.extra.heroline }}
With love, from Olin College's 2019 Principles of Engineering class
Real Steel uses the Microsoft Kinect to perform real-time pose estimation for an immersive shadow boxing experience. Never before has a robot felt so similar to humans.
The Real Steel shadow-boxing robots come with 8 degrees of freedom: 2 arms with shoulders and elbows and a base that allows the robot to bob and weave like no boxing robot before it.
With 8 motors, 4 custom slew bearings, 4 gears, custom encoder and quadrature boards, the Real Steel bots are mechabots of awesome in under just $250.


|
MoveToCode
|
Namespaces | |
| namespace | Editor |
| namespace | Utilities |
Enumerations | |
| enum class | SpatialAwarenessMeshLevelOfDetail { Custom = -1 , Coarse = 0 , Medium , Fine } |
| Enumeration defining levels of detail for the spatial awareness mesh subsystem. More... | |
| enum class | SpatialAwarenessSurfaceTypes { Unknown = 1 << 0 , Floor = 1 << 1 , Ceiling = 1 << 2 , Wall = 1 << 3 , Platform = 1 << 4 } |
| Enumeration defining the types of planar surfaces that are supported by the spatial awareness surface finding subsystem. More... | |
| enum class | SpatialAwarenessMeshDisplayOptions { None = 0 , Visible , Occlusion } |
| Options for how the spatial mesh is to be displayed by the spatial awareness system. More... | |
Enumeration defining levels of detail for the spatial awareness mesh subsystem.
Enumeration defining the types of planar surfaces that are supported by the spatial awareness surface finding subsystem.


HACKTOBERFEST IS A month-long celebration of open source software run by DigitalOcean in partnership with GitHub and Twilio.
It’s not just about the t-shirts or stickers. Its about supporting open source. Its about celebrating open source, and giving it back. If you’ve never contributed to open source before, this is the perfect time to get started because Hacktoberfest provides a large list of available contribution opportunities.
Fun fact: We are global! This event is published on the Hacktoberfest Website.
The Hacktoberfest Website provides a list of open projects you can contribute to, however you can also use:
THere are few other Tech companies giving out Swags other than Digital Ocean
Multiple companies give out swag for Hacktoberfest: https://hacktoberfestswaglist.com
Demo!


Scatter chart is a graph in which the values of two variables are plotted along two axes. Chart.Scatter - is an addon for the Chart.js library.
First we need to include the Chart.js (or Chart.Core.js) and Chart.Scatter.js libraries on the page.

Alternatively you can use an AMD loader.
// Using requirejs require(['Chart', 'path/to/Chart.Scatter'], function(Chart){ ... });
Please note, that Chart.Scatter addon requires to Chart.js module named "Chart". If Chart.js module has another name in your application (not "Chart"), you can adjust module name mapping.
// Using requirejs requirejs.config({ ... map: { '*': { 'Chart': 'myAppChartjsName' } } });
You can also grab Chart.Scatter.js using bower:
bower install Chart.Scatter.js --save
To create a chart, we need to instantiate the Chart class. To do this, we need to pass in the 2d context of where we want to draw the chart. Here's an example.
<canvas id="myChart" width="400" height="400"></canvas> // Get the context of the canvas element we want to select var ctx = document.getElementById("myChart").getContext("2d");
With the Chart class set up, we can go on to create Scatter chart.
new Chart(ctx).Scatter(data, options);
We call a method named Scatter. We pass in the data for that chart type, and the options for that chart as parameters. Chart.js will merge the global defaults with chart type specific defaults, then merge any options passed in as a second argument after data.
These are the customisation options specific to Scatter charts. These options are merged with the global chart configuration options, and form the options of the chart.
// SUPPORTED GLOBAL OPTIONS // Boolean - If we should show the scale at all showScale: true, // String - Colour of the scale line scaleLineColor: "rgba(0,0,0,.1)", // Number - Pixel width of the scale line scaleLineWidth: 1, // Boolean - Whether to show labels on the scale scaleShowLabels: true, // Interpolated JS string - can access value scaleLabel: "<%=value%>", // Interpolated JS string - can access value scaleArgLabel: "<%=value%>", // String - Message for empty data emptyDataMessage: "chart has no data", // GRID LINES // Boolean - Whether grid lines are shown across the chart scaleShowGridLines: true, // Number - Width of the grid lines scaleGridLineWidth: 1, // String - Colour of the grid lines scaleGridLineColor: "rgba(0,0,0,.05)", // Boolean - Whether to show horizontal lines (except X axis) scaleShowHorizontalLines: true, // Boolean - Whether to show vertical lines (except Y axis) scaleShowVerticalLines: true, // HORIZONTAL SCALE RANGE // Boolean - If we want to override with a hard coded x scale xScaleOverride: false, // ** Required if scaleOverride is true ** // Number - The number of steps in a hard coded x scale xScaleSteps: null, // Number - The value jump in the hard coded x scale xScaleStepWidth: null, // Number - The x scale starting value xScaleStartValue: null, // VERTICAL SCALE RANGE // Boolean - If we want to override with a hard coded y scale scaleOverride: false, // ** Required if scaleOverride is true ** // Number - The number of steps in a hard coded y scale scaleSteps: null, // Number - The value jump in the hard coded y scale scaleStepWidth: null, // Number - The y scale starting value scaleStartValue: null, // DATE SCALE // String - scale type: "number" or "date" scaleType: "number", // Boolean - Whether to use UTC dates instead local useUtc: true, // String - short date format (used for scale labels) scaleDateFormat: "mmm d", // String - short time format (used for scale labels) scaleTimeFormat: "h:MM", // String - full date format (used for point labels) scaleDateTimeFormat: "mmm d, yyyy, hh:MM", // LINES // Boolean - Whether to show a stroke for datasets datasetStroke: true, // Number - Pixel width of dataset stroke datasetStrokeWidth: 2, // String - Color of dataset stroke datasetStrokeColor: '#007ACC', // String - Color of dataset stroke datasetPointStrokeColor: 'white', // Boolean - Whether the line is curved between points bezierCurve: true, // Number - Tension of the bezier curve between points bezierCurveTension: 0.4, // POINTS // Boolean - Whether to show a dot for each point pointDot: true, // Number - Pixel width of point dot stroke pointDotStrokeWidth: 1, // Number - Radius of each point dot in pixels pointDotRadius: 4, // Number - amount extra to add to the radius to cater for hit detection outside the drawn point pointHitDetectionRadius: 4, // TEMPLATES // Interpolated JS string - can access point fields: // argLabel, valueLabel, arg, value, datasetLabel, size tooltipTemplate: "<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%=argLabel%>; <%=valueLabel%>" // Interpolated JS string - can access point fields: // argLabel, valueLabel, arg, value, datasetLabel, size multiTooltipTemplate: "<%=argLabel%>; <%=valueLabel%>", // Interpolated JS string - can access all chart fields legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><%for(var i=0;i<datasets.length;i++){%>
<span class=\"<%=name.toLowerCase()%>-legend-marker\" style=\"background-color:<%=datasets[i].strokeColor%>\"><%=datasets[i].label%>
<%}%>
"
Any point can have x
, y
, r
fields.
The fields named "x" and "y" are the coordinates of the point. Optional field "r" is a multiplier
for the point radius (pointDotRadius
). The default multiplier is 1.
var data = [ { label: 'My First dataset', strokeColor: '#F16220', pointColor: '#F16220', pointStrokeColor: '#fff', data: [ { x: 19, y: 65 }, { x: 27, y: 59 }, { x: 28, y: 69 }, { x: 40, y: 81 }, { x: 48, y: 56 } ] }, { label: 'My Second dataset', strokeColor: '#007ACC', pointColor: '#007ACC', pointStrokeColor: '#fff', data: [ { x: 19, y: 75, r: 4 }, { x: 27, y: 69, r: 7 }, { x: 28, y: 70, r: 5 }, { x: 40, y: 31, r: 3 }, { x: 48, y: 76, r: 6 }, { x: 52, y: 23, r: 3 }, { x: 24, y: 32, r: 4 } ] } ];
You can change the chart data, using datasets
collection of the chart.
Use the methods of it elements: addPoint
, setPointData
, removePoint
.
// Add a new point { x: 5, y: 7 } myChart.datasets[0].addPoint(5, 7); // Add a new point { x: 5, y: 7, r: 4 } (with radius) myChart.datasets[0].addPoint(5, 7, 4); // Set point data { x: 11, y: 4 } at index 3 myChart.datasets[0].setPointData(3, 11, 4); // Set point data { x: 11, y: 4, r: 2 } at index 3 (with radius) myChart.datasets[0].setPointData(3, 11, 4, 2); // Remove the point at index 0 myChart.datasets[0].removePoint(0);
After all changes call the update
method of the chart for render your chart with new data.
myChart.update();
Chart.Scatter uses the date format library by Steven Levithan.
| Mask | Description |
|---|---|
d |
Day of the month as digits; no leading zero for single-digit days. |
dd |
Day of the month as digits; leading zero for single-digit days. |
ddd |
Day of the week as a three-letter abbreviation. |
dddd |
Day of the week as its full name. |
m |
Month as digits; no leading zero for single-digit months. |
mm |
Month as digits; leading zero for single-digit months. |
mmm |
Month as a three-letter abbreviation. |
mmmm |
Month as its full name. |
yy |
Year as last two digits; leading zero for years less than 10. |
yyyy |
Year represented by four digits. |
h |
Hours; no leading zero for single-digit hours (12-hour clock). |
hh |
Hours; leading zero for single-digit hours (12-hour clock). |
H |
Hours; no leading zero for single-digit hours (24-hour clock). |
HH |
Hours; leading zero for single-digit hours (24-hour clock). |
M |
Minutes; no leading zero for single-digit minutes. Uppercase M unlike CF timeFormat 's m to avoid conflict with months. |
MM |
Minutes; leading zero for single-digit minutes. Uppercase MM unlike CF timeFormat 's mm to avoid conflict with months. |
s |
Seconds; no leading zero for single-digit seconds. |
ss |
Seconds; leading zero for single-digit seconds. |
l or L |
Milliseconds. l gives 3 digits. L gives 2 digits. |
'…' or "…" |
Literal character sequence. Surrounding quotes are removed. |


Files CCore/inc/Optional.h CCore/src/Optional.cpp
The class Optional is a polymorphic collection of objects. It has number of object slots. Each slot can be occupied by an object of any type. Once created, the object occupies the slot until the Optional object is destroyed.
class Optional : NoCopy
{
....
public:
explicit Optional(unsigned max_slot);
~Optional();
template <unsigned slot,NothrowDtorType T>
T * try_take();
template <unsigned slot,NothrowDtorType T>
T * take();
};
The constructor argument is a maximum slot number. I.e. the valid slot numbers are [0,max_slot].
try_take() returns the pointer to the object at the given slot, if any. If there is no object, the null pointer is returned.
take() returns the pointer to the object at the given slot. If there is no object, it is created using the default constructor. An exception may be thrown in case of error.
Make sure, you always use the same type for the same slot. It is better to hide the Optional object behind some facade class:
class OptData { Optional opt; public: OptData() : opt(99) {} ~OptData() {} unsigned * try_take_counter() { return opt.try_take<0,unsigned>(); } unsigned * take_counter() { return opt.take<0,unsigned>(); } DynArray<int> * try_take_buf() { return opt.try_take<1,DynArray<int> >; } DynArray<int> * take_buf() { return opt.take<1,DynArray<int> >; } .... };
Internally, Optional is a radix tree. So its access methods are fast, but not extremely fast.


Nvidia Optimus technology allows seamlessly switch between two graphics cards on a laptop. An Intel integrated card is used to safe battery life when performance is not needed. A discrete Nvidia card is turned on for certain applications, like games, mining. It was a big tricky to setup dual graphics on Void Linux. A few hints below could help you to take advantage of this technology on Linux.
It is well describe on wiki.voidlinux.eu how to setup either Nvidia or Intel graphics card on Void Linux.
The issue comes when you try to install OpenGL libraries for both Nvidia and Intel graphics. It does not work, because
these libraries conflict with each other. It is possible to upgrade from mesa libGL
to libGL
from Nvidia,
but not in another direction. If you already installed OpenGL libraries for Nvidia, you have to remove them first (including
all dependencies) before installing mesa OpenGL libraries for Intel graphics.
I ended up re-installing Nvidia and mesa OpenGL libraries for at least 5 times when trying to setup Nvidia Optimus on my laptop, HP Envy 13. That’s why I describe hints below which could help you to achieve the same. I say hints, because I don’t remember exact steps and I don’t want to remove everything again :)
1.Start with mesa OpenGL libraries for integrated Intel graphics card. Make sure that you install it correctly and it works. I mainly
used glmark2
to verify my video drivers. With integrated Intel graphics output should look something like that:
$ glmark2
=======================================================
glmark2 2017.07
=======================================================
OpenGL Information
GL_VENDOR: Intel Open Source Technology Center
GL_RENDERER: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
GL_VERSION: 3.0 Mesa 18.3.1
=======================================================
[build] use-vbo=false: FPS: 758 FrameTime: 1.319 ms
[build] use-vbo=true: FPS: 780 FrameTime: 1.282 ms
=======================================================
glmark2 Score: 769
=======================================================
2.Per Jan 12 2019: do not install Nvidia drivers from default Void Linux repository.
If you try to install Bumblebee
(for Optimus) with Nvidia drivers and libraries, it would remove mesa libraries and Nvidia becomes your
default graphics without an option to switch back to Intel integrated graphics.
3.Install Nvidia kernel module only (without Nvidia libraries). Download Nvidia libraries manually. You could do it either from official website Nvidia libraries or from Void Linux repository.
4.Extract Nvidia libraries into a separate folder. I have used the blob from Nvidia website with the following parameters:
$ ./nvidia-installer --x-prefix=/opt --x-module-path=/opt/lib/xorg/modules \
--x-library-path=/opt/lib --x-sysconfig-path=/opt/share/X11 --opengl-prefix=/opt \
--compat32-prefix=/opt --compat32-libdir=lib32 --utility-prefix=/opt --documentation-prefix=/opt \
--application-profile-path=/opt/share/nvidia
It installs Nvidia libraries into /opt
directory for x86_64 and x64 architectures.
I had to play with --no-opengl-files
parameters in order not to overwrite system (mesa) OpenGL libraries.
5.By that step you should have working mesa OpenGL, Nvidia kernel module and Nvidia libraries in /opt
directory.
6.Install bbswitch
kernel module to enable/disable discrete graphics.
7.Clone nvidia-xrun script. It starts a separate X session with Nvidia graphics enabled.
8.Create file /etc/X11/nvidia-xorg.conf
Section "Files"
ModulePath "/opt/lib32"
ModulePath "/opt/lib"
ModulePath "/opt/lib32/vdpau"
ModulePath "/opt/lib/vdpau"
ModulePath "/opt/lib/xorg/modules"
ModulePath "/opt/lib/xorg/modules/drivers"
ModulePath "/opt/lib/xorg/modules/extensions"
ModulePath "/opt/lib/tls"
ModulePath "/usr/lib/xorg/modules"
EndSection
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
# Use lspci to find proper BusID
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
9.Copy nvidia-xrun/nvidia-xinitrc
to /etc/X11/xinit/nvidia-xinitrc
.
10.Specify which window manager or a program to start with Nvidia enabled. For that create file ~/.nvidia-xinitrc
if [ $# -gt 0 ]; then
$*
else
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96
# use your own window manager
exec mate-session
fi
11.Modify nvidia-xrun
(probably can be done in /etc/X11/xinit/nvidia-xinitrc
as well) to add /opt/lib
(or /opt/lib32
for x86)
to dynamic loader when starting new Nvidia X session:
diff --git a/nvidia-xrun b/nvidia-xrun
old mode 100644
new mode 100755
index 39b1b94..6153811
--- a/nvidia-xrun
+++ b/nvidia-xrun
@@ -69,6 +69,9 @@ EXECL="/etc/X11/xinit/nvidia-xinitrc $EXECL"
COMMAND="xinit $EXECL -- $NEWDISP vt$LVT -nolisten tcp -br -config nvidia-xorg.conf -configdir nvidia-xorg.conf.d"
+echo "adding /opt/lib to ldconfig"
+execute "sudo ldconfig /opt/lib"
+
# --------- TURNING ON GPU -----------
echo 'Waking up nvidia GPU'
if ! [ -f /proc/acpi/bbswitch ]
@@ -117,3 +120,6 @@ then
else
echo "Bbswitch kernel module not loaded."
fi
+
+echo "removing /opt/lib to ldconfig"
+execute "sudo ldconfig"
12.Switch to tty1
(with Ctrl+Alt+F1) and run nvidia-xrun
. Verify with glmark2
that Nvidia graphics is used:
$ glmark2
=======================================================
glmark2 2017.07
=======================================================
OpenGL Information
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce MX150/PCIe/SSE2
GL_VERSION: 4.6.0 NVIDIA 410.78
=======================================================
[build] use-vbo=false: FPS: 1668 FrameTime: 0.600 ms
=======================================================
glmark2 Score: 1668
=======================================================
13.To see whether Nvidia graphics cards is turned on or turned off you could run cat /proc/acpi/bbswitch
.
In daily life when Nvidia is not used you should see something similar to
0000:01:00.0 OFF
You might need to blacklist nouveau module to avoid conflicts with Nvidia module.
For that create a file /etc/modprobe.d/blacklist-nouveau.conf
install nouveau /bin/false
You could also blacklist Nvidia kernel modules by default.
As far as I remember I had to manually remove /opt/lib/xorg/modules/libwfb.so
library.


KC baller takes bite out of JC opponent in Manning Cup semis
by George Davis and Lance WhittakerThe Manning Cup semi-finals between rivals JC and KC was marred after one player bit into the shoulder of his opponent and was slapped in return.
The Manning Cup semi-finals between rivals JC and KC was marred after one player bit into the shoulder of his opponent and was slapped in return.