Archive for April, 2007

April 24
spring time in baltimore
posted by mike at 11:02 pm

springtime makes me fall in love w/ baltimore all over again

 
April 23
like we need another lightbox
posted by mike at 10:14 am

so I love all the lightbox stuff out there, everyday there seems to be another one popup (pardon the pun) on ajaxian. What I dont like is there dependence on the relation tag, and how complicated they can get. So I made my own SimpleModal.js, basic gist is you call it from js, and you send it what ever content you want in it. This gives me more flexibility say to call some ajax to do a save on lightbox close.

heres the js

JAVASCRIPT:
  1. function simpleModal(c,s,ci)
  2. {
  3.     this.content = c;
  4.     this.closescript = s;
  5.     this.closeicon =ci;
  6. }
  7. simpleModal.prototype = {
  8.     openWindow:function()
  9.     {
  10.         this.getScroll();
  11.         this.setScroll(0,0);
  12.  
  13.         this.hideSelects(true);
  14.         bod = document.getElementsByTagName('body')[0];
  15.         overlay = document.createElement('div');
  16.         overlay.id  = 'modalOverlay';
  17.         lb  = document.createElement('div');
  18.         lb.id = 'modal';
  19.         lb.innerHTML += '<div style="text-align:right"><a href="javascript:'+this.closescript+';" style="">'+(this.closeicon!=''?'<img src="' + this.closeicon + '" border="0" alt="close" />':'X') + '</a></div>'+this.content;
  20.         
  21.         bod.appendChild(overlay);
  22.         bod.appendChild(lb);
  23.         
  24.         document.getElementById('modal').style.marginLeft=((document.body.clientWidth - document.getElementById('modal').clientWidth)/2)+'px';
  25.         document.getElementById('modal').style.display='block';
  26.       
  27.     }
  28.     ,
  29.     closeWindow:function()
  30.     {
  31.        this.hideSelects(false);
  32.        document.getElementById('modal').style.display='none';
  33.        bod = document.getElementsByTagName('body')[0];
  34.        bod.removeChild(document.getElementById('modalOverlay'));
  35.        bod.removeChild(document.getElementById('modal'));
  36.     }
  37.  
  38.      ,
  39.     // borrowed from lightbox implementation found at http://www.huddletogether.com/projects/lightbox/
  40.     /*---------------------------------------------------------------------------------------------*/   
  41.     hideSelects: function(visibility){
  42.         selects = document.getElementsByTagName('select');
  43.         for(i = 0; i <selects.length; i++) {
  44.         try{
  45.             selects[i].style.visibility = visibility;
  46.             }catch(err){}
  47.         }
  48.     },
  49.    
  50.     getScroll: function(){
  51.         if (self.pageYOffset) {
  52.             this.yPos = self.pageYOffset;
  53.         } else if (document.documentElement && document.documentElement.scrollTop){
  54.             this.yPos = document.documentElement.scrollTop;
  55.         } else if (document.body) {
  56.             this.yPos = document.body.scrollTop;
  57.         }
  58.     },
  59.    
  60.     setScroll: function(x, y){
  61.         window.scrollTo(x, y);
  62.     }
  63.    
  64.     /*----------------------------------------------------------------------------------------------*/
  65.    
  66. }

heres the css

HTML:
  1. #modalOverlay{
  2.     position:absolute;
  3.     top:0;
  4.     left:0;
  5.     width:100%;
  6.     height:100%;
  7.     z-index:5000;
  8.     background-color:#000;
  9.     -moz-opacity: 0.8;
  10.     opacity:.80;
  11.     filter: alpha(opacity=80);
  12. }
  13.  
  14. #modalOverlay[id]{
  15.     position:fixed;
  16. }
  17.  
  18. #modal{
  19.     position: absolute;
  20.     z-index:9999;
  21.     height:inherit;
  22.     border:10px solid #555555;
  23.     background:#FDFCE9;
  24.     text-align:left;
  25.     top: 40px;
  26.     left: 0;
  27.     width: inherit;
  28.     margin: 0 auto;
  29.     disply:none;
  30. }
  31.  
  32. #modal[id]{
  33.     position:fixed;
  34. }

and some implementation code

