?

Log in

No account? Create an account
Setting up a zero-cost Windows PC for students interested in computer programming or statistics - Russell Brunelle [entries|archive|friends|userinfo]
Russell Brunelle

Setting up a zero-cost Windows PC for students interested in computer programming or statistics [Mar. 13th, 2012|07:01 pm]
Russell Brunelle
Imagine you're an elementary or high school teacher with no budget for software, but with at least one Windows PC for your students to use, and at least one student with a genuine drive for learning either computer programming or statistics. At no cost, and with only a brief one-time effort, you could accommodate this student by installing the following software:
  • The TortoiseSVN version control package
  • The Notepad++ text editor with both its "Tortoise SVN" and "NppExec" plugins
  • Strawberry Perl (the installation of which provides C and C++ language compilers in addition to the Perl interpreter)
  • The traditional Python interpreter
  • The R statistics package with its RStudio IDE
  • The MiKTeX LaTeX typesetting system with its JabRef bibliography manager
  • The Microsoft Visual C# Express application, for which a no-cost registration is required [Note: If your institution is able and willing to enroll in Microsoft's generous DreamSpark program, then simply install Microsoft Visual Studio Professional instead.]
The following NppExec "Execute" lines will, once the path to each compiler/interpreter is part of the PATH environment variable, take care of executing C, C++, C#, Perl, Python, R, and LaTeX code from within Notepad++:

NPP_SAVE
cd $(CURRENT_DIRECTORY)
gcc -Wall -o $(NAME_PART).exe $(FILE_NAME)
$(CURRENT_DIRECTORY)\$(NAME_PART).exe

NPP_SAVE
cd $(CURRENT_DIRECTORY)
g++ -Wall -o $(NAME_PART).exe $(FILE_NAME)
$(CURRENT_DIRECTORY)\$(NAME_PART).exe

NPP_SAVE
cd $(CURRENT_DIRECTORY)
csc $(FILE_NAME)
$(CURRENT_DIRECTORY)\$(NAME_PART).exe

NPP_SAVE
cd $(CURRENT_DIRECTORY)
perl $(FILE_NAME)

NPP_SAVE
cd $(CURRENT_DIRECTORY)
python $(FILE_NAME)

NPP_SAVE
cd $(CURRENT_DIRECTORY)
Rscript $(FILE_NAME)

NPP_SAVE
cd $(CURRENT_DIRECTORY)
cmd /c del /F /Q $(NAME_PART).aux $(NAME_PART).bbl $(NAME_PART).blg $(NAME_PART).end $(NAME_PART).glg $(NAME_PART).glo $(NAME_PART).gls $(NAME_PART).idx $(NAME_PART).ilg $(NAME_PART).ind $(NAME_PART).lof $(NAME_PART).log $(NAME_PART).lot $(NAME_PART).toc $(NAME_PART).dvi $(NAME_PART).ps $(NAME_PART).pdf
pdflatex -interaction=nonstopmode $(NAME_PART)
makeindex $(NAME_PART)
bibtex $(NAME_PART)
pdflatex -interaction=nonstopmode $(NAME_PART)
pdflatex -interaction=nonstopmode $(NAME_PART)
cmd /c del /F /Q $(NAME_PART).aux $(NAME_PART).bbl $(NAME_PART).blg $(NAME_PART).end $(NAME_PART).glg $(NAME_PART).glo $(NAME_PART).gls $(NAME_PART).idx $(NAME_PART).ilg $(NAME_PART).ind $(NAME_PART).lof $(NAME_PART).log $(NAME_PART).lot $(NAME_PART).toc $(NAME_PART).dvi $(NAME_PART).ps
"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" $(NAME_PART).pdf

Link