kategorie Argief: Snaaks

Een rede vir "Die skepper van hierdie fout het nie 'n rede.”

Ek is besig met 'n baie werk met SharePoint soek die afgelope tyd en spesifiek die KeywordQuery klas, eienskappe en metodes.

As jy wil die resultaat stel om terug te keer bo en behalwe die gewone verdagtes (Kyk hier), jy dit by die SelectedProperties versameling, soos in:

myKeywordQuery.SelectProperties.Add("Xyzzy");

Baie dankie en 'n wenk van die hoed Corey Roth en hierdie baie nuttig blog boodskap (http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx)

In my geval, "Xyzzy" is nie eintlik 'n bestuurde eiendom.  Toe ek dit in elk geval aan SelectedProperties, SharePoint gooi een van my gunsteling runtime uitsonderings:

"Die skepper van hierdie skuld het nie 'n rede."

Ek wil veral die hoofstad "R" in die rede.  Dit klink vir my soos die NET ekwivalent. "Ek het geen mond, en ek moet skree."

</einde>

Skryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Reguit tronk toe Lys – Cisco VPN Kliënt

Verlede somer, Ek het 'n "reguit tronk toe"-lys vir die yskas.  #1 op die lys is Lawrence O'Donnell (onakkurate voorspellings), maar dit is buite die omvang van hierdie blog :)  Vandag, Ek is die toevoeging van Cisco se VPN-kliënt op die lys, en dit is in die bestek van 'n neus.

'N klomp jare gelede het baie van die kliënte gebruik Cisco VPN afgeleë toegang tot hul webwerf in staat te stel.  Terug dan, Ek het die virtuele rekenaars geskape vir elk van hierdie kliënte en geïnstalleer Cisco op daardie? Hoekom?  Omdat Cisco slotte jou rekenaar sodat jy kan nie eens plaaslike netwerk drukkers blaai, laat alleen gevaarlike gereedskap soos Skype, Communicator en die sleutel "~".  Maar,  As jy dit installeer op 'n SM, jou VM is gesluit, maar nie jou gasheer nie. 

Ek dink aan daardie gloriedae vandag, want ek het 'n Cisco VPN-kliënt te gebruik * weer * en dit sluit my en ek het om dit te gebruik in 'n minuut.  Ek wil eerder blog oor hoeveel Cisco VPN-kliënt verdien om in die tronk te wees, eerder as om dit gebruik ...

</einde>

Skryf in op my blog.

Volg my op Twitter http://www.twitter.com/pagalvin

Sondagoggend Funny: “Pa, Hy het nie eens weet jy”

Ons noordelike New Jersey Galvin se is groot aanhangers van die politieke satire TV. program, The Daily Show hosted by Jon Stewart. I don’t like to get political in my blogging, so al wat ek sal sê dit is dat sonder die Daily Show, Ek kan permanent verloor het alle sin vir humor op of ongeveer 12/12/2000.

Ons het 'n ete op die dek vroeg verlede week en my tien-jaar-oue seun bring 'n onlangse episode van die Wys. Ek het die opmerking gemaak, "Jon Stewart weet dat hy beter maak nie die plesier van my or there will be terrible consequences for Jon Stewart."

My seun dink daaroor vir 'n oomblik en sê: "Pa, nommer een: He doesn’t even know you."

Ek het gewag vir 'n nommer twee, maar hy het besluit dit was genoeg en beweeg na die volgende onderwerp sonder om die draai van 'n slag.

Dit gebruik om te wees wat ek kon 'n baie meer kilometers van dié soort grappe, but he’s getting too used to me or too mature or both. I need to adjust somehow.

</einde>

Skryf in op my blog.

Technorati Tags:

Sondag Funny: “Ek het gedink Dit was veronderstel om 'n ryk stad wees”

'N bietjie meer as drie jaar gelede, Ek en my vrou onderteken het my seun vir 'n somer-aktiwiteit, The Midland Park Players. This is a drama group that spends about three or four weeks preparing for a play and then showing it to the parents, friends and relatives. It’s always been done very well.

Ek weet nie as almal se kind is soos hierdie, but my son is extremely reluctant to try new things. Knowing this, we signed him up for the program. We’ve found that it’s best to alert him to these kinds of things early and often. So, ten einde sy natuurlike onwilligheid om te oorkom, ons het vir hom gesê vroeg op en het ons bes gedoen om dit klink soos pret te maak, ens.. Even with a multi-month advertising campaign, he still wasn’t convinced. We forced him to do, al, en is so dikwels die geval, he had a great time.

