Sunday, December 29, 2013

Life is unfair

“Things are tough all over, cupcake, an' it rains on the just an' the unjust alike...except in California.” Alan Moore, Watchmen

“Life is unfair, kill yourself or get over it” Child Psychology by Black Box Recorder

 “There are things you can live with
   For everything else, there is suicide”

Noname00

When it came to naming my blog, it did not take me much time to come up with one, I named it Noname00. It was (is) very apt. What would I have thought of it when I made it? It was just a way to postpone the naming ceremony. Then I thought I would come back to thinking something up, something more apt to call this blog. But of course I never did. Noname00.cpp, is the file name given to a file when you bring up an editor to write a code in TurboC. By the time I had acquainted with the editor I had made up to Noname10.cpp or even more. What is in a name? In magic if you could know the real name of a man, you could control him, you would know who he is. If one knows his own, then he has indeed found himself. It is the descriptor for a person, like the definition of a function, but then according to one's understanding of another man, he could name him at many levels. When we come closer to an object we simultaneously become vague about that thing too. I have heard people say that one could understand the whole of the universe by studying one grain of sand. For when we are abstracting some thing, we are actually defining something in great detail. The understanding of this relation between the micro and macro is according to me the greatest knowledge. Standing by that name I have never, in this blog, touched on any non-personal topic in any level of detail. So like a new file brought up in an editor, nothing is specific in this blog, no opinion is solid. No idea has been put forth, at best questions were asked, taken up to be answered and left half way through without reaching a conclusion. Topics have been changed half way through the article. But when I read an older post it brings up a bunch of emotions. The edginess of them kind of unsettles me, but some of it makes me wonder about what I am losing and what I am gaining through these years. There are themes that continue to interest me, elude me and I completely miss. Some are born, some die, some evolve, some are reborn. After all I write for no one, not even me.

Sunday, October 13, 2013

The Him

my eyes green with envy
my mind inflated with pride
my feet restlessly searching
the ground, it has long been denied
ceaselessly fighting for me
my hands, two soft balloons
my nose sniffing the corners
for a way out, just some way out
my ears tuned acutely
to the unheard lullabies
and the world looks down on me demanding
a heart, i had so long ago lost

Sunday, July 21, 2013

Two Sound Outputs to Two Channels of The Same SoundCard Using ALSA

          Linux comes in handy when the necessities are very specific. I had installed Mixxx in my computer to do some beginner level mixing of songs. The software is free, and if you have a good media library and internet connection to help you out the only problem that comes in the way is the problem of having only one sound output. The headphone and master outputs have to be channeled to two sound cards. This is the basic requirement to start mixing songs. But I for one was not ready to invest on the simplest of sound card, mostly because I am that cheap.

        The Only solution I could think of to this problem was to use my to channels as two sound cards, If one has a head phone, and is not particular about panning effects in your mixes, getting the master output as mono in your left ear and the Headphone output of the console (Mixxx) in your right ear is good enough for entry level mixing, good enough if you want to not pay and get things done.

      Two do this I had to get two sound cards emulated so that I can give the master in one and the Headphone in the other soundcard in the Mixxx interface. And afterwards I have to make the output I recieve in these sound cards mono, and send the to the left and right channel of my real sound card. Now this right here is a very specific configuration that I can't imagine myself doing anywhere else but here, in Linux.

      Though it started out with me thinking all the wild and complicated things I would have to do, like writing a code in C or if lucky in python, I soon found that this can be easily done with the help of this wonderful "thing" called ALSA (Advanced Linux Sound Architecture ). Now with ALSA all I have to do was add a config file in my home file called ".asoundrc". Once I had done that, that is add the required config which will emulate two sound cards that will 'mono-fy' their received inputs and then send to their alloted channels in my real sound card (Howto is below), I could simply go to mixxx, and when I checked in the lists of sound cards, there they were. The two new sound cards that I emulated. Now I assigned the two outputs of Mixxx to these two cards and now I have the crowd output on my left ear and the headphone output on my right. :)

    Now going to the code.


     The code (more like config) has to be written in the location ~/.asoundrc. So take the terminal and type

