Thursday, February 26, 2009

Ha nincs Wi-Fi

forras:
http://forum.speedshop.hu/index.php?automodule=blog&blogid=3&&req=printentry&eid=21


Ha nincs a közelben (pl. munkahelyen) WiFi HotSpot, de van egy laptop vagy egy PC WiFi adapterrel, akkor ebből tudunk Wi-Fi hálózatot készíteni az iPhone-unknak.
Alábbiak szerint működik a dolog.

Windows Vista-n
- Ellenőrizd, hogy az internet működik–e?
- Lépj be ide: Vezérlőpult / Hálózat és megosztási központ (network and sharing center)
- Balra a feladatok menüben klikkelj az új kapcsolat létrehozására
- Itt válaszd ki a vezeték nélküli ad hoc hálózatot (wireless ad hoc network)
- Adj nevet a hálózatnak és egy WEP kódot, ha nem akarod mindenkivel megosztani
- Kattints a "kapcsold be az internet kapcsolat megosztását" opcióra és kész.

Mac-en
- Ellenőrizd, hogy az internet működik–e?
- Rendszer tulajdonságok (system preferences), kattints a megosztásra (sharing)
- felül kattints az Internet gombra a kívánt oldalhoz
- válaszd ki, hogy honnan szeretnéd használni, neked a beépített ethernet kell (Built in –Ethernet)
- lent a kis ablakban pedig az AirPort –ot válaszd
- az opciók alatt tudsz nevet és kódot adni a hálózatnak
- klikkelj a start-ra és készen is van

Widows XP-n
- Ellenőrizd hogy az internet működik –e?
- vezérlőpult / hálozati kapcsolatok
- jobb klikk a vezeték nélküli kapcsolatokra (wireless connections) és kattints a tulajdonságokra (properties)
- először a vezeték nélküli hálózatok alatt (wireless networks) jelöld be azt az ablakot, hogy: használd a windows-t, hogy konfigurálja a vezeték nélküli hálózati beállításokat.
(Use windows to configure my wireless network settings)
- lent a kedvelt hálózatokban (preffered) kattints a hozzáadásra (add)
- adj nevet a hotspot-nak, aztán válaszd ki a megosztott (shared), majd a WEP opciót. Adj neki egy kódot, majd kattints az OK-ra.
- most klikk a további lehetőségekre és jelöld ki, hogy: csak gépről-gépre (ad hoc) hálózatok (computer-computer (ad hoc) networks only)
- itt minden befejezve, kattints az OK-ra mindenhol
- most jobb klikk a helyi hálózati kapcsolatokra és klikk a tulajdonságokra (properties)
- a legtetején van egy speciális (advanced) lapfül
- internet kapcsolat megosztás (internet connection sharing)
- jelöld be az első beallítást, de vigyázz arra, hogy a második ne legyen bejelölve.
- OK mindenhol és kész is van

Előfordulhat hogy a BIOS-ban be van jelölve, hogy ne használjon WiFi-t, ha van aktív kábeles internet, akkor ezt ki kell kapcsolni, hogy működjön!

Friday, February 13, 2009

Balássy György: Nagy méretű weblapok fotózása – Webpage Capture

"Akinek kellett már dokumentálás vagy UI prototípus egyeztetés céljából weblapról képernyőképet készítenie, az tudja, hogy a feladat nem minden esetben egyszerű. Akkor nincs gond, ha az oldal kifér a képernyőre, de mi van akkor, ha függőlegesen csak három képernyőnyi scrollozás után lehet az oldal aljára érni?...
...
kénytelen voltam írni egy célalkalmazást"

Tuesday, February 03, 2009

VIDEO_TS to iso to DVD on Mac OS

VIDEO_TS > iso:

After searching the forums and trying various things, I still couldn't find a quick, reliable, free method of burning a VIDEO_TS folder to a pure UDF DVD, so that it would play in regular DVD players, as well trigger DVD Player to start up automatically. Anyway, as often is the case, Terminal had the answers. Just type in this command and change the paths to suit:
hdiutil makehybrid -udf -udf-volume-name DVD_NAME \
-o MY_DVD.iso /path/to/VIDEO_TS/parent/folder
Make sure that /path/to/VIDEO_TS/parent/folder is the path to the folder containing the VIDEO_TS folder, not the VIDEO_TS folder itself. Once the .iso file has been created, drag this to Disk Utility and hit the Burn button.

