Saturday, August 12, 2006

Unidirectional Merge az SQL2005-ben

Amint arra sikerult rajonni a merge tipusu replikacional is be lehet allitani a Synchronization Direction-t, ami lehet:

-Bidirectional
-Download-only to Subscriber, allow Subscriber changes
-Download-only to Subscriber, prohibit Subscriber changes

Azzal volt bajom, hogy barmelyiket is valasztottam az visszaallt Bidirectional-ra mindenfele figyelmeztetes nelkul. Aztan vegul itt talaltam meg, hogy mitol van ez:

“to take advantage of this property (@subscriber_upload_options) the subscription must be marked as a ‘Client’ subscription and not the default of ‘Server’ subscription (see below). If you leave the default ‘Server’ option, the subscriber will always be created as bidirectional.”

Saturday, August 05, 2006

LAMP

The acronym LAMP (or L.A.M.P.) refers to a set of free software programs commonly used together to run dynamic Web sites or servers:

Linux, the operating system;
Apache, the Web server;
MySQL, the database management system (or database server);
Perl, PHP, Python, and/or Primate (mod mono), scripting/programming languages.

forras: wikipedia

Friday, July 28, 2006

Hosts file

In computing, a hosts file, stored on the computer’s filesystem, is used to look up the Internet Protocol address of a device connected to a computer network. The hosts file describes a many-to-one mapping of device names to IP addresses. When accessing a device by name, the networking system will attempt to locate the name within the hosts file if it exists. Typically, this is used as a first means of locating the address of a system, before accessing the Internet domain name system. The reason for this is that the hosts file is stored on the computer itself and does not require any network access to be used, whereas DNS requires access to an external system, which is typically slower.
Bovebben

aspfaq.com: Why won’t my session variables stick?

Itt van 10 dolog, ami miatt “elveszhet” a session valtozo.

Mi a 4-esbe futottunk bele, azaz: “If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly.”

K. Scott Allen: Impersonation and Application_Start in ASP.NET

Itt van az egesz, de a lenyeg:

…impersonation isn’t “on” during Application_Start… Application_Start is an odd event. It’s not really a request related event, but of course it won’t fire until the first event arrives. The ASP.NET runtime doesn’t start impersonation until it begins to process the request in earnest. This event fires just before impersonation begins, during a time when ASP.NET is laying out the cocktail napkins and setting up for the party.

Friday, July 14, 2006

CAPTCHA

CAPTCHA stands for “completely automated public Turing test to tell computers and humans apart.” What it means is, a program that can tell humans from machines using some type of generated test. A test most people can easily pass but a computer program cannot.

This article demonstrates how to create such an image and employ it within an ASP.NET web form.

Tuesday, July 11, 2006

episztemologia, echolalia

episztemológia: A megismerés feltételeit, határait meghatározó tanítás. A megismerés módszereit próbálja meghatározni, a tudományok alapjaival foglalkozik. Azt szeretné meghatározni, hogy mi a tudás, illetve, hogy mi a tudás megszerzésének legbiztonságosabb útja. Témakörébe egyaránt beletartozik a megismerés szubjektuma mint objektuma is.

echolália: Kényszer a hallott szavak visszhangszerű utánzására.

Wednesday, June 07, 2006

K. Scott Allen: Build Failed With No Errors

Itt van a teljes cikk.

Temak:

MSBuild maximum verbosity

Client Report Definition (rdcl) files

ReportViewer control;

Tuesday, June 06, 2006

Milan Negovan: Session_Start or Session_OnStart (event handlers in global.asax)

itt van a teljes cikk.

What if you define the following methods in global.asax (yes, all of them):

  • void Session_Start(object sender, EventArgs e)
  • void Session_Start()
  • void Session_OnStart(object sender, EventArgs e)
  • void Session_OnStart()
  • void Session_Start(object sender)

Having these five event handlers, which one(s) will be called?

It turns out all of them, except the last one, will be called, and in the same order as listed!

Karl Seguin: HttpHandlers – Learn Them. Use Them.

Itt van a teljes cikk.

