Archive for the ‘Offtopic’ Category

Remember to backup :)

Monday, August 20th, 2012

Windows 7 aero lag fix

Friday, October 8th, 2010

Windows 7 is great, but on my machine every once in a while, like after a couple of hours of working, the interface starts to lag. Nothing big, probably just 100 milliseconds or something, but it is noticeable, and especially when watching movies. Don’t really know what it is exactly, maybe something with drivers or some program that slows it down, but there are numerous reports of this out there on the internet. And this thing is really annoying, because once it has started, EVERYTHING is lagging, all the windows and everything that happens on the screen.

This has nothing to do with too little memory or some process running in background. The lag would appear even when processor usage was on 0-5 percent.

So, basically, the workaround for this: once it starts to lag, switch a window with Windows+Tab button. (To open that 3D taskswitcher that came in Vista). Once you have done that, the lag is gone.

It is sure strange, seems like there is some bug that starts when something gets overrun, and the 3D task switcher resets it to make everything run normally again.

This isn’t really a fix, just a workaround, but searching the internets gave me nothing, and this solution is still viable. So here you go people, if somebody stumbles across this article with the same lag problem, there you have a solution.

Java compiler cares about you

Sunday, August 15th, 2010

There is an old anecdote, or something like a quote, which goes something like

– I really love the Java compiler, it cares so much about me
– how come?
– Well every time there is an error, it’s like “Aww, you have an error here and here, a warning here, but I can fix that by adding this and this. Here, have a cookie, sweetheart! Also I optimized these classes for you and now everything works 2 times faster”
– while vc++ compiler is like “ARGGHH! you stupid human, there is some error in those 150 files. And I don’t like the way you placed your comments here, REWRITE EVERYTHING!!! ARGHH!!!”.

It certainly seems a little like that, especially now that I’ve noticed really how much java compiler is with you even while you are coding.

1. it warns about something
2. it adds an automatic option to fix that, or even add a suppress warning
3. BUT! if you have added that suppress warning header, and there are no warnings anymore, It will warn you about having an unnecessary warning (!).
Observe: “Unnecessary @SuppressWarnings(“unused”)”.

It’s watching your every move…