211 MegaPixel Panorama – Seekofel 360°

Posted by Tolpeit | Posted in In eigener Sache | Posted on 03-09-2010

0

iText Html to Pdf Converter

Posted by Tolpeit | Posted in Webprogrammierung | Posted on 03-09-2010

0

iText ist eine OpenSource Projekt, welches ermöglicht nicht nur HTML in PDF zu konvertieren, sondern auch mittels Klassen ein beliebiges PDF zu erstellen. Man kann jedoch auch den umgekehrten Weg einschlagen und vom PDF ein HTML erstellen lassen.

Leider gibt es viele verschiedene Versionen von iText, dadurch stimmen die meisten Tutorials nicht zusammen. Wenn man Zeit hat, ist es jedoch eine sehr gute Lösung.

Hier zum download

Hier ein kleines Tutorial von mir:

Header und Footer einfügen in jede PDF-Seite:

Um einen Footer oder Header einzufügen müsst ihr die Funktion OnEndPage() der Klasse PdfPageEventHelper überschreiben

Dann müsst ihr noch das event euren PdfWriter hinzufügen

  public class _events : PdfPageEventHelper {         private Image _img;         private Image _footerImg;         public _events() {             _img = Image.GetInstance(@"\logo_de.jpg");             _footerImg = Image.GetInstance(@"\footer_de.png");             /*             * scale image to fit available space, if needed             */             //_img.ScalePercent(50);         }         // Definition vom Header und Footer         public override void OnEndPage(PdfWriter writerDocument document) {             //document.Add(new Phrase("test"));             Rectangle page = document.PageSize;             // create two column table;             //=====  HEADER             PdfPTable head = new PdfPTable(1);             head.TotalWidth = page.Width;              //add image; PdfPCell() overload sizes image to fit cell             PdfPCell c;// = new PdfPCell(_img, false);             c = new PdfPCell(_imgfalse);             c.VerticalAlignment = Element.ALIGN_TOP;             c.HorizontalAlignment = Element.ALIGN_RIGHT;             c.Border = Rectangle.NO_BORDER;             head.AddCell(c);             head.WriteSelectedRows(                 0, -1, // first/last row; -1 flags all write all rows                 0, // left offset                 // ** bottom** yPos of the table                 page.Height ,               writer.DirectContent             );             //====== FOOTER ===========================================             PdfPTable footer = new PdfPTable(1);             footer.TotalWidth = page.Width;             //add the collection to the document             // header text             c = new PdfPCell(_footerImg);             c.Border = Rectangle.NO_BORDER;             c.VerticalAlignment = Element.ALIGN_BOTTOM;             c.HorizontalAlignment = Element.ALIGN_CENTER;             footer.AddCell(c);             footer.WriteSelectedRows(               0, -1,          // first/last row; -1 flags all write all rows               0,                 footer.TotalHeight + 15,               writer.DirectContent             );         }  public void GeneratePDF(){             //create document          //   Response.Write(Server.MapPath("."));        �             try {                 Document document = new Document(PageSize.A4,40,40,120,50);                 //writer - have our own path!!!                  PdfWriter writer = PdfWriter.GetInstance(document, >new FileStream(@"D:\Projekte\Portale\Suedtirolcom\suedtirolcom\Pdf\" + "parsetest.pdf"FileMode.Create));                     // the object required to write to a (output) Stream                     //PdfWriter.GetInstance(document, ms);                     _events e = new _events();                     // INSTEAD DO THIS TO SAVE IN-MEMORY COPY                     //PdfWriter writer = PdfWriter.GetInstance(document,  Response.OutputStream);                     writer.PageEvent = e;                     document.Open(); //document.close(); . . . }

Android für Samsung Jet S8000 (Jetdroid)

Posted by Tolpeit | Posted in Programmierung, Technik | Posted on 23-08-2010

0

Seit ihr auch müde vom Betriebsystem des Samsung Jets?

Warum nicht einfach das Google Android hernehmen und aufs Handy laden?

Bereits seit Mai wird versucht das Android für das Samsung Jet zu optimieren.

Hier eine Liste was schon optimiert wurde und was noch zu machen ist.

Bereits gemacht

  • Booting Android 2.1
  • Basic interaction with the system

Noch zu machen

Many things that are not working right now are due to missing driver support from the linux kernel. Thus these features are not related to the Android system and shall not be listed here. Please see JetKernelReleases for details.

  • ADB / USB connection (mostly kernel related)
  • Making calls / network access (GSM/3G/Wifi,…)
  • Everything else that is hardware related and not yet supported by the JetKernel
  • Better keymap support (work in progress)
  • Proper screen resolution (work in progress)
  • Touchscreen calibration (work in progress)
  • ADB / USB connection (mostly kernel related)
  • Use Samdroid of Cyanogen sources
  • 2D/3D acceleration (This could come with Samdroid)
  • Fancy stuff like live wallpapers

Die Entwickler sind schon hart am arbeiten und ich hoffe, wir können in nicht allzu ferner Zeit ein voll funktionsfähiges Jetdroid für unser Samsung Jet downloaden.

Xurs232 Windows XP, Vista, 7 Treiber

Posted by Tolpeit | Posted in Treiber | Posted on 15-08-2010

0

Hier der Treiber für Hamlet RS232 USB Treiber Pl-2303:

Hier zum download

Clarke Tech Firmware Update Tool (ctechup)

Posted by Tolpeit | Posted in Technik | Posted on 15-08-2010

0

Hier ein Tool um neue Firmware, Softcams und Key auf euren Clarke Tech raufzuspielen.

Hier zum download

Bootmgr is missing Windows 7 und Vista

Posted by Tolpeit | Posted in Windows | Posted on 14-07-2010

0

Nach langen Recherchen (fast) den ganzen Tag lang, konnte ich auf einer Seite DIE LÖSUNG finden. Für alle, die dasgleiche Problem haben, hier die Anleitung:
Try this method:

you can rebuild the BCD store by using the Bootrec.exe tool in the Windows Recovery Environment. To do this, follow these steps: – Get your Windows 7 installation DVD and pop it into your drive.
- Then restart your computer.
- Press a key when you are prompted.
- Select a language, a time, a currency, and a keyboard or another input method, and then click Next
- Click Repair your computer
- Click the operating system that you want to repair, and then click Next
- In the System Recovery Options dialog box, click Command Prompt
- Type bootrec /rebuildbcd and then press ENTER

• If Bootrec runs successfully, it will present you with the installation path of a Windows directory. To add the entry to the BCD store, type Yes . A confirmation message appears that indicates the entry was added successfully.

• If Bootrec cannot locate any missing Windows installations, you must remove the BCD store, and then you must re-create it. To do this, type the following commands in the order shown below: (Remember to press ENTER after each command)

bcdedit /export C:\BCD_Backup

ren c:\boot\bcd bcd.old

bootrec /rebuildbcd

- Restart the computer.

Es gibt jedoch eine einfachere Möglichkeit. Bootet den Pc neu und legt die Windows 7 DVD ein und startet von dieser. Wählt Sprache und Tastatur aus und klickt auf weiter. Nun steht unten rechts Windows reparieren oder ähnlich. Klickt drauf und wählt die oberste Operation aus (Startup Repair). Nun wartet und das Windows sollte wieder normal starten.

Weiterhin viel Spaß mit Windows 7 :)

Samsung Jet S8000 Firmware update

Posted by Tolpeit | Posted in Allgemein, Technik, Windows | Posted on 08-07-2010

0

Lange habe ich nach einem geeigneten Firmware Update für mein Samsung Jet gesucht. Habe viele Firmwares probiert und bin zum Entschluss gekommen, dass die Version XPJA1 zur Zeit die Beste ist.

Wie kann ich nun eine neue Firmware raufspielen?

So gehts:

Voraussetzung ist eine problemlose Verbindung mit der New Pc Suite.

1. Firmware download hier

2. MultiLoader download hier

3. MultiLoader starten und auf LS16410 einstellen. Weiters auf Amss klicken und die Datei der Firmware hinzufügen. Das gleiche macht ihr bei Apps,Rsrc1,Rsrc2 und Factory FS

4. Verbindet euer Samsung Jet im Download Modus. Dazu drückt die untere Lautstärketaste, die Fototaste und die Auflegetaste gleichzeitig für 3 Sekunden.

5. Drückt beim MultiLoader auf Download

Wartet bis der Download beendet wurde und schon habt ihr die neue Firmware auf eurem Samsung Jet.

Vuvuzela Filter Windows

Posted by Tolpeit | Posted in Programmierung, Technik | Posted on 14-06-2010

0

Wer die Spiele der Fußball WM miterlebt weiß, dass die nervigen Vuvuzela richtig viel Lärm machen.

Warum dann nicht einfach diese nervigen Töne Filtern?

Martin zeigt wies geht :)

CheckboxList auslesen in einem Repeater asp.net

Posted by Tolpeit | Posted in Webprogrammierung | Posted on 10-06-2010

0

Mit folgendem Code könnt ihr eine CheckBoxList aus eurem Repeater auslesen:

   foreach (Control ri in rep.Controls){
                    if(ri is RepeaterItem)
                    foreach(Control control in ((RepeaterItem)ri).Controls)
                    {
                        if (control is CheckBoxList){
                            foreach (ListItem item in ((CheckBoxList) control).Items){
                                if (item.Selected)
                                    // do
                            }
                        }
                    }
                }

Jquery – Selected Item in all Browsers

Posted by Tolpeit | Posted in Webprogrammierung | Posted on 10-06-2010

0

Wie wir wissen kann auch Jquery Probleme in verschiedenen Browser machen. Ein Code kann im Firefox funktionieren und im IE nicht.

Folgender Code funktioniert in allen Browser. Also benutzt ihn, wenn ihr abfragen woll ob ein gewisses Element ausgewählt wurde eines DropDowns, RadioButtonList oder CheckBoxList

Der code wurde in ASP.net geschrieben.

$('#<%=rblDate.ClientID%>').val(5).attr('selected', 'selected')