Starting March 30, 2012 all public Facebook pages will be converted to a new design. By the way, now the page administrators can preview and see how it will look like, as well as try out some new features.
image
Now the information is presented in the form of chronicles in the new design. Also, the new functions and the features include:
Skull 2 march 2012, 13:58

image

I would like to begin this article from the fact that now it is 2012. I am saying this, because I often read the code in C++ at my work and for hobby, which was written about 10-20 years ago (and it is actual now), or the code written recently by the people who learned to program in C++ 20 years ago. And after that I got feeling that there was not any progress over the years, as well nothing was changed and developed, and the mammoths still roam on the Earth.

Introduction


The programming specific was very different 20 years ago. The memory and resources of CPU were measured by the bytes and the cycles, many things had not been invented yet, and we had to deal with that situation. But this is not an excuse today to write a code based on these prerequisites. The world is changing now. I can feel it in the water. I can feel it in the ground. We need to keep up with the progress.

Everything that I am going to write further only applies to the programming in C++ and the mainstream-compilers (gcc, Intel, and Microsoft), unfortunately, I have worked less with other programming languages and compilers, so I will not talk much about them. Also, I will only talk about the application programming for desktop OS (trends may differ in the clusters, microprocessors and system programming).
Skull 26 february 2012, 13:31

I just recently have come across a hit parade of the most annoying things for the programmer on the internet.

Here they are:

10. Comments that explain “how” but do not explain “why”


In the university where I was a student studying a course of programming, we were taught to make detailed comments to the code. It’s better to have too many comments than to have too few. Unfortunately, sometimes this advice grows into the paranoia, namely programmer comments every single line of code. For example:

$r = $n / 2; // Set $r to $n divided by 2

// Loop while $r - ($n/$r) is greater than $t
while ( abs( $r - ($n/$r) ) > $t ) {
$r = 0.5 * ( $r + ($n/$r) ); // Set $r to half of $r + ($n/$r)
}
Skull 15 february 2012, 19:47

imageOnce I have come across an entertaining post that covered the future of logotypes. The authors attempted to look into the future, and imagine how the famous brands will look like in a few years.

I was inspired by that post, and I thought it would be nice to make my own evolution of the icons. The science-fiction writers invented a huge number of options for the future of our world, and it is likely that all of them someday, somehow will come true.

I could only take a few vivid scenarios of events, arrange their chronology and make the visualization.
Originally, I had the Napoleon's plans: take the most distinctive OS icons and follow their development for five hundred years in advance. Along the way, I realized that firstly a bunch of icons just disappear along the way of time, and others simply will not find counterparts in all science-fiction versions of reality. Secondly I will get a lot of icons and considering my free time to create them will take about a year. I took four of them, which seemed the most promising and here they are:
Tags: future, icons
Skull 6 february 2012, 14:58

image

Recently, in the global computer press has begun to appear quite a few articles on the topic "Why RAID-5 is bad” (here are some examples: one, two, and others).

We will try to explain why RAID-5 has worked so far, but now it suddenly stopped.

The capacity of hard drives has been growing without any specific tendency to a stoppage over the past few years. In addition, the capacity of the drives almost doubles every year, but their data transfer rate does not increase much over the same period. Yes, indeed, the drives get interfaces, such as SATA and SATA-II, and SATA-III is on its way, but there is a question “would these drives work faster?” or they just get new interfaces with the numbers of theoretical characteristics.
The usage of hard drives tells us that the capacity grows and the speed does not.
Skull 23 january 2012, 15:55

"C++11 feels like a new language." - Bjarne Stroustrup

Recently, Herb Sutter has opened on its website a new page “Elements of Modern C++ Style”, where he describes the advantages of the new standard and how they will affect the code.

C++11 standard introduces many new features. Next, we focus specifically and only on those features that make C++11 really feel like a new language compared to C++98, namely:

• They change the styles and idioms you will use when writing C++ code, often including the way you will design C++ libraries. For example, you will see more smart pointer parameters and return values, and functions that return big objects by value.
• They will be used so pervasively that you will probably see them in most code examples. For example, virtually every five-line modern C++ code example will say “auto” somewhere.
Tags: C++, C++0x, С++11
Skull 13 january 2012, 17:45

Smashing Magazine has released another free set icon Aroma, created by Oliver Twardowski.

Majority of them are 150 icons and ideograms 24 × 24 pixels:

image

The remaining icons (it is about 103) picture keyboard images.


You can download the icon set for free in ZIP-archive (≈ .zip, 1.5 Mb).

The elements contained in this collection are free for personal and commercial use. Please link to this article if you want to spread the word or give it a tweet or share it. You may modify the file as you wish but please do not redistribute them elsewhere without written permission from Smashing Magazine and Oliver Twardowski.
Skull 4 january 2012, 14:56

Introduction


C ++ is unmanaged language, because the programs can escape without saving the user’s data and give the error messages, etc. For example, it takes only to get into an uninitialized memory. For example:

void fall()
{
char * s = "short_text";
sprintf(s,"This is very long text");
}

or

void fall()
{
int * pointer = NULL;
*pointer = 13;
}
It would be better if we could "catch" a program crash just like in java we are catching exceptions, as well we could do anything before the program will crash (save the user’s document, display a dialog with the error message, etc.)

A task does not have a general solution, as C ++ does not have its own model of exception handling that is work-related with the memory. Nevertheless, we will consider two methods that are using the features of the operating system that caused an exception.
Skull 25 december 2011, 13:26

image

Scientists still have not known how the autofocus functions in the human eye and other animals. We know that it functions extremely fast and accurately. When the brain gets blurred image it instantly measures the distance to the object and changes the focal length, the curvature of crystalline lens to get a clear image on the retina.

There is a question, how does a focusing mechanism function in the human visual system? Now, the biologists have come close to answering this question. Experts from the Center of Perceptual Systems, University of Texas at Austin (USA) have developed a self-learning statistical algorithm, which eventually learned quickly and accurately to calculate the defocusing degree of any fragment of the blurred image.
Skull 16 december 2011, 12:54


Yesterday Twitter unveiled a new version of its interface. Its design is simplified to make it easier, faster, and richer experience. The new design will be the same for Twitter.com and mobile applications. In addition, TweetDeck application is updated and ready for the new version.

Visit fly.twitter.com and find out more details about the upcoming changes.
Skull 9 december 2011, 17:54
1 2 3 4 5