Google’s Page Speed vs. Yahoo’s YSlow
Google recently rolled out Page Speed, an open-source Firefox/Firebug extension, allowing you to evaluate a site’s performance.
Google recently rolled out Page Speed, an open-source Firefox/Firebug extension, allowing you to evaluate a site’s performance.
Since 2006, our team has been supporting Kiva, a person-to-person micro-lending website that lets visitors help alleviate poverty by lending directly to unique entrepreneurs around the globe. It’s a great use of technology to help people, and it inspired me to create this neat little mashup.
Today we’re rolling out the first release of our Kiva/Google Maps mashup: NeedVision!
Similar to KivaWorld, NeedVision shows loans on a world map – but it’s much more! NeedVision allows you to search for available loans based on keywords and/or sector.
What’s more is that we’ve released the source code, so you can see how the Kiva and Google Maps API’s work, and how easy it is to create mashups like this.
Look forward to search caching and a mobile version in the near future!
Bugs? Comments? Feature requests? Put them in the comments below.
Gavin Blair, DeveloperOne thing that can be frustrating for any developer is when you run into a problem and despite millions of search results when searching for a resolution nothing seems to solve the issue. I thought I would share some simple solutions to two very frustrating WSS issues we’ve run into this past year.
The first issue is intermittent 403 Forbidden errors on a WSS (Windows Sharepoint Services) site. We were seeing anonymous users in our test environment who couldn’t use the website at all until an admin logged in. After someone had logged in then anyone could use the website with or without a login. What ended up being the problem was a permissions issue on the bin folder for the website. To fix this problem please follow the simple steps below.
If you have any other problems please post your questions/solutions below.
Continuing on, I also ran into a strange DCOM error popping up in Eventlog on most of our servers with WSS sites running. The error looks like this…
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {61738644-F196-11D0-9953-00C04FD919C1} to the user <serverName>\networkservice SID (S-1-5-21-<serviceSID>). This security permission can be modified using the Component Services administrative tool.
Needless to say, getting this error several hundred times a day in Eventlog is not ideal. The resolution is rather simple but not overly easy to explain. Please carefully follow the steps below.
Please share this information as both of these errors can be both frustrating and a waste of time.
Good luck and happy coding!
Integration of wysiwyg editors into Drupal continues to evolve and we can expect to see even more improvements in Drupal 7. In Drupal 6, the TinyMCE module was discontinued and the WYSIWYG module has taken its place. The WYSIWYG module works as an api for integrating editors such as TinyMCE, FCKeditor, markItUp, NicEdit and Whizzywig.
One important feature that WYSIWYG lacks is the ability to exclude certain form fields. We ran into this issue when we wanted to disable wysiwyg formatting on the comments field. There had been suggestions here and here on the drupal forums about setting a #wysiwyg attribute; this we tried with no success. Another suggestion was to use the Better Formats module, but the thought of adding yet another module for something so simple wasn’t very appealing.
In the end, we ended up writing a small amount of code to achieve this. We added the following function to our custom module. What we’re doing here is removing the ‘format’ entirely from the comments field. If you needed to alter a different form, replace comment-form with the id of your form and comment_filter with your field. You may need to try a print_r($form_id) to find out the id of your form item.
function my_module_form_alter($form_id, &$form) {
if ($form_id['#id'] == 'comment-form') {
$form_id['comment_filter']['format'] = array();
}
}
First Grab the latest copies of the following:
Apache (MSI with OpenSSL): http://httpd.apache.org/download.cgi
PHP Windows Binary (Zip Package): http://www.php.net/downloads.php
MySql Community Engine (MSI): http://dev.mysql.com/downloads/mysql/5.1.html#win32
MySql Tools (MSI): http://dev.mysql.com/downloads/gui-tools/5.0.html
Once you’ve downloaded the latest files follow these steps below:
We first got involved with Kiva in 2006. The agency runs a person-to-person micro-lending website that lets visitors help alleviate poverty by lending directly to unique entrepreneurs around the globe. The fantastic thing is, any investment that goes through Kiva is re-invested over and over. We initially invested over $1000, and those funds are still being reinvested to help more and more people become self-sufficient through small businesses. It’s a great model.
We have three $25 investment gift certificates, and we want your help choosing how to use them. To take part:
** If you don’t use your gift certificate within 72 hours, it will be passed on to the next eligible contestant.
We’ve been noticing a lot of traffic related to a new virus that has been attacking users/websites recently.
The virus works to exploit your system is several distinct ways.
The JavaScript code you’re looking for will look something like this:
One thing to note in the above code is the words gumblar in plain text.
When it comes to cleaning your webhost up you should take the following steps.
Once you’ve done this – everything should start getting back to normal.
There have been some useful scripts posted in the comments about this virus at blog.unmaskparasites.com.
If you’ve had any success or troubles with this virus please post your comments below.
If anyone knows of an easy way to convert a byteArray that’s being passed to an ActionScript Loader back into readable text please leave me a comment below.
Good Luck!
Have you ever thought about adding a Easter Egg to your website?
Using a Cheat Code such as the Konami Code you can now easily add one to your website using jQuery and the plugin that Trevor Morris developed. Get the plugin here.
The code is simple and easy to follow. Here’s a snippet to demonstrate how simple it is to perform a basic javascript action.
$(document).ready(function() { $(document).cheatCode({ code : '38,38,40,40,37,39,37,39,66,65', activated : function(){ alert('Hidden'); } }); });
Don’t forget you’ll need to grab a copy of jQuery if you don’t already have it loaded up!
Please let us know if you like our Easter Egg.
UPDATE – The movie was fantastic and we all had a great time. We’ll be having another even later this summer so keep your eye on our blog or our Twitter feed for more info.
We’re considering 3 flicks for the next outing – District 9, Terminator Salvation and Transformers: Revenge of the Fallen – e-mail (contests@rtraction.com) or tweet (www.twitter.com/rtraction) your opinion.
CONTEST CLOSED – We’re all pretty pumped about this Friday’s launch of the new “Star Trek” movie, and we want to share the joy. We’ve got 25 free tickets* to give away. If you’re available to join us in London, Ontario on Friday May 8th for a 3:30pm showing of Star Trek, you can join us for at SilverCity Masonville. Just send an email to rtraction at contests@rtraction.com and tell us the middle name of Captain James Kirk. Easy, right? The first 25 people to submit correct answers will win.
Live long and prosper!
* And we mean FREE – no presentations, no sales pitches and definitely no spamming you later. No strings – we’re just looking for some good company for what promises to be a great flick.
· Sorry no rainchecks but keep your eye on our Twitter feed throughout the summer for more events.
This can be extremely useful in the event you have a toolbar, menu, or custom piece of code that is changing styles on the fly. We had a need to look up CSS Styles affecting an object on our page with JavaScript. Unfortunately, it’s not as easy as document.getElementById(‘myobject’).style.background. If you want to get the CSS styles that have been set by other JavaScript code, you’ll need to use this function to look up those styles. Let’s say you want to put a div at the top of the page, but doing so would break the background styles on the body. You can look up those styles, make an adjustment for the height of your div and then display it.
One thing to note is that IE and Firefox (as well as other W3C standards browsers) use a different function to accomplish this. The W3C standard function is “getComputedStyle” whereas IE uses the proprietary “currentStyle”.
A working script for IE and Firefox is below:
getstylebanner = function(prop, element) { if (element.style[prop]) { return element.style[prop]; /* if its an inline style in IE */ } else if (element.currentStyle) { return element.currentStyle[prop]; /* if its style set in IE */ } else if (document.defaultView && document.defaultView.getComputedStyle) { /* Firefox */ prop = prop.replace(/([A-Z])/g, "-$1"); prop = prop.toLowerCase(); return document.defaultView.getComputedStyle(element, "").getPropertyValue(prop); } };
An example of looking up the top margin on the body of your page:
var marginTop = getstylebanner('marginTop', document.body);