"nano ~/.asoundrc"

 This should take you to the text editor, now copy this text given below to that file and save it.

#The handle to the hardware "hw:0", the only sound card in my computer
#The hardware details can be found out by running command 'aplay -l' in console
pcm.Scard{
    type hw   
    card 0
    device 0
    subdevice 0
}

#t8k is the simple use of sound card without any additions to its properties
pcm.t8k {
    type plug
    slave{
        pcm Scard
    }   
   
}


#this is where the mixing is done
pcm.dmix2 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false # let multiple users share
        ipc_perm 0660 # IPC permissions (octal, default 0600)
        slave {
                pcm Scard # see below
                channels 2
                period_time 0
                period_size 2048 # try 2048 against skipping
                buffer_time 0
                buffer_size 1024 # in case of problems reduce this
                                 # in case of skipping, try increasing
        }
}

#The emulated left sound card, routes half the sound from left and right to
#the left channel of the dmix soundcard
pcm.left {
        type route
        slave.pcm dmix2
        slave.channels 2
        ttable.0.0 0.5
        ttable.1.0 0.5
}

#Same thing, output mono to right
pcm.right {
        type route
        slave.pcm dmix2
        slave.channels 2
        ttable.0.1 0.5
        ttable.1.1 0.5
}
ctl.left{
    type hw
    card 0
}
ctl.right{
    type hw
    card 0
}

#These are bitrate compatible interface of left and right soundcards.
#Try only if the 'right' and 'left' soundcards are skipping.
pcm.rightGood{
    type plug
    slave.pcm right
}
pcm.leftGood{
    type plug
    slave.pcm left
}


      Now, once this file is created, the sound cards can be checked in the terminal thus:

#reload the alsa with command:
     sudo /sbin/alsa force-reload
#try the left sound card with some wave file you have, here test.wav
      aplay -D left test.wav
#if this is giving you a squeaky sound as it is played fast go for the 
#bitrate compatible plugin     
      aplay -D leftGood  test2.wav
#now you should be getting a left only output. 

It is that easy.


Sunday, December 30, 2012

Feedback

In a system with a positive feedback, a component of response to the stimulus is fed back as stimulus. The component that is fed back is decided by a feedback system. Because it is a positive feedback, this component is in tandem with the usual stimulus. This phenomenon results in an stimulus of enhanced magnitude. The regular stimulus when combined additively with this component that is fed back creates an enhanced input to this system thereby increasing the effective magnitude of the response which in turn increases the fed back component. This can go on forever, continuously increasing the strength of the response of the system. Now the system might not be able to cope with this high magnitude of stimulus or response, sometimes it could be the excess response or it could be the excess stimulus, that causes the system to breakdown or stop responding beyond its acceptable limit of either magnitudes making the system saturated.
Sometimes the component that is fed back might not be contain all the components of the given stimulus, it could be just one component of the stimulus that could be fed back to be additively combined with stimulus. Now this component that will be fed back is entirely a property of the feedback. If the stimulus does not contain this particular component that the feedback system is sensitive to, the feedback system is practically useless. But if the mentioned component is a part of stimulus then this one component will get contribute the most to the response. Now if a response of a certain magnitude is being generated by the system, we may safely remove the stimulus and the response will be available, even without the stimulus. This this fed back component becomes the natural response of the system. Finding the natural response of a system is easy, one has to give it a small stimulus with all possible components for a short period, the system will respond with its natural response. Kicking a machine when it stops could just make it work as it put it up to its natural response once again. Like defibrillator.

Thursday, October 11, 2012

The Book Of Qualities - Ruth Gendler

