Updates from February, 2015 Toggle Comment Threads | Keyboard Shortcuts

  • CG 1:39 pm on February 26, 2015 Permalink | Reply
    Tags: , queue, rabbitmq   

    Installing RabbitMQ on MacOS 

    1. Download RabbitMQ for Mac here
    2. Download Java AMQP client library here
    3. Start RabbitMQ server by running ./rabbitmq-serverBildschirmfoto 2015-02-26 um 11.10.15 vorm.
    4. Check that the server is running properly with ./rabbitmqctl statusBildschirmfoto 2015-02-26 um 11.10.51 vorm.
    5. Compile and run a HelloWorld testing program from the tutorial here. Compile the Send.java and Recv.java files with javac -cp rabbitmq-client.jar Send.java Recv.java. Run Send.java with java -cp .:commons-io-1.2.jar:commons-cli-1.1.jar:rabbitmq-client.jar Send. This will send the message (in this case the message is “Hello World!”) to the queue. And then run Recv.java with java -cp .:commons-io-1.2.jar:commons-cli-1.1.jar:rabbitmq-client.jar Recv to pop out the message on the queue.Bildschirmfoto 2015-02-26 um 11.08.05 vorm.
    6. The server and the queues can also be checked via browser http://localhost:15672/Bildschirmfoto 2015-02-26 um 11.09.31 vorm. Bildschirmfoto 2015-02-26 um 11.08.41 vorm.

    Now the queue is ready.

    Advertisements
     
    • Budi Rahardjo 8:20 am on February 28, 2015 Permalink | Reply

      On Linux (I know, it’s not Mac OS X 🙂 ) there’s “amqp-tools”. Install it with “apt-get install amqp-tools”. You’ll get five (5) command line tools. For example if you want to publish something:

      amqp-publish -e exchange_name -b “your message”

      To get a message from a queue:

      amqp-get -q queue_name
      or
      amqp-consume -q queue_name

      I believe these tools are built with rabbitmq-c library. Having said that, I looked at the newer version of rabbitmq-c library in here:
      http://alanxz.github.io/rabbitmq-c/docs/0.5.0/index.html

      It has a number of different tools. Perhaps they changed (upgraded?) the library? I have not looked deeper into it. Basically, it is a C library that you can use to create command line tools. I looked at one of the code, and hardcoded the userid dan password in it so I can use something like this.

      amqp_sendstring localhost 5672 amq.direct test “hello world”

      I have tested amqp-tools and this rabbitmq-c library agains locally installed rabbitmq server. They work!

    • Budi Rahardjo 8:37 am on February 28, 2015 Permalink | Reply

      And now for some clients. I have tested Perl Net::RabbitMQ. Getting it running is easy.

      Publishing message(s) works perfectly, but I am still having problems getting one (1) message from the queue. For some reasons, I got *all* the messages from the queue. ie. get and consume behave the same. I need to tinker some more with the get.

      I haven’t had time to play with Python and Java clients.

  • CG 7:17 pm on October 21, 2011 Permalink | Reply  

    Back to VHDL 

    One of our papers is invited to an international journal, so in order to add new content of at least 30% to the conference version (further analysis, additional simulation/experimental results, detailed design/synthesis, further comparison with other related methods, a more elaborated discussion), we decided to do more exploration and experiments on composite field implementation with VHDL.

    And I have to read this.

     
  • CG 10:04 am on August 14, 2011 Permalink | Reply  

    Reading list 

     
    • andika 8:16 pm on August 19, 2011 Permalink | Reply

      wah yg paling kanan belum abis dibaca 😦
      kapan sempat ya ….

      • CG 4:47 pm on August 20, 2011 Permalink | Reply

        yang paling kanan gimana tamatnya ya, kan 1000hal, astaghfirullah 🙂 mending ngabuburit baca gnome ya? 🙂

  • CG 4:56 pm on August 21, 2010 Permalink | Reply
    Tags: , , ,   

    Weekend Read 

    Hardware Implementation of Finite-Field Arithmetic – Jean Pierre Deschamps, Jose Luis Imana, Gustavo D. Sutter, Chapter 7.

    Going to learn about all multiplier for finite fields. And think how can a non-finite field multiplier be applied for finite field applications.

     
  • CG 11:01 pm on May 14, 2010 Permalink | Reply
    Tags:   

    Now reading: 

    VHDL Made Easy! David Pellerin – Douglas Taylor, Prentice Hall, 1997.

     
  • CG 3:28 pm on February 1, 2009 Permalink | Reply
    Tags: digital design   

    Reading list: Digital Design 

    Which one to read first?

     
  • CG 2:42 pm on December 25, 2008 Permalink | Reply
    Tags:   

    Newcomers to the bookshelf :) 

    Forgot to post an update about me shopping some books, really cool ones 🙂

    1. The “bible” of ECC: “Guide to Elliptic Curve Cryptography” – Darrel Hankerson, Alfred Menezes, Scott Vanstone

    2. A very detail and theoritical book about elliptic curves: “Elliptic Curves – Number Theory and Cryptography” – Lawrence C. Washington

    3. The most related book to be the reference of my phd thesis: “Elliptic Curve Cryptography for Constrained Devices – Algorithms, Architectures and Practical Implementations” – Sandeep S. Kumar

    Happy holiday, everybody.

    I’m going to spend the holiday with my new buddies 😉

     
    • Budi Rahardjo 7:13 pm on December 26, 2008 Permalink | Reply

      Waaahhh … iri …
      Buku baru selalu membuat iri 😀

    • CG 7:15 pm on December 26, 2008 Permalink | Reply

      @BR: hey, you’ve got to read them too and help me to understand and finish my phd 😀

    • mehobbes 5:39 am on December 29, 2008 Permalink | Reply

      the first one is a “bible” ?
      hmmmm, oke, a must have ECC book isn’t, it.

  • CG 2:32 am on October 27, 2008 Permalink | Reply
    Tags: big numbers   

    Big numbers for crypto 

    My informal advisor/supervisor recommend me this amazing book. It really gives me a big hope that there are so many things to explore in software implementation 😀

     
    • mehobbes 5:13 pm on October 27, 2008 Permalink | Reply

      wow! BIGNUM MATH!
      saya tertarik sekali dengan bukunya!

      sepertinya kalau saya rajin membaca posting2x di sini,
      bisa2x saya jadi ‘accidental cryptographer’ 😀

    • Budi Rahardjo 7:06 pm on October 27, 2008 Permalink | Reply

      The thing is many people think that software is easy. All you have to do is type and software is created. This may be true if you have toy problems, but developing software for real applications is not easy.

      Many students also think that creating software is easier than creating hardware. They are wrong. Both are difficult problems, if you do things correctly (not just playing around).

      You are right that there are still many things to explore in software implementation of crypto stuff. 😀

    • Budi Rahardjo 7:10 pm on October 27, 2008 Permalink | Reply

      Ah forgot one more thing, re: reading that book. Give me some time to think what’s the best strategy (given your tight schedule) to read that book.

    • mehobbes 10:29 am on October 28, 2008 Permalink | Reply

      pernah dalam suatu diskusi ada yang mengatakan kalau membuat hardware itu mudah.
      dia bilang, apa susahnya tinggal beli komponen, dirakit, disolder, kemudian dijalankan.
      saya sampai kaget mendengarnya.

      bagi saya membuat hardware dan software sama2x memiliki tantangan sendiri.
      keduanya memiliki pendekatan desain yang berbeda, memiliki karakteristik yang unik,
      sama-sama tidak mudah.
      dan tantangannya akan bertambah lagi seandainya hardware dan software digabungkan
      (yang saya sendiri belum tentu berani).

      orang2x yang mengatakan bahwa membuat software itu mudah,
      sepertinya adalah orang2x yang sesungguhnya belum pernah membuat software 😀

    • waskita 6:14 am on November 1, 2008 Permalink | Reply

      orang yang mengatakan membuat software itu mudah, pasti belum pernah baca buku software engineering, atau belum pernah melakukan pengembangan software dalam suatu team selama sekurangnya 1 tahun.

    • chikaradirghsa 2:14 am on November 4, 2008 Permalink | Reply

      @waskita: betul mas. sepertinya saya juga musti tamatin buku software engineering 🙂

  • CG 4:18 pm on July 20, 2008 Permalink | Reply
    Tags: feynman, science   

    Scientific Integrity – Feynman 

    Finally managed to finish this book. More about it here and here.

     
  • CG 12:33 pm on May 27, 2008 Permalink | Reply  

    Fermat's Last Theorem 

    Some of my favorites book arrived today. One of the is this book

    But the funny thing is, it has different cover with those I found on the web:

    Is it because they’re from different publishers, or there are different versions, I will find out 😉

    Ready to enjoy the book… (the piles is getting higher, adding more distractions for me, hi hi hi…)

     
    • Budi Rahardjo 5:02 pm on May 28, 2008 Permalink | Reply

      Ah … those distractions. I think you should work on your stuff first. Show me your progress. Minor progress is okay, as long as it is progressing.

      Then, you can read a book for your reward.

      As for that book, I read it already but wouldn’t mind re-reading it again.

    • kusprasapta 12:41 am on May 29, 2008 Permalink | Reply

      tulisin short summary-nya di sini dong.
      biar bisa ikutan baca, dikit-dikit 🙂

    • Rindu 3:49 am on May 29, 2008 Permalink | Reply

      Enjoy the books but dont forget pak BR comment 🙂 work on progress first…

    • chikaradirghsa 5:10 am on May 29, 2008 Permalink | Reply

      BR: but what if i need some “distractions” to make some progress, sir? hi hi. i will take the advice and will stay away from the (new) books. but let me at least finish “the cuckoo’s egg”, hi hi hi *blink blink*

      Kusprasapta: ok 😉 campur2x sama coding tapi ya 😀

      Rindu: yes, trying hard to make some progress here 😀

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel