Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
creativepsyco / cal.js
Created May 18, 2011 19:13
Thunderbird Links
/**
* Check if the specified calendar is writable. This is the case when it is not
* marked readOnly, we are not offline, or we are offline and the calendar is
* local.
*
* @param aCalendar The calendar to check
* @return True if the calendar is writable
*/
function isCalendarWritable(aCalendar) {
return (!aCalendar.getProperty("disabled") &&
@creativepsyco
creativepsyco / calCachedCalendar.js
Created May 18, 2011 23:30
Modified delete function in calCachedCalendar.js
deleteItem: function(item, listener) {
/*if (this.offline) {
//ASSERT(false, "unexpected!");
if (listener) {
listener.onOperationComplete(this, Components.interfaces.calIErrors.CAL_IS_READONLY,
Components.interfaces.calIOperation.DELETE, null, null);
}
return null;
@creativepsyco
creativepsyco / smth.txt
Created May 24, 2011 18:17
Changed Files for Calendar
/Users/msk/Desktop/moz/comm-central/objdir-tb-release/mozilla/dist/Shredder.app/Contents/MacOS/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js/calCachedCalendar.js --> deleteItem() Changed
/Users/msk/Desktop/moz/comm-central/objdir-tb-release/mozilla/dist/Shredder.app/Contents/MacOS/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/calendar/content/calendar/calUtils.js -> isCalendarWritable() - changed
@creativepsyco
creativepsyco / cal.js
Created May 24, 2011 18:48
My Version of isCalendarWritable
function isCalendarWritable(aCalendar) {
//return true;
/*return (!aCalendar.getProperty("disabled") &&
!aCalendar.readOnly &&
(!getIOService().offline ||
aCalendar.getProperty("requiresNetwork") === false));*/
//Begin -- redDragon's version --
return (!aCalendar.getProperty("disabled") &&
!aCalendar.readOnly &&
(!getIOService().offline ||
@creativepsyco
creativepsyco / changes
Created May 27, 2011 07:50
Links for the Calendar Changes
#Parsing ICS strings
http://mxr.mozilla.org/comm-central/source/calendar/base/public/calIIcsParser.idl#63
@creativepsyco
creativepsyco / calcCachedCalendar.js
Created June 4, 2011 19:31
calcachedCalendar [First version]
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@creativepsyco
creativepsyco / calCalendarManager.js
Created June 8, 2011 13:51
calcachedCalendar [2nd Day]
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@creativepsyco
creativepsyco / hidden.txt
Created July 14, 2011 18:39
Command to enable viewing of hidden files in mac
defaults write com.apple.Finder AppleShowAllFiles TRUE
@creativepsyco
creativepsyco / caldav_rfcs.txt
Created October 26, 2011 00:51
CALDAV RFCs
RFC 5546 iCalendar Transport-Independent Interoperability Protocol (iTIP)
RFC 5545 Internet Calendaring and Scheduling Core Object Specification
@creativepsyco
creativepsyco / php-webservice.txt
Created October 30, 2011 06:40
PHP RESTful Webservices
http://benramsey.com/media/talks/RESTful-Web-Services.pdf
http://benramsey.com/archives/ipc06-slides/