JAVASCRIPT:
  1. var uploader = new simpleModal('<iframe src="uploadfile.aspx" width="300" height="200" />','CloseUploadFile()','images/close.gif');
  2.  
  3. function UploadFile()
  4. {
  5.      uploader.openWindow();
  6. }
  7.              
  8. function CloseUploadFile()
  9. {
  10.     uploader.closeWindow();
  11.     <%=this.UpdateJS%>;
  12.     //in my case UpdateJS makes an Asp.Net Ajax postback
  13. }

 
April 20
CODECAMP WSE presentation
posted by mike at 10:08 pm

So April 21, I'm doing a presentation on WSE 3.0 at the cmap code camp.

here is where I post the content... first the slides.

and of course the working examples, these examples cover wse 3.0 turnkey security, routing, custom token managers, custom soap router, mtom services, and mtom clients both as a console app and a asp.net ajax app.

wse-codecamp-code-4-21-2007.zip

hope this helps some folks!

 
April 15

tickles tapeworm
i don't know how i never saw these before!

hope you are all doing well on the east coast! see you monday!
jen

 
April 11
congrats jen
posted by mike at 1:17 pm

and to think there will be another

 
April 10
watch me ride
posted by jim at 7:34 am

well, not really. But if you want to track my riding habits so you can make fun of me. Feel free to click the "Jim's Rides" section of the links. It links to my motionbased account which ties in to my techno gear bike nerd GPS system. Any ride I do on my road bike, cross bike or mountain bike will be on here. If I remember to throw it in my pocket, the fixed rides will show up too. You can see my route, speed (or lack thereof), distance, calories burned, elevation profile and speed vs. elevation graph.

Here's the elevation of 2 laps in the park.

Here's my speed (the dark line) vs. the elevation profile.


Click Here for More unnecessary info:
The Test run

 
April 09
3 days. 106 miles.
posted by jim at 7:55 pm

Well. It was supposed to be 3 days 184+ miles but it didn't quite work out that way. Here's my write-up (hopefully MIke will do one as well):

Read about it
If you don't like reading and just want to look at pictures that mike took. go here
Read the rest of this entry »

 
April 02
patapsco is always humbling
posted by jim at 9:49 pm

decided to get some dirt under the rubber today and head to patapsco. I'm always very quick to tell everyone that I'm a mediocre mountain biker on my best day and a poor one on most. Now, some people would accuse me of downplaying my ability because they say that's what I always do, but I assure you, I am crap-mountain biker. But today, I dusted off the old singlespeed rig and tried to adapt to my new local trails.

Got on the soapstone trail from the park n ride. I have ridden part of this before, but it felt easier today. THere are also a lot more stream crossings than I remember. 10 minutes in, I was thinking that my fork didn't seem to be eating up the bumps the way it normally does. THen I looked down and saw that I still had the lockout on. THe soapstone trail hits a little parking lot and then goes straight up one of the ridiculous hills that seem to be everywhere in patapsco. I managed to ride most of it but had to start pushing as I got near the top.

It seems like patapsco is just a string of hills I can't ride up and hills I'm too scared to go down full speed. This is the nearest trail though and the best in the area so I guess I have to get used to it. The descent down the soapstone trail wasn't so bad though. I ended up back at the parking lot pretty quick so I figured I'd try to hit up another part.

Started rolling back out towards the car and cut left on the bull run trail. This trail was a push-a-thon for me. the hills seemed ridiculous. Once I hit the top, I ended up off trail down a big hill, pushed back up and then retraced the way I came up. There was a really steep downhill that I pretty much rode down at a snail's pace choking on the brakes because I'm a sally. rolled back along the soapstone and then came home.

I've got 7 more days of break before I go back to work, I'm going to do my best to get off road every day if I can. Maybe at the end of the week, I won't be such a wimp.

 
April 02
photopath
posted by mike at 12:06 am

so ive been playing w/ this for a while... and now ive linked it in... the new photogallery... I call it photopath... im still working on it... but thus far its features the following...

  1. user friendly / bookmarkable urls
  2. maps (currently yahoo) possible per image
  3. comments
  4. photo jpg meta data
  5. rss
  6. asp.net ajax ui stuff
  7. admin built/being built using flex

im still working on things as they go along but im happy w/ it thus far... im using it basicly as a test bed for stuff... like flex and asp.net ajax etc... plus i need a nice place to put up my pics... like on next monday the pics from the 2007 c&o ride and bachlor party chaos tour... as that this thing is just being hacked on , durring spare moments, the code / css is kind of ugly right now... when i get a chance im gonna clean it up and release it as open source... but for now... eh it works.