Categories: Linux, Misc, 97 wordsThe 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 •Permalink
Categories: web, Linux, web servers, 97 wordsI 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 addressAfter the mysql server needs restarting:
/etc/init.d/mysql restart
Send feedback •Permalink
Categories: Linux, 25 wordsI 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 •Permalink
Categories: web, 102 wordsAfter 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 •Permalink
Categories: web, 80 wordsI 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.cnflog-slow-queries=/var/log/mysql/long-queries.log
long_query_time = 1This 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 •Permalink
[Login...] [Register...]