Bloggfrslur mnaarins, nvember 2009

Um btiefni

stp_logo.jpg

Man einhver eftir STP lmmiunum? Slatti af essum lmmium endai hnkkum Raleigh Chopper hjlum hr og ar um binn egar g var strkur. Krakkar fru bensnstvar og snktu essa mia. g komst seinna a v hva etta fyrirtki seldi.
raleigh_chopper_01_350x350.jpg

a seldi (og selur enn) btiefni bensn sem eiga a gera blvlar kraftmeiri. a urfti a borga hlfa milljn dollara sekt ri 1978 fyrir a vera me rangar auglsingar, fullyringar sem eir gtu ekki stai vi -- eir voru aftur sektair um 0,8 milljnir dala ri 1995 t af smu stu. eir selja mislegt gagnlegt en hluti af vrulnunni tti semsagt a auka hestfl blvla umfram a sem sennilegt gat talist. dag held g a flestir sem vilja kraftmeiri vl blinn kaupi sr kraftmeiri bl.

etta rifjaist upp fyrir mr egar g heyri um konu sem lifir nnast Herbalife dufti og hleypur llum stundum.

Herbalife selur mislegt gagnlegt. Flk arf prtein og ef a velur a borga fyrir sojaprtein fr Bandarkjunum sta ess a kaupa slenskt skyr tla g ekki a mtmla. Mig grunar samt a sumir eigni essu dufti eiginleika sem a getur ekki stai undir.

a bttist nr melimur hlaupahpinn, venjuleg kona sem borai venjulegan mat og hafi ekki hlaupi miki ur. Hn reyndist hins vegar eiga mjg auvelt me hlaup af Gus n, og var orin betri en Herbalife konan eftir nokkrar vikur hlaupum. Sagan hermir a etta hafi fengi mjg dufttuna.

g veit a mr tti a mjg svekkjandi a hafa bora nnast ekkert nema duft og komast svo a v a flk er bara misjafnlega vel gert - eins og blvlar.

etta er samt sniug markashugmynd, a selja vtamn fyrir bla...

Athyglisverur ryggisleki

Kunningi minn var a skr sig jnustu vefsu bankans sem ht ur KB banki. (Nja nafni man g ekki, g tla a leggja a minni ef eir lifa nokkra mnui).

Hann, eins og g, er me tvr tegundir af lykilorum, eina sem hann notar egar miki liggur vi, til dmis samskiptum vi bankann sinn, og ara sem hann notar egar hann skrir sig sur eins og Facebook ea GMail, lykilor sem honum er ekki eins annt um.

Hann, eins og fleiri, getur ekki muna tugi lkra lykilora og er v me nokkur sem hann notar mrgum stum.

Hann var v hvumsa egar bankinn sendi honum "spari" lykilori sem hann hafi veri a enda vi a skr inn, dulka venjulegum tlvupsti.

ess vegna urfti kunningi minn a fara stai ar sem hann notar "spari" lykilori og skipta v t hi snarasta.

g hef lesi mislegt um ryggisml en etta vandaml held g a s n tegund. Kunningi minn gaf sr kvei frnisstig vegna ess a hann var samskiptum vi bankann, en svo kom ljs a hann var samskiptum vi einhverja deild innan bankans sem taldi sig ekki urfa a fylgja smu ryggiskrfum og arar deildir innan bankans.

etta er eins og a fara heilsuverndarst, segja lkni persnuleg vandaml sn en komast svo a v a maur var a tala vi manninn sem lagar ljsritunarvlina en gengur lka um hvtum slopp.

g er ekki a gagnrna bankann, etta er mjg skiljanleg uppkoma. g er bara a skrsetja ntt fyrirbri mrkinni.

Tlvupstur er algerlega ruggur samskiptamti. Hann er jafn ruggur og pstkort. Allir sem hafa agang a afritum af einhverjum pstjni boleiinni geta skoa tlvupsta, sem og eir sem eru sama nethnti og notandinn. Afrit er furu auvelt a nlgast, gmlum afritabndum er hent, harir diskar sem eru enn lsilegir eru teknir r umfer og lenda lstum ruslageymslum.

Tlvupstur arf ekki a vera ruggur, a eru bara sgulegar stur fyrir essu. Pststalarnir eru me elstu netstlunum, fr eim tma egar tlvuglpir voru ekki til.

Bankasamskipti um vefsu eru miklu ruggari v au eru dulku (https) og enginn milliliur er leiinni milli bankans og notandans ar sem skilaboin eru afku og vistu.

