Tag: linux

  • cut –help

    $cat workethics.txt Work ethics in QA Fashion $cut -c1-5 workethics.txt Work $cut -c1 workethics.txt W $cut -f1 workethics.txt Work ethics in QA Fashion $cut -b1 workethics.txt W $cut -b2 workethics.txt o $cut -b0 workethics.txt cut: fields and positions are numbered from 1 Try `cut –help’ for more information. cut – remove sections from each line […]

  • gcov code coverage

    $vi hey.c $gcc -fprofile-arcs -ftest-coverage hey.c $./a.out Hey :) $gcov hey.c File ‘hey.c’ Lines executed:100.00% of 3 hey.c:creating ‘hey.c.gcov’ $cat hey.c.gcov -: 0:Source:hey.c -: 0:Graph:hey.gcno -: 0:Data:hey.gcda -: 0:Runs:1 -: 0:Programs:1 -: 1:#include 1: 2:main() -: 3:{ 1: 4:printf(” Hey :) \n”); 1: 5:} $ The “.gcov” files can be examined using a normal editor. […]

  • dd – convert and copy a file

    $dd conv=ucase god is love GOD IS LOVE 0+2 records in 0+1 records out 12 bytes (12 B) copied, 48.6009 s, 0.0 kB/s $ conv=CONVS convert the file as per the comma separated symbol list ucase — change lower case to upper case Reference : Debian Manual for dd.

  • detex for tex.

    detex – a filter to strip TeX commands from a .tex file. $cat resume.tex \documentclass[10pt,a4paper,twocolumn]{article} \date{} \usepackage{amsmath} \setlength\topmargin{0in} \setlength\headheight{0in} \setlength\headsep{0in} \setlength\oddsidemargin{0in} \setlength\evensidemargin{0in} \begin{document} \title {\texttt{R\'{e}sum\'{e}}} \maketitle \section*{\texttt{IDEA}} \texttt{Work for student community} \\ output after detex resume.tex | more [10pt,a4paper,twocolumn]article amsmath 0in 0in 0in 0in 0in Resume *IDEA Work for student community to help acquire knowledge. […]

  • signal “expose-event”

    g_signal_connect . The second argument for this function is detailed_signal : a string of the form “signal-name::detail”. source :http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html GtkWidget is the base class for all widgets. “expose-event” is an signal and the signal list is available at http://library.gnome.org/devel/gtk/unstable/GtkWidget.html

  • IP Puzzles +

    Amidst the traffic of the Internet is an enormous amount of undesirable communication. Currently there is no significant disincentive for clients who contribute to this flood of undesirable communication. A mechanism for punishing only the malicious is required in order to discourage clients from behaving badly. The standard response has been to disconnect clients exhibiting […]

  • initial CVS upload

    Go to project parent directory. set CVSROOT. Example: CVSROOT=:ext:ahiliation@cvs.savannah.nongnu.org:/sources/jeffgraphics export CVSROOT $cvs import -m “” start

  • mysql start

    MySQL tinkering mysql> create database jeffdatabase -> ; Query OK, 1 row affected (0.03 sec) mysql> show databases; +——————–+ | Database | +——————–+ | information_schema | | jeffdatabase | | mysql | +——————–+ 3 rows in set (0.00 sec) mysql> use jeffdatabase Database changed mysql> show tables; Empty set (0.00 sec) mysql> create table songs […]

  • cairo graphics 1.1 beautification

    /* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include #include #include #include //the global pixmap that will serve as our buffer static GdkPixmap *pixmap = NULL; gboolean on_window_configure_event(GtkWidget * da, GdkEventConfigure * event, gpointer user_data){ static int oldw = 0; static int oldh = 0; //make our selves a properly […]

  • cairo graphics 0.8 (intersection)

    /* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include #include #include #include //the global pixmap that will serve as our buffer static GdkPixmap *pixmap = NULL; gboolean on_window_configure_event(GtkWidget * da, GdkEventConfigure * event, gpointer user_data){ static int oldw = 0; static int oldh = 0; //make our selves a properly […]