iso to DVD:

  1. Insert a blank disc.
  2. Start Disk Utility.
  3. From the File menu, choose Open Disk Image and select the ISO to be burned.
  4. In the list of volumes, you will now see an item representing the ISO file. Select it.
  5. Click the Burn button and follow the instructions.

Thursday, January 22, 2009

Avi file-ok osszecsatolasa

Kaptam 3 file-t (xy.001, xy.002, xy.003) ami egy avi file feldarabolasa volt. Mac OS-en kellett osszecsatolni amire az AJoiner-t hasznaltam.


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.

Wednesday, November 28, 2007

arguments array a javascript fv-ekben

Ahogy Michael Kuehl irja:

The arguments array is a special array that gets set when you enter a function call in javascript. The only thing special about it, though, is that it holds all the arguments that the function was called with - other than that it acts like a normal array.

Also, the arguments array is not read only. This means that you can alter its contents, or even clear the array itself.

And if you modify the arguments array itself (i.e, in this case set it to null), you loose the ability to access the arguments through the arguments array, but it doesn’t affect any of the actual variables.

WebDAV

WebDAV stands for “Web-based Distributed Authoring and Versioning”. It is a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on remote web servers.

Wednesday, November 21, 2007

Chris Knowlton: Bit Rate Throttling Configuration Walkthrough

The Internet Information Services 7.0 (IIS7) Media Pack – Bit Rate Throttling module provides the ability to throttle progressive downloads of media files (in which audio/video playback starts as soon as sufficient data has been buffered on the client) based on the content bit rate. For sites that deliver audio and video files that may not be watched in their entirety, this module could significantly reduce your media-related bandwidth costs. A secondary feature of the Bit Rate Throttling Module is that it can also be used to throttle non-media (”Data”) file types at specified bit rates

Tuesday, October 09, 2007

ADsafe

ADsafe defines a subset of JavaScript that is powerful enough to allow an ad to perform valuable interactions, while at the same time preventing malicious or accidental damage or intrusion by the ad.

Wednesday, September 26, 2007

Datalength - NText, Text, Image mezok hosszanak lekerkdezesere

Itt irjak, hogy ha NText, Text vagy Image mezok hosszat szeretnenk megtudni arra nem fog mukodni a LEN() fv, de a DATALENGTH() mar igen.

Thursday, August 16, 2007

7-es elotti IE-nel problemat okozhat a HEAD-hez uj elem hozzaadasa, ha van mar beolvasott BASE tag

A korabban itt es itt emlegetett dinamikus javascript betoltessel kapcsolatban Shaun Inman belefuott egy problemaba IE-nel (7-esnel regebbi):

Ran into a JavaScript problem with everybody’s favorite browser recently. Manipulating the head element from within (say by adding additional script or link elements before the page loads) was resulting in an enormously helpful “Operation Aborted” error message in versions of Internet Explorer prior to 7. Of course, like all things IE, this error’s appearance was inconsistent.

I was eventually able to track the problem down to the presence of a base tag. It didn’t matter if it was an open <base> or a self-closing <base />, if it came before the <script> that was manipulating the head, then IE stopped everything and issued the error. (At this point in script execution document.getElementsByTagName('head')[0] is a valid HTML element so testing for its availability before attempting to appendChild() doesn’t avoid the error. try/catch() is also of no assistance.)

Sunday, August 05, 2007

K. Scott Allen: What ASP.NET Developers Should Know About JavaScript

Itt van az egesz.

Az erdekesebb pontok a vegefele vannak:

  • Object Prototypes
  • how to add private members to a JavaScript object
  • we can “simulate” namespace using objects

Henri Sivonen: HOWTO Avoid Being Called a Bozo When Producing XML

Itt van az egesz, de a az elejet es a tartalomjegyzeket be is masolom:

Note about the scope of this document: This document focuses on the Unicode layer, the XML 1.0 layer and the Namespaces in XML layer. Getting higher layers like XHTML and Atom right are outside the scope of this document. Also, anything served as text/html is outside the scope of this document, alhough the methods described here can be applied to producing HTML. In fact, doing so is even a good idea.