Reyndar er anna ryggisvandaml ferinni. Ef ryggi er gott, getur starfsflk ekki hjlpa r ef gleymir lykilori, a verur a ba til ntt. Ef starfsflk getur sagt r hva lykilori itt er, getur a lka st vera og nota lykilori itt lengri tma n ess a vitir af v og getur ekki lagalega sanna a einhver annar hafi veri ferinni. Ef starfsmaur sem tlar a brjta af sr arf a ba til ntt lykilor, munt komast a v fljtlega a kemst ekki inn nu gamla og einhver skrning mun eiga sr sta a lykilorinu hafi veri breytt n innar beini sem frar ig vonandi undan fjrhagslegri byrg.

Lykilori sem bankinn var a senda kunningja mnum er augljslega af eirri tegund a allir starfsmenn bankans geta s a.

Eru ekki ryggsiml skemmtileg? eir sem vilja frast um ennan mlaflokk geta lesi skemmtilega pistla Bruce Schneier: http://www.schneier.com/crypto-gram.html

PS: Bruce mlir me keypis vrusvrn: http://free.avg.com/us-en/homepage


Tvr myndir

Mig langai bara a deila essum tveim myndum me ykkur.

invisible_hand.jpg

this_light_never_turns_green.jpg


Smsaga eftir Kurt Vonnegut

(Sasta frsla var svo nrdu, hr er rmantk til a vega hana upp).

Long Walk to Forever eftir Kurt Vonnegut, 1960.


Long Walk to Forever

They had grown up next door to each other, on the fringe of a city, near fields and woods and orchards, within sight of a lovely bell tower that belonged to a school for the blind.

Now they were twenty, had not seen each other for nearly a year. There had always been playful, comfortable warmth between them, but never any talk of love.

His name was Newt. Her name was Catharine. In the early afternoon, Newt knocked on Catharine's front door.

Catharine came to the door. She was carrying a fat, glossy magazine she had been reading. The magazine was devoted entirely to brides. "Newt!" she said. She was surprised to see him.

"Could you come for a walk?" he said. He was a shy person, even with Catharine. He covered his shyness by speaking absently, as though he were a secret agent pausing briefly on a mission between beautiful, distant, and sinister points. This manner of speaking had always been Newt's style, even in matters that concerned him desperately.

"A walk?" said Catharine.

"One foot in front of the other, "said Newt, "Through leaves, over bridges--"

"I had no idea you were in town, "she said.

"Just this minute got in, "he said.

"Still in the Army, I see, "she said.

"Seven more months to go, "he said. He was a private first class in the Artillery. His uniform was rumpled. His shoes were dusty. He needed a shave. He held out his hand for the magazine. "Let's see the pretty book, "he said.

She gave it to him. "I'm getting married, Newt, "she said.

"I know, " he said. "Let's go for a walk. "

"I'm awfully busy, Newt, "she said. "The wedding is only a week away. "

"If we go for a walk, " he said, "it will make you rosy. It will make you a rosy bride. "He turned the pages of the magazine. "A rosy bride like her--like her--like her, " he said, showing her rosy brides.

Catharine turned rosy, thinking about rosy brides.

"That will be my person to Henry Stewart Chasens, " said Newt. "By talking you for a walk, I'll be giving him a rosy bride. "

"You know his name?" said Catharine.

"Mother wrote, "he said. "From Pittsburgh?"

"Yes, "she said. "You'd like him. "

"Maybe, " he said.

"Can--can you come to the wedding, Newt?" she said.

"That I doubt. "he said.

"Your furlough isn't for long enough?"she said.

"Furlough?"said Newt. He was studying a twopage ad for flat silver. "I'm not on furlough, "he said.

"Oh?" she said.

"I'm what they call A. W. O. L. , " said Newt.

"Oh, Newt!You're not!" she siad.

"Sure I am, "he said, still looking at the magazine.

"Why, Newt?" she said.

"I had to find out what your silver pattern is, "he said. He read names of silver patterns from the magazine. "Albermarle?Heather?"he said. "Legend?Rambler Rose?" He looked up, smile. "I plan to give you and your husband a spoon, "he said.

"Newt, Newt--tell me really, "she said.

"I want to go for a walk, "he said.

She wrung her hands in sisterly anguish. "Oh, Newt--you're fooling me about being A. W. O. L. , "she said.

Newt imitated police siren softly, raised his eyebrows.

