January 1, 2009
@ 11:51 PM
Having problem with mdichild form size on form load?
try setting the AutoScaleMode to Inherit on mdi child form.


 
Categories: Software

October 27, 2008
@ 08:27 PM


A Forecast...

Whenever SaaS and Soa completes their evolution, a new era will rise;
Internet Software Studio
A platform where developers will no longer need a software development studio,
A platform where development & compilation can be done online, where intermediate software users will able to develop their own software without digging into huge documentations...

Some day...


 
October 23, 2008
@ 09:47 AM

Dtp nin sitesi hacklendi.
dün akşam saat 22:30 civarında...


 
Categories: Genel | Server Systems

September 5, 2008
@ 01:32 AM
My description for a hacker is the expert of all tech systems including coding.My description for the best hacker is the one tht has never been cought.But this guy is different, he exposes himself & his hack.

But i must confess, this is the best & funniest hack event i've seen for the past year.




 
Categories: Security | Server Systems

August 15, 2008
@ 05:59 PM


Great & wondeful tool for copying files to/from Esx servers to your windows environment.
http://www.veeam.com/veeam_fast_scp.asp

It also has "evaluate to root" option which allows u to access to yr vmfs volumes & copy powered off vm's to local drive.

 
Categories: Virtualization

August 15, 2008
@ 12:16 AM
AKP'nin sitesi hacklendi...

Bu akşam saat 21:00 civarında...


 
Categories: Genel

August 15, 2008
@ 12:08 AM
Evet! Bugün bir olay!!! yaşadık.Malum zat Istanbul'a geldi ve aşağıdaki manzaralar oluştu.


Haberleri izlediğimde bütün vatandaşlar şikayet ediyordu.Herkes;
- Böyle yönetim mi olur?
- Vatandaşlarını 3.sınıf vatandaş yerine koyan başka bir yönetim yoktur!!!
- Ankarayı ziyaret etmek istemeyen birisi için vatandaşı bu hale düşürüyorlar ya...
şeklinde konuşuyordu.

Bir tek kişi bile durumdan memnun değildi.Ama bir tek kişi bile...

E o kadar kişi yorum yaptı haberlerde...Bir yorum da benden...
Neden KIZIYORUZ? bu hale düşmeyi kendimiz SEÇMEDİK Mİ?

 
Categories: Genel

As i was just about to code a logging system for a project, i remembered a couple of fine methods which SqlConnection class has.
RetrieveStatistics();

It works with first enabling the stats mode, resetting the stats and when the command is executed, finally retrive the stats.
string strConnectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=FooDB;Integrated Security=True";
 using (SqlConnection conSQL = new SqlConnection(strConnectionString))
 {
     using (SqlCommand cmdSQL = new SqlCommand("select * from Foo", conSQL))
     {
         cmdSQL.CommandType = CommandType.Text;
         try
         {
             conSQL.Open();
             conSQL.StatisticsEnabled = true;
             
             conSQL.ResetStatistics();
             SqlDataReader drdActiveConfiguration = cmdSQL.ExecuteReader();
             IDictionary idcStat= conSQL.RetrieveStatistics();

             foreach (DictionaryEntry dceItem in idcStat)
             {
                 Console.WriteLine("Key: {0}, Value: {1}", dceItem.Key.ToString(), dceItem.Value.ToString());
             }

             DataSet dsActiveConfiguration = new DataSet();
             dsActiveConfiguration.Load(drdActiveConfiguration, LoadOption.OverwriteChanges, new string[] { "Foo1" });

             dsActiveConfiguration.Clear();
             conSQL.Close();
         }
         catch (Exception excp)
         {
         }
     }
 }
By using this method, you get a quite information about the execution process...

Key: NetworkServerTime, Value: 375
Key: BytesReceived, Value: 224
Key: UnpreparedExecs, Value: 1
Key: SumResultSets, Value: 0
Key: SelectCount, Value: 0
Key: PreparedExecs, Value: 0
Key: ConnectionTime, Value: 390
Key: ExecutionTime, Value: 390
Key: Prepares, Value: 0
Key: BuffersSent, Value: 1
Key: SelectRows, Value: 0
Key: ServerRoundtrips, Value: 1
Key: CursorOpens, Value: 0
Key: Transactions, Value: 0
Key: BytesSent, Value: 388
Key: BuffersReceived, Value: 1
Key: IduRows, Value: 0
Key: IduCount, Value: 0
Press any key to continue . . .


which is very handy :)


 
Categories: Software

August 12, 2008
@ 11:43 PM

To those users who has dloaded & installed Update 2 for their Esx 3.5 servers;
Due to an undefined date bug, vmware Esx 3.5 Update 2 servers will not power up VM's by today.
You can find specific info @ here

To solve this problem u need to change the time on Esx servers by typing below commands from service console.

service ntpd stop
date -s 20080811
vmware start
service ntpd start


This is not a total solution by all means, but since there is still no released bugfix for this problem(VmWare says there will be in 36 hrs), these commands will help to power up yr vm's.

 
Categories: Virtualization

Today i received a question about how to serialize an arraylist through xmlserialization.
Then i rapidly wrote a class named MyData which has 2 properties
public class MyData
{
public int a;
public string b;
public MyData()
{ }
public MyData(int _a, string _b)
{
a = _a;
b = _b;
}
}
Then generated some instances and added them to an arraylist in the main project.
class Program
{
static void Main(string[] args)
{
RunIt();
}
static void RunIt()
{
MyData v1 = new
MyData(0, "Zero");
MyData v2 = new MyData(1, "One");
MyData v3 = new MyData(2, "Two");

ArrayList al = new ArrayList();
al.Add(v1);
al.Add(v2);
al.Add(v3);

XmlSerializer s = new XmlSerializer(typeof(ArrayList));
string path = @"c:\seri.xml";
TextWriter tx = new StreamWriter(path, true);
s.Serialize(tx, al);
tx.Close();

FileStream fs = File.OpenRead(@"c:\seri.xml");
ArrayList ax = (ArrayList)s.Deserialize(fs);

Console.WriteLine(((
MyData)ax[0]).a.ToString());
Console.WriteLine(((
MyData)ax[1]).a.ToString());
Console.WriteLine(((
MyData)ax[2]).a.ToString());

}
}
When i ran the code i got the error, {"The type ConsoleApplication1.MyData was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."} which was the main question.

After some search i found out tht XmlSerializer was not aware of the type of MyData class and thus i got the above error.
To make XmlSerializer aware of a custom type, you should use one of it's constructer methods while u'r creating the object.
While creating XmlSerializer object i just added type type of my arraylist includes.
XmlSerializer s = new XmlSerializer(typeof(ArrayList),new Type[]{typeof(MyData)});
Ps: also i found out tht if u're developing this kind of code and having these type of errors, everytime u run the project make sure u delete the serialization file.Cause previous failed attemps may cause the right code to throw exceptions.


 
Categories: Software