Testet sich gerade durch Google Wave durch. :)
Avatar

Daniel Manzke

Vcard Download vCard   what is this?
Rss_icon

Recent Activity


Filter by:
All
  • Creating Chrome Extensions without Chrome (with Java)

    At the moment, I’m working on some Chrome Extensions.

    I struggeled around, which type of Extension I should create. My main problem is, that I want to create an Extensions, which is delivered with our Web Application.
    This brings me to the point, that some configurations have to be set on Runtime. But how should I do that, if the CRX-File was already packed.
    So I decided to implement the Algorithmns I found in Languages like Ruby or Python in Java. Therfore I had to fight with extracting the Public Key from the PEM File.

    First Steps I had done was, that I converted the PEM File with „openssl“ to a DER File. With some SUN specific Classes, I could extract the Parameters I have need to create a Public Key.
    Later I changed it to use Bouncy Castle, which allows to extract them, with out using Classes which are JRE specific. (with my normal way, it would not work on IBMs JRE for Example)

    Gist, what has to be done, if you have the Public- and Private Key.
    https://gist.github.com/1069587

    The complete Project can be found on my github Repository manzke @ github

    How to extract the PublicKey can be found in the Projects „crxmake-console“ and „crxmake-console-bc

    The easiest way is to:
    - zip all your content (go into your WebApp-Directory and create a zip)
    - lets create the PEM File for it (with for example chrome://extensions and choose „Load unpacked“ or „Pack Extension“)
    - call „java de.devsurf.chrome.extensions.CrxWriter yourapp.crx yourapp.zip yourapp.pem“ (with „crxmake-console“ you have to transform your pem first with „openssl pkcs8 -topk8 -nocrypt -in key.pem -inform PEM -out key.der -outform DER“)

    Have fun. I will extend the Project with some Examples how to automatically generate a PEM File, JAX-RS Extension to pack it and create the CRX at runtime.


    Einsortiert unter:Java Tagged: Chrome, CRX, DER, Extensions, Java, openssl, PEM
    4 months on
    devsurf
  • Windows Home Server 2011 with cool Features?

    A lot of people are bashing Microsoft for removing the Drive Extender, because of:
    - there is no automatic mirroring of their files
    - they don’t have the possibility to great big all-in-one volumes

    Today I’m migrating my old DriveExtender Folders to my new WHS 2011 and had a look at the „Server Manager“. In the „Server Manager“ you find the Disk Management from Windows.
    After some quick look, I found pretty cool Features:
    - Stripset Volume
    - Mirrored Volume
    - Spanning Volume

    With a Mirrored One, you have the same functionalities like with DriveExtender, but without the CPU expensive DE Application. (this was the first one, I deactivate, because my system was not able to do anything)

    With a Stipset One, you get the possibilities, that the Files are spread over several Hard Drives, so you can take advantage of the power of multiple reads.

    With a Spanned One, you get exactly the possibility the most of the People want. They want a big Volume, with the size of 3 HDD. (I can’t understand it – buy a bigger drive if you need to :) )

    So try to learn a little bit about Windows and you get a whole bunch of exciting features. If you don’t want to, buy a tool like DriveBender or whatever, which is a DriveExtender for WHS2011.


    Filed under: Windows
    9 months on
    devsurf
  • Installing Windows Home Server 2011 on a HP X312 DataVault

    The last weeks, I waited for the News, that the Windows Home Server 2011 is available. (on MSDN/Technet)

    After I found the news (thx to Twitter) I started some hours later the download and searched for some Tutorials, how to install it. There are a lot of them out there, but nothing of them really helped me out, because I stumbled into some stupid User Failures and Hardware Limitations.

    Installing WHS 2011 on X312 DataVault:
    - download the ISO for the WHS 2011
    - create a bootable USB-Stick with the Help of a Microsoft Tool (http://me.lt/9v1PD)
    - create the necessary config file (cfg.ini) for the headless installation and copy it to your USB-Stick
    - remove all hard disks from your HP
    - put the hard disks which should be the new OS drive into Slot 4 (because my system doesn’t boot from USB Stick, if there is a HDD in Slot 1 with nothing on it)
    - place the USB Stick in the Bottom Rear Slot
    - start the HP (if you have a USB Stick with a LED it should start blinking after a while)
    - the Server Installation will be started and the Installation Files will be copied to the OS drive
    - the server tries to restart (in my case it booted again from the usb stick and nothing happened after that)
    - remove the usb stick
    - restart you HP
    -> the Headless Installation starts
    - check you Router for a new Server with an IP
    - point your browser to http://IP
    - follow the Web Site for the Installation

    „cfg.ini“ File:
    [WinPE]
    InstallSKU=SERVERHOMEPREMIUM
    ConfigDisk=1
    CheckReqs=0
    DefaultServerName=YOURSERVERNAME
    Processed=true
    [InitialConfiguration]
    AcceptEula=true
    DefaultServerName=YOURSERVERNAME
    PlainTextPassword=Passw0rd
    #at least 8 chars with Upper-Case Letters, Numbers, Lower-Case Letters and Special Characters like #
    PasswordHint=Password Hint
    Settings=All

    Hope it helps somebody :)


    Filed under: Windows Tagged: 2011, DataVault, HP, WHS, Windows Home Server, X312
    9 months on
    devsurf
  • Spring has left the Building!

    Hi,

    my Name is Daniel Manzke and I’m one of the Co-Moderators of the Xing-Group for the Java User Group Berlin-Brandenburg (Germany). I’m also organizing Presentations for the Group. I’m using Java for 6-7 years and worked with Spring for 3-4 years. At the moment I’m working on the Automatic Binding of Beans, Modules, Configurations and AOP for Google Guice. #GAB

    So enough about me, I justed want to tell you a short story and I want to know from you, if I’m so wrong.

    Some weeks ago I wrote Adam Bien an Email and asked him if he would present all the new Stuff around Java EE 6. I really like the guy, because he is pragmatic and you can discuss with him, without the normal flame wars of Programmers. (you should visit one of his presentations!)
    We agreed that the 25.01.2011 would be the perfect date and ImmobilienScout24 will allow us, to present in one of their rooms. (with Pizza and Drinks – Thanks!)

    Disclaimer: This blog and my opinions have nothing to do with ImmobilienScout24 or Adam Bien. These are my personal opinions.

    In a later mail Adam had the great Idea, that we could make a Side-by-Side presentation. We thought Spring would be a nice Partner. I really liked the idea to hack an Example Side-by-Side with Java EE and Spring. Why? Because Spring always wanted to replace EJBs and all the heavy Stuff of Java EE.

    So I started to search a good Spring-Presenter who would like to do this hacking. And here begins the funny part!

    One guy (I don’t want to blame anybody so I’ll call him Mr. S) Mr. S wrote me that he liked the idea, but this comparison of the two Stacks doesn’t make a sense for him.
    He wrote me, that you can create the Presentation Example with Spring, CDI, EJB and without Java EE, because Spring is so flexible. „And you can use Xml, Annotations and all this stuff.“

    Until here I could follow him a little bit, but than he begun to write me the real features and advantages of Spring.

    Mr.S wrote, that we can’t compare the Stacks, we should instead show how easy it is to bring such an App into the GAE, how to integrate Caching, how to integrate Twitter and how to connect NoSQL-Databases. „Java EE has no rudiments for the needs of the Future“

    At this point I started laughing for about one hour and had a lot of discussions with Friends.

    Does Spring has left the Building? Are you using Spring anymore? What DI-Implementation would you choose if you would start a new Project?

    For me it is clear, I’ll never use Spring again. (only if I have to) Spring is just to heavy and not lightweight anymore. They tried to implement everything and make everything better. Do they have reached their aim or do they have lost their focus?
    There are needs for NoSQL and all the stuff, but not for my Customers. I don’t know if they know how to write NoSQL, but I know that they are not able to administrate it.

    So there are a lot of scenarios where I’m happy that Java EE is on the best way, to get really lightweight and Adam will show us all the Core-Stuff.

    I’m really glad to know, that he is not one of the Marketing Guys!

    So let us discuss, if Spring is useful anymore. If Java EE is fit for the Future. I’m really interested in your thoughts!


    Filed under: Automatic Binding for Guice, Java Tagged: Adam Bien, GAB, Guice, Java EE, Spring
    10 months on
    devsurf
  • Cool. I get the chance to attend to a SharePoint-Developer Workshop in January.
    ~1 year on Twitter
  • @simonetripodi Switch to git and I'll test :)
    ~1 year on Twitter
  • I've a new Favorite: Dell Inspiron Duo - Maybe a good IPad Killer? :)
    ~1 year on Twitter
  • Cool. GoogleStreetView. I'm driving to my Office :)
    ~1 year on Twitter
  • Does a SSD with USB2.0 make any sense?
    ~1 year on Twitter
  • Note to myself: git config --global http.sslVerify false - the brutal way :)
    ~1 year on Twitter
  • @dit_systemhaus Did you opened another office? :)
    ~1 year on Twitter
Next page