Google Wave
I have some Google Wave Invites to hand out. Any of my regular readers would like one?
Web Journal of a (mostly Microsoft .NET) Web Programmer / Computer Type Guy
I have some Google Wave Invites to hand out. Any of my regular readers would like one?
I tried LastPass as a password management solution and I have a few issues:
Posted by
Adam Nofsinger
@
10:40 AM
Tags: authentication, firefox, Tools
A quick post here about a little script I wrote for SugarCRM.
Update: I forgot to mention that I am working with SugarCRM version 5.2.0i here. Results may vary (read "not work") with other versions.
We were having trouble with the workflow process of running an Email Campaign in SugarCRM. Namely, we had like 100 some clickthru's in an email campaign, and I really wanted to just click a button to make all of those clickthru targets become leads. I would have even settled for the click-thru list being clickable links and doing it one-by-one (well, i would have had the marketing guys do that), but even that is not possible. They are not clickable links that redirect you to the target details view - instead, they are just a static list with only the related hyperlink being clickable.
Details of the problem here: http://www.sugarcrm.com/forums/showthread.php?p=181660#post181660
So, I wrote a php script to solve our dilemma:
Be sure to change the Database user/password/name to match your configuration, and to change the
$campaign_id and $user_idvariables at the top of the file.
For the last day or so I’ve noticed that Facebook has had major issues when I view it with Firefox 3.0.5. If I do a Refresh of pages, I can usually get places, but it was almost as if a lot of the AJAX and dynamic stuff that normally happens was not working, and any postbacks (like commenting, searching for a friend, etc) would “freeze up” the site and I would have to do a refresh to get to the next page or to see the results of my action.
This not being my first rodeo, my first instinct was to disable my Firefox add-ons by restarting in safe mode.
firefox.exe -safe-mode
Sure enough, now Facebook was working perfectly again. I then had another series of hunches which turned out to be correct. First, I figured that AdBlock Plus or Firebug would be the offending extensions, and sure enough it was AdBlock. So, I right-clicked on the ABP icon in the Firefox status bar and went to Open Blockable Items. Looking at the list of things that were blocked (they show up in Red), I had a hunch to look for a script file, since the AJAX and dynamic stuff is what seemed to be broken. There was only one script blocked for me:
http://b.static.ak.fbcdn.net/rsrc.php/z3WYR/l/eil5yaf6/nu_ll/143116/js/adnetwork/adnetwork.js
So, I double-clicked on this blocked item to bring up the dialog to add an exception rule. Just in case they feed this script from different addresses or different CDN servers, I made the exception a bit more robust than just the address above:
http://*.fbcdn.net/*adnetwork.js
After adding this exception rule, and reloading the page, everything is working ship shape again.
Now, my question is this – was this an attempt by Facebook to force people to turn off ad blockers in order to make Facebook function properly? It seems to me that this script file should probably only handle loading the ads and such (judging by the name), thus it must break some of the other functionality only because other scripts detect that it is not loaded and do not function unless it is loaded. The last line of that script is this:
if (window.Bootloader) { Bootloader.done(["js\/adnetwork\/adnetwork.js"]); }
So, maybe Bootloader has been changed to make the site not work correctly if this has not been called?
So, I removed that exception I added, and once again the site is broken. This is visually apparent when I look at the search box typically present in the top right corner. It doesn’t have the watermarked text saying Search.
I open up Firebug and enable the Console for facebook.com, so that I can run some of my own script on this page. Running the last line of that script myself fixes Facebook! Here is a screencast of the experiment:
http://www.screencast.com/users/Noffie/folders/Jing/media/ddde9d8c-a4c1-4e28-aeab-976f4fb692de
Posted by
Adam Nofsinger
@
8:01 AM
17
comments
Tags: firefox, fun, javascript, webdev
I have been fighting for a few hours with a strange behavior in one of my ASP.NET custom controls - Flasher. This control is for displaying an image, or a flash, on a web page. How the control renders depends on whether the media assigned to it is an image or flash file.
For some reason, this control was making the page bug out when it was set to an image, and inside an UpdatePanel. Validating the XHTML, I discovered that the <div> tag was not being generated by the UpdatePanel in the spot where I thought it would. I would have assumed something was wrong with the UpdatePanel, or it was a bug in this control, but I knew that things worked fine when my Flasher control was rendering the flash markup. Only when it was rendering the image markup did this happen.
I scanned over the code that rendered the markup in Flasher.cs, and the only difference I could notice was that the flash rendering code had both RenderBeginTag() and RenderEndTag(). I had only called RenderBeginTag() in the image markup code, falsely assuming I did not need the end tag call because <img /> is a self-terminating tag. Apparently ASP.NET will still generate the <img /> tag correctly, but if you do not make the call to RenderEndTag(), then it messes up the tag matching mechanism or what-have-ya and causes controls further on down the line to get "messed up," technically speaking.
Lesson learned.
Posted by
Adam Nofsinger
@
11:53 AM
1 comments
Tags: asp.net, microsoft, programming, webdev
So, I finally bit the bullet and started using Twitter a bit more - I have had an account for some time, but now that I use Digsby, I actually follow people.
http://twitter.com/AdamNofsinger
Anyone else I know - and who reads this blog I guess ;) - use Twitter at all? I hardly ever update compared to most people, but I felt like I was still web 1.0 not using it. Maybe it's just a Silicon Valley fad.
Posted by
Adam Nofsinger
@
8:05 AM
1 comments