Feeds:
Posts
Comments

Archive for July, 2009

This came up, does PowerShell show public members of internal classes?

Yes we do, here’s proof.

Add-Type @”
    public class Top
    {
        internal class Inside
        {
            public string Hi() { return “Hi”; }
        }
       
        public static object GetInside()
        {
            return new Inside();
        }
    }
“@
[Top]::GetInside().Hi()
Hi

Hi is returned as the result of a public method on an internal class.

Privately public,
Waim Blue

Advertisements

Read Full Post »

True Love

I went to a soccer game today, Chelsea vs Seattle Sounders. I went wearing a Chelsea jersey, Chelsea jacket, with Chelsea friends.

On the outside, I was a Chelsea fan, inside I was still confused.

The game starts, and I’m hesitant to cheers for Sounders, I kind of do, but not really.

Chelsea scores a goal.

My heart is broken. I’m not, I cant be happy seeing the goal. It’s painful, and I knew from there my true love was Sounders. I cheered them all out.

They lost, 2-0. I would be happier supporting Chelsea. They sucked too, missing out on so many chances. What a disappointment. But regardless of the result, Sounders is my true love.

And this time, I was sure of it.

Kick it to me,
Waim Green

Read Full Post »

I use my inbox, as a todo list, inspired by GTD, but there is no way I can figure out what to do, if I have 500 items. I want to cut it down, get rid of the junk, file the references in the right places, group related ones into projects, and mark out high-pri stuff.

I think PowerShell can help me here. It can help me figure out, what exactly is in my inbox, where are they coming from, and show me views which are more actionable.

For example, I should be able see all the emails sent from a machine, as opposed to a person. There probably junk. Also, I should be able to filter out discussion aliases, and those could be junk. Team mail, mail from peers and managers probably belong in one bucket, and personal stuff in another.

I got some links to try out
– http://grinding-it-out.blogspot.com/2008/04/little-powershell-fun.html
– http://blogs.msdn.com/jmanning/archive/2007/01/25/using-powershell-for-outlook-automation.aspx

I start with
PS C:\Users\ibrar> $inbox.Items.Count
531
Ouch.

Ok, who are my top senders
function Get-TopSenders($emailList) {
    $emailList.Items | group SenderName | sort count
}
Get-TopSenders -emailList $inbox

Here are a few,
   15 Osama ..
   18 James ..
   30 Jon ..
   32 Ibrahim ..
   36 Lucio  ..
   68 Refaat ..

200 out of 531, which is a good place to start

Next I did, find me all external (non-microsoft) mail
@($inbox.Items) | ?{$_.SenderEmailType -eq ‘SMTP’} | select SenderName,Subject
It gives me 42 mails. Microsoft mail would have the type ‘EX’

Next, I have my list of things I can filter on, general keywords, like OOF

That’s about as far as PowerShell would get me
I ran out of ideas, and AD is not working well for me. It would be nice if I could just go, “Which sender doesn’t have a last name”? (Machine senders)

I’m at zero inbox, but with a lot of manual filtering. Sigh. 40 Items in my ‘basket’ (should be called inbox, hurm), 16 project folders, and a full calendar for 1 week, hopefully I will reach true zero by EOD Friday

Thinking about it, I should also add rules based on receiver. Am I the only receiver, was it sent to a DL, etc.

Faking Zero for now,
Waim Brown

Read Full Post »

I’m really happy about this

I did all of the editing. I know, I should of let the kids do it, but I didnt have enough time.

Its very cool how scenes you didnt anticipate come out very nice. I had very limited footage, and it wasnt easy to fill up all the minutes of the song.

Before I finished though, I did run it through the kids. They gave me a good idea for extra scenes, and we added that. I showed them editing, but I have better plans for teaching editing later.

For now, its nice to see the kids happy with the video, ready to show it off to friends and more

I’d like to dedicated the video effort to Asma, primary motivator. Note, I didnt choose the song, the kids did

Enjoy the show,
Waim Brown

Read Full Post »

Movie Day Three

O.K. Today was a tiring one. Wait, isn’t today a weekday? Yes, the kids are too cute, too demanding for me to only see them on weekends.

Today, I failed.

I gave into my exhaustion. I made everyone do exactly what I told them to, and I didn’t give a real chance for the kids to make their own decisions.

My excuse was, day 3, they should hold onto the camera. I was kind of surprised, the kids weren’t that excited. They still prefer to act in cool parts rather than hold the camera. Taking the shots must be a geek thing.

I went over the list of scenes we haven’t done, and there were quite a lot. Many didn’t seem as funny or cool as the ones we have covered.

An idea kind of sprung out of no where.

We used tape, and a fire place to make it look like two kids were in jail. It was suppose to be a quick scene. Show some crying, or loneliness.

But we put on the song in the background, and the kids sang to it. While they were singing, I gave them some acting directions, like, pretend to fight. It’s kind of cool. I think we can use the prison as a back drop throughout the entire clip.

I tried to replicate what we did in the prison, by going to the park, and doing it there.

Fail. Kids rule in the park. I have no business telling them what to do there.

I got some scenes, ripping out a heart, and random clips that I can cut and paste, like bike skills, on swings, playing music in the park, etc.

One other thing I tried to do was get the kids to direct. More or less, give the camera man (a kid) the power to command the actors. It kind of works ok, the director is interested in doing it, and tries to get them to act, but the fake-director-kid cant effectively command the other kids. This is something I want to train them more on.

How do you train a kid to direct? What tips can I give? Can I make it a game? How do get them to compete?

Directing Directors,
Waim Brown

Movie Day Three

O.K. Today was a tiring one. Wait, isn’t today a weekday? Yes, the kids are too cute, too demanding for me to only see them on weekends.

Today, I failed.

I gave into my exhaustion. I made everyone do exactly what I told them to, and I didn’t give a real chance for the kids to make their own decisions.

My excuse was, day 3, they should hold onto the camera. I was kind of surprised, the kids weren’t that excited. They still prefer to act in cool parts rather than hold the camera. Taking the shots must be a geek thing.

I went over the list of scenes we haven’t done, and there were quite a lot. Many didn’t seem as funny or cool as the ones we have covered.

An idea kind of sprung out of no where.

We used tape, and a fire place to make it look like two kids were in jail. It was suppose to be a quick scene. Show some crying, or loneliness.

But we put on the song in the background, and the kids sang to it. While they were singing, I gave them some acting directions, like, pretend to fight. It’s kind of cool. I think we can use the prison as a back drop throughout the entire clip.

I tried to replicate what we did in the prison, by going to the park, and doing it there.

Fail. Kids rule in the park. I have no business telling them what to do there.

I got some scenes, ripping out a heart, and random clips that I can cut and paste, like bike skills, on swings, playing music in the park, etc.

One other thing I tried to do was get the kids to direct. More or less, give the camera man (a kid) the power to command the actors. It kind of works ok, the director is interested in doing it, and tries to get them to act, but the fake-director-kid cant effectively command the other kids. This is something I want to train them more on.

How do you train a kid to direct? What tips can I give? Can I make it a game? How do get them to compete?

Directing Directors,

Waim Brown

Read Full Post »