Teen die tyd dat die tweede jaar gerol rondom, he had once again convinced himself that he didn’t want to participate. Maar, ons geteken het hom opgetel en op die nul-dag, I dropped him off one morning at the high school where they practice. When I went to pick him up after lunch, Hy was baie opgewonde, al die glimlagte en aangekondig, "Die toneelstuk is die Fluweel Rabbit and I want to be the Rabbit". He had spent literally months carrying on (soms histeries) oor hoe hy wou nie iets te doen met die Park spelers te hê en na die eerste dag, he wants to be the lead role in the play. We’ve seen this pattern before.

(Ons tot ons verbasing, hy het die Rabbit rol en hy was ongelooflike.)

Fast forward a few years. He’s been in Park Players three times now, so he’s something of a veteran. This summer (2008), Players starts up again. In die gemiddelde tyd, hy uiteindelik oortuig hy werklik doesn’t want to play soccer and he never liked basketball. That left him with no extra-curricular activities for late Winter / early Spring. A client with whom I was working mentioned that his daughter was in a program called Stage Right. Stage right is a slightly more expensive version of Park Players and it’s not in my town, but adjacent to it. Perfect.

The thing to know about that town is that it’s practically another country in terms of wealth. It has a high-frequency train right to Wall Street and NYC in general. It’s just a wealthy place. One of the on-going family discussion themes is whether we should have moved to that town instead of where we live now. It’s a bigger town, die skole bied meer programme vir die kinders, ens.. My wife grew up in that town and her parents live there, sodat ons "hooked in" despite not living there. I personally grew up in different circumstances in Massachusetts, so I don’t have a lot to say about this during family dinner conversation. This isn’t to say that we aren’t very happy where we live. We just know that that town is a level above our town economically.

Stage Right’s next program started too soon for us to launch our normal advertising campaign to overcome my son’s reluctance. This is when he came up with one my personal favorite arguments against doing something: "Vrydagaande eerste nagte vir slaap boulbeurte!" Stage Right was going to interfere with his weekend socials.

Die dag kom, ons bring hom daar en val hom af en soos met alles anders, sy natuurlike liefde net lewe oorgeneem en hy is 'n goeie tyd saam met my.

Hierdie afgelope naweek het my vrou is met hom gepraat en vir die eerste keer, I think he’s tailoring his discussions very precisely for his audience. She had asked him how Stage Right compares to Midland Park Players. He tells her that "In Park Players, we have teenagers that help us out. There aren’t any in in Stage Right. In Park Players, teenagers make all props. In Stage Right, we have to bring our own props. We have to do everything. And then he twists the knife: "Ek het gedink dit was veronderstel om 'n ryk stad."

Al hierdie jare, I never really thought that he was hearing or understanding anything as it related to the "rich town". Egter, Dit blyk hy was.

</einde>

Skryf in op my blog.

Technorati Tags:

Sondag Funny: “Ek wonder of jou wagwoord …”

Ek het onlangs gekoop het middagete vir my broer (soos gewoonlik) and we ended up talking about funny things that we did at our respective colleges. At my alma mater, Lafayette College, the academic support IT department had a very inclusive way about it. We were given a LOT of rope and I took advantage of that at times.

Twee my gunsteling herinneringe aan my goeie vriend, Gabe. He had made the terrible mistake of telling people his freshman year that "I’m a freshman, maar ek het stage staan" as gevolg van die verskillende gevorderde plasing klasse wat hy geneem het, ens.. Many of us were similarly situated but we didn’t talk about it so much. His senior year, wanneer ons hom aan mense, we’d say "This is Gabe. He’s a Senior, Maar hy het 'n stage staan ​​".

The college had some Sun workstation/servers running X-Window. They had gigantic monitors and the engineers used them for CAD and other boring engineer stuff. We CS people used them to learn programming and, natuurlik, speletjies te speel.

Ons het nie soos die rekenaar-hulpeloos ingenieurs te veel so een van ons gunsteling dinge om te doen sou wees die telnet aan die boks hulle op en loop X-oog on them. This would pop up a pair of eyes that followed the mouse around on the screen. You could pop up even more and have literally a dozen or more of the X-eye applications running. Try not to laugh out loud when a hapless engineer is trying to close X-eye after X-eye and muttering under his breath about it 🙂

We also played X-trek on those boxes. To do that, jy het om die bron te laai, get various dependencies wherever you could find them and build it. I wasn’t a sophisticated C programmer, but I could read header files. I was looking through these and found directives like "#DEFINE MAX_TORPEDO_DISTANCE 10". I played around with that increase range and power for phases and torpedoes, weer gebou en dan vernietig Gabe die volgende keer wat ons gespeel.

Gabe was ook 'n groot fan van 'n TV-show met die naam Blake se 7. I had never seen it, maar dit het nie verhoed dat my uit te dring dat dr.. Who is the superior show. The arguments would get heated at times 🙂

Een dag, it occurred to me that I could probably guess his UNIX password. I sat down next to him one day and announced in a loud tone, "Ek gaan nou om jou wagwoord te raai, Gabe." "Yeah, reg" was his answer. I then logged in, betree sy gebruikers id, draai na hom, getik en hardop gesê, "Ek wonder of dit die B-L-A-K-E-7" ? Touch typing has never paid off as handsomely as it did that day.