I heard about this book from a Talk by one Evolutionary scientist (i guess) on how human beings are evolutionarily linked to our predecessors , and how we differ to such extents from them. So somewhere in the speak he talks about our ability of meta-cognition. You know, like know how you are thinking. Stuff like "Does he know that I know that he knows" is pretty meta. This video was posted on my wall and i loved it and I so wanted to read this book. But because it is very a obscure writer and book I just could not find it.  Long story short after a lot of trouble, that involved getting myself transferred I got this one in my hand. Now what was great about this book thatihave noticed is that it can be read form back to front, or one page at a time. Ok all this is pretty pointless. Getting to the point.

The Book of Qualities by Ruth Gendler is about the lady giving us the life story or an event or the psychological profile of some very interesting people like Fear, Wisdom, Intensity, Joy, Commitment. All of them have very interesting characters and in some pages the woman has drawn their portriats too. So sometimes you feel like reading about wisdom, or despair etc, then it is almost like a dictionary, here are a few excerpts form the book, I have always searched for it and never found.

Wisdom: Wisdom wears an indigo jacket. She takes long walks in the purple hills at twilight, pausing to meditate at an old temple near the crossroads. She was sick as a young child so learned to be alone with herself at a young age.
Wisdom has a quiet mind. She likes to think about the edges where things spill into each other and become their opposites. She knows how to look at things inside and out. Sometimes her eyes go out to the things she is looking at, and sometimes the thing she is looking at enters through her eyes. Questions of time, depth and balance interest her. She is not looking for answers.

Joy: Joy drinks pure water. She has sat with the dying and attended many birth. She denies nothing. She is in love with life, all of it, the sun and the rain and the rainbow. She rides horses at half Moon Bay under the October moon. She climbs mountains. She sings to the hills. She jumps from the hot spring to the cold stream without hesitation.
Although Joy is spontaneous, she is immensely patient. She does not need to rush. She knows that there are obstacles on every path and that every moment is the perfect moment. She is not concerned with success or failure or how to make things permanent.
At times Joy is elusive - she seems to disappear even as we approach her. I see her standing on a ridge covered with oak trees, and suddenly the distance between us feels enormous. I am overwhelmed and wonder if the effort to reach her is worth it. Yet, she waits for us. Her desire to walk with us is as great as our longing to accompany her.

Commitment: Commitment has kind eyes. He wears sturdy shoes. Everything is very vivd when he is around. It is wonderful to sit and have lunch in his gardens around harvest time. You can taste in the vegetables that the soil has been cared for.
Because Commitment is so serious,  he loves clowns and balloons and fools and limericks. He has four daughters, grown now, but when they were little they always took him to the circus.
There is something special about the way Commitment gazes at the new moon. I wish I knew how to explain it. He is such a simple man and yet he is so mysterious. He is more generous than most people. His heart is open. He is not afraid of life. He is married to joy.

Defeat: Defeat sits in his chair staring at the grey doves on the porch. He holds his hand underneath his heart, fingers curled tightly into themselves, glued together in a paralyzed rage. He is unwilling to go forward and unable to let go. He is not blind or deaf, but it is unclear who he sees or what her hears. He has a stroke six years ago and sleeps most of the day. In response to questions he answers yes or no inter-changeable. Speech has lost meaning.

Depression: Depression is the child of Lethargy and Despair. She was born tired. She has always had beautiful dreams. As she grew up, she stopped believing in them. The only person she could talk to then was Rage. He sat next to her during the geography class. When Rage left. Depression felt totally abandoned.
Depression sits at the table staring out the window as if there’s no escape. she makes sure no one comes too close. Then she frets about being lonely. You warned me not to take her overtures of friendship too seriously. I wasn’t paying attention. After all, I hardly have the time for my good friends, and I figured she would bore me. It wasn’t until my neck was hurt that I found out why so many want to spend time with her.

Underlines added pseudo-randomly. Well that is all folks.


Thursday, May 17, 2012

Breakfast at 6pm

