Google da ara

 

Eylül 2010
Pts Sal Çar Per Cum Cts Paz
« Ağu    
 12345
6789101112
13141516171819
20212223242526
27282930  

Google Reklamları

Dil Seçimi

Bağış yada Ödeme

Sayfa 2 / 12«12345»...Son »

Garanti cep subesine bilgisayar dan girmek

Garanti musterileri bilirler cep subesi uzerinden yapilan havale eft bilimum islem icin garantinin fahis fiyat tarifesi islemez, yani ucretsizdir. Peki cep subesine girmek icin ille cep telefonundan gprs / 3g ye mi baglanmak lazim ? tabiki hayir.

Normalde bilgisayarinizdan wap.garanti.com.tr ye girmek istediginizde size soyle bir uyari verecektir.

Hata
Hata oluştu.
Cep Şubesi’ne sadece cep telefonlarından erişebilirsiniz.
<<www.garanti.com.tr

Ama bu hicbirsekilde bilgisayar uzerinden buraya erisemeyecegimiz anlamina gelmiyor. Garanti bankasi cep subesi bu hatayi vermek icin, istegi gonderen browser in UserAgent parametresini kontrol ediyor. Bizde Chris Pederick adli arkadasin firefox icin yazdigi UserAgentSwitcher eklentisini kullanarak bu sorunu cozuyoruz.

http://chrispederick.com/work/user-agent-switcher/

Eklentiyi kurduktan sonra Firefox menulerinden Tools altina, User Agent Switcher adinda yeni bir menu geliyor burdan Iphone secenegini secerek cep subesine bilgisayariniz uzerinden girebilirsiniz.

TFS Kurulumu – Sql 2008 Reporting Services hatası

Tfs kurulumu ilgili dökümanı adım adım uygulayarak yaptığınızda genelde bir sorun çıkmıyor, ancak bir şekilde kullanıcılarla ilgili gerekli ayarları yapamadığım için , tfs kurulumu tamamlanıp yeni bir proje oluşturmaya çalıştığım anda aşağıdaki hatayı alıyordum.

—begin Exception entry—
Time: 2009-11-22 13:39:02Z
Module: Initializer
Event Description: TF30207: Initialization for plugin “Microsoft.ProjectCreationWizard.Reporting” failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Insufficient permissions to create a new SQL Server Reporting Services at TFSAPPSERVER.
Exception Details: The permissions granted your user name and ID on the SQL Server Reporting Services at TFSAPPSERVER
do not allow you create a new project. You must be granted specific permission
by the server administrator.
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.RosettaReportUploader.CheckForProjectFolder(PrivateData data, String projectName, ProjectCreationContext context)
at Microsoft.VisualStudio.TeamFoundation.RosettaReportUploader.Initialize(ProjectCreationContext context)
at Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection)
–   Inner Exception   –
Exception Type: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException
Exception Message: TF30063: You are not authorized to access TFSAPPSERVER.
Stack Trace:
at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.ThrowIfUnauthorized(HttpWebResponse response)
at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.TeamFoundation.Proxy.Reporting.ReportingService.ListChildren(String Item, Boolean Recursive)
at Microsoft.VisualStudio.TeamFoundation.RosettaReportUploader.CheckForProjectFolder(PrivateData data, String projectName, ProjectCreationContext context)
– end Inner Exception –
— end Exception entry —

Hata nın SPN denilen birşeye benim reportservice kullanıcımın sahip olmaması neden oluyordu. Ancak bunu anlayana kadar domain admin olan kullanıcımı local tfs makinesi ve ilgili groupların tümüne yetki vermiştim. Olmamasının tek nedeni yetki eksikliği değil spn eksikliğiymiş :) .

Bunuda şurdan anladım :

Using RSWindowsNegotiate will result in a Kerberos authentication error if you configured the Report Server service to run under a domain user account and you did not register a Service Principal Name (SPN) for the account. For more information, see Resolving Kerberos Authentication Errors When Connecting to a report server in this topic.

Daha sonra şurdaki çözümü uyguladım :

Use NTLM. NTLM will generally work in cases where Kerberos authentication fails. To use NTLM, remove RSWindowsNegotiate from the RSReportServer.config file and verify that only RSWindowsNTLM is specified. If you choose this approach, you can continue to use a domain user account for the Report Server service even if you do not define an SPN for it.

Gidip RSReportServer.config dosyasını bulup ordaki <RSWindowsNegotiate/> tag ini sildim. Ve sorun giderilmişti.

Kaynak : http://msdn.microsoft.com/en-us/library/cc281253.aspx#proxyfirewallRSWindowsNegotiate

Windows Forms – Minimize