Volgende week (of so spoedig moontlik): More computer room antics from college.

Het jy 'n deel? Leave a comment or email me and I’ll publish them here.

</einde>

Skryf in op my blog.

Technorati Tags:

Sondag Funny: “Toe ek 'n klein seuntjie”

As 'n ouer, iewers langs die pad het ek ontdek die "Toe ek 'n klein seuntjie" trick.

My seun, waarskynlik vier of vyf by die tyd, speel 'n ballon en soos die meeste seuntjies wat speel met ballonne, he popped it. He was very upset. The world had come to an end. I said to him, "Toe ek 'n klein seuntjie, Ek het 'n ballon en dit inloer en uiteindelik, I got a new balloon." It seemed to help him cope with his loss and led to a fun talk about what it was like when I was a little boy.

That worked well as a consolation technique and I used it a several times over the next period of time. I did get into trouble once when his Monster Rancher 3 creature died. I talked about how my dog, Prins, had died in a car accident. Hierdie keer, was sy antwoord, "Nou voel ek sleg oor twee dinge!" I shied away from using the "when I was a little boy" tegniek vir die troos na daardie.

Voor die dooie hond voorval, egter, I had also started to use the technique to convince him to do chores. "Toe ek 'n klein seuntjie was, Ek het om uit te gaan en die koerant te kry. ", "My kamer skoon", "Mamma haar koffie beker", ens..

Dit was ook redelik suksesvol vir 'n rukkie, but he started to increasingly rebel against the tyranny of my childhood. One event, in die besonder, marked the end. I told him to bring the garbage cans from curb back to the garage. He argued and I responded, "Toe ek 'n klein seuntjie was, I had to take the garbage back to the garage." He responded, "O ja! Well when you were a little boy, wat is dom!".

</einde>

Skryf in op my blog.

Technorati Tags:

Sondag Funny: “NIE vir die uitvoer”

Terug rondom 1998, the company I worked for at the time received some funding to create a new e-commerce product. We had the full gamut of business requirements to meet. Dit het vinnig, maklik vir eindgebruikers, flashy, multi-taal, ens.. Hartseer om te sê, Ek het waarskynlik nie as 'n ambisieuse stel van die werk uit te voer, aangesien dié onstuimige dae.

This effort pre-dated Microsoft.NET. Plain vanilla ASP was still somewhat new (of ten minste baie onbekende vir my maatskappy). "Brick and mortar" companies were doomed. Gedoem! This is to say that it was pioneering work. Nie Hadron Collider baanbrekerswerk, maar vir ons in ons klein wêreld, dit was baanbrekerswerk.

We were crazy busy. We were doing mini POC’s almost every day, uitzoeken hoe om die toestand te handhaaf in 'n inherent staatloos medium, uitzoeken multi-taal kwessies, row-level security. We even had create a vocabulary to define basic terms (Ek verkies staat aanhoudende, maar vir een of ander rede, die ongemaklike "State Full" het die dag).

