Tuesday, November 30, 2010

apex debug log output does not show up on Eclipse - Stack Overflow

A horrible bug is a when you can't see your debug output. You already don't have a way to step through this stuff.

But this fix 20.0.1 Winter release in Salesforce fixes it.

Thank goodness for update in eclipse. 4 minutes and your back with your debug output working. It looks like it was released fairly recently.


apex debug log output does not show up on Eclipse - Stack Overflow

VisualForce Element Ids in jQuery selectors « The Silver Lining

VisualForce Element Ids in jQuery selectors « The Silver Lining

Yeah when you are using jQuery and Visual Force you need to be careful that you escape out the tags that visualforce creates for you. Because of the ":" which CSS uses internally.

JQuery uses CSS style selectors and ":" is a special case for them.


Wednesday, September 29, 2010

Compromising Twitter's OAuth security system

Compromising Twitter's OAuth security system

Good article on the immaturity of the OAuth System.

Wednesday, September 15, 2010

Collapse Page Block Sections by Default - solved


This one is good I use this one in Salesforce.


Collapse Page Block Sections by Default - solved: "

My issue solved!

I want to collapse all Page Block sections by default on page open.

I can write code in a VF Page, but I get cross site scripting errors.

Create a Static Resource using JavaScript to accomplish the default collapse:

function twistSection(twisty, sectionId) {
//twistSection code from salesforce.com
var parentDiv = twisty;
while (parentDiv.tagName != 'DIV') { parentDiv = parentDiv.parentNode; }
var headerId = sectionId || (parentDiv.id.split('_'))[1];
var div = parentDiv.nextSibling;
var elemWasOn = false;
if (div.style.display != 'none') {
div.style.display = 'none';
twisty.className ='showListButton';
twisty.alt = twisty.title = 'Show Section - '+twisty.name;
elemWasOn = true;
}
}

var registeredSections = new Array();
function registerTwistableSection(headerId, mainTableId) {
var obj = new Object();
obj.headerId = headerId;
obj.mainTableId = mainTableId;
registeredSections[registeredSections.length] = obj;

for (var i = 0; i < registeredSections.length; i++) {
var obj = registeredSections[i];

var img = parent.document.getElementById("img_" + obj.headerId);
//go right into twistSection if we have the img obj.
if(img){
if (img.className =='hideListButton') {
twistSection(img, obj.headerId, obj.mainTableId);
}
}
}
}
function registerTwistableSections_ep() {
//these are the sections I know about from viewing source code...
registerTwistableSection('01B30000003osTc', 'ep');
registerTwistableSection('01B30000003osTd', 'ep');
registerTwistableSection('01B30000003osTe', 'ep');
registerTwistableSection('01B30000003osTg', 'ep');
registerTwistableSection('01B30000003osTh', 'ep');
registerTwistableSection('01B30000003osTi', 'ep');
registerTwistableSection('01B30000003osTj', 'ep');
registerTwistableSection('01B30000003osTk', 'ep');
}
registerTwistableSections_ep();

Now for the cross site scripting hack:

Found this in another post and am so thrilled that it works:

1. Create a Custom Homepage Component that is HTML, refer to your Static Resource code:

<script src="/resource/1284395872000/pageBlockSupplement" type="text/javascript"></script>

2. Make sure this component is included on the Home Pages layouts. It is invisible, so you don't have to worry about it.

"

Thursday, September 9, 2010

Ethercodes Is a Web-based, Collaborative Programming Notepad [Collaboration Tools]


This is really cool ... too bad it now doesn't work for 23 hours ... and counting.

Ethercodes Is a Web-based, Collaborative Programming Notepad [Collaboration Tools]: "
Think of EtherCodes as EtherPad for developers. Featuring line numbers and syntax highlighting, it lets you code with a group, in a web browser, in realtime, without sacrificing some of the comforts of your favorite text editor. More »






"

Thursday, June 3, 2010

8 Essential Development Tools from Tomcat Experts

I need to try a couple of these but I do love ...
IntelliJ ... wish my company used it.

I'm going to try out github and jEdit.

8 Essential Development Tools from Tomcat Experts: "Tomcatexpert.com contributors are all professional developers, and this article reviews the 8 primary tools that they all use.

Add to digg
Add to StumbleUpon
Add to del.icio.us
Add to Google





Programming - Languages - Apache Tomcat - Compiler - Open source"