Category: Random



Engineer’s world is proud to launch an online deals-offers-coupons website as a startup. Now get the best selective offer directly to your  mail or facebook page.

Help us to grow it by showing your support by giving us a thumbs up on our facebook page at https://www.facebook.com/fadoodeals

Thanks

Advertisements

The IT story in few simple words



Many time you may face issues where you are unable to format your memory card or pen drive, in order to solve the issue you can format it using command prompt:

To open the DOS prompt (Start >> Run >> cmd)

Type:
FORMAT X: /S

This will reformat the memory card/ Pen drive. Replace X: with the actual drive letter of your Pen Drive or memory card.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

public partial class Department : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

//to populate the country name in dropdown
        if (!IsPostBack)
        {

            SqlConnection deptConnection = new SqlConnection(“Server=.;Database=Login;trusted_connection=true”);
            SqlCommand deptCommand = new SqlCommand(“Select * from Country”, deptConnection);           //Country is a table
            deptConnection.Open();
            SqlDataReader reader = deptCommand.ExecuteReader();
            DLocationDropDownList.DataSource = reader;
            DLocationDropDownList.DataTextField = “CountryName”;
            DLocationDropDownList.DataValueField = “CountryId”;
            DLocationDropDownList.DataBind();

        }
        

    }
    protected void AddDeptButton_Click(object sender, EventArgs e)
    {
        SqlConnection deptConnection = new SqlConnection(“Server=.;Database=Login;trusted_connection=true”);
        SqlCommand addcmd = new SqlCommand(“AddDept”, deptConnection);
        addcmd.CommandType = CommandType.StoredProcedure;
        deptConnection.Open();
        SqlParameter returnParameter = addcmd.Parameters.Add(“@result”, SqlDbType.Int);
        returnParameter.Direction = ParameterDirection.ReturnValue;
        addcmd.Parameters.AddWithValue(“@DepartmenttName”, DNameTextBox.Text);
        addcmd.Parameters.AddWithValue(“@CountryId”, DLocationDropDownList.SelectedValue);
        addcmd.Parameters.AddWithValue(“@Discription”, DiscriptiomnTextBox.Text);
      
        addcmd.ExecuteNonQuery();
        ResultLabel.Text = addcmd.Parameters[“@result”].Value.ToString();
   
    }
    protected void CancelButton_Click(object sender, EventArgs e)
    {
        Response.Redirect(“Department.aspx”);
    }

    protected void DLocationDropDownList_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace ADODOTNET
{
    class Program
    {
        static void Main(string[] args)
        {
            //SqlConnection northconnection=null;
            //SqlCommand Hellocmd = null;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Hellocmd = new SqlCommand(“Hello”, northconnection);
            //    Hellocmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = Hellocmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;

            //    northconnection.Open();
            //    int x = Hellocmd.ExecuteNonQuery();         //any reader or scalar , all 3 allowed
            //    Console.WriteLine(Hellocmd.Parameters[“@ret”].Value);
            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand HelloNamecmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    HelloNamecmd = new SqlCommand(“HelloName”, northconnection);
            //    HelloNamecmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = HelloNamecmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;
            //    Console.WriteLine(“enter a name”);
            //    String nam = Console.ReadLine();
            //    HelloNamecmd.Parameters.AddWithValue(“@name”,nam);

            //    northconnection.Open();
            //    int x = HelloNamecmd.ExecuteNonQuery();         
            //    Console.WriteLine(HelloNamecmd.Parameters[“@ret”].Value);
            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand HelloNamecmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    HelloNamecmd = new SqlCommand(“HelloAge”, northconnection);
            //    HelloNamecmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = HelloNamecmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;
            //    Console.WriteLine(“enter a name”);
            //    String nam = Console.ReadLine();
            //    HelloNamecmd.Parameters.AddWithValue(“@name”, nam);
            //    Console.WriteLine(“enter the age”);
            //    int age = Convert.ToInt32(Console.ReadLine());
            //    HelloNamecmd.Parameters.AddWithValue(“@age”, age);

            //    northconnection.Open();
            //    int x = HelloNamecmd.ExecuteNonQuery();
            //    Console.WriteLine(HelloNamecmd.Parameters[“@ret”].Value);
            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“EmployeeDetails”, northconnection);
            //    Empcmd.CommandType = CommandType.StoredProcedure;

            //    Console.WriteLine(“enter employee number”);
            //    String empno = Console.ReadLine();
            //    Empcmd.Parameters.AddWithValue(“@empId”, empno);

            //    northconnection.Open();
            //    SqlDataReader reader = Empcmd.ExecuteReader();

            //    while (reader.Read())
            //    {
            //        Console.WriteLine(reader[0].ToString() + reader[1].ToString() + reader[2].ToString() + reader[3].ToString());
            //    }

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“Empdetail”, northconnection);
            //    Empcmd.CommandType = CommandType.StoredProcedure;

            //    Console.WriteLine(“enter employee number”);
            //    String empno = Console.ReadLine();
            //    Empcmd.Parameters.AddWithValue(“@empId”, empno);

            //    northconnection.Open();
            //    SqlDataReader reader = Empcmd.ExecuteReader();

            //    while (reader.Read())
            //    {
            //        Console.WriteLine(reader[0].ToString() + reader[1].ToString() + reader[2].ToString() + reader[3].ToString());
            //    }

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“AddDept”, northconnection);
            //    Empcmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = Empcmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;

            //    northconnection.Open();
            //    int x=Empcmd.ExecuteNonQuery();
            //    Console.WriteLine(Empcmd.Parameters[“@ret”].Value);

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“ModifyEmployee”, northconnection);
            //    Empcmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = Empcmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;
            //    Console.WriteLine(“enter the employee id whose name need to change”);
            //    int employeeid = Convert.ToInt32(Console.ReadLine());
            //    Empcmd.Parameters.AddWithValue(“@empId”, employeeid);

            //    Console.WriteLine(“enter the name you want to enter”);
            //    String nam = Console.ReadLine();
            //    Empcmd.Parameters.AddWithValue(“@fname”, nam);

            //    northconnection.Open();
            //    int x = Empcmd.ExecuteNonQuery();
            //    Console.WriteLine(Empcmd.Parameters[“@ret”].Value);

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“RemoveEmployee”, northconnection);
            //    Empcmd.CommandType = CommandType.StoredProcedure;

            //    SqlParameter returnParameter = Empcmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;
            //    Console.WriteLine(“enter the employee id whose record need to be deleted”);
            //    int employeeid = Convert.ToInt32(Console.ReadLine());
            //    Empcmd.Parameters.AddWithValue(“@empId”, employeeid);

            //    northconnection.Open();
            //    int x = Empcmd.ExecuteNonQuery();
            //    Console.WriteLine(Empcmd.Parameters[“@ret”].Value);

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}
            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“Select * from Employee”, northconnection);

            //    northconnection.Open();
            //    SqlDataReader reader = Empcmd.ExecuteReader();

            //    while (reader.Read())
            //    {
            //        Console.WriteLine(reader[0].ToString() + reader[1].ToString() + reader[2].ToString() + reader[3].ToString());
            //    }

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();

            //}
            //……………………………………………………………………………………………
            //……………………………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlCommand Empcmd;
            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    Empcmd = new SqlCommand(“insert into Employee values (”  , northconnection);

            //    SqlParameter returnParameter = Empcmd.Parameters.Add(“@ret”, SqlDbType.Int);
            //    returnParameter.Direction = ParameterDirection.ReturnValue;

            //    northconnection.Open();
            //    int x = Empcmd.ExecuteNonQuery();
            //    Console.WriteLine(Empcmd.Parameters[“@ret”].Value);

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //finally
            //{
            //    northconnection.Close();
            //}

            //Disconnected starts here……………………………………………………………

            //SqlConnection northconnection = null;
            //SqlDataAdapter empadapdter = null;

            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    empadapdter = new SqlDataAdapter(“select * from Employee”, northconnection);
            //    DataSet ds = new DataSet();
            //    empadapdter.Fill(ds, “Employeenew”); // any name that be in cache

            //    foreach (DataColumn Column in ds.Tables[0].Columns)
            //    {
            //        Console.Write(Column.ColumnName);
            //    }

            //    foreach (DataRow Row in ds.Tables[0].Rows)
            //    {
            //        Console.WriteLine(Row[0].ToString() + Row[1].ToString() + Row[2].ToString() + Row[3].ToString());
            //    }

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //……………………………………………………………………………
            //……………………………………………………………………………

            //SqlConnection northconnection = null;
            //SqlDataAdapter empadapdter = null;

            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    empadapdter = new SqlDataAdapter(“select * from Employee”, northconnection);
            //    DataSet ds = new DataSet();
            //    empadapdter.Fill(ds, “Employeenew”); // any name that be in cache
            //    SqlCommandBuilder builder = new SqlCommandBuilder(empadapdter);

            //    Console.WriteLine(“enter the first name that u want to update”);
            //    String name = Console.ReadLine();

            //    Console.WriteLine(ds.Tables[0].Rows[2][“emp_fname”]= name);

            //    foreach (DataColumn Column in ds.Tables[0].Columns)
            //    {
            //        Console.Write(Column.ColumnName);
            //    }

            //    foreach (DataRow Row in ds.Tables[0].Rows)
            //    {
            //        Console.WriteLine(Row[0].ToString() + Row[1].ToString() + Row[2].ToString() + Row[3].ToString());
            //    }

            //    empadapdter.Update(ds, “Employeenew”);

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //……………………………………………………………………………
            //…………………………..prog 3………………………………

            //SqlConnection northconnection = null;
            //SqlDataAdapter empadapdter = null;

            //try
            //{
            //    northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
            //    empadapdter = new SqlDataAdapter(“select * from Employee”, northconnection);
            //    DataSet ds = new DataSet();
            //    empadapdter.Fill(ds, “Employeenew”); // any name that be in cache
                

            //    foreach (DataColumn Column in ds.Tables[0].Columns)
            //    {
            //        Console.Write(Column.ColumnName);
            //    }

            //    foreach (DataRow Row in ds.Tables[0].Rows)
            //    {
            //        if (Row[3].ToString() == “d3”)
            //        {
            //            Row[1] = Row[1].ToString() + Row[3].ToString();
            //        }

            //        Console.WriteLine(Row[0].ToString() + Row[1].ToString() + Row[2].ToString() + Row[3].ToString());
            //    }

                

            //}

            //catch (Exception e)
            //{
            //    Console.WriteLine(e.Message);
            //}

            //……………………………………………………………………………
            //…………………………..CALLING A PROCEDURE………………………………

            SqlConnection northconnection = null;
            SqlDataAdapter empadapdter = null;
            SqlCommand Empcmd = null;

            try
            {
                northconnection = new SqlConnection(“Server=LOCALHOST;Database = DAY1;trusted_connection = true”);
                empadapdter = new SqlDataAdapter(“select * from Department”, northconnection);
                Empcmd = new SqlCommand(“AddDept”, northconnection);
                Empcmd.CommandType = CommandType.StoredProcedure;

                DataSet ds = new DataSet();
                empadapdter.Fill(ds, “Employeenew”);
                SqlCommandBuilder builder = new SqlCommandBuilder(empadapdter);

                foreach (DataColumn Column in ds.Tables[0].Columns)
                {
                    Console.Write(Column.ColumnName);
                }

                foreach (DataRow Row in ds.Tables[0].Rows)
                {
                    Console.WriteLine(Row[0].ToString() + Row[1].ToString() + Row[2].ToString());
                }

                empadapdter.Update(ds, “Employeenew”);
            }

            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

        }
    }

}