Soos ons is soos 'n besetene die uitvind van hierdie produk, the marketing and sales people were out there trying to sell it. Somehow, they managed to sell it to our nightmare scenario. Even though we were designing and implementing an enterprise solution, we really didn’t expect the first customer to use every last feature we built into the product day zero. This customer needed multi-language, 'n radikaal verskillende koppelvlak van die "standaard" system but with the same business logic. Multi-language was especially hard in this case, omdat ons altyd gefokus op die Spaanse of Franse, maar in hierdie geval, dit was die Chinese (wat is 'n double-byte karakter stel en vereis spesiale hantering van die tegnologie wat ons gebruik).

Fast forward a few months and I’m on a Northwest airlines flight to Beijing. I’ve been so busy preparing for this trip that I have almost no idea what it’s like to go there. I had read a book once about how an American had been in China for several years and had learned the language. One day he was walking the city and asked some people for directions. The conversation went something this:

  • Amerikaanse: "Kan jy my vertel hoe om te kry [XX] straat?"
  • Chinese: "Ek is jammer, ons praat nie Engels nie ".
  • Amerikaanse: "O, goed ek praat Mandaryns." en Hy vra hulle weer in die Sjinees, maar meer duidelik (as die beste wat hy kon).
  • Chinese: Baie beleefd, "Ek is jammer, ons praat nie Engels nie ".

The conversation went on like that for bit and the American gave up in frustration. As he was leaving them he overheard one man speaking to the other, "Ek kon sweer hy het gevra vir aanwysings na [XX] straat."

Ek opgetel het 'n paar stukkies van ander China-verwante kwasi-inligting en "nuttige advies":

  • 'N Koreaanse mede-gewerk het aan my gesê dat die wat ek nodig het om versigtig te wees van die Chinese, want "hulle sal probeer om my dronk te kry en neem voordeel van jou" in die sin van die druk van my in 'n swak sakebesluite.
  • Ons was nie toegelaat om motors te ry (was daar 'n verwarring oor of dit was 'n gewoonte, 'n wetlike vereiste is of net die kliënt se heerskappy).
  • Daar is spesiale reëls vir die wat deur die doeane.
  • Ons was nie toegelaat om Amerikaanse geld te gebruik vir enige iets.
  • You’re not supposed to leave tips. It’s insulting if you do.

En uiteindelik, Ek het relatief vars herinneringe Tiananmen slagting. When I was at college, I remember seeing real-time Usenet postings as the world looked on in horror.

In kort, I was very nervous. I wasn’t just normal-nervous in the sense that I was delivering a solution that was orders of magnitude more complicated than anything I had ever done before. I was also worried about accidentally breaking a rule that could get me in trouble.

Ek is op hierdie 14 uur vlug en al was dit besigheid klas, 14 uur is 'n verdomde lang tyd. Daar is net soveel maniere om jouself te vermaak deur te lees, watching movies or playing with the magnetized cutlery. Even a really good book is hard to read for several hours straight.

Uiteindelik, Ek het begin om die verpakkingsmateriaal te lees op 'n stuk sagteware, was ek die hand wat saam met my aan die kliënt, Netscape’s web server. I’m reading the hardware/software requirements, die bemarking blurbs, op soek na die mooi prentjie en skielik, Ek toespits op die reus "nie vir UITVOER" waarskuwing, iets oor 128 bit encryption. I stuffed the box back into my carry bag, waarskuwing gesig af (asof dit sou gehelp het) en probeer visioene van te hou Midnight Express out of my head.

As ons terugkyk op dit nou, Sou ek bekommerd gewees het, indien enigsins, wanneer ek het die VSA, not when I was entering China 🙂 Nothing untoward happened and I still consider that to be the best and most memorable business trip I’ve had the pleasure of making.

</einde>

Skryf in op my blog!

Technorati Tags: ,

Sondag Funny: Hou jou seun op sy tone

One of the many joys I take in being the parent of a ten year old boy is finding new ways to make him laugh or think a little differently about questions and things in the world. I’ve used these techniques over the years:

===

Misconstrue sy vrae:

Sy: Watter dag is dit?

Pa: Een dag voor Woensdag.

S: Nie, what day of the month is it?

D: O, it’s 4 days after Jan 25.

===

Tickle him and tell him you’ll stop when he stops laughing.

===

Go down stairs to the TV room and announce, "It’s good to be the daddy." Toe, pick him up to get the warm spot on the couch and change the channel to something good, like the Scifi channel.

===

Read stories out loud. Insert ridiculous sentences in the middle of the story. My favorite is to add "killing him instantly" when the main characters encounters some minor trouble. Byvoorbeeld, "the knife slipped in his hand, cutting his index finger, killing him instantly." Nothing quite gets your son out of a complacent and passive listening mode as the main character being killed instantly.

===

Read stories incorrectly. Read sentences backward. The best part of this is that the first couple of times I did this, my son thought he was helping me out by pointing out that I wasn’t reading the words in the right order. The down side is that he really doesn’t want me to read to him any more.

===

Go to Burger King for lunch. My son would eat BK morning, night and day if we let him. When going, tell him, "I know you hate going there, but we simply have no choice." When he tries to explain that he loves BK, talk over him and say things like "We don’t have time to argue about it! We’re going and I don’t want to have a discussion!"

(This reminds me of my favorite Borg joke: "Borger King: We do it our way. Your way is irrelevant." hahaha!)

===

Open a book to page 9 and say, "hmm, that’s an odd page".

===

Fill the world with arch enemies. "We’re going to run quick over toe 7-11, arch-enemy of 11-7".

"Your aunt lives in Ringwood, arch enemy to the town of Squarewood."

===

We drive up to Massachusetts from New Jersey several times a year and it often takes about 5 hours door to door. As we arrive home and pull into the driveway say, "oh, I forgot, we need to make a quick dash to Home Depot."

===

When watching a violent episode in a TV show (such as Heroes), tell your son, "some times, at work, I need to destroy my enemies by burning them alive using the powers of my mind. I don’t like doing it, but you gotta do what you gotta do."

===

When watching bad horror movies (see "It’s good to be the Daddy" bo), ascribe improbable motives to the evil character. Byvoorbeeld, tell your son that the reason Jason is so angry is because he wants some cake and they won’t let him have any.

===

Explain phone numbers incorrectly. Instead of telling your son to dial "201-111-2222", tell him it’s "2-011-1-12222".

===

What tricks do you use?

</einde>

Technorati Tags: