User Tools

Site Tools


quickpaste

Notes

Lampe 116,5cmx7,9 (aussen) 7 innen Röhren abstand zu Prisma etwa 1,5 zum Rand 1,5  

Röhren TL 5

uther

mem

C#

Python

JQuery

Inplace.EditBox
/*
  Creates an edit box to replace any element, along with a callback
  function to handle the return value. Call this in real time, not
  on page load: for example, call it from the onclick of a link or
  dbclick of a paragraph:
    $('#editable-thing').bind('click', function(){
      $(this).edit_in_place(function(editable_thing, value){alert("You typed "+value)});
    });
 
  How it works:
    Hides the original element and adds an edit box next to it, the same size.
    After editing, shows the original object again and removes the edit box.
 
  !! NOTE !! It is up to the callback to change the original object if necessary.
*/
 
$.fn.edit_in_place = function(callback){
  var $element = this;
  if($element.length>1){console.error("Call $().edit_in_place only on a singular jquery object.");}
  var $edit = $('<input type="text" class="edit_in_place" />');
  $edit.css({'height' : $element.height()-2, 'width' : $element.width()-2});
  $element.hide();
  $element.after($edit);
  $edit.focus();
  $edit.bind('blur', function(){ // on blur, forget edits and reset.
    $edit.remove();
    $element.show();
  });
  $edit.keydown(function(e){
    if(e.which===27)$edit.blur(); // blur on Esc: see above
    if(e.which===13 || e.which===9){ // Enter or Tab: run the callback with the value
      e.preventDefault();
      $edit.hide();
      $element.show();
      if($edit.val()!=='') callback($element, $edit.val());
      // This causes a TypeError, no idea why! I'd rather use it...
      // callback.apply($element, $edit.val());
      $edit.remove();
    }
  });
};

Programming Recipies

RegExes

Catch a Hrefs

= In Visual Studio =

\<[a|A].+href="{[^"]+}"\>{[^\<]+}\</[a|A]\>
basehref zusammenstellen
var basehref=location.protocol+"//"+location.hostname+location.pathname;

DiscWizard: Gratis-Version von True Image 2010

Seagate DiscWizard: Zum Sichern von Daten oder für Netzwerkinstallationen. Der Seagate DiscWizard ist eine kostenlose Spezial-Version von “True Image 2010”, die alle Funktionen des Backup-Tools enthält - aber nur mit Festplatten der Marken Seagate und Maxtor zusammenarbeitet.

Mit einer Sicherungskopie schützen Sie so etwa persönliche Daten, wie Dokumente, Bilder und Musik und müssen keine Angst mehr vor plötzlichem Datenverlust haben. Welche Dateitypen der DiscWizard genau berücksichtigen soll, können Sie mittels individueller Sicherungsaufträge festlegen.

Für Western-Digital-Festplatten gibt es mit Acronis True Image WD Edition ebenfalls eine kostenlose Lösung. Wer ein anderes Laufwerk einsetzt, muss sich dagegen mit der Demo der aktuellen True Image-Version begnügen oder wirft einen Blick in unsere Download-Charts der Backup-Programme. (bkp)

Chirurgen OS

quickpaste.txt · Last modified: 2022/08/09 18:16 by rklein