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.
Pablo Aliskevicius
Posts
-
It's about TIME for a programming question -
Am I right or am I right?Minus points for those that don't read XKCD regularly. ;)
-
What bug? There is no bug!For me, yes. Altough Commit Strip didn't make it to Antartica yet...
-
Farewell, Dr. Dobb'sIt really is sad. I've spent quite a few quality hours with Dr Dobb's.
-
IE 10Yes. 11 is faster. Almost as fast as Chrome or Opera. According to my subjective impression (not measurement), slightly faster than Firefox. JM2B.
-
Loop exitWhat 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?
-
Application launcher[^] I think you mean SmartStartMenu. Hope this helps, Pablo.
-
Is that guy a vampire?Consider blaming the victim[^]. Maybe Giorgio Chiellini acted like Marco Materazzi[^]? ;)
-
Web Development vs Desktop DevelopmentFrom 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,
-
Nice April Fool's CP!Really? It was on the first one I clicked! :-D
-
KPIs - Good for anything at all?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,
-
feature request: .vcproj colorsFirst 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
-
A backslash in C++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).
-
Duck typingSee 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).
-
How good & convenient is Ubuntu these days?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).
-
What would you teach your 60 year old daddy?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).
-
I just spotted...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).
-
Finding posts based on the countryHead 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).
-
Is there a programming language...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).
-
Yes - It was meWhy didn't you use RAII?
class MutexLocker {
QMutex &m;
public:
MutexLocker(QMutex &qm) : m(qm) { m.lock(); }
~MutexLocker() { m.unlock(); }
}; // classint 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).