Ahot's weblog

Friday Nov 28, 2008

I did it!
As I undersand some old programs don't work on Ubuntu because it has no old libraries. For example Teamware/SCCS. In this case I needed libstdc++.so.5 and libstdc++-libc6.1-1.so.2 files. Teamware didn't run without that libraries.[Read More]

Thursday Oct 16, 2008

Just wondering how python works with arrays. Here is quick sort algorithm written in Python. Only one line of code:

def qsort(L):
    if L == []: return []
    return qsort([x for x in L[1:] if x< L[0]]) + L[0:1] + qsort([x for x in L[1:] if x>=L[0]])

[Read More]

Friday Oct 10, 2008

Just found one more solution for getting size of array with CPP. It's based on templates:
#include "stdafx.h"
#include <iostream>

template <class T, int size>
void f(T (&x)[size])
{
 std::cout<<size<<std::endl;
}

int main()
{
 int array[] = {1, 2, 3, 4, 5, 6, 7}; 
 f(array);

 int arrayTwo[] = {1, 2, 3};
 f(arrayTwo);

 return 0;
}

Thursday Sep 25, 2008

New entry in my new blog: http://devirtu.com/2008/09/25/bejeweled-game-in-javascript/. Just wrote one more JavaScript game like Bejeweled.

Monday Sep 22, 2008

New entry in my new blog: http://devirtu.com/2008/09/22/jquery-making-tooltip/. It's about making tooltips with jQuery without using any jQuery-plugins.
Total entries: 39 >>

FEEDS:

BOOKMARKS:

This blog copyright 2010 by ahot