by nolovelust
30. April 2011 12:13
by nolovelust
28. April 2011 10:28
I've had my eureka moment while viewing source of a site last night.
I usually create a show and hide functions and call them with ajax.load function. But last nigh I've realised I could just listen ajaxStart and Stop events. Well It may be normal way of life for you but it never came to my mind. Anyways, here is the code to listen start/stop events and show/hide loading animation with jQuery
$(document).ready(function () {
$(document).ajaxStart(function () { showProgress() }).ajaxStop(function () { hideProgress() });
});
function showProgress() {
$('body').append('<div id="progress"><img src="/assets/images/loading.gif" alt="" width="16" height="11" /> Loading...</div>');
$('#progress').center();
}
function hideProgress() {
$('#progress').remove();
}
jQuery.fn.center = function () {
this.css("position", "absolute");
this.css("top", ($(window).height() - this.height()) / 2 + $(window).scrollTop() + "px");
this.css("left", ($(window).width() - this.width()) / 2 + $(window).scrollLeft() + "px");
return this;
}
by nolovelust
25. April 2011 09:58
I saw this today and can't help but share. They are amazing! Just sit and watch



Visit From Me To You for more
by nolovelust
20. April 2011 16:13
I started to get this "Specified method is not supported." error quite a lot since I moved one of the sites to Windows 2008 R2 64bit.
Exact error something like below
Server Error in '/' Application.
Specified method is not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Specified method is not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NotSupportedException: Specified method is not supported.]
System.Web.HttpResponseStream.get_Position() +29
System.Drawing.ComStreamFromDataStream.Seek(Int64 offset, Int32 origin) +44
[HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x800703E3.]
System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) +3049599
System.Web.Hosting.IIS7WorkerRequest.ReadEntityCoreSync(Byte[] buffer, Int32 offset, Int32 size) +49
System.Web.Hosting.IIS7WorkerRequest.ReadEntityBody(Byte[] buffer, Int32 size) +23
System.Web.HttpRequest.GetEntireRawContent() +8920994
System.Web.HttpRequest.GetMultipartContent() +68
System.Web.HttpRequest.FillInFormCollection() +172
System.Web.HttpRequest.get_Form() +68
System.Web.HttpRequest.get_HasForm() +8921807
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
System.Web.UI.Page.DeterminePostBackMode() +69
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +135
Above sample from a page where user submits multipart form data.
Same eror happens when user downlods file from a HttpHandler.
Actual error is quite confusing and as far as i understand it has nothing to do with System.Drawing but client disconnect during to upload proccess.
There is a bug report about I couldn't get any more info.
I have seen no side effects of this error and can say simply igonoring it is the current solution :)
by nolovelust
20. April 2011 16:04
Did you receive an email saying
"I just learned how to net $186 in just about two days online. made it without effort at - x.co/xxx - youre going to be so much more happier!"
or smilar?
First of all IT IS A SCAM!
If you visit the page, you get redirected to article.news21nbc.com which looks like legit nbc site but it hosted in China!
Article preecets a screen capture from APERANTLY NBC but if you pay attention you'll see that it is French TV LC1 :)
Thats not it. All the comments and Facebook Likes on the article are fake too!
Don't be fooled.
Here is the screenshot of the site.

183b78be-bc82-4deb-bc84-0f0aa35ef171|1|2.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: make money, scam
Useful