Ярлыки

понедельник, 17 марта 2014 г.

glassdoor - service job search

maintenance wifi in DELL on Ubuntu

apt-get install bcmwl-kernel-source

matplot D3 viewer

Paste together two pdf files

pdftk titul.pdf Chapter1.pdf Chapter2.pdf Chapter3.pdf output wholeBook.pdf

Java: Cobertura coverage report

To run Cobertura during package phase, do
 <plugin>  
            <groupId>org.codehaus.mojo</groupId>  
            <artifactId>cobertura-maven-plugin</artifactId>  
            <version>2.5.2</version>  
            <configuration>  
                <formats>  
                    <format>xml</format>  
                </formats>  
            </configuration>  
            <executions>  
                <execution>  
                    <phase>package</phase>  
                    <goals>  
                        <goal>cobertura</goal>  
                    </goals>  
                </execution>  
            </executions>  
   </plugin>         
Heres an example of pom

воскресенье, 16 марта 2014 г.

pycallgraph

You may import pycallgraph as a module and run the trace graph within your application.
Just before your first line of code you want to graph, put in the following code:
import pycallgraph
pycallgraph.start_trace()
To stop the trace and generate the graph, put in the following code /usually at the end of your program/:
pycallgraph.make_dot_graph('test.png')
The default is to output in png with with the dot tool. You can change them by specifying arguments:
pycallgraph.make_dot_graph('test.jpg', format='jpg', tool='neato')

Use notification in Ubuntu

Use crontab and notify-send:
EDITOR=gedit crontab -e
Add schedule:
15 12 * * 1-5 DISPLAY=:0.0 notify-send --urgency normal -i typing-monitor “Lunch” “Lunch”
15 17 * * 1-5 DISPLAY=:0.0 notify-send --urgency normal -i ktip “End of work day” “go home”
Save and close.