rulururu

post IntelliSense Bug in Visual Studio

April 3rd, 2008

Filed under: C++, Software — Kai @ 7:55 pm

I have been irritated many times when IntelliSense stoped working immediately in the middle of programming. Sometimes the whole IntelliSense quits and at other times only certain sections of code fails to bring up List Members and Parameter Info.

According to Microsoft if there is an incomplete function or other coding error above the location of the insertion point, IntelliSense may be unable to parse the code elements and therefore will not work. It’s recommented to comment out the applicable code to enable IntelliSense again.

I found out that certain lines in my code bring IntelliSense to a stand-still.

Any code in Visual Studio that uses a comma-list to define an array of object constructor parameters will kill IntelliSense for all code following the definition.

This works well:

int iSomeNumbers[] = {4, 14, 1, 44 ,1};
char cWord[] = "test";

’cause it’s just a simple array.

The problem appears when using array definitions that include object constructors to create elements.
IntelliSense gets confused by this and crashes:

Point arPoints[] = {Point(1,4), Point(4,1), Point(4,1), Point(4,1)};

The easiest workaround to keep IntelliSense keep on working proper is to this kinda long winded way:

Point arPoints[4];
    arPoints[0] = Point(1,4);
    arPoints[1] = Point(4,1);
    arPoints[2] = Point(4,1);
    arPoints[3] = Point(4,1);

At least I discoverd in the web that this line messes up IntelliSense:

Point arPoints[] = {Point(1,4), Point(4,1), Point(4,1), Point(4,1)};

This one does not:

Point[] arPoints= {Point(1,4), Point(4,1), Point(4,1), Point(4,1)};

Notice that the array brackets are after the type not the identifier.

Hopefully someone can help determine other situations that cause IntelliSense to fail.

post Realtime Apache monitoring with apachetop

March 17th, 2008

Filed under: Internet, Linux, Software — Kai @ 5:10 pm

Using apachetop you can watch every request on your apache webserver smiliar to watching progresses with top at your local system.

It works by processing the logfiles found in /var/log/apache.

By default apachetop will use your log in /var/log/apache/access.log, but you can add a -f flag to the command and point it to wherever your apache log really is if you moved it.

apachetop -f var/log/httpd-access.log

In the header of the output apachetop generates some small statistics about number of requests, the transfered data and the returned status codes since apachetop was started and for also for the last 30 seconds.
Additionally the last few requests are listed. Press “d” to switch from requested urls to refferrers or client IPs.

Man Page:
apachetop(1)
Project Page:
Apachetop - Top-like display of Apache logs

post Photoshop soon available on Linux?

February 20th, 2008

Filed under: Linux, Software — Kai @ 10:27 pm

According to a survey implemented by Novell Adobe Photoshop is the most missed software product for Linux users. I can definitely approve that ’cause I don’t often need Windows but for Photoshop CS I have to switch on my Windows PC.

Indeed Gimp is a great graphics editor but not sufficiant. Maybe it has the same features and you can do almost the same stuff with it like with Photoshop but if you’ve worked for years with Photoshop, like I did, you’re kinda familiar with its usage. I utterly would spend more time on looking for a similar function in Gimp than just using Photoshop on Windows.

Google is funding work to ensure the Windows version of Adobe Systems’ Photoshop and other Creative Suite software can run on Linux computers. For working efficiently on that project Google hired developers from Codeweavers. The very well-known open-source project Wine is produced and supported by Codeweavers.

Some time ago also Adobe itself tried to make a running Linux solution of Photoshop - but unfortunately without success. According to my opinion it’s great that specialist make sure that Photoshop will run perfectly under wine in future.

Codeweavers

In marked contrast to other people on the Internet I can’t find something bad concerning the fact Google will fund for improve the Wine/Photoshop combination. Althougth it’s no act of charity by Google - they’re just trying to invest into the right projects. From my point of view projects being open source getting supported by Google is rather good than bad.

ruldrurd
« Previous Page
Powered by WordPress, Content and Design by Kai Bellmann
Entries (RSS) and Comments (RSS)