Why use a handler?
First and foremost, HttpHandlers are far more reusable/portable than pages.
Secondly, the Page handler is relatively expensive… if you do that in a page you’ll end up raising a number of events (onInit, onLoad, onPreRender, onUnload, …) and make use of a number of ASP.NET features such as viewstate and postback. In most cases, the performance hit is negligible, but it nonetheless highlights that you’re using the page framework when you have no need to.

Why not to use HttpHandlers?
The biggest and very significant drawback of HttpHandlers is that they can only be used for extensions that are mapped to ASP.NET in IIS.

Wednesday, May 24, 2006

Leet - 1337

For the purposes of this text, leet is defined as the corruption or modification of written text. For example, the term “leet” itself is often written “l33t” or “1337“.

Thursday, May 04, 2006

Types of Cloning: Deep and Shallow

In this article, I shall talk about an interesting aspect of .NET programming - Cloning objects.

A lenyeg:

We can classify two types of cloning based on “how much” is cloned: Deep and Shallow. A shallow clone is a new instance of the same type as the original object, which contains a copy of the value typed fields. But, if the field is a reference type, the reference is copied, not the referred object. Hence, the reference in the original object and the reference in the clone point to the same object. A deep clone of an object, on the other hand, contains a copy of everything directly or indirectly referenced by the object.

Ez a System.Xml.XmlDocument ImportNode-janak deep parameterekent azt jelenti, hogy a az adott node childnodejait is masoljuk vagy azokat nem.

Thursday, April 27, 2006

\\\\ + c# + regexp >> \

Persze nyilvanvalo, mint ahogy itt le is van irva, de azert idemasolom nehogy megint elfelejtsem:

In literal C# strings, as well as in C++ and many other .NET languages, the backslash is an escape character. The literal string “\\” is a single backslash. In regular expressions, the backslash is also an escape character. The regular expression \\ matches a single backslash. This regular expression as a C# string, becomes “\\\\”. That’s right: 4 backslashes to match a single one.

Wednesday, January 25, 2006

helyesirasi teszt

Schrodingeren keresztul talaltam meg a tesztet, amin nagyon leszerepeltem.

Az meg a kommentekbol derult ki, hogy ez a konyv kell.

Tuesday, January 24, 2006

Firefox 1.5-ben html height-ja fejbe vagja a body background-position-jet

A Firefox 1.5-ben ha a html height attributuma be van allitva, akkor az fejbe vagja a body background-position-jet. Itt van egy pelda html, amit ha IE-bol vagy vagy 1.5-nel regebbi Firefox-bol nezunk, akkor a kep az oldal jobb also sarkaban van es le kell tekernunk hozza. Ha ugyanezt Firefox 1.5-bol nezzuk, akkor a kep az oldal lathato reszenek a jobb also sarkaban van, akarhova is tekergetunk. (Ha a height attributumot 100%-rol 50%-ra valtoztatjuk, akkor meg a lathato resz jobb oldalanak kozepen.)

Mit ir errol a w3c:
"If a background image has been specified, the value of 'background-position' specifies its initial position." ... "A value pair of '100% 100%' places the lower right corner of the image in the lower right corner of the element." es "'bottom right' and 'right bottom' mean the same as '100% 100%'" Az element pedig itt a body. Ebbol nekem ugy tunik hogy az 1.5-os viselkedik hibasan es nem a tobbiek.

Tehat a pelda:

<html>
<head>
<style type="text/css">
html {height: 100%}
body {
background-image: url(http://www.google.com/images/logo.gif);
background-position: bottom right;
background-repeat: no-repeat;
}
</style>
</head>

<body>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
<h1>Hello</h1>
</body>
</html>

Friday, January 13, 2006

Paul Graham: Never make users register

Itt van a teljes iras, de a lenyeg:

At Y Combinator we advise all the startups we fund never to lord it over users. Never make users register, unless you need to in order to store something for them. If you do make users register, never make them wait for a confirmation link in an email; in fact, don't even ask for their email address unless you need it for some reason. Don't ask them any unnecessary questions. Never send them email unless they explicitly ask for it. Never frame pages you link to, or open them in new windows. If you have a free version and a pay version, don't make the free version too restricted. And if you find yourself asking "should we allow users to do x?" just answer "yes" whenever you

Thursday, January 12, 2006

amikor csak akarja, ameddig csak akarja

Tegnap ezt kaptam a google helyett indulasnal:


Az telefonszamot felhivva pedig ezt hallottam: "A hivott szamon elofizeto illetve szolgaltatas nem kapcsolhato."

Wednesday, December 07, 2005

[bball] Kevin Pelton a Pick-and-Roll-rol

Itt van az egesz, de a lenyeg:

Basically, there are four main ways NBA teams defend the pick-and-roll:

Switch it - The players defending the ballhandler and the picker switch, usually creating a mismatch. Barkley and Smith do not believe this is a successful defense (at least against Nash and the Suns).

Trap - Both defenders go towards the ballhandler and aggressively trap him while the other three defenders zone against the four remaining offensive players.

"Show" or "Hedge" - The player defending the picker briefly steps out into the ballhandler's path, slowing him up enough that the player defending the ballhandler has time to recover. Then the player defending the picker recovers to his original man. It's worth noting that this is how the Spurs usually defend the pick-and-roll.

Go under the pick - Done only against weak shooters, the player defending the picker steps back to allow the player defending the ballhandler to go between him and the screen and get to his man. This leaves an open jumpshot for the ballhandler.

There are also two main locations for pick-and-rolls -- at the top of the key and at the elbow (the free-throw line extended to approximately where it would intersect the 3-point line).

Thursday, October 27, 2005

Position Is Everything - CSS bugs in modern browsers

We're Big John and Holly Bergevin, and together we built this site to explain some obtuse CSS bugs in modern browsers, provide demo examples of interesting CSS behaviors, and show how to "make it work" without using tables for layout purposes.

5 css tutorial

A css.maxdesign.com.au oldalon ez az 5 css tutorial olvashato:

Listamatic - one list, many options: Can you take a simple list and use CSS to create radically different list options? The Listamatic shows the power of CSS when applied to a simple list.

Listamatic 2 - nested list options: Well, you asked for them. Nested lists! Choose from one of the growing number of samples or submit a list of your own.

Listutorial - tutorial on CSS based lists: Step by step tutorials on using CSS to create background image lists, rollover lists, nested lists and horizontal lists.

Floattutorial - tutorial on CSS floats: Step by step tutorials on using CSS to create floating images, images with captions, next and back buttons, drop caps, inline lists and more.

Selecttutorial - CSS selectors: The structure of rules, the document tree, types of selectors and their uses. Plus a step by step tutorial using selectors to build a 3-column layout.

Thursday, October 20, 2005

MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)

HTML [RFC 1866] defines a powerful means of specifying multimedia documents. These multimedia documents consist of a text/html root resource (object) and other subsidiary resources (image, video clip, applet, etc. objects) referenced by Uniform Resource Identifiers (URIs) within the text/html root resource. When an HTML multimedia document is retrieved by a browser, each of these component resources is individually retrieved in real time from a location, and using a protocol, specified by each URI.

In order to transfer a complete HTML multimedia document in a single e-mail message, it is necessary to: a) aggregate a text/html root resource and all of the subsidiary resources it references into a single composite message structure, and b) define a means by which URIs in the text/html root can reference subsidiary resources within that composite message structure.

This document a) defines the use of a MIME multipart/related structure to aggregate a text/html root resource and the subsidiary resources it references, and b) specifies a MIME content-header (Content-Location) that allow URIs in a multipart/related text/html root body part to reference subsidiary resources in other body parts of the same multipart/related structure.

Sunday, October 09, 2005

Treehouse pdf magazin ingyenes elso szam

A Particletree oldalarol letoltheto az elso (ingyenes) szam.

Tartalom:
Code:
- Jeremy Keith: A Brief History of Javascript
- Shaun Inman Interview
- DOM Scripting (Book Review)
- Code Links

Design:
- John Zeratsky: Inheriting Expectations
- Jason Santa Maria Interview
- Bulletproof Web Design (Book Review)
- Design Links

Friday, October 07, 2005

Typetester - Compare fonts for the screen

What is Typetester?

