depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • support
  • videos
  • what is depicus

Posts Tagged ‘DotNet’

Create a vCal in dot.net

Tuesday, March 2nd, 2010



I am in the process of updating a project we started 6 years ago. One of the functions was to add a diary event to Outlook. At the time there was a simple method of automation to add events directly to Outlook but in this day and age there are two problems with this approach

1. Automation of other applications is becoming more and more complex, having to jump through security hoops and then explain that to end users is just to much hard work.

2. Outlook may be king now but providing solutions that work with multiple suppliers software is the way forward.

This snippet now allows us to create a calendar event and open so the user can check and confirm, not the neatest solution but it works.

View Code VB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Dim myICal As New StreamWriter("event.vcs")
Dim sDate As Date = Convert.ToDateTime(edtOn.Text + " " + edtAT.Text)
Dim eDate As Date = DateAdd(DateInterval.Hour, 1, Convert.ToDateTime(edtOn.Text + " " + edtAT.Text))
Dim myLocation As String = lblView.Text
Dim mySubject As String = lblFor.Text
Dim myDescription As String = "Event details: Check server is started"
 
'Create the vCal
myICal.WriteLine("BEGIN:VCALENDAR")
myICal.WriteLine("PRODID:-//Digital Wired Limited.//Agency Manager Professional//EN")
myICal.WriteLine("BEGIN:VEVENT")
myICal.WriteLine("DTSTART:" & sDate.ToUniversalTime.ToString("yyyyMMdd\THHmmss\Z"))
myICal.WriteLine("DTEND:" & eDate.ToUniversalTime.ToString("yyyyMMdd\THHmmss\Z"))
myICal.WriteLine("LOCATION:" & myLocation)
myICal.WriteLine("DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" & myDescription)
myICal.WriteLine("SUMMARY:" & mySubject)
myICal.WriteLine("PRIORITY:2")
myICal.WriteLine("END:VEVENT")
myICal.WriteLine("END:VCALENDAR")
myICal.Close()
 
System.Diagnostics.Process.Start("event.vcs")

That’s it, not pretty but functional.

Tags: Code, DotNet, Outlook, vb.net, Windows
Posted in Software Development | No Comments »

Is Wake On Lan dead ?

Tuesday, March 2nd, 2010



The short answer is no, and a little bit yes.

I haven’t done any work on depicus for a while, ok 4 years, and the site has been bumbling along quite well. Indeed it get between 1000 and 1500 hits a day and mainly geek traffic (Firefox users account for 43% of all traffic). Now I think it’s time I updated it and open sourced the code. This isn’t going to happen overnight but hopefully over the next few months i can give it a facelift and refresh as well. 4.5 million page views and you must be getting a bit tired of the site by now :)

One thing that will not be updated however is the Windows Mobile app. I’m with Skype on this one, it’s just too much work and the experience isn’t what I want it to be.

The original idea of depicus was to give back for all the great stuff I have had for free from the interweb. I think I am getting close to that goal.

Tags: DotNet, Interweb, Open Source, Skype, Windows
Posted in Wake On Lan | 14 Comments »

  • how i pay the bills

  • google rank getter

    Android Apache Aperture Apple App Store bbPress Bike Bug Canon 7D Code Dell DotNet Dropbox Fail Firefox forum Frustration Golf iPad iPhone iPod Touch Java Kenya Linksys Macbook Pro Netgear Objective C Open Source OSX PHP Rejected Safari Server Skype Support Ubuntu Update WakeOnLan Wake On Lan Wifi Windows Windows 7 Phone Wireshark Wordpress XCode
  • depicus in africa

    depicus in africa
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_3001 IMG_4261 Bisley Developments Ltd IMG_1737
  • videos

    Vimeo

    YouTube
  • twitter

    • Holy geekness batman we have an Arduino doing Wake on Lan forwarding programmed in less than 4 hours… amazing - #iamanubergeektoday view
    • Arduino WoLF app coming along nicely view
    • RT @pasm69: On the one hand we are in a #drought says #thameswater, on the other £4.1B to throw rainwater down the #supersewer #itisjust ... view
  • recent comments

    • Sef: Yo, thats 720p @ 60fps. Huge Difference… in file size, processing, everything. DSLRs aren’t there...
    • Finson: Worked..!! Replaced all the InstallOnLHS and InstallOnWinXP with value 0 and the installation completed...
    • Geux: Terminal command didn’t work, but editing the plist manually did the trick. Thanks !!!
    • Nebras Alattar: Hi The code that you posted is very useful, but i faced a problem when i run the app i got the...
    • leon: how can I get the ImageIO.framework ? I’ve read that it doesn’t exist for iphone!!!! Can anyone...
  • archives

    • May 2012 (2)
    • April 2012 (4)
    • February 2012 (8)
    • January 2012 (6)
    • December 2011 (7)
    • November 2011 (1)
    • October 2011 (2)
    • September 2011 (2)
    • August 2011 (4)
    • July 2011 (6)
    • June 2011 (9)
    • May 2011 (8)
    • April 2011 (2)
    • February 2011 (6)
    • January 2011 (14)
    • December 2010 (9)
    • November 2010 (8)
    • October 2010 (14)
    • September 2010 (6)
    • August 2010 (9)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (2)
    • April 2010 (2)
    • March 2010 (11)
    • February 2010 (3)

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.