Programatik olarak formu minimize etmek için

this.WindowState = FormWindowState.Minimized;

kodunu formun herhangi bir static olmayan methodunda yazarak işlemi gerçekleştirebiliriz.
WindowsState property si formun durumunu Minimize, Maximize etmek yada Normal haline döndürmek için kullanılan property dir.

Devexpress AspxGridView – InitNewRow

Asp.net Gridview üzerinde yeni bir kayıt eklerken varsayılan değerleri server-side olarak belirlemeye yarayan bu Event’ın kullanımı şu şekildedir :

protected void dxgridBlogOrnek_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
{
e.NewValues["FieldName"] = 15;
}

Burda dikkat edilmesi gereken nokta FieldName olarak belirttiğimiz kolon un EditForm üzerinde görünüyor olması gerekmekte, yani visible ını false yaptığımız bir column a verdiğimiz değer malesef kaydedilmiyor.

MonoTouch – Alıştığın dilde yazmak varken Obj-C öğrenmek niye

Screen shot 2009-10-20 at 02.05.51

Arasıra takip etmeye çalıştığım mono projesine bugün göz attığımda, Novell in MonoTouch adında bir SDK geliştirdiğini gördüm. İlgili SDK 400$ bir fiyata satılıyor ve yaptığı şey ise, Iphone application geliştirmeye çalışan bir .Net yazılımcısı için paha biçilemez. Xcode da yazmak yerine MonoDevelop ile C# da Iphone application geliştirmenize yarayan bu sdk, arayüz tasarlayıcı olarak apple in Interface designer ını kullanıyor.
Yeni kurduğum için, hakkında çok fazla bilgi veremediğim ancak  bu sdk ile ilgili yazılarımı, burdan yayımlayacağım.
Ayrıca bir soap webservice çağırmak için ojb-c ile okadar çok boğuştuktan sonra, bunu monotouch ile ne zamanda yapacağımı çok merak ediyorum : )

Merak edenler için linkler:

Mono-Project
MonoDevelop (2.2 beta versiyonu MonoTouch için gerekli)
MonoTouch

MonoTouch ın yapabildikleri :

  • C# and .NET on the iPhone
  • .NET Bindings to Native APIs
  • Distribute on the Apple App Store
  • Enterprise deployable
  • MonoDevelop Integration
  • XCode Integration

Assemblies (MonoTouch ile kullanabileceğiniz Assembly ler)

MonoTouch ships with several assemblies.  Just as Silverlight is an extended subset of the desktop .NET assemblies, Monotouch is also an extended subset of several Silverlight and desktop .NET assemblies.

Note: MonoTouch is not ABI compatible with existing assemblies compiled for a different profile.  You must recompile your source code to generate assemblies targeting the MonoTouch profile (just as you need to recompile source code to target Silverlight and .NET 3.5 separately).

The assemblies shipped with MonoTouch include:

Assembly API Compatibility
mscorlib Silverlight
Mono.Security.dll Cryptographic APIs.
OpenTK.dll The OpenGL/OpenAL object oriented APIs, extended to provide iPhone device support.
System.Core.dll Silverlight
System.Json.dll Silverlight
System.ServiceModel.dll WCF stack as present in Silverlight
System.Xml.dll .NET 3.5
System.Web.Services Basic Web services from the .NET 3.5 profile, with the server features removed.
System.Xml.Linq.dll .NET 3.5
System.dll Silverlight, plus types from the following namespaces:

  • System.Collections.Specialized
  • System.ComponentModel
  • System.ComponentModel.Design
  • System.Diagnostics
  • System.IO.Compression
  • System.Net
  • System.Net.Mail
  • System.Net.Mime
  • System.Net.NetworkInformation
  • System.Net.Security
  • System.Net.Sockets
  • System.Security.Cryptography
monotouch.dll This assembly contains the C# binding to the CocoaTouch API.
Mono.CompilerServices.SymbolWriter.dll For compiler writers.

IsGuid() – Csharp da Guid doğrulama

İşinize yarayabileceğini düşündüğüm guid doğrulama kodunu google araştırırken bir blog da görmüştüm.


