Difference between revisions of "Coding"
From esoterum.org
(→DOS) |
(→DOS) |
||
Line 111: | Line 111: | ||
=== DOS === | === DOS === | ||
*<code>ICACLS [folder|file] /grane USER:(F)</code> grant everyone full control permissions on folder or all subfolders starting at folder | *<code>ICACLS [folder|file] /grane USER:(F)</code> grant everyone full control permissions on folder or all subfolders starting at folder | ||
− | *<code>XCOPY [SOURCE] [DEST] / | + | *<code>XCOPY [SOURCE] [DEST] /d/e/f/i/a /EXCLUDE:exclude.txt</code> Search subfolders for *.jpg and copy files to C:\FOLDER\ |
*<code>[http://www.microsoft.com/downloads/details.aspx?FamilyID=955D7F2F-73D9-4018-9DD7-42DA210E62EE&displaylang=en diruse] /M /S /C /L /Q:500 /D /* c:\</code> Find folders larger then 500MB and write output to DIRUSE.LOG in <code>diruse</code> folder: <code>c:\Program Files\Resource Kit</code> | *<code>[http://www.microsoft.com/downloads/details.aspx?FamilyID=955D7F2F-73D9-4018-9DD7-42DA210E62EE&displaylang=en diruse] /M /S /C /L /Q:500 /D /* c:\</code> Find folders larger then 500MB and write output to DIRUSE.LOG in <code>diruse</code> folder: <code>c:\Program Files\Resource Kit</code> | ||
*[http://superuser.com/questions/69624/windows-7-come-out-of-sleep-when-i-open-remote-desktop Remotely waking Windows machine from sleep] | *[http://superuser.com/questions/69624/windows-7-come-out-of-sleep-when-i-open-remote-desktop Remotely waking Windows machine from sleep] |
Revision as of 22:25, 14 November 2010
Contents
SVN
GNU
Programming
IDE
Eclipse
- Eclipse Keyboard Shortcuts
- Unlock file:
<workspace>/.metadata/.lock
Java
C
- > printf
- Preprocessor tricks and Macros
- > HP C, HP's book on the C language
- > The C Book
- C-FAQ.com
- The C Preprocessor from apple.com
- Linked Data Structures
- String handling
- >Digital Mars C resources
- Safe C coding tips, TÜV Rheinland Group
snippits
- Cstring to int:
int n = atoi(StrInt);
- Return cursor to beginning of same line:
printf("%d\r",number);
C++
- > Bjarne Stroustrup's C++ Style and Technique FAQ
- Creating persistent objects by writing variables and data to binary file
- cplusplus.com, C++ reference
SystemC
- Online reference, U Montreal
- Installation on Fedora 9:
- -SystemC compiles with Fedora 9 version of gcc, but it's necessary to add the following include statements to this file:
systemc-2.2.0/src/sysc/utils/sc_utils_ids.cpp
as indicated here:#include "string.h"
#include "cstdlib"
- A generic makefile for SystemC projects is here
- Installing older gcc in Fedora 9, gcc 4.x was not compatible witn SystemC release, the configuration error says gcc-3.2 is compatible, but I could only get yum to work with compat-gcc-34
- Black, David C and Donovan, Jack. SystemC: from the ground up. ebrary, Inc. 2004. Online through ASU library
- Müller, Wolfgang; Rosenstiel, Wolfgang; Ruf, Jürgen. SystemC: methodologies and applications . ebrary, Inc. 2003. Online through ASU library
Assembly
- > Assembly Primer for Hackers, video tutorials, also good gdb tutorial
- CBE Assembly Programming
- Agner.org, software optimization resources
- > Assembly programming tutorial
- Unix assembly programming
- Assembly programming tutor from U Akron
- List of assembly tutorials (Linux)
Excel (VBA)
Scripting
CGI
PHP
- PHP Tutorial
- PHP vs. Pearl scripting
- Installing PHP on Windows
- PHP.net
- Installing Apache server on Windows
- Function for loading the contents of web pages into a variable
- Regular Expressions Quick Reference
- Quickreference
Python
Perl
Bash
- > GLOBIGNORE
- > Quality tutorial
- > Bash commands reference
- > Advanced Bash scripting guide
- > Handling strings, globbing
- > Handling strings
- wildcards
- file io
DOS
ICACLS [folder|file] /grane USER:(F)
grant everyone full control permissions on folder or all subfolders starting at folderXCOPY [SOURCE] [DEST] /d/e/f/i/a /EXCLUDE:exclude.txt
Search subfolders for *.jpg and copy files to C:\FOLDER\diruse /M /S /C /L /Q:500 /D /* c:\
Find folders larger then 500MB and write output to DIRUSE.LOG indiruse
folder:c:\Program Files\Resource Kit
- Remotely waking Windows machine from sleep
Regular Expressions
(^([^ ^\t^\n^/]+ +)+(.*) *\(.*\)[^\{]*\{[^\n]*\n)
Finds a function declaration (eclipse find)<START>$1 trace\(" @ $3\\n"\); //MAB 22 SEP 08: Add trace print statements
<STOP>
Use this to replace the function declaration adding a trace statement identifying the function (normally "trace" should be replaced with printf), in eclipse, the return character apparently needs to be copied and pasted into the replace field, \n does not seem to work)
Mark-up Languages
Wikimarkup
Dot
LaTeX
- IEEETran Q&A
- Comprehensive list of symbols
- Equation/Math guide
- bibtex entry formats, djvuzone.org
- Latex Tips, Jakob Schiøtz
- "LaTeX for newbies"
- Tips and tricks for conference papers, wordpress.com
- University of Cambridge, bibiligraphies, how to put a bibliography at the end of each chapter
- reed.edu, documents, headers, footers, table of contents, splitting into multiple files etc.
- Math tricks, Drexel.edu
- Markus Neteler. Creating High Resolution PDF files for book production with Open Source tools
- LaTeX Primer
- Bibliographies with latex/bibtex
- Latex FAQ, MIT
- Getting to Grips With LaTeX
- Equations
- Generating eps files
- algorithmic package manual
TeXnicCenter
- In order to embed Type I fonts and use letter format, these switches were added in [Build]->[Define Output Profiles]->[Postprocessor]->[DviPs], reference, embedding fonts reference:
- -
-Pdownload35 -P cmz -t letter
Embedding Fonts
- Replacing commercial fonts (which don't get embedded into the pdf with open source tools):
# We go for replacing the wrong commercial font names with URW names, we also # adapt some similar fonts names on the fly (extend for further font names): cat original_graphics.eps | sed 's+Times-Bold+NimbusSanL-Bold+g' |\ sed 's+Times-Roman+NimbusSanL-Regu+g' |\ sed 's+Times+NimbusSanL-Regu+g' |\ sed 's+Helvetica-BoldOblique+NimbusSanL-BoldItal+g' |\ sed 's+Helvetica-Oblique+NimbusSanL-ReguItal+g' |\ sed 's+Helvetica-Bold+NimbusSanL-Bold+g' |\ sed 's+Helvetica-Bold-iso+NimbusSanL-Bold+g' |\ sed 's+Helvetica+NimbusSanL-Regu+g' |\ sed 's+Helvetica-iso+NimbusSanL-Regu+g' |\ sed 's+Symbol+StandardSymL+g' > new_graphics.eps
HTML
- HTML 4.01/XHTML reference page
- Span formats (including mouse hover)
- HTML ASCII quick reference
- HTML URL encoding quick reference
Post Script
Modeling
AMPL (Linear Programming)
- AMPL FAQ
- Robert Fourer, AMPL: "A Mathematical Programming Language"
- GLPsol command:
glpsol --model example.txt --output results.txt
- CPLEX with AMPL Users Guide
VHDL
- VHDL Tutorial, UPenn
MATLAB
- MATLAB quick reference, Georgia Tech
- MATLAB functions
Interfaces
Windows
In General
- Magic Hex number: 0xDEADBEEF