Posts

web applications - asp.net,web forms,about url task -

i have project name let take "xyz",it live project there on website,problem that when write "xyz" on browser url place , click enter not ctlr+enter has redirect "http://www.xyz.com".in programatic way using .net 2.0 , iis server project.so please tell me solution that 2nd problem in same url when write "xyz.com"then enter going page displaying "http://xyz.com" instead of http://www.xyz.com " so please tell me if u have answer problem in .net 2.0 , iis server for first part of question, not possible. cannot control browser send "xyz" there many factors including person's isp determine request "xyz" sent. for second part of question, suggest setting redirect in iis forward requests form xyz.com www.xyz.com see http://technet.microsoft.com/en-us/library/cc732969%28ws.10%29.aspx info on how that.

smtp - My server and php mail() function sends email to the spam folder -

is there way install smtp service on linux server , use php send emails through ? so emails doesn't show spam ? maybe through ssl ? my mail() function perfect , perfect headers , still sending spam :( thanks . there plenty of variables potentially involved here. your idea of perfect header seems subjective. recommend use phpmailer or swiftmailer handle mailing needs. some other variables might need take account processing of bounced emails, , making sure send mail in chunks opposed 1 big send off.

cocoa - Is there any detailed doc or sample codes about PBFSCopyFileSync from CoreService framework? -

i trying replace deprecated api pbhcopyfilesync pbfscopyfilesync recommend in files.h header. surprisingly, apple says several lines new api: pbfscopyfilesync duplicates file , optionally renames it. osstatus pbfscopyfilesync ( fsrefparamptr paramblock ); availability available in mac os x v10.5 , later. declared in files.h and couldn't find more how use function. specially, should filled parameter fsrefparamptr ? tried code below, keeps getting error of -50. paramerr -50 invalid value passed in parameter. application passed invalid parameter dialog options. here code: osstatus res = noerr; fsrefparam param; fsref srcfile, dstdir, newfile; const char *src = "$path_to_a_existing_file"; const char *dst = "/tmp"; res = fspathmakeref((const uint8 *)src, &srcfile, null); assert(res == noerr); res = fspathmakeref((const uint8 *)dst, &dstdir, null); assert(res == noerr); memset(&param, 0, sizeof(fsrefparam)); param.ioc...

css selectors - CSS reach nested div -

is how write reach div phone in code nested divs? css #pagewrap #pagemain .content .colrow .container .col548 #contactinfoarea #phone { } html <!-- start: pagewrap --> <div id="pagewrap"> <div id="header"> <div class="headerwrapper"> <div id="headertopitems"> <a class="mainlink" href="../telge-energi/webbkarta/">webbkarta</a> <a href="#" class="login closed">min sida</a> <div id="loginboxwrapper"> <div id="loginboxbuttonwrapper"> <div class="rounded buttonwrapper"></div> <div id="toploginbutton"> <div class="rounded topleft"></div> <div class="rounded topright"></div> <a href=...

How do I get access to an outer variable in a closure in ruby? -

i have following dynamically created class passed xpath function of nokogiri: country = nil ret = parent.xpath(".//text()[regex(.)]", class.new{ def regex(node_set, lead) result = node_set.find_all |node| node.text =~ post_code_expression || node.text =~ zip_code_expression end result end }.new) i somehow access or set country variable or access outer self within regex function. is there anyway can pass outer self class.new expression or can suggest better way? methods cannot closures in ruby, blocks can: country = nil ret = parent.xpath(".//text()[regex(.)]", class.new{ define_method(:regex) |node_set, lead| result = node_set.find_all |node| node.text =~ post_code_expression || node.text =~ zip_code_expression end result end }.new) by way: regex method more complicated needs be. it's equivalent to define_method(:regex) |node_set, lead| node_set.find_all |node| node.text =~ post_code_e...

send arabic SMS on mobile in java -

in application there both arabic , english language suport facing problem when mobile receive arabic sms displaied ??? ???? (question marks) knowing monbile using testing supports arabic , arabic in application working fine problem when arabic sms received mobile. string ff = new string(smscontent.getbytes("utf-8"), "utf-8"); stringwriter stringbuffer = new stringwriter(); printwriter pout = new printwriter(stringbuffer); pout.print("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); pout.print("<!doctype message system \"http://127.0.0.1/psms/dtd/messagev12.dtd\" >"); pout.print("<message ver=\"1.2\"><user username=\""+username+"\" password=\""+password+"\"/>"); pout.print("<sms udh=\"0\" coding=\"1\" text=\""+ff+"\" property=...

jquery - How to resize background image? -

i followed tutorial resizing background images on link how to: resizeable background image i trying edit work on div width of 900px resize vertically , have no idea how make work. any 1 can tell me how want. thanks are using first, second or third approach? considering third approach, might work if change width height : #img.source-image { height: 100%; position: absolute; top: 0; left: 0; } in case doesn't work, have @ this question , this other question , experiment body height , doctype . might want ask same question on doctype.com .