Contents

  1. Don’t think of XML as a text format
  2. Don’t use text-based templates
  3. Don’t print
  4. Use an isolated serializer
  5. Use a tree or a stack (or an XML parser)
  6. Don’t try to manage namespace declarations manually
  7. Use unescaped Unicode strings in memory
  8. Use UTF-8 (or UTF-16) for output
  9. Use NFC
  10. Don’t expect software to look inside comments
  11. Don’t rely on external entities on the Web
  12. Don’t bother with CDATA sections
  13. Don’t bother with escaping non-ASCII
  14. Avoid adding pretty-printing white space in character data
  15. Don’t use text/xml
  16. Use XML 1.0
  17. Test with astral characters
  18. Test with forbidden control characters
  19. Test with broken UTF-*

Henri Sivonen: Activating the Right Layout Mode Using the Doctype Declaration

Itt van az egesz, de par dolgot bemasolok:

In order to deal with both old tag soup written to old browser quirks and new CSS-compliant pages, Firefox (and other Mozilla Gecko-based browsers), Safari, Opera (7 and later), Internet Explorer 6 and 7, Mac IE 5, and Konqueror (3.2 and later) have two main layout modes. In one mode the layout engine attempts to render conforming pages according the CSS specifications. In the other mode the layout engine tries to mimic old browsers. In Firefox these modes are known as “the Standards mode” and “the Quirks mode” respectively. In this document the same names are used also when referring to the modes of the other browsers.

Background

The bugs and non-standard behaviors of old browsers such as Netscape Navigator 4.x and IE 5 for Windows are called “quirks”. For example, not inheriting styles into tables is a quirk. Sometimes pages have been authored in such a way that their layout depends on quirks.

Most quirks are related to layout and, hence, are in conflict with CSS. Rendering quirky pages according to CSS would make them look different from what the author most likely intended. On the other hand, being able to use CSS as specified is a big win compared to writing for old quirks forever.

Layout Modes

To address the conflicting goals of backwards compatibility and CSS conformance, contemporary browsers have two or three layout modes.

Quirks Mode

In the Quirks mode the browsers violate CSS specifications in order to achieve backwards compatible layout. Different browsers implement different quirks. Therefore, “Quirks mode” is not a single target. For example, Mozilla focused on imitating Netscape 4.x initially. Windows IE 6 and 7, on the other hand, are focused on imitating Windows IE 5.

The point of the Quirks mode is avoiding “breaking” old pages. If you are authoring new pages now, you are supposed to comply with the relevant specifications (CSS 2.1 in particular) and target the Standards mode.

Standards Mode

In the Standards mode the browsers try to give conforming documents the specification-wise correct treatment to the extent implemented in a particular browser.

Almost Standards Mode

Firefox, Safari and Opera 7.5 (and later) also have a third mode known as “the Almost Standards mode”, which implements the vertical sizing of table cells traditionally and not rigorously according to the CSS2 specification. Mac IE 5, Windows IE 6 and 7, Opera prior to 7.5 and Konqueror do not need an Almost Standards mode, because they don’t implement the vertical sizing of table cells rigorously according to the CSS2 specification in their respective Standards modes anyway. In fact, their Standards modes are closer to Mozilla’s Almost Standards mode than to Mozilla’s Standards mode. It is important to remember that even though the various browsers have conceptually similar modes, the corresponding modes of the different browsers are not identical.

Firefox, Safari, Opera (7 and later), Windows IE 6 and 7, Mac IE 5 and Konqueror (3.2 and later) all use doctype sniffing in order to decide the layout mode for text/html documents. This means that the mode is picked based on the document type declaration (or the lack thereof) at the beginning of an HTML document. (Documents served using an XML content type always get the Standards mode.)

Szinten itt talalhato egy tablazat is arrol, hogy melyik browser melyik doctype-ot hogyan rendereli.

++++

Anne van Kesteren pedig keszitett egy tablazatot arrol, hogy a browserek hogyan impelementaljak a clientHeight, offsetHeight es scrollHeight-ot a body es html tagen quirks es standards mode-ban.

Friday, July 27, 2007

above the fold (above the scroll, above the crease)

“Above the fold” is a graphic design concept that refers to the location of an important news story or a visually appealing photograph on the upper half of the front page of a newspaper. Most papers are delivered and displayed to customers folded up, meaning that only the top half of the front page is visible. Thus, an item that is “above the fold” may be one that the editors feel will entice people to buy the paper. Alternatively, it reflects a decision, on the part of the editors, that the article is one of the day’s most important.

The term can be used more generally to refer to anything that is prominently displayed.

Above the scroll, a concept in web design referring to location of an item near the top of a web page, which can thus be viewed in a browser without scrolling. Some web marketers have called this “above the crease” referring to way in which newspapers of yesteryear were folded and creased.