18 Aug, 2008 in Easter Eggs by Divyansh Jain

Easter eggs are messages, videos, graphics, sound effects, or an unusual change in program behavior that sometimes occur in a software program in response to some undocumented set of commands, mouse clicks, keystrokes or other stimuli intended as a joke or to display program credits. An early use of the term Easter egg was to describe a message hidden in the object code of a program as a joke, intended to be found by persons disassembling or browsing the code.

Some Examples of Easter Eggs are:

SOFTWARE BASED

Many personal computers have elaborate eggs hidden in ROM, including lists of the developers’ names, political exhortations, snatches of music, and (in one case) images of the entire development team.

Easter eggs in the 1997 version of Microsoft Office include a hidden flight simulator in Microsoft Excel and a pinball game in Word (see Easter eggs in Microsoft products).

The Palm operating system has elaborately hidden animations and other surprises. The Debian GNU/Linux package tool apt-get has an Easter egg involving an ASCII cow when variants on “apt-get moo” are typed into the shell.

Many new video games contain easter eggs, like Microsoft’s very popular Halo series.

An Easter Egg is found on all Microsoft Windows Operating Systems prior to XP. In the 3D Text screen saver, entering the text “volcano” will display the names of all the known volcanoes that exist in the world. Microsoft removed this Easter Egg in XP but added others.

One which continues till Windows XP is to simultaneously hold the Alt, shift, and the number 2 keys in the Solitaire game to produce a forced win.

A number of early Microsoft programs had hidden animated stuffed animal characters which could be revealed by following a complicated sequence of inputs. An early version of Microsoft Excel contained a hidden Doom-like action game called “The Hall of Tortured Souls“.

Windows 3.1 has a hidden developer credits page, which can be accessed by following a sequence of right-clicking and entering code words which is passed around by word-of-mouth.

Two easter eggs exist in the “About” box of Adobe Photoshop 7: an alternative “Liquid Sky” splash screen and the ability to speed up credits to view funny quotations.

Easter eggs found in some Unix operating systems caused them to respond to the command “make love” with “not war?” and “why” with “why not” (a reference to The Prisoner in Berkeley Unix 1977).

The TOPS-10 operating system (for the DEC PDP-10 computer) had the “make love” hack before 1971; it included a short, thoughtful pause before the response. This same behavior occurred on the RSTS/E operating system where the command “make” was used to invoke the TECO editor, and TECO would also provide this response.

The largest Easter egg is purported to be in the Atari 400/800 version of Pitfall II: Lost Caverns, which contains an entire game that was more complex and challenging than the original Pitfall II.

continue reading »

Hi

Does any body know how to open a dll file. I can create a DLL file in VB6 but dont know how to reopen the code applied in it.

Have any one of you tried to use Single Quote () while doing database handling. Well if you try to save any string that contain a (), it will show a syntax error in your query. I had tried such a thing in ADODB Connectivity while working in VB 6.

Now the question arises,

What to do?

How to go further?

what is the solution?

The solution for the above problem is very simple. Use the function given below in your applcation & just pass your string through this function before assigning it to your SQL queryfor the ADODB Connection (or any other).

 

‘——————————————————————————

Public Function ReplaceToDb(ByVal strng As String)
    ReplaceToDb = Replace(strng, ““, ““)

 ’ Convert to

 ’ These are 2 Single Quotes, Not a Double Quote

‘ If i read it in words, it says

‘  ReplaceToDb Equalto Replace Bracket Open strng  Comma Double Qoute Single Qoute Double Qoute Comma Double Qoute Single Qoute Single Qoute Double Qoute Bracket Close 
End Function

‘——————————————————————————

.

..

….

Confused ?…….

look at the following example

Consider a synario of Change Password Module where you need to Change your current password

Change Password

Change Password

 

Dim dbCon as new ADODB.Connection

Public Function ReplaceToDb(ByVal strng As String)
        ReplaceToDb = Replace(strng, “‘”, “””)
End Function

Public Sub databaseConnect()
Dim dbSource As String
dbSource = App.Path & “\dummy.mdb”

    With dbCon
        .Provider = “Microsoft.Jet.OLEDB.4.0″
        .CursorLocation = adUseClient
        .Open dbSource
    End With

End Sub
Private Sub cmdOK_Click()
On Error GoTo ErrorLog
Dim recSet As New ADODB.Recordset
Dim strRecSet, UserID as String

    databaseConnect
    UserID = “Divyansh”
    strRecSet = “Select Pass from tblUsers Where UserID = ‘” & ReplaceToDb(UserID) & “‘;”
    recSet.CursorLocation = adUseClient
    recSet.Open strRecSet, dbCon, adOpenDynamic, adLockPessimistic

    If txtPass.Text = recSet!Pass Then
        If txtNewPass.Text <> “” Then
            If txtNewPass.Text = txtCPass.Text Then
                strRecSet = “Update tblUsers Set Pass = ‘” _
                            & ReplaceToDb(txtNewPass.Text) & “‘ Where UserID = ‘” & ReplaceToDb(UserID) & “‘;”
                dbCon.Execute (strRecSet)
                MsgBox “Password Changes Successfully”
                Unload Me
            Else
                MsgBox “Password Confirmation does not matches”
                txtNewPass.Text = “”
                txtCPass.Text = “”
                txtNewPass.SetFocus
            End If
        Else
            MsgBox “Password Cannot be left Blank”
            ClearText
            txtNewPass.SetFocus
        End If
    Else
        MsgBox “Please Check Your Password”
        ClearText
        txtPass.Text = “”
        txtPass.SetFocus
    End If
End Sub

Sub ClearText()
    txtNewPass.Text = “”
    txtCPass.Text = “”
End Sub

‘——————————————————————————-

where DbCon is the Connection & RecSet is a Recordset.

Hope this works.

Try it…………..

29 Jul, 2008 in Personal by Divyansh Jain

hiii…my self Divyansh Jain. Currently doing BCA from IP University as well as working with Gunank Technologies as Software Developer.

My hobby is to work on comp. I like doing different experiments in my work & learn a lot from it.

Currently i have a web site to build up in ASP.net bt i am confused in which framework to use ie 2.0, 3.0 or 3.5. The reason being i have never worked in .net. It would be my first experience…………………