Sam Ideas

My Ideas, thoughts and programming desk…

4-D World

When talking of 3D world we say there will be three co-ordinates x,y,z but what when we say about the 4D world. The guy on the site Space Genetics explained the 4D figures. He says that…

The theory, proposed here, does not coincide to the generally adopted views in the modern physics.

The guy name Ivan Gorelik (resume) shows the 4-D world. He shows the picture of people playing four dimensional football, travelling of inward and outward in 4D. Isn’t that cranky, I think it is. How can one get into 4D world. So if we have the 4D world we would have the co-ordinates as w,x,y,x, but What is “w” ? I don’t know. Some of the 4D pictures are…

Watch out for more about the 4D World on Space Genetics>>4D world

Filed under: Visual Basic , , , , ,

Programming Languages then What?

First of all, let me be clear, I am just trying to rewind my gain about programming languages in the last three years at my Institute. The post just revolve around  the programming languge, but doesn't descibe what it is? and how it was constructed?

Every morning, I get up I just think of the little C, compiler. On the first look you will say what a dummy, useless looking application it is, who the whack will be happy to work on it, but on the next moment if you, switch on your browser and search for the history of programming language, you will find no page without the mention of C/C++, preceded by the PL/I, FORTRON, COBOL, ALGOL and followed by ever growing Java, Visual Basic, Python, PERL, and more. The C also has a huge list of features, that you won't imagine, it has fine way of accessing the hardware functions, which makes it more worth while and C has also resulted in the build of Operating Systems.

Questions, Questions???
But before we deal with all this languages we should first know What actually languages are?, What was the motive behind the development of this heart taking languages? What made them so worth?, How did we got enormous benefit out of this languages.? Have you ever wondered to find the answers of this question, I assume NO? Because who cares of past and purpose, we just learn to get a good results out there in our final exams. Most of my colleagues do the same, they learn all the syntax rather than making a collective meaning of all of them, and without putting there efforts to design practice system.

Programs Controls the beasts called computers
For my assumptions, programming is something that was developed to bring out the better productivity out of the Computer (any Hardware based circuit). In the real sense we can assume that computers are the some sort of beasts that obeys all our commands. But the problem that aroused in the minds of the experts was how to give the orders to these computers. To achieve this, the phenomena of System Programming (SP), came into existence. Oh! Why the whack are you talking about System Programming in between, I am sorry, but without talking of the SP, i just can't move further in the explanation of the programming. System Programming itself is the base of the development of programming languages, SP includes assemblers, loaders, compilers, operating system, file system etc.This terms were new to me at the start, but I got familiar with these terms by having some diggs in wikipedia and Google.

Become the "Master(Boss)" of the computer…
As a programmer, we have number of languages to work program on, but what lead to the innovation of this many languages? Every language is for different purpose with the same algorithmic nature. HTML is used to put our values and expression on the Internet in the forms of pages, whereas Visual Basic has the purpose of building a interactive application for the user.This is what the languages are. We use the languages to give commands to the CPU, and force it to work like a slave in the way we want it, actually by the medium of languages we are becoming the "masters(Boss)" of this computers. The ability of being a master of the computer was encouraged since the invention of Charles Babbage’s difference engine, which was made to execute tasks by changing the gears, that further makes the calculation.

Worth and Benefit
Now, it's time to get know what is the worth of this languages, what amount of benefit did we got out of this languages. Both of questions stand on different poles with the inter-relation that if you get benefit out of that language then and then only you can determine how worth it is.
When talking of benefit of the programming languages, I will say just surf around the web, on the sites like Google, all Blogging sites, sites with AJAX, digg.com, the latest technology YouTube, all this are the results of the programming languages that have just enhanced the Internet from the basic HTML to the heart taking look and interface. Why talk only about the Internet, what about the application like MS office, Photoshop, Corel Draw, messengers, and browsers, this too are the results of the programming language, where the programmer uses only a simple text editor to write these big programs. Aren't all the things mentioned above worth to you, what happens if there is no MS Office, what if Google shuts all it's services, what if no Blogging, would that made possible to share our Ideas and thoughts?, absolutely No. The enormous amount of the facility we obtain from the Internet and the Desktop application is the result of the programming languages.

Links for a detailed knowledge:

What about Project PicMan?
PicMan, my final year project, is dwindling with the design, I just need to grab up the look of the forms of my project and need to gather and optimize the code. Hope, I can do all this today.

Filed under: Geek-O-Mania, My Activities, Programming, Visual Basic

Which excuse will you give?

A another Ha!!!Ha!!! code.....

Private Function getProgrammerExcuse() As String

Dim myExcuses(1 to 21) As String