"Where--where from?" she said.

"Fort Bragg, " he said.

"North Carolina?" she said.

"That all right, "he said. "Near Fayetteville--where Scarlett O'Hara went to school. "

"How did you get here, Newt?" she said.

He raised his thumb, jerked it in a hitchhike gesture. "Two days, " he said.

"Does your mother know?"she said.

"I didn't come to see my mother, "he told her.

"Who did you come to see?" she said.

"You, " he said.

"Why me?"she said.

"Because I love you, "he said. "Now can we take a walk?"he said. "One foot in front of the other--through leaves, over bridges--"

They were taking the walk now, were in a woods with a brown-leaf floor.

Catharine was angry and rattled, close to tears. "Newt, "she said, "this is absolutely crazy. "

"How so?"said Newt.

"What a crazy time to tell me you love me, "she said. "You never talked that way before. "She stopped walking.

"Let's keep walking, "he said.

"No, "she said. "So far, no farther. I shouldn't have come out with you at all, "she said.

"You did, "he said.

"To get you out of the house, "she said. "If somebody walked in and heard you talking to me that way, a week before the wedding--"

"What would they think?"he said.

"They'd think you were crazy, "she said.

"Why?"he said.

Catharine took a deep breath, made a speech. "Let me say that I'm deeply honored by this crazy thing you've done, "she said. "I can't believe you're really A. W. O. L. , but maybe you are. I can't believe you really love me, but maybe you do. But--"

"I do, "said Newt.

"Well, I'm deeply honored, "said Catharine, "and I'm very fond of you as a friend, Newt, extremely fond--but it's just too late. "She took a step away from him. "You've never even kissed me, "she said, and she protected herself with her hands. "I don't mean you should do it now. I just mean this is all so unexpected. I haven't got the remotest idea of how to respond. "

"Just walk some more, "he said. "Have a nice time. "

They started walking again.

"How did you expect me to react?" she said.

"How would I know what to expect?"he said. "I've never done anything like this before. "

"Did you think I would throw myself into your arms?"she said.

"Maybe, "he said.

"I'm sorry to disappoint you, "she said.

"I'm not disappointed, "he said. "I wasn't counting on it. This is very nice, just walking. "

Catharine stopped again. "You know what happens next?"she said.

"Nope, "he said.

"We shake hands, "she said. "We shake hands and part friends, "she said. "That's what happens next. "

Newt nodded. "All right, "he said. "Remember me from time to time. Remember how much I love you. "

Involuntarily, Catharine burst into tears. She turned her back to Newt, looked into the infinite colonnade of the woods.

"What does that mean?"said Newt.

"Rage!"said Catharine. She clenched her hands. "You have no right--"

"I had to find out," he said.

"If I'd loved you," she said, "I would have let you know before now. "

"You would?"he said.

"Yes, "she said. She faced him, looked up at him, her face quite red. "You would have known, "she said.

"How?"he said.

"You would have seen it, "she said. "Women aren't very clever at hiding it. "

Newt looked closely at Catharine's face now. To her distress, she realized that what she had said was true, that a woman couldn't hide love.

Newt was seeing love now.

And he did what he had to do. He kissed her.

"You're hell to get along with!"she said when Newt let her go.

"I am?"said Newt.

"You shouldn't have done that, "she said.

"You didn't like it?"he said.

"What did you expect, "she said--"wild, abandoned passion?"

"I keep telling you, "he said, "I never know what's going to happen next. "

"We say good-by, "she said.

He frowned slightly. "All right, "he said.

She made another speech. "I'm not sorry we kissed, "she said. "That was sweet. We should have kissed, we've been so close. I'll always remember you, Newt, and good luck. "

"You too, "he said.

"Thank you, Newt, "she said.

"Thirty days, "he said.

"What?"she said.

"Thirty days in the stockade, "he said--"that's what one kiss will cost me. "

"I--I'm sorry, "she said, "but I didn't ask you to go A. W. O. L. "

"I know, "he said.

"You certainly don't deserve any hero's reward for doing something as foolish as that, "she said.

"Must be nice to be a hero, "said Newt. " Is Henry Stewart Chasens a hero?"

"He might be, if he got the chance, "said Catharine. She noted uneasily that they had begun to walk again. That farewell had been forgotten.

"You really love him?"he said.

"Certainly I love him!"she said hotly. "I would not marry him if I didn't love him!"

"What's good about him?"said Newt.

