{"id":69,"date":"2006-07-03T16:06:54","date_gmt":"2006-07-03T14:06:54","guid":{"rendered":"http:\/\/soci.hu\/blog\/index.php\/2006\/07\/03\/az-elmult-het-tanulsagai\/"},"modified":"2006-07-03T16:06:54","modified_gmt":"2006-07-03T14:06:54","slug":"az-elmult-het-tanulsagai","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2006\/07\/03\/az-elmult-het-tanulsagai\/","title":{"rendered":"Az elm\u00falt h\u00e9t tanuls\u00e1gai"},"content":{"rendered":"<p>Hajmereszt\u0151 (szerencs\u00e9re csak szakmailag) id\u0151szakon vagyok lassan t\u00fal, ez\u00e9rt is nem blogoltam m\u00e1r r\u00e9gen.<\/p>\n<p>P\u00e1r vegyes tanuls\u00e1g az elm\u00falt id\u0151szakb\u00f3l, z\u00f6me magamnak is eml\u00e9keztet\u0151:<\/p>\n<ul>\n<li>A C\/C++ <a href=\"http:\/\/blogs.msdn.com\/michael_howard\/archive\/2006\/02\/27\/540123.aspx\" target=\"_blank\">secure stringkezel\u0151 (\u00e9s egy\u00e9b)<\/a> f\u00fcggv\u00e9nyek nem \u00fari huncuts\u00e1gok, \u00e9s nem csak security szempontj\u00e1b\u00f3l fontosak. A buffer overrun fogalom sok embernek a hekkel\u00e9ssel forrt \u00f6ssze, pedig adatveszt\u00e9sek, instabilit\u00e1sok is gyakran k\u00f6vetkezm\u00e9nyei. Ha egyszer vannak r\u00e1 norm\u00e1lis f\u00fcggv\u00e9nyek, \u00e9s a k\u00f3dok \u00e1t\u00edr\u00e1sa se olyen v\u00e9szes (tudom, mert \u00e1t\u00edrtam vagy 100 f\u00fcggv\u00e9nyh\u00edv\u00e1st az \u00faj f\u00fcggv\u00e9nyekre), akkor nem l\u00e1tok okot nem megtenni. Ahol a r\u00e9gi k\u00f3d kussol, csendben elbassza a dolgokat az \u00faj visong. Ugyanez a helyzet a <a href=\"http:\/\/msdn.microsoft.com\/library\/default.asp?url=\/library\/en-us\/dv_vstechart\/html\/vctchCompilerSecurityChecksInDepth.asp\" target=\"_blank\">\/GS<\/a> kapcsol\u00f3val is (stack overrun ellen\u0151rz\u00e9s), valamint a <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms173498.aspx\" target=\"_blank\">\/analyze<\/a> opci\u00f3val (prefast) is. Igenis hallgatni kell r\u00e1juk, mert \u00e9rtelmes hib\u00e1kat sz\u00farnak ki.<\/li>\n<li>Ha az IIS alatt nem megy egy website, Service Unavailable hib\u00e1val nem indul a worker process, \u00e9s 0x80004005-\u00f6s (Access Denied) hiba van az eventlogban, akkor az iis valahol nem tud \u00edrni vagy olvasni. Jelent\u0151s FileMon\/Regmon er\u0151fesz\u00edt\u00e9seim ellen\u00e9re se j\u00f6ttem r\u00e1 mi hi\u00e1nyzik neki, de az aspnet_regiis -ga megadja a sz\u00fcks\u00e9ges jogokat a futtat\u00e1shoz.<\/li>\n<li>Ha egy oszt\u00e1ly IDisposable, akkor kurv\u00e1ra meg kell h\u00edvni a Dispose met\u00f3dust. Nem tudok el\u00e9g nagy bet\u0171ket rendelni ehhez:<\/li>\n<\/ul>\n<p><strong>Haszn\u00e1ld a C# usingot, bmeg!!!<\/strong><\/p>\n<p>\u00c9n a DirectoryServicessel sz\u00edvtam meg, mivel az nemmanazsolt k\u00f3dot \u00e9s er\u0151forr\u00e1sokat h\u00edvokat a h\u00e1tt\u00e9rben \u00fagy fejre\u00e1ll mint \u00e1llat p\u00e1r sz\u00e1z allok\u00e1lt objektum ut\u00e1n, ha nem Disposolunk kem\u00e9nyen.<\/p>\n<ul>\n<li>A backup hasznos dolog. Ennek hi\u00e1ny\u00e1ban a <font size=\"2\"><a href=\"http:\/\/www.runtime.org\" target=\"_blank\">GetDataBack<\/a>-kel sz\u00e1mottev\u0151 sikereket \u00e9rhet\u00fcnk el. A rendszergazda meg bar\u00e1tkozzon \u00f6ssze a kapa nyel\u00e9vel a megfelel\u0151 testr\u00e9sz\u00e9n.<\/font><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hajmereszt\u0151 (szerencs\u00e9re csak szakmailag) id\u0151szakon vagyok lassan t\u00fal, ez\u00e9rt is nem blogoltam m\u00e1r r\u00e9gen. P\u00e1r vegyes tanuls\u00e1g az elm\u00falt id\u0151szakb\u00f3l, z\u00f6me magamnak&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,10,9,11,4],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-net","category-c","category-ccli","category-clr","category-szakmai-elet"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}