dimanche 18 mars 2012

Using the 3GB Switch on Windows 7

I was running a routine under matlab and suddenly I got the infamous "Out of memory error".
So, as usual :p, I googled the problem and found that I needed to use the 3GB Switch on my not-so-fan-of-but must-use Win 7.
what I needed to do (as they say here) is : 
run the command "BCDEdit /set increaseuserva 3072"
Restart
et voilà :D

dimanche 20 novembre 2011

lancer matlab sur ubuntu 11.10

Je viens d'installer Matlab 2010a sur mon ubuntu  oneiric, mais au moment du lancement j'obtiens le message d'erreur suivant:
/usr/local/matlabR2010a/bin/util/oscheck.sh: 605: /lib/libc.so.6: not found
pour résoudre ce problème, il faudrait restaurer la librairie qui a été désinstallée durant la mise à jour d'ubuntu.  Pour ce faire, taper dans un terminal la commande suivante:
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6
Et voilà :)

samedi 5 novembre 2011

Matlab: passing an input argument to a script

Assalamo 3alaykom :)

So, I had this routine to run in matlab and I got tired  copying and pasting all the code and then change the values of my variables, so I had to find an easy way  to get trough with this...the solution was clear and trivial just pass your variables as input argument to the script!!! Why didn't  think of it earlier :-/
Then came the syntax problem how do i do this in matlab?
After a quick google search this is what I found:
assume that we want to calculate "sqrt(x)", our script will look like this:
y=sqrt(x)
now we have 2 ways to pass the argument "x" to the script:

1- just type the value of "x" in the command window before running the script:
>>x=36;
>>scriptFileName

2- or, convert the script to a function by adding the folowing line to the beginning of your script:function y=scriptFileName(x)
then run your function on the command window as follows:
>> scriptFileName(36)

That's it: easy peasy lemon squeezy

mardi 12 juillet 2011

Matlab 7.0.1 R14 SP1, Error Starting Desktop

I needed to use Matlab 7.0.1 for my thesis work, and according to my supervisor this version is more handy and stable than the other newer versions. So I installed it on my Windows 7 virtual machine, the installation went well, but when I tried to lunch it, I had this "Error Starting Desktop” message followed by a huge Java stack. 


As usual, I googled it and voila, it seems that it's all a compatibility problem. All I needed to do is set he compatibility mode to Windows 2000 or install the Win2000VersionLie Fix.  

Hope this helps :)

mercredi 1 décembre 2010

Problème précompilation site web ASP.NET

J'ai voulu précompiler un site web ASP.NET avec VS2005 mais il me donne l'erreur suivante:
Alors j'ai voulu contourner et passer par invité de commande, mais au moment de copier le site web via l'assistant il me fait : impossible de se connecter au site web ni aucun de ses sous dossiers.
Alors je copie mon site (ctrl-c), je me positionne dans le répertoire C:\windows\Microsoft.NET\Framework\v2.0.50727, et j'exécute ma commande: aspnet_compiler.exe -p C:\MaSolutionWeb -v -f C:\MonDossierPrecompilé
J'attends que ça s'exécute mais j'obtiens l'erreur :
C:\MaSolutionWeb\_vti_cnf\web.config(1): error ASPCONFIG: Données non valides au niveau racine. Ligne 1, position 1.
Donc je vais voir ce web.config, je trouve qu'il n'a aucune raison d'exister, je le supprime, je recompile et ça marche.
Publication réussie 

mardi 14 septembre 2010

Installer IIS sous Windows Server 2003 R2

J'ai un serveur Windows 2003 R2 et j'ai voulu installer IIS. Normalement, il faut accéder à "Panneau de configuration" > Ajouter/supprimer des programmes > Ajouter ou supprimer des composants Windows, et puis je devrais trouver "Services internet IIS", mais à ma grande frustration j'ai pas trouvé.
Après une petite recherche, il s'est avéré que c'était inclus dans le composant "Serveur d'applications" qui englobait : les services internet IIS, ASP.NET et la console du serveur.

Voiloooo :)

vendredi 7 mai 2010

Problème d'installation XP sur HP compaq 6730b

Salamo3alaykom

On vient de me donner un nouveau PC au boulot, il est beau comme tout mashaallah mais le problème est qu'il est sur vista pro. Et puisque je suis pas fan de Vista j'ai décidé de passer sous XP. Mais au moment de l'installation il m'affiche un ecran bleu avec un grand message d'erreur comme quoi j'ai un problème de disk. après une petite recherche sur internet il s'est avéré que c'est un problème classique des disques dur sata donc ce qu'il fallait faire c'est la petite manip suivante :
au démarrage du PC taper F10 > boot options > System Configuration > Device configurations > SATA Device Mode. Et là, changer SATA device mode de AHCI à IDE, enregister les modifications et rebooter avec le CD d'installation XP.
ET voilà :)

j'espère que ça sera utile à quelqu'un.

Salamo3alaykom