Hiding and showing elements with jQuery

If you don’t know what jQuery is, I’d recommend you to visit jquery.com for clarification.

Suppose you have an HTML div element which you want to hide  and show.

<div id='foo'>bar</div>

The next step is to use a so called selector to select the element and call the hide() function to hide the element.


The show() function can in turn be used to show the element.


→ Continue Reading

Console output in Java

System.out.println can be used for outputting a line to the console.

public void Foo {
→ Continue Reading

Logging output in Objective-C (Cocoa Framework)

NSLog can be used for outputting messages to the console for debugging purposes.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    // Override point for customization after application launch.

    // Add the tab bar controller's view to the window and display.
    [self.window addSubview:tabBarController.view];
    [self.window makeKeyAndVisible];

	NSLog(@"Application didFinishLaunchingWithOptions");

    return YES;


Console output

→ Continue Reading

Printing to the console in C#

The Console.WriteLine method can be used to print a line to the console.

public void Foo(){

→ Continue Reading

Creating a class in PHP

Creating a class  in PHP consists of the following code.


class Foo {



→ Continue Reading
  • Advertisement

  • Categories