rss

shared libraries "lib.so and lib.dll" file: minimal how to

This post is a kind of minimal 'how to' for the shared libraries : ex. under linux mylib.so or under windows my.dll

Windows





Linux

  • List library exported symbols (then functions)
readelf -s /usr/lib/libspreadsheet.so |grep workbook_sheet
nm -D /usr/lib/libspreadsheet.so |grep workbook_sheet
objdump -T /usr/lib/libspreadsheet.so |grep workbook_sheet



  • List library dependencies

readelf -d /usr/lib/libspreadsheet.so|grep NEEDED

prosyst OSGi: minimal how to

This post is a kind of minimal 'how to' for Prosyst OSGi.

console (or telnet) commands

  • (telnet only) toggle command to get stdout / stderr on the telnet output
dump
  • Bundle installation
install mybundle.jar
  • Bundle start
start mybundle.jar
  • Bundle installation and start alias
i -S mybundle.jar
  • Bundle restart alias
rs mybundle.jar
rs 42
  • Bundle update := uninstall, install, start
update mybundle.jar
update 42
  • whole prosyst OSGi framework restart (you will loose the telnet connection)
rs 0


bower: fiche pratique

Cet article est une fiche pratique (commandes de base) pour Bower ("A package manager for the web").
  • Installation
npm install -g bower
  • Bower derrière un proxy : utiliser les variables d'environnement http_proxy et https_proxy ou le fichier .bowerrc
  • Installation d'une dépendance
bower install jquery
  • Mise à jour d'une dépendance
bower update jquery
  • Info et version d'une dépendance
bower info jquery
bower search angular%bootstrap%
  • Bower repose sur un fichier de configuration bower.json dont voici un exemple:
{
  "name": "myproject-webgui",
  "version": "0.0.0",
  "dependencies": {
    "angular": "1.3.1",
    "json3": "~3.2.6",
    "es5-shim": "~2.1.0",
    "jquery": "~1.11.0",
    "bootstrap": "~3.0.3",
    "angular-resource": "1.3.1",
    "angular-cookies": "1.3.1",
    "angular-sanitize": "1.3.1",
    "angular-route": "1.3.1",
    "ng-table": "0.3.3"
  },
  "devDependencies": {
    "angular-mocks": "1.3.1",
    "angular-scenario": "1.3.1"
  }
}