Posts

Showing posts from February, 2010

Computer Graphics Research Software

http://www.dgp.toronto.edu/~rms/links.html

PapersKe-Sen Huang's comprehensive and invaluable Conference Paper Link ArchiveMesh Libraries and ToolsGTS (2D dynamic/constrained Delaunay triangulation, robust geometric predicates, mesh boolean set operations, refinement/coarsening, view-independent continuous LOD, view-dependent LOD, AABB-trees, Kd-trees, graph partitioning, isosurfacing, area, volume, mean/gaussian/principal curvature, stripification) (S. Rusinkiewicz)trimesh2 mesh library (read PLY/OFF/3DS/OBJ, write PLY/OFF/OBJ, subdivision, smoothing, curvature estimation, triangle stripping, ICP, cleanup, decimation, basic shapes)OpenMesh (PLY/OBJ, halfedge mesh, decimation, Loop/Sqrt3 subdivision, view-dependent progressive meshes, stripification) (J. Möbius, M. Habbecke)CGAL (2D/3D halfedge mesh, tet meshes) [full packages list] (Authors) MeshLab (import PLY/STL/OFF/OBJ/3DS/COLLADA/PTX/V3D/PTS/APTS/XYZ/GTS/TRI/ASC/X3D/X3DV/VRML/ALN, export PLY/STL/OFF/OBJ/3DS/COLLADA/VRML/DXF/GT…

Convert Dmg to Iso

download this file on linux:
http://vu1tur.eu.org/tools/download.pl?dmg2img.tar.gz

extract, enter the dir and type:

make
sudo make install


now type:

dmg2img -i image.img -o newimage.img

now you can mount it from root:
modprobe hfsplus
mount -t hfsplus -o loop newimage.img /folder_you_want

Create .deb or .rpm from .tar.gz with checkinstall

STOP! Think while commanding

Image
In this post I will collect all commands which SHOULD NEVER be executed in Linux. Any of them will cause data loss or corruption, can freeze or hang up running system. NEVER RUN THESE COMMANDS IN LINUX BOX CLI!Even if somebody advises you in forum/im to do it.1. Any of these commands will erase everything from your home directory, root or just will clear up whole disk:sudo rm -rf /rm -rf .* dd if=/dev/zero of=/dev/sdamkfs.ext3 /dev/hdawhatever > /dev/hdacd ~; for x in `ls`; do mv -f $x $y; y=$x; done find -type f -mtime +30 -exec mv {} /dev/null \;mv ~ /dev/nullmv / /dev/null2. Causes kernel panic or freezes Linux box:dd if=/dev/random of=/dev/port ){:|:&};: #also known as fork bomb3. This one does the same as “rm -rf /”:char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= “\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68″
“\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99″
“\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7″
“\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74…

Cheat Sheet for Linux

Funny - SUDO

Image

Source Code Search Engines for coders

SVN Command list

Subversion command summary cheat sheet: http://www.yolinux.com/TUTORIALS/Subversion.html

CommandDescriptionsvn --helpList Subversion commandssvn help command
Also: ? or hHelp on given "command"svn addfilenamesvn add directoryAdd a file or directory to Subversion CM control.
Must also perform: svn ci filename (or svn commit) to upload the file or directory. File will not be available in the repository until a "commit" is performed. If adding a directory, the directory and all of its contents recursively are added. i.e.:
svn ci directory
svn commit directory
svn commit .svn blamefilename
svn blame -r RevisionNumberfilename
Also: praise, annotate, annShow file contents with revisions annotated with author information.svn catfilenameList contents of file under Subversion control.svn checkout http://node-name/repos/svn/trunk/parentPath/path
This creates:
path/file1
path/file2
...svn checkout http://node-name/repos/svn/trunk/parentPath .
This creates:
path/file1
path/file2
...
Note the d…

Harddisk commands

Listing SDA
*************************
ls /dev|grep '[s|h]d[a-z]'

Getting mapping
*************************
mount|grep ^'/dev'

1. See current mount point and space.
df -H
2. See all attached HD and its file system.
sudo fdisk -l

3.How to find uuid of your hardisk
ls -l /dev/disk/by-uuid

Starting NFS common utilities fails

You should edit "/etc/network/interfaces" file and added the "loopback" part which was missing..

GNU nano 2.0.6 File: /etc/network/interfaces

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

resolvconf: Error: /etc/resolv.conf must be a symlink

How to fix?
In terminal:
- sudo /etc/init.d/NetworkManager stop
- sudo aptitude remove resolvconf
- sudo aptitude purge resolvconf
- sudo aptitude install resolvconf
- sudo /etc/init.d/NetworkManager startit doesn't give any errors now..

HAL or not?

Beginning with Ubuntu 8.10, input device configuration is done through HAL rather than in your xorg.conf. The syntax for HAL fdi files is a bit different than xorg.conf, and editing XML is only marginally better than editing xorg.conf... but on the plus side configuration changes don't require an X restart - just replugging of the device. Essentially, to configure a device, add a new fdi file for it to your /etc/hal/fdi/policy directory. You will then need to replug the device or log out and in again for the changes to take effect.

But I try to get work the catching events from mouse and keyboards directly from event queues, it didn't work because of the HAL. So i had to remove HAL. But be mind that as it is the hardware layer, All hardware stuff is controlling with it. So before removing halt, you should do:

1- Backup /etc/X11/xorg.conf file.
2- Modify /etc/X11/Xorg.conf with something like this :
Section "ServerFlags"
Option "AutoAddDevices" "False&qu…

Latex - Formulas

Image
Ref: http://www.personal.ceu.hu/tex/cookbook.html

Inline and Displayed Formulas$x=\frac{1+y}{1+2z^2}$ (inline)$$x=\frac{1+y}{1+2z^2}$$ (displayed)$\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}$ (inline)$$\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}$$ (displayed)$\displaystyle \int_0^\infty e^{-x^2} dx$ (inline)$$
\frac{1}{\displaystyle 1+
\frac{1}{\displaystyle 2+
\frac{1}{\displaystyle 3+x}}} +
\frac{1}{1+\frac{1}{2+\frac{1}{3+x}}}
$$Spaces and Text in Formulas$\sqrt{2} \sin x$, $\sqrt{2}\,\sin x$$\int \!\! \int f(x,y)\,\mathrm{d}x\mathrm{d}y$$$
\mathop{\int \!\!\! \int}_{\mathbf{x} \in \mathbf{R}^2}
\! \langle \mathbf{x},\mathbf{y}\rangle
\,d\mathbf{x}
$$$$ x_1 = a+b \mbox{ and } x_2=a-b $$$$ x_1 = a+b ~~\mbox{and}~~ x_2=a-b $$Multiple Line Equations\begin{eqnarray}
y &=& x^4 + 4 \nonumber \\
&=& (x^2+2)^2 -4x^2 \nonumber \\
&\le&(x^2+2)^2
\end{eqnarray}\begin{eqnarray*}
e^x &\approx& 1+x+x^2/2! + \\
&& {}+x^3/3! + x^4/4! + \\
&& + x^5/5!
\end{e…