private static Regex isGuid = new Regex(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", RegexOptions.Compiled);

                                    internal static bool IsGuid(string candidate, out Guid output)

                                    {

                                                bool isValid = false;

                                                output=Guid.Empty;

                                                if(candidate!=null)

                                                {

                                                            if (isGuid.IsMatch(candidate))

                                                            {

                                                                        output=new Guid(candidate);

                                                                        isValid = true;

                                                            }

                                                }

                                                return isValid;

                                    }

PostamNerede ?

Ptt gönderilerini takip etmek için yazdığım bu uygulama, kayıt olduğunuzda size bir aktivasyon email i gönderiyor bu email deki yönergeleri tamamladığınızda, belirtmiş olduğunuz takip numarasını ptt sistemlerinden kontrol ederek, bir değişiklik olduğunda size email olarak bildiriyor. Böylece özellikle yurtdışı gönderili paketlerinizi , yurtiçi tebligatlarınızı vb takip etmeniz gereken gönderilerinizi, sistem sizin yerinize takip etmiş oluyor.

www.postamNerede.com

Vb.Net – Csharp karşılaştırmalı referansı

Frank McCown adında bir hayırsever, csharp programcısı olupta vb de yazması gerekenler ve vb programcısı olupta csharp da program yazmak isteyenler için karşılaştırmalı bir referans hazırlamış asp alliance da bunu baskıya hazır halde pdf ve word dosyası haline getirmiş.

Asp Alliance ın düzenlediği hali

Orjinali ve halen geliştirilen hali

Windows Forms – Web Browser – Kargo gönderi bilgileri sorgulama örneği

sorgula

Kargo bilgilerini ve ptt nin yurtiçi ve dışı kayıtlı gönderilerini sorgulayan bir programa ihtiyacım oldu ve ortaya böyle birşey çıktı.
bir form oluşturup şekilde görüldüğü üzere bir TextBox, bir ComboBox , bir Button ve birde WebBrowser controlü ekleyip aşağıdaki kodları yazdığınızda program çalışacaktır.

       public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var cmbItem = (CmbItem)comboBox1.SelectedItem;

            String postdata = String.Format(&quot;{0}={1}&quot;,cmbItem.FieldToPost,textBox1.Text);

            System.Text.Encoding a = System.Text.Encoding.UTF8;

            byte[] byte1 = a.GetBytes(postdata);

            webBrowser1.Navigate(cmbItem.Url, &quot;&quot;,byte1, &quot;Content-Type: application/x-www-form-urlencoded&quot; );

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            List&lt;CmbItem&gt; list =new List&lt;CmbItem&gt;();
            list.Add(new CmbItem(&quot;PTT-Yurtiçi Kayıtlı Posta&quot;,&quot;barkod&quot;,&quot;https://interaktif.ptt.gov.tr/apps/sonuc.php&quot;));
            list.Add(new CmbItem(&quot;PTT-Yurtdışı Kayıtlı Posta&quot;, &quot;barkod&quot;, &quot;https://interaktif.ptt.gov.tr/apps/sonuc-yd.php&quot;));
            list.Add(new CmbItem(&quot;Yurtiçi Kargo(GönderiNo)&quot;, &quot;DocId&quot;, &quot;http://selfservis.yurticikargo.com/reports/SSWDocumentDetail.aspx&quot;));
            list.Add(new CmbItem(&quot;Aras Kargo(GönderiNo)&quot;, &quot;Cargo_Code&quot;, &quot;http://appl-srv.araskargo.com.tr/yurticigonbil.aspx&quot;,METHOD.GET));

            comboBox1.DataSource = list;
        }
    }

    internal class CmbItem
    {
        public string Url { get; set; }
        public string FieldToPost { get; set; }
        public string DisplayName { get; set; }
        public METHOD SendMethod { get; set; }

        public CmbItem(string displayName,string fieldToPost,string url) : this(displayName, fieldToPost, url, METHOD.POST)
        {}

        public CmbItem(string displayName,string fieldToPost,string url,METHOD sendMethod)
        {
            SendMethod = sendMethod;
            Url = url;
            DisplayName = displayName;
            FieldToPost = fieldToPost;
        }
        public override string ToString()
        {
            return DisplayName;
        }
    }
    public enum METHOD
    {
        POST,
        GET
    }

Burda kullandığımız method webBrowser in Navigate methodunda post edilecek veriyi alan değişkeni göndermekten ibarettir. Bilindiği üzere POST ve GET olmak üzere iki adet methodla web sayfalarına veri gönderebiliyoruz. GET methodu url string i içinde gönderilebilirken POST için bizim kullandığımız methodu uygulamak gerekiyor.
Burda SendMethod property si programı geliştirebilmek açısından yazılmıştır. Bu property i siz kendiniz buttonun tıklanma olayında kontrol ederek Navigate methodunun uygun overload unu çağırabilirsiniz.

Ekşi Sözlük Ormanı

Ekşi sözlük de başlayan bir kampanya için ağaç bağışlamak isterseniz şu adresten ayrıntılara ulaşabilirsiniz :

http://sozluk.sourtimes.org/show.asp?t=%2316683128

Sayfa 2 / 12«12345»...Son »