Wednesday, November 19, 2008

Fritz Onion's ViewState Decoder

Itt van.

Fiddler Web Debugging Proxy

Fiddler is a HTTP Debugging Proxy which logs all HTTP traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP Traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.

Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera, and thousands more.

Tuesday, November 11, 2008

complete website validation

Scan your entire site for validation errors and dead links manage multiple sites, watch report status in real time receive report email notifications... completely free!

Flickr-es ficko irasa arrol, hogy milyen volt iPhone-ra optimalizalni

Itt van.

Friday, September 12, 2008

WSE 2.0 wse910 timetoleranceinseconds

WSE 2.0-ban keszult a szerver amit hasznalnunk kellett es belefutottunk, hogy a client es a server kozott nagyobb volt az idokulonbseg mint 5 perc. Jott is a wse910-es hiba. Megneztuk es kidrult, hogy nem volt beallitva a timetoleranceinseconds es haverjai. Onmagaban ezzel se jutottunk tovabb ezert ugy oldottuk meg, hogy a kliensen atallitottuk az idot. Ezt a WSE 2.0-t el kell kerulni.

Wednesday, August 27, 2008

ListViewItem.UseItemStyleForSubItems Property

ListView control-ban kellett felvennem sorokat ahol az egyik oszop szinet kulon-kulon kellett allitanom soronkent.

Igy problalkoztam:
string[] data = { "first", "second", "third" };
ListViewItem lwi = new ListViewItem(data);
lwi.SubItems[1].ForeColor = Color.Red;
lvMyListView.Items.Add(lwi);

Igy nem valtozott meg a 2. oszlop szine, mert ez kimaradt:
lwi.UseItemStyleForSubItems = false;

Igy teljes:
string[] data = { "first", "second", "third" };
ListViewItem lwi = new ListViewItem(data);
lwi.UseItemStyleForSubItems = false;
lwi.SubItems[1].ForeColor = Color.Red;
lvMyListView.Items.Add(lwi);

MSDN-ben

Saturday, May 31, 2008

favicon

A favicon is a small image that is generally used to reflect the identity of a web site. You can find it in the address bar, in your browser's tabs, in the list of bookmarks or in some feed readers like Bloglines. (src)

Tuesday, May 27, 2008

SOP - Same origin policy

The philosophy of the same origin policy is simple: the browser should not trust content loaded from arbitrary websites. Web pages run within the sandbox and are prevented from accessing resources from other origins. Without this protection, a malicious web page could compromise the confidentiality or integrity of another web page.

The term "origin" is defined using the domain name, protocol and port. Two pages belong to the same origin if and only if these three values are the same.

Douglas Crockford: Durable Objects

Fortunately, JavaScript provides the means to construct durable objects that can perfectly guard their state by using a variation of the Module Pattern.
...
By adding one simple rule, we can easily generate secure objects:
A durable object contains no visible data members, and its methods use neither this nor that.

This is a template for a durable constructor:

function durable(parameters) {
var that = {} or the product of another durable constructor;

var private variables;

function method() {

}

that.method = method;
return that;
}

Define all of your methods as private methods. The methods you choose to expose to the public get copied into that. None of the functions defined or inherited make use of that or this.
...
Durable objects allow code from multiple (possibly untrusted) parties to
cooperate. Durable objects can be expressed in a safe subset of JavaScript,
such as ADsafe or Cajita.

Sunday, April 20, 2008

CSS Reset

Eric Meyer: The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

YUI Reset CSS: The foundational YUI Reset CSS file removes and neutralizes the inconsistent default styling of HTML elements, creating a level playing field across A-grade browsers and providing a sound foundation upon which you can explicitly declare your intentions.

Wednesday, March 19, 2008

WebBrowser control layout modok IE8-nal

Az IE8-ban 3 layout mod van:

  • IE8 Standards
  • IE7 Standards
  • Quirks

Az IEBlog-ban irjak, hogy WebBrowser control eseteben a default layout mod az IE7 Standards (mig mas esetben az IE8 Standards). Ezt viszont valtoztatni is lehet, ha az IE8 Standards-ot szeretnenk WebBrowser control-nal is hasznalni:

When an executable loads an instance of the WebBrowser control it scans the registry to check whether the executable wants IE7 Standards or IE8 Standards mode.

To run a WebBrowser control in IE7 Standards Mode, insert the following values into the registry:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_NATIVE_DOCUMENT_MODE]

"MyApplication.exe"=dword:11170

To run in IE8 Standards Mode insert the following registry value:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_NATIVE_DOCUMENT_MODE]

“MyApplication.exe”=dword:13880