myExcuses(1) =  "That's Weird..."
 myExcuses(2) =  "It's never done that before."
 myExcuses(3) =  "It worked yesterday."
 myExcuses(4) =  "How is that possible?"
 myExcuses(5) =  "It should be the hardware problem."
 myExcuses(6) =  "What did you did to that crashed the system"
 myExcuses(7) =  "There is something weird in your data"
 myExcuses(8) =  "I haven't touched that module in weeks!"
 myExcuses(9) =  "You must be having the wrong version"
 myExcuses(10) = "It's just some unlucky coincidence."
 myExcuses(11) = "I can't test everything!"
 myExcuses(12) = "THIS can't be the source of THAT."
 myExcuses(13) = "It works, but it's not been tested."
 myExcuses(14) = "Somebody must have changed my code."
 myExcuses(15) = "Did you check for a virus on your system?"
 myExcuses(16) = "Even though it doesn't work, how does it feel?
 myExcuses(17) = "You can't use that version on your system."
 myExcuses(18) = "Why do you want to do it that way?"
 myExcuses(19) = "Where were you when the program blew up?"
 myExcuses(20) = "I thought I fixed that."
 myExcuses(21) = "This is not a bug,it's undocumented feature."

Dim randomChoice As New Random(UBound(myExcuses))
 Dim iRandomChoice As Integer = randomChoice.Next()

Return myExcuses(iRandomChoice)

End Function

Which excuse will you give??

Filed under: Ha!Ha! Codes, Visual Basic

Tickling Programming Quotes

It’s true that no programmer is perfect, people even finds out nooks in the Microsoft Software’s then what’s the case of the remaining programmers. Here I have put down some funny quotes that are related to programmers…..

“Keyboard not found. Press < F1 > to RESUME. “

….Source unknown (appears in many common BIOSes as a real error message)

“Any sufficiently advanced bug is indistinguishable from a feature.”

….Bruce Brown

“Java is C++ without the guns, knives, and clubs”

…..James Gosling, co-inventor of Java

“As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.”

…..Maurice Wilkes discovers debugging, 1949.

“I invented it, Bill made it famous.”
….David Bradley (wrote the code for Ctrl-Alt-Delete on the IBM PC)

“Writing in C or C++ is like running a chain saw with all the safety guards removed.”

…Bob Gray

This was my collection of quotes from around the net. My favourite among above quotes is 1st one.

Filed under: Funny and Weird, Visual Basic

Splash Screen In Visual Basic 6.0

Introduction:

When developing heavy program under any platform you will notice that the program requires a lot of time to start. So what the programmers are doing is that they introduce a screen just before displaying the Main Form which indicates you have started the program and it is loading. So to have modern look and to indicate the user that the program is being loaded we must include Splash Screen in our programs. Designing the Splash Screen is an easy task and requires very little skill.

Designing a Splash Screens

Generally a Splash Screen includes Image/Logo that resembles your program. The Splash Screen is generally displayed on the centre of the Screen. So when you have started designing the Splash Screen. Set the properties of the Splash Screen Form as given below

frmSplashScreen.frm

Properties:

·StartUpPosition: 2 – Centre Screen

·BorderStyle: None

·ShowInTaskbar: False

Now to add a Image/Logo on the Splash Screen drag a Image Control on to the Screen. You may use a PictureBox to do the same. But the Stretching property will not be allowed in PictureBox. Here I used a Image Control and set the properties to…

Image

Properties:

·Picture: Put the path of your Logo/Image

·Stretch: True

Now add the label displaying the name of your program and your identity and assign the colors and fonts as your require. Now the main phase of designing the Splash Screen comes in.

As till now your designing part is completed. Now take the Timer Control and place it on your form. Place it anywhere on your form as it will not be displayed at run time. Decide the time for which you want the user to view your splash screen. If you will be adding a progress bar then close splash screen as soon as the entire program loading process is completed. Set the timer Interval to about 1000 seconds. At the Timer event (i.e Timer1_Timer) of your Timer add the following code which will unload the splash screen and then display the Main Form(Named as frmMain.frm).

Private Sub Timer1_Timer()

Unload Me ‘Unload the Splash Form

frmMain.Show ‘Load the Main Form

End Sub

Also don’t forget to set Splash Screen Form (frmSplashScreen.frm) as your startup form in your project properties. After you have done all with this run your program and watch the difference you get. In later section I will discuss how to add a progress bar effect on the SplashScreen. Do post comments and your designed screens.s

Filed under: Visual Basic

Welcome to Sam Ideas

"A man may die, nation may rise and fall, but ideas live on, ideas have endurance to death."

Category

Counting...

  • 107,084 people made me happy

What’s on my mind?

  • The most destructive force in the universe is gossip. 4 hours ago
  • “ Good code is its own best documentation. Steve McConnell 8 hours ago
  • Enjoying my stay at home.... 9 hours ago
  • A man with a watch knows what time it is. A man with two watches is never sure. - Segal's Law 15 hours ago
  • Everything outside..on the road is getting baked up...Thank god I am at Home.... 15 hours ago