feedback

Category Archives: Programming

Starting with jQuery – Learning basics

JQuery is a nice JavaScript library which enables us to make nice fancy effects. JavaScript can do this alone but it’s much easier to do it using jQuery. If you want to learn about jQuery here is a good starting point, it’s a presentation by Dmitri Gaskin. He is 12 year old, but he is very smart and talented he is involved in Drupal project and this presentation is from Google tech talk.

This video covers a lot of basic things about jQuery like:

  • Manipulation
  • Selectors
  • Attributes
  • Events and other

Enjoy!

Contact form 7 PHP Invocation Code

Contact form 7 is one of the most popular plugins for WordPress. Currently it’s 6th most downloaded plugin for WordPress. It’s very customizable at it can be easily integrated in posts and pages. That’s great but people sometimes want to integrate it in sidebar, header or footer so that it can be accessed on multiply pages. Looking at the code of plugin I found out that you need to use just a couple of lines of code to do that, just copy/paste this code:

wxWidgets vs MFC

Wxwidgets vs MFC

Wxwidgets vs MFC

WxWidgets and MFC are programming frameworks for building GUI applications(Graphical User Interface). Of course you can also write console apps with wxWidgets and MFC but they are made particularly for building GUI apps. Both of them are wrappers, saying it simple that means both of them are libraries build to simplify some other code. On Windows, Windows API functions are used to build GUI apps, but it’s very hard to make applications using it and that’s the reason why we have wrappers.

How to make a javascript redirection script

If you need to redirect visitors from one page to another or if you changed the domain you need a redirection script. Redirection can be done in many different ways but i will show you the simplest way, that is using a java script. Java script only needs to be supported by browsers and every modern browser supports it. So java script is the best way for doing redirection.

The main part of redirection is to use window.location=”http://something.com”. Put this in one function and it will look like this:

Object oriented programming VS Procedural programming

Programming had many revolutions in it’s history. In the beginning it was something only for computer engineers. In order to program we need to turn on or off a lot of switches. And even after that hard work we cold only do some simple math equation. The first compilers and text editors made programming look like we know it.

Revolutions in computer programming are the product of crisis in computer industry.  Hardware is always better and better and when people buy new computers they expect from it to do lot more then previous generations. That makes pressure on programmers to make better programs and that leads to crisis. Like the crisis which led to birth of object oriented programming.

Random Quote

quote openI could have made money this way, and perhaps amused myself writing code. But I knew that at the end of my career, I would look back on years of building walls to divide people, and feel I had spent my life making the world a worse place.quote end
by Richard Stallman

Tag cloud