In both of these instances, MyApplication.exe should be replaced with the name of the executable that will be running WebBrowser controls in a specified mode.

To run instances of a WebBrowser control in IE5 Quirks Mode, insert the following value into the registry:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_NATIVE_DOCUMENT_MODE]

“MyApplication.exe”=dword:C350

Wednesday, February 06, 2008

Jonathan Snook:How I built an effective blog comment spam blocker

Arrol ir, hogy egy pontrendszer segitsegevel szuri ki a spameket a comment-ek kozul.

A lenyeg:

For everything in a comment that I like, you get a point. For everything I don’t like, you lose a point (or two, or three). If you get a 1 or higher, you’ve made it on the site as a valid comment. If you get a 0, it’s set for moderation and I’ll take a look at it. If it’s below 0, it’s marked as spam and I’ll never see it (although I check every couple weeks just in case a legitimate comment needs to be unflagged). If it falls below -10, I don’t even bother saving it to the database since it is so obviously spam.

Pontokat meg ezekre ad:

How many links are in the body More than 2 -1 point per link
Less than 2 +2 points
How long is the body More than 20 characters and there’s no links + 2 points
Less than 20 characters -1 point
Number of previous comments from email Approved comments +1 point per
Marked as spam -1 point per
Keyword search Levitra, viagra, casino, etc. -1 point per
URLs that have certain words or characters in them .html, .info, ?, & or free -1 point per
URLs that have certain TLDs .de, .pl, or .cn (sorry guys) -1 point
URL length More than 30 characters -1 point
Body starts with… Interesting, Sorry, Nice or Cool. -10 points
Author name has http:// in it -2 points per
Body used in previous comment
-1 point per
Random character match 5 consonants -1 point per

Wednesday, January 09, 2008

Scott Mitchell: Two Common Pitfalls When Submitting a Web Form Using the Enter Key

Itt van az egesz, de ami a lenyeg:

A regular button has a type attribute value of “button”. By default, the ASP.NET Button Web control renders a submit button.

Multiple Submit Buttons on the Page
…when a user hits Enter in a single-line textbox, the browser submits the form. In most situations, the browser includes the submit button’s name/value pair in the form fields returned on submission (although this is not always the case, as we’ll see later on in this article). If there are multiple submit buttons on the form, the browser sends the first submit button’s name/value pair on form submission (the first one being the one that first appears in the rendered HTML markup, not necessarily the one that appears visually first on the page).

Imagine that you have a page that collects user input and everything works fine. The user can hit Enter to submit the form, which causes the browser to send the submit button’s name/value pair, which executes the corresponding Button’s Click event handler, where you process the user’s entered data. Great. But what would happen if you (or a coworker) updated the site’s master page and included an ASP.NET Button control that, when clicked, would, say, Response.Redirect the user to a Login page? With this change, if a user visited your form and hit Enter to submit it, the browser would send the Login submit button’s name/value pair, and the user would be redirected to the login page!

The net result is that the Login Button’s Click event is raised on postback, and the user is sent to the Login page. Talk about a confusing user experience! Everything works fine if they click the “Submit Form” button, but if they hit Enter, they are redirected to the Login page.

To fix this, we need to instruct the Login Button control that it should not render as a submit button, but rather a regular button. To accomplish this, set the Login Button’s UseSubmitBehavior property to False. This causes the Login button to render as a regular button along with the necessary JavaScript to submit the form when the button is clicked (along with sending additional information so that ASP.NET knows that that button was what caused the postback so that its Click event handler can be raised).

Using Enter to Submit a Form with Only One Single-Line TextBox
Another gotcha involving submitting forms with the Enter key arises with Internet Explorer and forms with just one single-line TextBox. Earlier I said that when hitting Enter in a single-line textbox, the browser submits the form and (usually) includes the first submit button’s name/value pair in the form submission information. Unfortunately, this is not the case when using Internet Explorer and a Web Form with just one single-line TextBox. A more thorough description of this problem is documented in an earlier article of mine, Enter and the Button Click Event.

In short, the workaround is to never create a Web Form with just one single-line TextBox. If your form only requires one single-line TextBox, then add another one but use Casecading Stylesheets (CSS) to hide it…Yes, it’s a hack, but it works.

Monday, January 07, 2008

Kalid Azad: An Intuitive Guide To Exponential Functions & E

Latvanyos magyarazat ezekkel a celokkal:
  • Explain why e is important: It’s a fundamental constant, like pi, that shows up in growth rates.
  • Give an intuitive explanation: e lets you see the impact of any growth rate.
  • Show how it’s used: e^x lets you predict the impact of any growth rate and time period.
  • Get you hungry for more: In the upcoming articles, I’ll dive into other properties of e.