"Honestly!"she cried, stopping again. "Do you have any idea how offensive you're being? Many, many, many things are good about Henry! Yes, "she said, "and many, many, many things are probably bad too. But that isn't any of your business. I love Henry, and I don't have to argue his merits with you!"

"Sorry, "said Newt.

"Honestly!"said Catharine.

Newt kissed her again. He kissed her again because she wanted him to.

They were now in a large orchard.

"How did we get so far from home, Newt?" said Catharine.

"One foot in front of the other--through leaves, over bridges, "said Newt.

"They add up--the steps, "she said.

Bells rang in the tower of the school for the blind nearby.

"School for the blind, "said Newt.

"School for the blind, "said Catharine. She shook her head in drowsy wonder. "I've got to go back now, " she said.

"Say good-by, "said Newt.

"Every time I do, "said Carharine, "I seem to get kissed. "

Newt sat down on the close-cropped grass under an apple tree. "Sit down, " he said.

"No, "she said.

"I won't touch you, "he said.

"I don't believe you, "she said.

She sat down under another tree, twenty feet away from him. She closed her eyes.

"Dream of Henry Stewart Chasens, "he said.

"What?"she said.

"Dream of your wonderful husband-to-be, "he said.

"All right, I will, "she said. She closed her eyes tighter, caught glimpses of her husband-to-be.

Newt yawned.

The bees were humming in the trees, and Catharine almost fell asleep. When she opened her eyes she saw that Newt really was asleep.

He began to snore softly.

Catharine let Newt sleep for an hour, and while he slept she adored him with all her heart.

The shadows of the apple trees grew to the east. The bells in the tower of the school for the blind rang again.

"Chick-a-dee-dee-dee, "went a chickadee.

Somewhere far away an automobile starter nagged and failed, nagged and failed, fell still.

Catharine came out from under her tree, knelt by Newt.

"Newt?"she said.

"H'm?"he said, He opened his eyes.

"Late, "she said.

"Hello, Catharine, "he said.

"Hello, Newt, "she said.

"I love you, "he said.

"I know, "she said.

"Too late, "she said.

He stood, stretched groaningly. "A very nice walk. "he said.

"I thought so, "she said.

"Part company here?"he said.

"Where will you go?"she said.

"Hitch into town, turn myself in, "he said.

"Good luck, "she said.

"You too, "he said. "Marry me, Catharine?"

"No, "she said.

He smiled, stared at her hard for a moment, then walked away quickly.

Catharine watched him grow smaller in the long perspective of shadows and trees, knew that if he stopped and turned now, if he called to her, she would run to him. She would have no choice.

Newt did stop. He did turn. He did call. "Catharine, "he called.

She ran to him, put her arms around him, could not speak.


Einfaldasta framsetning Quicksort sem g hef s

etta er alger nerdafrsla en .. g hef sjaldan s snaggaralegri framsetningu Quicksort. etta er skrifa Python:

def qsort(L):
if L == []:
return []
pivot = L[0]
return (qsort([x for x in L[1:] if x < pivot]) +
[pivot] +
qsort([x for x in L[1:] if x >= pivot]))


qsort([3,1,4,1,5,2,7])
[1, 1, 2, 3, 4, 5, 7]
>>>


Hvar vaeri islenskan stoedd an islensku bokstafanna?

A degi islenskrar tungu vil eg minna a starf Arnar Kaldalons.

Thad gerdist ekki ad sjalfu ser ad islenskir bokstafir eru i oellum toelvum sem eru seldar a Islandi i dag.

a er ekki plss fyrir alla mgulega bkstafi stafatflum tlva. slenskir stafir eru 20 talsins og eir tku miki plss stafatflum rum ur egar aeins var plss fyrir 200 tkn. a urfti a berjast fyrir essu plssi erlendum vettvangi.

ar var rn Kaldalns "maurinn bak vi tjldin".

rn tk saman slenska stafatflu (CECP 871) sem enn er notkun slandi llum milungs- og strtlvum IBM. rn var yfirmaur ingastvar Orabkar Hsklans og IBM og s um slenskar mlkrfur fyrir IBM slandi 19841992. Hann var einnig fulltri gagnvart IBM vegna slenskra inga og mlkrafna en a var verkefni sem hann hafi sinnt fyrir IBM slandi. (IBM var eins og Microsoft dag, ailinn sem kva hvernig allt skyldi vera). rn hefur veri Oranefnd Skrslutkniflagsins fr 1978, meira en aldarfjrung.


