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
Comment » | Something
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
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#
December 4th, 2008 — 10:21am
Before i learn MaintainScrollPositionOnPostBack property. I was creating a zero widthed, zero heighted and zero bordered textbox. Then call Focus() for that textbox to behave like page remembers the position :)
sounds funny but it works!
from today on i am using MaintainScrollPositionOnPostBack . to let asp.net to remember the scroll position.
/// <summary>
/// Use this class for base of all pages
/// </summary>
public class BasePage:Page
{
public BasePage()
{ }
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
MaintainScrollPositionOnPostBack = true;
}
}Comment » | Asp.Net
December 1st, 2008 — 11:06pm
document.getElementById ile nesneyi oluiturduktan sonra length propertisini 0 a eşitlemek yeterlidir.
var listbox = document.getElementById("htmlselectid");
listbox.options.length=0;Comment » | Javascript - Jquery
December 1st, 2008 — 10:46pm
Hepimiz uygulamalarımıza captcha controlü ekliyoruz. ama kullanıcılar direkt her sayfada karşılarına gelen bu kontrolden pek hoşnut değil.
Ekteki örnekte arka arkaya 5 response gerçekleşirse captcha gösteren bir uygulama var.
Sonucta arka arkaya gelen response bot olabilir ama tek gelen response kullanıcıdır.
Kullanıcıyı rahatsız etmemeyi hedeflemenizi öneririm.
Kodlar
public class SystemUser
{
public SystemUser()
{
FirstReqTime = DateTime.Now;
ReqCount = 1;
}
public DateTime FirstReqTime { get; set; }
public int ReqCount { get; set; }
private bool captcha;
public bool RequiersCapthca
{
get
{
if (ReqCount > 5)
{
TimeSpan ts = DateTime.Now - FirstReqTime;
if (ts.TotalSeconds > 5)
{
captcha = true;
}
else
{
captcha = false;
}
}
return captcha;
}
set { captcha = value; }
}
}
public class BasePage : Page
{
public BasePage()
{
//
// TODO: Add constructor logic here
//
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
SystemUser scu = Session["CaptchaControl"] as SystemUser;
if (scu == null)
{
scu = new SystemUser();
Session.Add("CaptchaControl", scu);
}
else
{
scu.ReqCount++;
}
if (scu.RequiersCapthca)
{
Session.Add("ShowCaptcha", true);
}
}
}Comment » | Asp.Net