Windows 7 Hacks

Sorry if I take a break from Mathematics. I was busy tweaking my Windows 7 machine for the holidays. With the discovery of the “God Mode” using a certain hack, I was immediately hooked. Little did I know that this is only one of the several hacks you could do. CNET provided a list of other hacks you could do, but unfortunately they didn’t say what each hack does.

To activate the “God Mode” you create a folder anywhere you want, and rename the folder to

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

You can actually use a different name if you are not comfortable with GodMode, and all you need to do is replace GodMode with any name that you want. Just retain the format

filename.stringhack

when you rename your folder. However, you cannot use the following characters in your file name: \ / : * ? ” |

Here is the list of string hacks and what it does:

  • {ED7BA470-8E54-465E-825C-99712043E01C} – a list of all possible settings you can do, a.k.a. “God Mode”
  • {00C6D95F-329C-409a-81D7-C46C66EA7F33} – edit your default location
  • {0142e4d0-fb7a-11dc-ba4a-000ffe7ab428} – biometrics settings
  • {025A5937-A6BE-4686-A844-36FE4BEC8B6D} – power settings
  • {05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} – edit your task bar icons
  • {1206F5F1-0569-412C-8FEC-3204630DFB70} – Windows credentials
  • {15eae92e-f17a-4431-9f28-805e482dafd4} – install a program for the network
  • {17cd9488-1228-4b2f-88ce-4298e93e0966} – edit Windows default programs
  • {1D2680C9-0E2A-469d-B787-065558BC7D43} – .NET framework assemblies
  • {1FA9085F-25A2-489B-85D4-86326EEDCD87} – manage wireless networks
  • {208D2C60-3AEA-1069-A2D7-08002B30309D} – shortcuts to network computers
  • {20D04FE0-3AEA-1069-A2D8-08002B30309D} – My Computer icon
  • {2227A280-3AEA-1069-A2DE-08002B30309D} – printer settings
  • {241D7C96-F8BF-4F85-B01F-E2B043341A4B} – RemoteApp and Desktop connections
  • {4026492F-2F69-46B8-B9BF-5654FC07E423} – Windows Firewall
  • {78F3955E-3B90-4184-BD14-5397C15F1EFC} – rate your computer performance

One of the string hacks doesn’t work in my machine: {62D8ED13-C9D0-4CE8-A914-47DD628FB1B0} I wonder what it does?

FreeFem++ 3.6

There is a new version of FreeFem++, now at version 3.6. You can download the installer from this site.

If you are using the IDE version (FreeFem++-cs), don’t worry. It is still in version 9.11.

Biting Off More Than I Can Chew?

Another Scilab issue. I am more comfortable with programming in Scilab compared with C, so I use Scilab to see if I am getting the correct answer in my C script. After printing the data matrix from C, I paste it in my Scilab code and compare the data with the results obtained in my Scilab script.

Now pasting large data matrices can be a pain in the ass inside the Scipad editor, because the automatic coloring will just make Scipad as laggy as hell. I would use a normal text editor to past the data inside the Scilab script, and then use the Scipad editor only if I am ready to execute the script. Even so, it takes several seconds before I can start executing the script.

Here is a problem that I’ve never encountered before. Whenever the script reaches the line where I define my large matrix, it returns this error:

Inconsistent row/column dimensions.

What the hell happened here? Granted, I have a 150-by-501 data matrix, but it shouldn’t be a problem. Or is it? I was able to do the same trick a few years ago, with a larger matrix. Am I missing something?

CUDA Complex Library

Well, at least life isn’t as boring as it used to be. I’ve been devoting most of my time figuring out how to implement the algorithm I’m studying using CUDA. And more than half of the time, I’m just figuring out how to use it. Suddenly, I miss the things I take for granted when I am programming in Scilab or Matlab. Gah.

Recently a new annoyance came up. I thought that using complex numbers is as easy as how it is done in C. Apparently, that is not the case. The inherent complex library in CUDA is not as extensive as the one in C, so my code is a mess. Now I’m having trouble figuring out pointers to the complex-valued arrays in my problem. The “C-approach” is not working.

Things would have been a little less stressful if I don’t have a countdown. I only have at most 31 days to finish this code, together with 2 other projects that are entirely unrelated to this problem. I am so screwed.

[Update] Scilab issue: input

I blogged on an issue I found with Scilab version 5.1 (regarding the command ‘input’) a month ago. I still haven’t figured out if it was caused by Windows Vista or it was really a bug of Scilab 5.1. In any case, I already updated my OS to Windows 7, and I also have the new version of Scilab 5.1.1. Everything works fine now.

Scilab issue: input