N eru allir srslensku stafirnir hinum veigamikla aljlega stali ISO 8859. S staall er forsenda ess a vi getum nota slensku tlvutkni. rn mun hafa starfa me Jhanni Gunnarssyni a v mli en eir nutu astoar Willy Bohn, stalasrfrings hj IBM skalandi.

rn var gerur a heiursflaga aalfundi Skrslutkniflags slands 9. febrar 2006.


Hvernig er hgt a skrifa bk um hjlreiar? Allir kunna j a hjla....

etta er frnleg tmaeysla fyrir lgregluna og fjrmunum skattgreienda, segir Mark Wallace, yfirmaur Sambandi skattgreienda, sem hefur a a markmii a vekja berjast gegn misnotkun almannaf.

Hvers vegna ekki bk um hjlreiar fyrir lgreglumenn? a er rugglega til lengri bk um lgmarks endurkast fr endurskini blnmerum....

essi skatta barttu samtk munu seint leggjast niur vegna verkefnaskorts. eim er auvita sjlfsvald sett hva au rast en samt vildi g a au hefu vali verugra skotmark. Sennilega hefur samtkunum tt reihjl vera barnaleikfng og v htt a rast notendur eirra.

Fyrir 50 rum hefi vafalaust veri gert grn a bk sem fjallai um hvernig hgt vri a hanna eldhs annig a gott vri a vinna eim. "a er hgt a afgreia mli einni blasu: Staur konunnar er bak vi eldavlina. Af hverju a skrifa eitthva meira niur?"

g hef s bk um gnguferir fjll sem er meira en 100 bls. (eftir Jn Gauta). henni er grein um mikilvgi ess a halda hita ftunum og nnur um hvernig maur grefur sig fnn. etta safnast egar saman kemur. Einhver hefi lka geta spurt: "Hvernig er hgt a skrifa bk um a a fara labbitr?"

a m spyrja hvort hi opinbera a gefa t frslurit yfir hfu? g svara v hiklaust jtandi. g myndi vilja skoa eintak af essari hjlreiabk.


mbl.is Hjlreiabklingur gagnrndur
Tilkynna um vieigandi tengingu vi frtt

Anger management

g rddi vi flaga minn um a minn vri hugur ungur vegna "standsins" slandi.

Hann sagi a unglyndi vri reii sem ekki vri bi a vinna r.

g sagi a a vri stjrnleysi og frumsttt a sna reii (g las a "Art of War" eftir Sun Tzu).

Hann sagi a g vri eitthva a misskilja bkina, maur tti a virkja reiina v annars ti hn mann upp innanfr.

g lst upp vi a reii vri eyileggjandi kraftur, nnast ein af dauasyndunum, en hann sagi a annig yrfti hn ekki a vera. Ef hn breytist heift er hn orin eyileggjandi, ekki fyrr. " nokku til v" hugsai g.

egar g hjlai vinnuna morgun svnai bll veg fyrir mig. Reyndar var a ekki bllinn heldur kumaurinn.

Mannleg samskipti brotna niur egar flk ferast blum. Maur gangi sem rekst harkalega utan einhvern bist afskunar, en essi sami maur stoppar ekki nausynlega blinn og bist afskunar ef hann brtur rum kumanni.

venjulegum degi hefi g blva hlji og haldi fram og geymt essa lfsreynslu me rum srum kgglum, en af v g var nbinn a vera a hugsa um etta me reiina kva g a elta blinn. Hann lagi sti stuttu sar.

kumaurinn opnai hurina hlfskelfdur, sndist mr. g spuri me jsti: "sstu mig ekki?" "Nei, fyrirgefu" kom svari. Aha! Fyrirgefning. g brnai stanum, sagi "allt lagi" og hjlai gu skapi vinnuna.

"Anger management" dagur 1. Lrdmur dagsins: Elta - en ekki drepa .

Byrja eim sem svna umferinni og svo "baby steps" anga til maur er farinn a f beini um fyrirgefningu fr trsarvkingum og flokksgingum.

PS: g held a vri sniugt ef hgt vri a hringja blnmer. g er me RJ875. Ef hringt vri 1-500-RJ875 fengist smsamband vi mig. gtir sagt mr a a vru ljs blnum, g vri me lint afturdekkinu, n ea a g hefi svna fyrir ig.


Innskrning

Ath. Vinsamlegast kveiki Javascript til a hefja innskrningu.

Hafu samband