The Typetester is an online application for comparison of the fonts for the screen. Its’ primary role is to make web designer’s life easier. As the new fonts are bundled into operating systems, the list of the common fonts will be updated.
Technical details

Scott Herron: The many names of @ [zavinac, apestaartje, klammeraffe, shabloo, chiocciola, ...]

All over the world, people are logging on the 'net in countries that never heard of "eggs @ $1.50 a dozen," and whose keyboards never had such a key before. Find out how they are coping here.

Tuesday, October 04, 2005

K. Scott Allen: If All Movies Ever Made Were Really About Software...

Itt van az eredeti, de azert bemasolom:

A Few Good Objects
Col. Jessup: You want destructors?
Kaffe: I think I’m entitled.
Col. Jessup: You want destructors?
Kaffe: I want deterministic finalization.
Col Jessup: You can’t handle deterministic finalization!

Pulp Compilers
Vincent: You know what they call a switch statement in VB?
Jules: They don’t call it a switch statement?
Vincent: No man, this is the same language that has an AndAlso operator.
Jules: Then what do they call it?
Vincent: They call it a Select Case.

Full Metal Packet
Gunnery Sargent Hartman: My orders are to weed out all non-hackers who do not pack the chops to serve on my beloved accounting package software project. Do you maggots understand that?

Star Warez
[R2-D2 and Chewbacca are pair programming aboard the Millennium Falcon]
Chewbacca: Wurgleaaaaaaaghooooo!
C-3PO: It’s legal syntax. Screaming about it won’t help you.
Han Solo: Delete it. It’s not wise to upset a wookie.
C-3PO: But sir, nobody worries about upsetting a droid.
Han Solo: That’s because droids don’t pull people’s arms out of their sockets over bad code. Wookies are known to do that.
Chewbacca: Rrrrroo.
C-3PO: I see your point, sir. I suggest a new strategy , R2. Let the wookie take the keyboard.

Lord Of The Token Rings
Aragorn: Are you frightened?
Frodo: Yes.
Aragorn: Not nearly frightened enough. I know your bug count.

Null Terminator 2
Terminator: I need your source code, your compiler, and your static code analysis tools.
Biker: You forgot to say please…

Bridge Pattern Over The River Kwai
Colnel Saito: Do not speak to me of rules! This is software programming! This is not a game of cricket!

2001: The Speech Recognition Odyssey
Dave: Open the pod bay doors, HAL.
HAL: What did you say about Bombay, Dave?
Dave: I said open the pod bay doors, HAL.
HAL: I don’t know anyone named Doris, Dave.
Dave: Give me a freakin’ keyboard!

Sunday, August 28, 2005

Saturday, August 27, 2005

Szomszedos szamok kihuzasanak valoszinusege

A MathForge-on van egy hir Konstantinos Drakakis irasarol, amiben leirja hogyan lehet kiszamolni annak a valoszinuseget, hogy m szambol n-et kihuzva lesz koztuk 2 szomszedos.
Az elso megoldas szerint: p(n,m)=1-[C(n-m+1, m)]/[C(n,m)], ahol C(n,m) n elem m-edosztalyu kombinacioja, azaz n!/((m!*(n-m)!)

Az otoslottonal ezek szerint annak az eselye, hogy szomszedos szamokat is kihuznak 21%, a hatoslottonal 53%.
A szerencsejatek rt. oldalan talalhato tobbeves statisztikat megvizsgalva az jott ki, hogy valoban az otoslottonal az elmult 2529 huzasbol 572-szer szerepeltek szomszedos szamok, ami 23%. A hatoslottonal 694 huzasbol 381-szer fordult elo, ami 55%.

Mivel itt eleg nagy szamok faktorialisait kene kiszamolni nem maradhat el az egyszerusites, aminel pedig ezt kapjuk:
p(n,m) = 1 - [(k-1)*(k-2)*...(k-m+1)]/[n*(n-1)*...*(k+1)], ahol k=n-m+1
peldaul:
p(90,5) = 1 - [82*83*84*85]/[87*88*89*90]
p(45,6) = 1 - [35*36*37*38*39]/[41*42*43*44*45]

Friday, August 26, 2005