I’ve been using this little trick in order to stop the script momentarily and wait for user input:

stat = input(“Press Enter to continue…”,”string”);

It works well with the previous versions of Scilab. At least before the 5.x releases. But now, everytime the script reaches this line, the entire program shuts down. I wonder why?

BTW I’m using Scilab 5.1 in Windows Vista. I haven’t tried it in Linux. Yet.

Posted in Software. Tags: , , . 1 Comment »

FreeFem++ version 3.5-1

Another reason why I created this blog is because I wanted to be updated on the latest software I’m using. I mean, what’s Web 2.0 for, anyway?

Since the Freefem++ Homepage is just a static site (no RSS, gah!), I will make it my mission to update the rest of the world if there is a new version of the software. The latest version is 3.5-1. (Uploaded just about an hour ago, I might add.) There is a new edition of the documentation as well.

International Workshop on Biomathematics and Biomechanics

The International Workshop on Biomathematics and Biomechanics will be held on November 20-23, 2009 in Tozeur, Tunisia.

As presented from the official website:

The International Workshop on Biomathematics and Biomechanics aims at providing an international forum for researchers working in modeling and simulation on various physiological and pathophysiological aspects, especially for the improvement of medical diagnosis, disease prevention, and therapy strategy and prognosis. A major goal of this meeting is to present recent advances and new trends in Biomathematics and Biomechanics, especially to young scientists, as one day will contain a set of review-talks. Mathematics and Mechanics applied to physiological systems can have several goals. Modeling of physiological systems generally aims at understanding their behavior and predicting their evolution. Process control and optimization aim at yielding adequate evolution of the solution or an efficient design of therapeutic devices or procedure of drug delivery. This scientific meeting will essentially gather researchers from both sides of the Mediterranean Sea. The workshop will take place on three days with the following topics

* Mathematical modelling,
* Molecular modelling,
* Simulation of cell and tissue behavior,
* Medical devices and drug delivery.

LJLL 40th Anniversary

Laboratoire Jacques-Louis Lions will celebrate its 40th anniversary on December 17 and 18, 2009. Members (current and former) of the laboratory are invited to come to this celebration.

For more information, visit the official site here.

Scilab Trick of the Day: xclick()

Let me first give you a background on how I discovered this trick. My supervisor asked me to do phase diagrams for the simulation we’ve been working on. It was then that he told me that there is a trick to choose the initial values of the ODE using a mouse. I was surprised that such a command exists in Scilab, and my supervisor gave me a sample script to test it.

So now, I present to you the command xclick(). It allows you to choose a point from a graphics window and returns the coordinates of the point. Let us look at the syntax (as explained here):

[ibutton,xcoord,yxcoord,iwin,cbmenu] = xclick([flag])

where:

  • ibutton – Real scalar (integer value): mouse button number, key code…
  • xcoord – Real scalar: x-coordinate of the mouse pointer when the click occurred, in current graphic scale.
  • ycoord – Real scalar: x-coordinate of the mouse pointer when the click occurred, in current graphic scale.
  • iwin – Real scalar (integer value): number of the window where the action occurred.
  • cbmenu – String: callback associated to a menu if xclick() returns due to a click on a menu. In this case, ibutton, xcoord, ycoord, and iwin take arbitrary values.
  • flag – Real scalar (integer value): If present, the click event queue is not cleared when entering xclick().

If it is called with 3 left hand side arguments, it waits for a mouse click in the current graphics window. However, if it is called with 4 or 5 left hand side arguments, it waits for a mouse click in any graphics window.

For the values of ibutton, the usual values are:

  • 3 if the left button was clicked
  • 4 if the middle button was clicked
  • 5 if the right button was clicked

For the other values, consult this page.

So, how do we use it?

If you type only this line:

[i,x,y] = xclick()

it creates a new graphics window and waits for you to click on any point of the window. Once done, it returns the coordinate of the point (x for the x-coordinate, y for the y-coordinate) and the mouse action used to select the point. Note that the default coordinates assigns the values x = 0 and y = 0 to the point located at the center of the graphics window, and the rest of the points are labeled just like how you would label a Cartesian coordinate system (positive values of x on the right, positive values of y on top).

If you want to specify the bounds of the x-axis and the y-axis before using xclick(), you can do the following trick:

a = get(“curent_axes”);
a.data_bounds = [xmin,ymin,xmax,ymax];
[i,x,y] = xclick()

If there is an existing plot in the current graphics window, then xclick() will just adopt the coordinate system in that window.

Neat, eh? Now it’s time for me to play around with this command and draw some fancy graphs start working on what my supervisor asked me to do.

Reference: Scilab manual

Posted in Software. Tags: , , . 1 Comment »