Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Pablo Aliskevicius

@Pablo Aliskevicius
About
Posts
66
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • It's about TIME for a programming question
    P Pablo Aliskevicius

    Take a look at FIFA[^]'S site. At the top of the list of games there is a link that says "change to local time" or "change to your time". You can see scheduled games in your local time (good for watching on TV), and in the local time of wherever the game will take place (good if you're planning to go there and see the game). I saw it for the first time during the 2010 World Cup, and I like it. In general, sport events that are broadcasted to the entire world (the Olympic games start in a few days) pose the same challenge to whoever designs their sites, which are also designed for a wide audience, so this is one place where you can look for inspiration. JM2B, Pablo.

    The Lounge help question learning python com

  • Am I right or am I right?
    P Pablo Aliskevicius

    Minus points for those that don't read XKCD regularly. ;)

    The Lounge question cryptography help tutorial announcement

  • What bug? There is no bug!
    P Pablo Aliskevicius

    For me, yes. Altough Commit Strip didn't make it to Antartica yet...

    The Lounge help com question

  • Farewell, Dr. Dobb's
    P Pablo Aliskevicius

    It really is sad. I've spent quite a few quality hours with Dr Dobb's.

    The Insider News com design architecture

  • IE 10
    P Pablo Aliskevicius

    Yes. 11 is faster. Almost as fast as Chrome or Opera. According to my subjective impression (not measurement), slightly faster than Firefox. JM2B.

    The Lounge

  • Loop exit
    P Pablo Aliskevicius

    What about this?

    foreach (x in someContainer)
    {
    ret = someFunction(x);
    }


    int someFunction(whatever x)
    {
    // do stuff
    if (someCondition) return 1;

    // do more stuff
    if (someOtherCondition) return 2;
    
    // ...
    return 3;
    

    }

    Is this close to what you meant, or did I miss the point?

    The Lounge csharp c++ java delphi algorithms

  • Application launcher
    P Pablo Aliskevicius

    [^] I think you mean SmartStartMenu. Hope this helps, Pablo.

    The Lounge question

  • Is that guy a vampire?
    P Pablo Aliskevicius

    Consider blaming the victim[^]. Maybe Giorgio Chiellini acted like Marco Materazzi[^]? ;)

    The Lounge com regex question

  • Web Development vs Desktop Development
    P Pablo Aliskevicius

    From what I've heard, hotels are not early adopters in technology. WPF has the following disadvantages: 1. It requires reasonably strong graphic cards. 2. It requires a Windows machine. If you want to actually sell software to hotels, IMHO, it should be accessible to Android tablets, and to ancient (XP) Windows machines. Just my two bits,

    The Lounge csharp asp-net visual-studio wpf question

  • Nice April Fool's CP!
    P Pablo Aliskevicius

    Really? It was on the first one I clicked! :-D

    The Lounge csharp com tools question

  • KPIs - Good for anything at all?
    P Pablo Aliskevicius

    You may like this one: http://media.smh.com.au/news/national-times/ross-gittins-are-kpis-a-fad-5016051.html[^] Please keep us posted,

    The Lounge performance question

  • feature request: .vcproj colors
    P Pablo Aliskevicius

    First and foremost, thank you, managing code is now much more efficient! Browsing my workspace, I see that .vcproj files are not colorized. I'd like to see them as XML files, with syntax colors (like the ones in .csproj files). Keep up the good work, Pablo

    Workspaces Forum xml workspace

  • A backslash in C++
    P Pablo Aliskevicius

    The compilers I've used give a warning in cases like this. JM2B,

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Weird and The Wonderful c++ help

  • Duck typing
    P Pablo Aliskevicius

    See this: http://www.google.com/search?q=c%2B%2B+compile+time+polymorphism[^] For instance, in a C++ template, you can do something like this:

    template class Foo: public T
    {
    int Baa(int k)
    {
    T * pT = static_cast(this); // this is the magic
    return 42 + pT->Baz(k - 3); // for instance.
    }
    };

    Any class that exposes a method Baz that returns something that can be converted to an integer, and can be called with an integer parameter, can be a template paremeter for class Foo. No special interfaces required, so it is less restrictive than, for instance, C# generics. Aside: 'less restrictive' doesn't mean 'better', or 'worse'. Also, the code above is resolved at compile time, which may have a noticeable impact on performance. Duck typing is also used in Javascript, for other reasons (mostly, IMHO, flexibility). JM2B,

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge com oop question

  • How good & convenient is Ubuntu these days?
    P Pablo Aliskevicius

    I have it at home, and I've installed Ubuntu in 3 or 4 machines, usually dual boot with XP. I found it easier to install than XP. Day to day use is similar to W7 experience: the computer does what you expect, and you have to type an administrator's password to install or upgrade software. Have fun,

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge linux question learning

  • What would you teach your 60 year old daddy?
    P Pablo Aliskevicius

    When my father retired and boredom started to hit, he also bought a PC. One of his projects was digitizing his vinyl records collection. Some of the older 78 rpm ones may very well be 'last specimens'. Another, transferring old VCR family/vacation/wedding movies to CDs, while adding subtitles and transitions in the process. A third project was scanning photo albums, and digitally retouching cracks. Of all possible graphic software choices, he uses MS Paint. In a short time he was also using Skype to communicate with friends and relatives, and Google+ to share pictures. Best hopes for your father,

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge tutorial question

  • I just spotted...
    P Pablo Aliskevicius

    And the OP of any thread gets bold.

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge question

  • Finding posts based on the country
    P Pablo Aliskevicius

    Head hunting?

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge question

  • Is there a programming language...
    P Pablo Aliskevicius

    Obviously, you don't mean just time: otherwise, timespan and datetime in c# would do the trick. For phisical entities (mass, distance, acceleration, ....) there is a C++ library in BOOST: http://www.boost.org/doc/libs/1_41_0/doc/html/boost_units/Dimensional_Analysis.html[^] I remember reading an article (which I can't find) that used this to implement classes that allow you to do the following:

    Acceleration g = new Acceleration(9.88); // m/(s*s)
    Mass m = new mass(25); // kg
    Force f = m * g;

    Is that what you're looking for? Update: Found it. http://www.boostpro.com/mplbook/metafunctions.html[^].

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Lounge question csharp database com testing

  • Yes - It was me
    P Pablo Aliskevicius

    Why didn't you use RAII?

    class MutexLocker {
    QMutex &m;
    public:
    MutexLocker(QMutex &qm) : m(qm) { m.lock(); }
    ~MutexLocker() { m.unlock(); }
    }; // class

    int GetStatus(){
    MutexLocker tmp(statusMutex);
    return status;
    // destructor unlocks
    }

    Pablo. "Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899). "You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).

    The Weird and The Wonderful ruby
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups