Friday, May 18, 2012

Mistakes

I keep seeing people either doing things manually (or repeating the process from scratch again & again) or doing semi-automated.

This process is very tedious to make sure every thing goes right. Recently, at a fruit shop store-keeper is billing using a semi-automated machine for billing the fruits. He presses some code based on the item and the bill automatically generates based on the weight and the code. Because of the huge rush at stalls these days, it is very difficult for him to remember the codes. So, by mistake the store-keeper pressed the code incorrectly for apples (usually a Kg of apples cost around 150) and because of the wrong code the bill shows only 24 rupees.

A huge loss for him. The hard earned money for him just goes away by simple mistakes and unnoticed some times.    For these they should trust technology (like bar-codes) even though it is costly but at the end of the day we will live with 0 mistakes. Make NO Mistake.


/Srinivas

Tuesday, October 25, 2011

Dr. Strangelove Or How I Learned to Stop Worrying and Love the Bomb (1964)

I have watched this some time back, wanted to put down the funny dialogue here:
==

Muffley:

Hello? Hello, Dimitri? Listen, I can't hear too well, do you suppose you could turn the music down just a little? Oh, that's much better. Yes. Fine, I can hear you now, Dimitri. Clear and plain and coming through fine. I'm coming through fine too, eh? Good, then. Well then as you say we're both coming through fine. Good. Well it's good that you're fine and I'm fine. I agree with you. It's great to be fine. laughs Now then Dimitri. You know how we've always talked about the possibility of something going wrong with the bomb. The bomb, Dimitri. The hydrogen bomb. Well now what happened is, one of our base commanders, he had a sort of, well he went a little funny in the head. You know. Just a little... funny. And uh, he went and did a silly thing. Well, I'll tell you what he did, he ordered his planes... to attack your country. Well let me finish, Dimitri. Let me finish, Dimitri. Well, listen, how do you think I feel about it? Can you imagine how I feel about it, Dimitri? Why do you think I'm calling you? Just to say hello? Of course I like to speak to you. Of course I like to say hello. Not now, but any time, Dimitri. I'm just calling up to tell you something terrible has happened. It's a friendly call. Of course it's a friendly call. Listen, if it wasn't friendly, ... you probably wouldn't have even got it. They will not reach their targets for at least another hour. I am... I am positive, Dimitri. Listen, I've been all over this with your ambassador. It is not a trick. Well I'll tell you. We'd like to give your air staff a complete run down on the targets, the flight plans, and the defensive systems of the planes. Yes! I mean, if we're unable to recall the planes, then I'd say that, uh, well, we're just going to have to help you destroy them, Dimitri. I know they're our boys. Alright, well, listen... who should we call? Who should we call, Dimitri? The people...? Sorry, you faded away there. The People's Central Air Defense Headquarters. Where is that, Dimitri? In Omsk. Right. Yes. Oh, you'll call them first, will you? Uh huh. Listen, do you happen to have the phone number on you, Dimitri? What? I see, just ask for Omsk Information. I'm sorry too, Dimitri. I'm very sorry. Alright! You're sorrier than I am! But I am sorry as well. I am as sorry as you are, Dimitri. Don't say that you are more sorry than I am, because I am capable of being just as sorry as you are. So we're both sorry, alright? Alright. Yes he's right here. Yes, he wants to talk to you. Just a second.

======

Tuesday, June 14, 2011

tips related to beagle board

those who wish to buy a beagle board, buy beagle board xm, not the c4 version which is widely available outside compared to xm version.

c4 version needs a powered usb hub to connect a key board and mouse. Also, for ethernet connection, a usb to ethernet adapter is needed.

For all these days, i am searching for a dvi monitor to see the beagle board booting process. But the better solution would be to use a remote desktop option using x11vnc or some vnc server application on the beagle board.

minimal things required:

1. xm version board
2. one straight cable db9 to db9 (male to female)
3. although 4gb card is available with the purchased version, it is better to start with 8gb.
minimal software: x11vnc server to see the booting process remotely.

that is all for now.

an update:

some other development boards: panda board (174$) , st-ericsson snow ball. these new ones include wifi, bluetooth also. great !!

Tuesday, May 31, 2011

ubuntu installation on beagle board


Today i just finished installing ubuntu 11.04 ompa3 version on my beagle board. it is quite simple and took couple of minutes. I am wondering if there is a way to partition the sd card on windows machine. Every time i need to partition the card on linux machine. Anyways, it is good to see the complete gui installation screens on the little serial monitor winodow.

I have used 4Gig sd card.

Download from : http://cdimage.ubuntu.com/releases/11.04/release/

link: http://cdimage.ubuntu.com/releases/11.04/release/ubuntu-11.04-preinstalled-headless-armel+omap.img.gz

on a linux machine: execute this command after inserting the card.

1. gunzip -c ubuntu-11.04-preinstalled-headless-armel+.img.gz | sudo dd bs=4M of=/dev/ 2. sync



Tuesday, May 24, 2011

code generation scicoslab/scicos

c/c++ code generation from system blocks (Matlab/Simulink, Scilab/xcos, ScicosLab/Scicos) is really helpful for rapid-prototyping.

some documentation available here: http://www.scicos.org/CodeGen_doc.pdf


ScicosLab/Scicos provides (also Scilab/xcos) code-generation facility for generating a stand-alone “c” code. The generated file can be linked to various interface modules.


Create a block diagram in Scicos. Select the relevant blocks and make them as super block. And make it as super-block for code generation. Select “code generation” from the tool bar and generate the code for the super-block.



xxx_standalone.c
xxx_act_sens_events.c
libxxx.lib

where xxx is the name of the workspace.

Include these files in the visual-studio and create an executable.

Open loop response of 2nd order system:

I have given some constant input 1.0 in the “xxx_act_sens_events.c”
*((double *) y+(k+l*(*ny1))) =1.0;

Otherwise the program will be asking the input continuously for every iteration.


Ol1.txt is generated from the “generated code”
foo.txt is from the scicos generated output.