netstat pour les ports ouverts sous linux
> netstat -tupln
on peut utiliser kill pour arrêter les processus malveillant
on peut utiliser kill pour arrêter les processus malveillant
1. create keystore certificate for jboss user
> keytool -genkey -alias jboss -keyalg RSA
2. edit jboss configuration file standalone.xml:
– in interfaces : add new interface “local”
...... ......
...... ......
– remove http connector :<connector name=”http” protocol=”HTTP/1.1″ scheme=”http” socket-binding=”http”/>
<connector name=”http” protocol=”HTTP/1.1″ scheme=”http” socket-binding=”httpLocal”/>
– add new https connector
<connector name=”https” protocol=”HTTP/1.1″ scheme=”https” socket-binding=”https” secure=”true”>
<ssl password=”password typed in step 1″ />
</connector>
– svg-edit : online open source editor
google code : http://svg-edit.googlecode.com
online demo : http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html
– inkscape : linux gui application
when you execute a jar file with java, you have to know that in the jar file we must declare the main class and th classpath in the manifest file.
extarct MANIFEST.MF
> jar xvf myjar.jar META-INF/MANIFEST.MF
see its content
> vi META-INF/MANIFEST.MF
it looks like :
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Main-Class: xxx.package.MainClassName
Class-Path: ./lib/a.jar ./lib/b.jar
if you have NoClassDefFoundError when launching the jar, look for the missed jar library in the web, download it and put it in lib directory for example, and finally declare it in the manifest like others (./lib/a.jar ./lib/b.jar ./lib/c.jar). so :
> mkdir unzippedjar
> unzip myjar -d unzippedjar/
> cd unzippedjar
> vi META-INF/MANIFEST.MF
edit the manifest file : add missed lib to classpath, and save
> zip -r ../myjar.jar *
re-execute your myjar.jar and it must work
==========================
case of delineate which miss xalan-2.7.1.jar as library.
to convert jpg to svg we can use autotrace or potrace.
autotrace:
> sudo apt-get install autotrace
use (convert /tmp/mba.jpg to svg):
> autotrace /tmp/mba.jpg -input-format jpg -output-format svg -output-file /tmp/mba.svg
see delineate gui application which use autotrace or potrace
function handleHttpRequest(request, response){
response.writeHead(200, {“Content-Type”: “text/html”});
response.write(“pathname:”+url.parse(request.url).pathname);
response.write(“
“);
response.write(“query:”+url.parse(request.url).query);
response.end();
}
var http = require(“http”);
http.createServer(handleHttpRequest).listen(8888);
– in command line: node /path/to/server.js
– go to http://localhost:8888
– go to http://localhost:8888/sevice?user=nour&age=42
================================================= 03/06/2013
IE9 : object.innerHTML = “xxxx” throws object not found exception
use object.innerHTML.update(“xxx”) rather than setting directly innerHTML. This would solve problem