Gangnam style facebook chat code smiley


Copy and paste in facebook chat box :

[[534189913290846]] [[534189889957515]] [[534189896624181]]
[[534189893290848]] [[534189906624180]] [[534190003290837]]
[[534190006624170]] [[534190016624169]] [[534189999957504]]
[[534190009957503]] [[534190159957488]] [[534190183290819]]
[[534190176624153]] [[534190179957486]] [[534190163290821]]
[[534190319957472]] [[534190309957473]] [[534190306624140]]
[[534190323290805]] [[534190313290806]] [[534190559957448]]
[[534190566624114]] [[534190556624115]]

Do comment which smiley you want next!!!


SoMeLaw Thoughts

The ongoing saga over the Twitter subpoenas in the Occupy New York criminal case just entered another round as Twitter appealed the previous court’s ruling regarding turning over Malcolm Harris’ tweets.  I’ve written about the story before (here and here) but this latest round of papers has some interesting arguments.

There are two main parts of Twitter appeal: one deals with the ability of Twitter or the user to respond to the subpoena, an issue I discussed earlier and not as interesting as the other; the second issue deals with the reasonable expectation of privacy in tweets.  If you want to read all of Twitter’s appeal, here’s the full document.  But I’ll be going over the most interesting part about expectations of privacy.

