Archive for December 2008


IPhone Contact leri Yedeklemek

December 15th, 2008 — 10:43pm

iphone‘u bilgisayarınıza bağladığınızda, itunes‘a eklenen iphone bölümünde

info sekmesinde “sync contacts with” diye bir yer var orada “windows” , “google” ya da başka bir adres defteri ile eşitleme yapabiliyorsunuz.

sync contacts with’den windows contacts ‘ı seçip, sağ alttan “sync” düğmesine bastığınızda iphone daki kişiler bilgisayarınıza kopyalanmış oluyor.

her hangi bir kayıpda burdan geri yükleyebilirsiniz.

turkcell iphone için otomatik olarak rehber yedekleme hizmeti vermemekte.

ama isteyen webden tektek adres defterindeki kişileri kaydedip turkcell’in yedeklemesini kullanabilir.

iphone contact yedeklemek

iphone contact yedeklemek

Comment » | Something

Basic Ajax Function

December 14th, 2008 — 3:36pm

i have a dream that one day all browsers support XMLHttpRequest object :)

world will be a better place for web developers or programmers without IE.

function happyworldajaxer(txt) {
            var xmlHttp = new XMLHttpRequest();          
 
            xmlHttp.onreadystatechange = function() {
                if (xmlHttp.readyState == 4) {
                    if (xmlHttp.status == 200) {
                        document.getElementById('test').innerHTML 
                                                 = xmlHttp.responseText;
                    }
                } 
            }
 
            xmlHttp.open("GET", "a.ashx?b=" + txt, true);
            xmlHttp.send(null);
        }

this function makes ajax response in all browsers.

Microsoft.XMLHTTP, xmlHttp.readyState == “complete” is necessary for IE.

 
function ajaxer(txt) {
            var xmlHttp;
            try { xmlHttp = new XMLHttpRequest(); }
            catch (e) {
                try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
                catch (e) {
                    try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
                    catch (e) { return false; }
                }
            }
 
            xmlHttp.onreadystatechange = function() {
                if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
                    if (xmlHttp.status == 200) {
                        document.getElementById('test').innerHTML 
                                                  = xmlHttp.responseText;
                    }
                } 
            }
 
            xmlHttp.open("GET", "a.ashx?b=" + txt, true);
            xmlHttp.send(null);
        }

Comment » | Javascript - Jquery

Construct (Create) a String From Repeating Char or String

December 4th, 2008 — 1:48pm

When we need repeating activities we use loops. But loops need more lines.

If you write the code below you get a string from repeating string or char. you just give the count that you want. (i now this is not a very genious case)

You may want to use this.

string repeatativeString = string.Concat(
System.Collections.ArrayList.Repeat(" ", 60).ToArray());
string repeatativeChar = new string('-', 60);

Comment » | Csharp - C#

Page 3 of 512345

Back to top