Just An Intermezzo

If you have programming in embedded systems, what would you suggest when you have a situation that you must choose between implementations:
  1. HashMap. The algorithm is O(1), but it takes more memory footprint.
  2. LinkedList. The algorithm is O(n), but it takes less memory and traverse more.
Another fair question is how to make the following C code can be achieved in Java with minimal overhead:

char ch* = &a;
char** chCh = &ch;

So, when the ch has been assigned to a new value, chMap also automatically pointed to the pointer's new location also. Of course, the char is only subtitute to any object Java can implements.

How to control an Axis servlet when you embed it on Jetty? Running the admin client just to activate a POJO WS is utterly a waste of energy. Besides, you are exposing the admin client's password. Is there a way to make that programatically?

Another interresting thing to do is to calculate how much data transmitted when you have a WS-Security request sent over SSL in a VPN. So, you can calculate all the dedicated bandwith needed for the whole operation. How about adding more secure term like integration with IPSEC?

Speaking of security, anyone that guarantee 100% of security is like selling dead donkey. Don't trust them. There is no such thing as 100% secure site. What we can do is just making the system low profile, cross your finger and pray that the one that found your site is a hacker, not a cracker.

Another thing that bothered me is how come educational institutions become targets of spammers and crackers? Is there no concencus to exclude the educational institutions out of the war?

Speaking of cracked mind, I am very concern about the high stress of current society. people dragged from their home into lunacy making the name of comfort is something beyond dreams. These days people living in a live where they don't feel home. Why? They have so much pressure in the office and then when they come to the house, where there should be a get-away, they encounter yet another pressure.

That's why people getting fierce lately.

The stress is like a char* passed as argument and without verification being used extensively. You could have an old buffer overflow there. Yet, if it reaches enough time, it becomes like malloc() without proper free(). Without any notification, your mind terminated with segmentation fault and with anxious you run over and shot any random Joe and Jane out there. 

Whew, what a mess and suddenly you don't have Ctrl-Z or ESC-U -- toolbar only for n00b. 

You try to cat /var/log/messages | wc -l and suddenly realize you are old. Why not try to history | grep mistakes. Why not stop use ` for a while. The button is only below ~, which you really need. Too much ` will make you only starts to h

You know that [F1] is there for a reason, or you could use man or browse to /usr/share/doc if you are in Debian, or open your browser to google if you are online.

Sometimes just like the old polymorph virus, we just need to put noop three times before we take action. 

We need to learn to forgive ourselves because life is not like a journalling Filesystem which can be rolled back. 

Sometimes its alright if you feel like running like a thread in a spinlock position and it doesn't hurt if you put that lock down by calling yield().

When you do kill -9, would you like to consider that it could harm you too? Forgive them, or sleep 5 and ps aufx.

In the end, whatever your choice, HashMap or LinkedList, always comes with drawbacks which sometimes burden your embedded system. But, hey, that's the art of life.

Anyway, this is only an intermezzo, nothing really matters besides you are relief and ready to smile after reading this. Now, smile. :-)

Comments

  1. Java buat embedded system ?

    Bukannya masih didominasi C/assembly/Forth yak ? :p

    ReplyDelete
  2. Anonymous10:08 PM

    anyway JP, istilah VPN SSL aga aneh ya IMHO. SSL itu layer 4 feature, ex: TCP secure socket. Sementara VPN itu di layer 3 (tunneling IP). Term yang lebih cocok untuk secure VPN adalah ipsec

    ReplyDelete
  3. @andre:
    Yah begitu deh... :D

    @jefri:
    Yoih, yang gw maksud dengan SSL adalah HTTPS yang jalan di atas VPN dan yang gw maksud dengan pengamanan lebih ekstra lagi adalah melindungi VPN dengan IPSEC yang sebenarnya adalah sebuah metafora dari manusia yang berusaha untuk membuat keamanan berlapis di mana hidupnya dapat dikatakan aman.

    So, that line of my metaphore is like: Your Application layer, the XML data sent via Web Service is protected with WS-Security. The Transport layer is protected with SSL. The SSL itself actually encapsulated by a virtual network (VPN). To satisfy the paranoia, the VPN itself is protected via IPSEC. Isn't obvious in my line? Hmmm... I need to learn to write well.

    In OSI:

    WS-Security [SECURE]
    SSL (HTTPS) [SECURE]
    VPN -> integrated with IPSEC. [SECURE]
    IP
    Datalink ..
    HW ..

    That's what I'm trying to draw.

    Thanks anyway for the correction.

    ReplyDelete
  4. Oh, anyway, did you both smile?

    ReplyDelete

Post a Comment

Popular Posts