First, a quick primer.  Harris was arrested as part of the Occupy New York march that ended up obstructing traffic on a bridge.  He…

View original post 956 more words


KamikazeeGirl

Technology is a wondrous, wondrous thing.

I spent the day touring the streets of Ginza, Shibuya and then had a quick jaunt at Mt. Fuji. When I grew bored salivating the many amazing sights of Japan, I made a quick jump at Namsan in Seoul, and revisited my old neighborhood in Myeongdong. I made a quick stop at Nature Republic, trawled the streets of the Myeongdong Market then changed my mind again and strolled the pleasantly chaotic Nathan Road in HK, checked where we will be staying in October then made a quick jaunt at Chungking Mansions before ending the trip at the Avenue of Stars.

Amazing, I know. And impossible to do in one day unless you have Harry Potter’s Firebolt.

I was actually doing all these through good old Google Maps.

I was actually doing research for my sister, who is Tokyo-bound this September for a seven-day vacay…

View original post 288 more words

Magic blue text on facebook


Just to say thanx please like our page https://www.facebook.com/worldofengineers

 


Sufian's Diary

dollarThese days unemployment has increased on an alarming rate. Many educated people are jobless due to the financial instability through out the world. In search of jobs these jobless people come to know about easy, home based online earning jobs like data entry, web surfing, article writing, ad posting etc. At first these jobs seems very attractive and people start dreaming of earning 200$300$ a month by just doing part time home based assignments.

Fake online earningOnline Jobs are increasing day by day and it seems like everyone is creating his own company and has started making people fool. You might also have purchased package from any of those companies, worked day and night, submitted your first assignment and then you got balance shown in your online account. You became very happy and started working continuously.

ScammedBut your later submitted assignments were either rejected or were very heavily underpaid. REASON…

View original post 1,384 more words