Welcome to my blog
.NET,personal opinions, open sourcing my projects and experiences.
Tuesday, May 3, 2011
G-Nigeria 2011
The event was classed as one of the best of all tech-related events. Featuring software engineers from Google and a host of others,lots of information was exchanged.Topics that were treated included Google AppEngine, Chrome app development, Android development, Css3,Html5,Java and Python training,and lots more.The event concluded with an award presentation for a little contest held at the venue upon which 2 android phones were given out to the winners. I was privileged to meet with professionals from the industry during the tea break sessions. We talked some about the direction the industry is taking what our plans are for the future. They were glad to share some of their experiences and projects that they've been working.We exchanged phone numbers and email addresses.i also met some people who play chess also whom i'm going to visit one of this weekends.The evemt was worth every dime and time.It was indeed a gathering of geeks!
Saturday, February 19, 2011
Beginning csharp.net
The truth is that c#(pronounced csharp) happens to be the easiest programming language to learn programming.It provides you with so much power in form of class libraries which in turn serve as APIs for accessing almost any feature on windows.
Sunday, February 6, 2011
Friday, January 28, 2011
Wpf
i'm currently working on a wpf media player that uses artificial intelligence to play tracksthe user plays the most and detecting the user's taste of music.It will have the following features;
1.a collection of themes/skin
2.unlimited formats support.
3.support for user playlist generation-audio,video and images
4.automatic updates when an internet connection
1.a collection of themes/skin
2.unlimited formats support.
3.support for user playlist generation-audio,video and images
4.automatic updates when an internet connection
Wednesday, December 15, 2010
codes for a Quizzer I Created
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using IqTest;
namespace IqTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
BusinessLogicLayer bl = new BusinessLogicLayer();
string selectedText;
DateTime ticks = DateTime.Now;
public MainWindow()
{
InitializeComponent();
textBlock1.Text = bl.ShowQuestions();
submitButton.IsEnabled = false;
radioButton1.Checked += submitButton_Check;
radioButton2.Checked += submitButton_Check;
System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
t.Start();
t.Interval = 1000;
t.Tick += new EventHandler(t_Tick);
}
void t_Tick(object sender, EventArgs e)
{
ticks=ticks.AddSeconds(1);
txtTime.Text = ticks.ToLongTimeString();
}
private void button2_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Your Quiz Score is "+bl.correctAnswers.ToString(),"",MessageBoxButton.OK,MessageBoxImage.Information);
Close();
}
private void submitButton_Click(object sender, RoutedEventArgs e)
{
if (radioButton1.IsChecked==true)
{
selectedText = "A";
}
else if (radioButton2.IsChecked == true)
{
selectedText = "B";
}
if (bl.ShowAnswers() == selectedText)
{
bl.Increment();
}
textBlock1.Text = bl.ShowQuestions();
}
void submitButton_Check(object sender, RoutedEventArgs e)
{
submitButton.IsEnabled = true;
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using IqTest;
namespace IqTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
BusinessLogicLayer bl = new BusinessLogicLayer();
string selectedText;
DateTime ticks = DateTime.Now;
public MainWindow()
{
InitializeComponent();
textBlock1.Text = bl.ShowQuestions();
submitButton.IsEnabled = false;
radioButton1.Checked += submitButton_Check;
radioButton2.Checked += submitButton_Check;
System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
t.Start();
t.Interval = 1000;
t.Tick += new EventHandler(t_Tick);
}
void t_Tick(object sender, EventArgs e)
{
ticks=ticks.AddSeconds(1);
txtTime.Text = ticks.ToLongTimeString();
}
private void button2_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Your Quiz Score is "+bl.correctAnswers.ToString(),"",MessageBoxButton.OK,MessageBoxImage.Information);
Close();
}
private void submitButton_Click(object sender, RoutedEventArgs e)
{
if (radioButton1.IsChecked==true)
{
selectedText = "A";
}
else if (radioButton2.IsChecked == true)
{
selectedText = "B";
}
if (bl.ShowAnswers() == selectedText)
{
bl.Increment();
}
textBlock1.Text = bl.ShowQuestions();
}
void submitButton_Check(object sender, RoutedEventArgs e)
{
submitButton.IsEnabled = true;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IqTest;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Data.Linq;
using System.Windows;
using System.Xaml;
namespace IqTest
{
class DataAccessLayer
{
public string GetQuestions()
{
IQTestDataContext dc = new IQTestDataContext();
var value = dc.ExecuteQuery<string>(@"SELECT TOP 1 Questions FROM QUSETIONS ORDER BY NewID()");
string question = value.FirstOrDefault<string>();
return question;
}
public string GetAnswers()
{
IQTestDataContext dd = new IQTestDataContext();
string answer = "";
var value = dd.ExecuteQuery<string>(@"SELECT TOP 1 Answers FROM QUSETIONS");
answer = value.FirstOrDefault<string>();
return answer;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Linq;
using System.Data.SqlClient;
using IqTest;
namespace IqTest
{
class BusinessLogicLayer
{
DataAccessLayer da = new DataAccessLayer();
public int correctAnswers;
public string ShowQuestions()
{
return da.GetQuestions();
}
public string ShowAnswers()
{
return da.GetAnswers();
}
public int Increment()
{
return correctAnswers++;
}
public int ComputeIQ(int correctAnswers)
{
return (correctAnswers / 15) * 200;
}
}
}
//The code has a database file which you can create yourself with columns: Id,Questions,Answers.
//include a linq to sql class and use the given datasets.
Friday, November 26, 2010
First code
using System;
namespace firstcodes
{
public class Program
{
public static void Main(0
{
Console.WriteLine( "The first C# code I Wrote 3 years ago!!!");
}
}
}
namespace firstcodes
{
public class Program
{
public static void Main(0
{
Console.WriteLine( "The first C# code I Wrote 3 years ago!!!");
}
}
}
Subscribe to:
Posts (Atom)