The truth about working in the IT industry

The truth about working in the IT industry

1. We work weird (night) shifts…
Just like prostitutes.

2. They pay you to make the client happy…
Just like a prostitute.

3. The client pays a lot of money, but your employer keeps almost every penny…
Just like a prostitute.

4. You are rewarded for fulfilling the client's dreams…
Just like a prostitute.

5. Your friends fall apart and you end up hanging out with people in the same profession as you…
Just like a prostitute.

6. When you have to meet the client you always have to be perfectly groomed…
Just like a prostitute.

7. But when you go back home it seems like you are coming back from hell…
Just like a prostitute.

8. The client always wants to pay less but expects incredible things from you…
Just like a prostitute.

9. When people ask you about your job, you have difficulties to explain it…
Just like a prostitute.

10. Everyday when you wake up, you say: "I'm not going to spent the rest of my life doing this."
Just like a prostitute................
....
Read More... The truth about working in the IT industry

Rounded courners CSS

Cantos Redondos com css / Rounded Corners with css

border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
Read More... Rounded courners CSS

CSS Hack for IE VS Firefox VS Safari VS Opera

/* Firefox */
@-moz-document url-prefix()
{
.arrowlistmenu { margin-top:-10px }
}

/* Safari */
@media screen and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}

/* Opera */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}


/* IE 7 */
html > body #ie7
{
*.arrowlistmenu { margin-top:-10px }
}

/* IE 6 */
body #ie6
{
_.arrowlistmenu { margin-top:-10px }
}





With stylesheets
Read More... CSS Hack for IE VS Firefox VS Safari VS Opera

Send appointments to a list of Recipients (exchange 2007) via c#

To use this code, you need to install http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 , this will create a dll, that you need to import to the project


try
 {
 // TODO: Write implementation for action

 ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
 service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);
 service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);

 Appointment appointment = new Appointment(service);
 appointment.Subject = ssSubject;
 appointment.Body = ssDescription;
 appointment.Start = ssStartDate;
 appointment.End = ssEndDate;
 appointment.Location = ssLocation;

 for (int i = 0; i < ssRecipients.Length; i++)
 {
 appointment.RequiredAttendees.Add(ssRecipients[i].ssSTListOfEmails.ssEmail);
 }

 appointment.Save(SendInvitationsMode.SendOnlyToAll);
 }
 catch (Exception e)
 {
 ssErrors = "The error is: " + e.ToString();
 }

Read More... Send appointments to a list of Recipients (exchange 2007) via c#

Send email (exchange 2007) via c#

To use this code, you need to install http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 , this will create a dll, that you need to import to the project

//connection to ExchangeServer
 try
 {
  ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

  service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);

  
  service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);

  // Create an e-mail message and identify the Exchange service.
  EmailMessage message = new EmailMessage(service);

  // Add properties to the e-mail message.
  message.From = ssSender;
  message.Subject = ssEmailSubject;
  message.Body = ssEmailDescription;
  for (int i = 0; i < ssRecipient.Length; i++)
  {
  message.ToRecipients.Add(ssRecipient[i].ssSTListOfEmails.ssEmail);
  }

  // Send the e-mail message and save a copy.
  message.Send();
 }
 catch (Exception e)
 {
 ssErrors = "The error is: " + e.ToString();
 }

Read More... Send email (exchange 2007) via c#

Access to email exchange from c#

To use this code, you need to installhttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 , this will create a dll, that you need to import to the project

 ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

 service.Credentials = new NetworkCredential(user, password, domain);

 service.Url = new Uri("https://domain/EWS/Exchange.asmx");

 Mailbox mb = new Mailbox(email_to_access);
 FolderId fid1 = new FolderId(WellKnownFolderName.Inbox, mb);

 //reads the emails
 FindItemsResults <Item> findResults = service.FindItems(fid1, new ItemView(50));


 foreach (Item item in findResults.Items)
 {
  item.Load();
  EmailMessage m = (EmailMessage)item;
  if (!m.IsRead)
  {
   //Set Isread.
   m.IsRead = true;
   m.Update(ConflictResolutionMode.AutoResolve);
  }
 }

Read More... Access to email exchange from c#

Access to a appoitment from the Exchange calendar in c#

To use this code, you need to installhttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 , this will create a dll, that you need to import to the project

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

 service.Credentials = new NetworkCredential(user, password, domain);

 service.Url = new Uri("https:/domain/EWS/Exchange.asmx");

 Mailbox mb = new Mailbox(email_to_access);

 DateTime startDate = new DateTime(2010, 1, 1);
 DateTime endDate = new DateTime(2011, 1, 31);
 CalendarView calView = new CalendarView(startDate, endDate);
 calView.PropertySet = new PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.IsRecurring, AppointmentSchema.AppointmentType);

 FindItemsResults <Appointment> findResults = service.FindAppointments(WellKnownFolderName.Calendar, calView);

 foreach (Appointment appt in findResults.Items)
 {
  if (appt.AppointmentType == AppointmentType.Occurrence)
  {
  // Calendar item is an occurrence in a recurring series.
  }
  else if (appt.AppointmentType == AppointmentType.Exception)
  {
  // Calendar item is an exception in a recurring series.
  }
 }
 
Read More... Access to a appoitment from the Exchange calendar in c#