Ярлыки
- Задачки (3)
- Поиск маршрутов (1)
- Amazon (2)
- apache (2)
- Celery (3)
- curl (1)
- Django (9)
- english (1)
- fabric (1)
- GLPK (1)
- HTML (1)
- java (6)
- Job (1)
- JS (1)
- knockout JS (3)
- LP (2)
- mongo (1)
- MySQL (9)
- neo4j (5)
- Oracle (1)
- parallel (1)
- PostgreSQL (3)
- PsyCo (1)
- PyQt (17)
- Python (30)
- routers finding (3)
- Soft (1)
- SSH (4)
- supervisor (1)
- SVG (2)
- SVN (1)
- TEX (1)
- Ubuntu (15)
- web (1)
- wsgi (1)
понедельник, 17 марта 2014 г.
Paste together two pdf files
pdftk titul.pdf Chapter1.pdf Chapter2.pdf Chapter3.pdf output wholeBook.pdf
Java: Cobertura coverage report
Original here: http://stackoverflow.com/questions/2006014/how-to-generate-cobertura-code-coverage-report-using-maven-from-hudson
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
And here how to integrate in Hudson http://macgyverdev.blogspot.com/2011/04/hudson-continous-integration-for-google.html
воскресенье, 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”
15 17 * * 1-5 DISPLAY=:0.0 notify-send --urgency normal -i ktip “End of work day” “go home”
Save and close.
Подписаться на:
Сообщения (Atom)