Select blog: [Overview] [Travel] [News] [Consumer] [Computing]
Select skin: [basic] [custom] [natural_pink] [nifty_corners] [originalb2] [skinners_guide] [wpc_default]

Computing



2007-08-25

00:10:37 Permalink How to add the "Evaluate Notebook" command in Mathematica 6.0   English (EU)

Categories: Linux, Misc, 97 words

The menu entry "EvaluateNotebook" has disappeared from Mathematica in version 6.0!

To restore it you need to edit the file
/usr/local/Wolfram/Mathematica/6.0/SystemFiles/FrontEnd/TextResources/X/MenuSetup.tr
and add
Item["Evaluate &Notebook", "EvaluateNotebook"],
after
Menu["E&valuation",
{

or where ever you want this entry to appear in your menu.
As usual it is recommended to make a copy of MenuSetup.tr before editing it in case things go
wrong and Mathematica refuses to start...

If you like keyboard shortcuts, ctrl-a (select all) shift-enter (evaluate) is a nice keyboard
shortcut to evaluate a Notebook.


Send feedback PermalinkPermalink

2007-07-15

00:11:07 Permalink MySQL system error 111   English (EU)

Categories: web, Linux, web servers, 97 words

I had some problems with a sql connexion returning the following error message:
"Lost connection to MySQL server at 'reading initial communication packet', system error: 111"

This was due to the server acepting only localhst connexions and the client to be on a remote host.

To fix this one needs to edit his "my.cnf" file (at /etc/my.cnf or /etc/mysql/my.cnf) and comment the "skip-networking" networking line and put the server IP address in "bind-address" as shown below:

# skip-networking
bind-address = 123.45.67.89 # server IP address

After the mysql server needs restarting:
/etc/init.d/mysql restart


Send feedback PermalinkPermalink

2007-07-01

01:20:15 Permalink Emulating linux basic commands under window...   English (EU)

Categories: Linux, 25 words

I have posted at http://nicolas.delerue.org/en_tips.html#unix_msdos some tips to avoid getting confused when switiching between linux and MS-DOS....


1 feedback PermalinkPermalink

2007-05-28

01:33:38 Permalink "No input file specified" problem with b2evo   English (EU)

Categories: web, 102 words

After migrating to a new web server, the permalinks in my blog (under b2evolut) were all broken, given an error "No input file specified".
ion
After investigation, I found thet this error was in fact coming from the web server returning an error 404.

If found the problems by modifying my .htaccess file in the root of http://blogs.delerue.org and adding the following lines

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.php/(.*) b2evo/blogs/index.php?$1 [L]

This is a bit different from what is posted at http://manual.b2evolution.net/Appearance_of_my_permalinks


Send feedback PermalinkPermalink

2007-05-26

01:38:46 Permalink Tracking slow or long MySQL queries   English (EU)

Categories: web, 80 words

I noticed that sometimes MySql queries tend to last for a long time on my website.
To track this I have added the following in /etc/mysql/my.cnf

log-slow-queries=/var/log/mysql/long-queries.log
long_query_time = 1

This creates a log file (/var/log/mysql/long-queries.log) where it is possible to find which queries lasted more than the time (in seconds) specified on the second line.

More info at http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html


Send feedback PermalinkPermalink

:: Archives

[Login...] [Register...]


Powered by b2evolution