Cooking for self : a form of healthy narccissm? Always wanted to use this kind of shitty intro :p. After the night shift i came home at 8 in the morning. The best thing about night shift is you get the whole day to sleep. Slept like a baby for about 10 hours and woke up with cannibalistic hunger rage!!! Going out to get some stuff necessary for cooking was a great torture, i was hungrily looking at the arms and calves of people passing by with the above mentioned rage *_*. Of course people were selling stuff on the roadside but because pune is a vegetarian dominated area, there were only leaves and potatoes. But i had better plans for myself, I had, in my fridge, something almost taboo. A full pack of beef sausages procured after a long search for the lesser known spar shopping place, the best of its kind (could kick the sorry ass of big bazar any day). So my plan was to saute (going to try it the prescribed way for the first time) it in olive oil till it is brown and then boil it in the same pan with some water to make it a little soft, also cleaning the pan of the excess oil in the process, so it is easy to clean it after eating. Then fill a hot dog bun with this and some tomato and chilli. In the shop there was no oil. I asked for coconut oil for cooking and he looks at me like i am some retarded child and says "One does not simply use coconut oil... ....to cook food!!" ONLY to grow long beautiful hair!!!. I silently pitied the fool, and reached back home with butter and eggs and stuff. Butter, i planned to use to saute with, although i read somewhere that butter is no good for it, as it evaporates or something. But the tragedy struck when i reached back home and found that the butter has melted from my body temperature. I kept it in the fridge which was still warm cos of the power cut. By this time i had lost all strength for logical thinking. I decided to boil the sausage and put it in the middle of the bun with some tomato and chilli and eat it. Now i started working, i boiled some water for the tea, no food without tea. Took out a couple of sausages and kept it in some water to cool off (warm up). Then started working on the tomato, cut it in pieces and the chilli too. The sausage was almost ready to get cooked and I put it in the pan and was about to fire up the stove when I thought of something else. I had no idea how to cut the tomato. I had cut one in semicircles and other two into small pieces. By the time i had finished cutting i had lost the point of cutting it in all this different shapes. Now they cannot be put in a hotdog in all these shapes. So i decided to bring the water to boil and then put the tomato and chilli in before the hot dog. Thought i will make a hotdog curry. You must know that when i went to the shop, i did not ask for salt because i had salt. It just was not there in my mind. But when i pictured myself eating the hotdog and remembering the biggest complaint i always come up with all the time, "amma no salt in the curry!". Then it struck, i had no salt!!! I looked around, because i had nothing much in the kitchen i could see all that i had. There was in the corner a container with uppilitta manga!!. I took one out cut it into small slices and arranged it on the floor of the cut bun. Voila i hav all the salt i ever need. By this time the water had boiled for tea good for 2 tea cups. I put in the tea leaves and put out the flame immediately (if you love tea this should be how it is done). The hot dog curry was ready with a small amount of tomato extract and cooked tomato and chilli and a couple of very soft but slightly split hot dogs. now i was all set for eating. I filled my borosil vision glass with tea(these are the awesomest simplest glass ever, that costs around 600 per dozen but got from spar 1 at 29/- :), you can boil things in it freeze ice in it, it is the stuff test tubes are made of ). Brought my food to the room where i LIVE, put a play list of New Order songs, filled the bun with cooked tomato and chilli and topped it all with the sausage. Then there was some tomato, chilli and hot dog extract in the pan that i poured over the hotdog. And started having what could be the best breakfast ever. The tea was just great, no wonder it is my favorite drink at the moment. The wholesomeness that too in the borosil glass, with very minimal food, involving the basic smell of hot chilli, tomato and sausage untainted by the usual explosion of flavors of all kind that is found in the food here, the upbeat purely happy music by the once sad but now better bunch of people called new order. There was an excess of minimalism around. Once i had finished the food i found that there was some more tea left to wash off the taste. After the food all i was left with was a plate a pan and a tea pot and glass to cleanup. And a full stomach. Peace. Folks maybe i found it all too good because of the hunger but if so then starvation should be made an important part of cooking hehe.