Nexenta iSCSI Target Setup
NAS . nexenta . Personal . Snippets . Techroot@sunny:~# zfs create tank/home root@sunny:~# zfs create tank/home/philipp root@sunny:~# zfs create -V 250M tank/home/philipp/TM root@sunny:~# zfs set shareiscsi=on tank/home/philipp/TM root@sunny:~# iscsitadm modify target -p 1 tank/home/philipp/TM root@sunny:~# zfs list NAME USED AVAIL REFER MOUNTPOINT syspool 689M 16.6G 23K none syspool/rootfs-nmu-000 688M 16.6G 641M legacy syspool/rootfs-nmu-000@initial 47.3M – 631M – tank 250M 1.34T 21K /tank tank/home
eingescannte Bilder konvertieren und Timestamp setzen
Personal . PHP . SnippetsDa ich die letzten Tage gezwungenermaßen sehr viel Zeit hatte (warum kommt später) und ich irgendwie mal Grund in meine Kisten und Boxen bringen möchte, habe ich angefangen, meine (Papier-) Fotos einzuscannen und in iPhoto zu übertragen. Die Frage stelle sich mir nun, wie ich aus 200 Tiff Dateien die das aktuelle Datum tragen (also
my very first (ehm… useful ?!?!) ruby script.
NAS . nexenta . rubySo concerning my first try of a web based zfs managment interface i will restart the project with some new conditions: 1. i will switch from the former language PHP to the – like everywhere told – dev-friendly language ruby. 2. i will first concentrate on just the basic functions. 3. i have to use
very first test with ruby camping :-)
nexenta . ruby . TechI tried The Camping Short, Short Example for the ruby camping framework. #!ruby #!/usr/local/bin/ruby -rubygems require ‘camping’ Camping.goes :HomePage module HomePage::Controllers # The root slash shows the `index’ view. class Index < R ‘/’ def get render :index end end # Any other page name gets sent to the view # of the same name.
Installing ruby camping
nexenta . ruby . TechJust a short one: After succeeding in installing ruby gems, i finally was able to install the ruby micro-framework camping. So ruby should just be used as a small administration web interface. In my eyes a rails aproach seems to be like breaking a fly on the wheel. Just easy as this: root@sunny:~# gem
Install Gems (Ruby with zlib) on Nexenta (GnuSolaris) 1.01
nexenta . ruby . TechNext in the row is the installation of the ruby gems package. So it should be easy… just following the instructions. So….. root@sunny:~# wget http://rubyforge.org/frs/download.php/38647/rubygems-1.2.0.zip root@sunny:~# unzip rubygems-1.2.0.zip root@sunny:~# cd rubygems-1.2.0 root@sunny:~# ruby setup.rb config ./lib/rubygems/spec_fetcher.rb:1:in `require’: no such file to load — zlib (LoadError) from ./lib/rubygems/spec_fetcher.rb:1 from ./lib/rubygems/source_index.rb:10:in `require’ from ./lib/rubygems/source_index.rb:10 from ./lib/rubygems.rb:767:in `require’
Multicast – genauer Nachgeschaut
Java . NetworkDa das ja heute bei der Tafelrunde eher etwas zusammengesucht war, habe ich mich noch mal hingesetzt und mir die Dinge an-/eingelesen. Ich werde einfach mal versuchen die Fragen, die da aufkamen wiederzugeben und dann mit passenden Texten beantworten: Was ist Multicast? Multicast ist eine Nachrichtenübertragung von einem Punkt zu einer Gruppe von Empfängern (auch
Install Ruby on Nexenta (GnuSolaris) 1.01
nexenta . ruby . TechIf you want to build your own small ruby script for administrating you Nexenta-Box, you normally just have to do a: root@sunny:~# apt-get install ruby Unfortunetally this Package seems to be broken: root@sunny:~# ruby -v ld.so.1: ruby1.8: fatal: libruby1.8.so.1: open failed: No such file or directory The needed lib libruby1.8.so.1 is not on its desired
Splines mit dem HTML Canvas Tag
Graphics . JavascriptSplines innerhalb eines Canvas Tags sind mit ein wenig Javascript recht schnell machbar! (drumherum dann noch den ganzen HTML-Kram denken): <canvas width=”150″ height=”150″ id=”myCanvas1″></canvas> <script type=”text/javascript”> function draw1(){ var myCanvas1 = document.getElementById(‘myCanvas1′); myCanvas1.style.border = “1px black dashed”; var ctx = myCanvas1.getContext(’2d’); ctx.beginPath(); ctx.strokeStyle = “#dedede”; for (i=1;i<15;i++){ ctx.moveTo(i10,0); ctx.lineTo(i10,150); } for(j=1;j<15;j++){ ctx.moveTo(0,j10); ctx.lineTo(150,j10); } ctx.stroke();
SSL erzwingen in einem Java Application Server
Java . NetworkMorgen :-), so langsam bin ich dabei alle meine Problem gelöst zu bekommen 🙂 – ja wird auch Zeit :-D. Bezogen auf diesem Post: Ich bin an der Implementierung mit JAAS noch dran, allerdings habe ich herausgefunden, dass man dem Server einen Filter unterschieben kann, der bei jedem Aufruf überprüft, ob eine SSL Verbindung besteht,