I had this problem today and it caused me some real grief until I sorted it out. I think that the problem is related to using difference screen resolutions at home and work. Yesterday I was working in the office where I typically use my laptop screen for monitoring e-mail, Twitter feeds etc. and my larger external monitor for “the task at hand”. Today I’m working at home where I have two large screens attached to my PC. To access information on my laptop, I typically RDP onto my laptop and display its output onto one of my two PC screens.
Some applications store information about the screen resolution and try to start up in the same positions as they were when you shut them down. This can cause problems (as I discovered). For example, this morning I tried to open an application, the application icon appeared in the windows taskbar but I couldn’t minimise or maximise the application which meant that I couldn’t use it. All I could do was close the application down by right clicking the icon in the taskbar.
To resolve this problem it is possible to maximise an application using the following alternative method.
This ensures that the application becomes visible on a currently active screen.
- Right click the taskbar to bring up task manager.
- Right clickin the list of running applications and click Maximize.
I recently had a requirement to run some performance tests against the nopCommerce open source eCommerce application. Whilst the default sample data was useful, if I really wanted to give the application a “work out”, I felt that I should create a large amount of test data.
I needed product descriptions, short descriptions and images for potentially thousands of products.
I considered taking content from other websites, but, conscious of the logal implications of doing this, I decided to produce my own data.
To produce sample images, I took screenshots from the Intechnica company website and saved them as JPG files.
I then ran a batch file to make duplicate copies of each of these files.
e.g. To create 10 copies of a file called Image.jpg, use this command
for /l %i IN (1,1,10) DO COPY Image.jpg Image%i.jpg
To ensure that my test data was not always cached by the server, and was more representative of “real life” I needed to ensure that I used different descriptions for each product. This would ensure that my tests were production-like. I downloaded War and Peace from Project Gutenberg and used the UNIX “SPLIT” command to divide this text file into chunks. I chose 100 byte chunks for the short descriptions and 700 byte chunks for the long descriptions.
e.g. To split WarAndPeace.txt into 700 byte chunks, use this command. (SPLIT comes with CYGWIN)
split WarAndPeace.txt -b 700 -a 6 -d
This creates files called x000000, x000001, x000003 etc.
I needed to rename these to text files for simplicity so i used the DOS REN (rename) command to do this.
e.g. To rename all the new files in the folder
ren * *desc.txt