Visual Code Where art of design and programing become one

11Feb/110

Telerik and select data from grid problem.

found problem with Telerik get_cell and IE.

for the client side script recomend use :

eventArgs.get_gridDataItem().get_cell("CellName").textContent;

it's work ok with firefox, however to make it work crossbrowsers need use this way:

eventArgs.get_gridDataItem().get_cell("CellName").innerHTML;

Filed under: c# No Comments
3Feb/110

Make cell react

Lets say Cell (A) connected with three other cells (B,C,D), for A to produce maximum output signal it need to receive strong signals from B, C and D in period time before it's time out.If receiving signals to strong it may open maximum signal gate on A before all 3 surround cells send .

loop till ( inSignal > dSignal){

 inSignal = inSignal - timeLosses;

if (inSignal >gateLevel){

  sendOutputSignal();

 inSignal = reset;

 ExitLoop;

}

}

inSignal value need to be updated in parallel with loop, loop initiated by receiving any valid input. This way from the cell cluster correct sequence will depend on time of reaction.

Filed under: logic No Comments
26Jan/110

Repeating music…

Repeating music... Sometimes you may have some musical toon stuck in your head, you try to do anything it's possible to forget, but no, it's still be there. Previous i created small diagram where signal may bounced in memory by matching parent and it may loop. Now it's stuck in loop. Depend on your memory structure different toon may effect with not same result. It'vary on people, places and other combinations.

Each time cell respond to signal it's need create more elements that will respond to next, the more they respond more elements created, the stronger respond will be. Cell also will be rewarded if respond was correct. This way correct combination will become stronger in return signal with more repetition and positive result. Intelligent guess algorithm.

Now what if for one or other reason responding sequence is looping inside, it is become stronger and stronger, resonance from it's own request and reward.  That music toon stuck in your head... Exit ,try other rewarding activity (take your mind away).

Filed under: logic No Comments
24Jan/110

Imagination and memory.

Imagination and memory. If we take reconstructive memory as base , we can look at why kids have better imagination. Lets say you receive request for A,B and C combination, now in matching return you will get on A  - 4 responds with 75,70,40 and 30% range, B only one respond with 10% and C two with 50% and 10%. Normally respond B will be to low and ignored but if it's only one return, it will be accepted. Let ask kids how would you fly, if experience of flying only based on seen balloon raising in air, it would return as best matching, in time experience will add better matching memories, and they will replace. It  does not mean people with more experience won't get flying on balloons as answer, it just won't be prioritized answer. With increasing amount of experience , amount of answers will increase, that will be very close in value. This will increase time to prioritise them. Older people does not think longer, they just need more time to set priority on received memory. By setting limitation or unusual situations for request (question) you may increase unusual answers or boost up your creativity.

Filed under: logic No Comments
21Jan/110

When does Improvement become Invention?

In world of billions people you scream does not help any more to been heard. You need to get a lot of fireworks before some one noticeyou. Annonce that you are the one who invented something new may get attention. Recently i notice that some people attentional or not take knowledge that was available before, tweak slightly and present as there invention. Screaming with fireworks - Look I am Genius! At what point honestly you can do that? Does paint door knob with different color make it new invention?

http://en.wikipedia.org/wiki/Invention

20Jan/110

Reconstructive memory, messy thoughts…

Part of human creativity is reconstructive memory. We do not remember every thing, at most we can recall only few segments of any memory, rest is logic or emotion based reconstructive memory. Memory that put together from other memory segments, in case look on lots of puzzle pieces and see which match best for that memory string. This is main reason that human memory not accurate and very subjective, but for exactly same reason we have process of creativity, that allow us create new combinations from what we had experience. Let set up primitive model for that.

instead using liner matching, we send matching sequence parallel to all . Cell that hold closets matching sequence will respond with highest signal output. That will set priority in sequence output. As respond will take 3,1,2,4. Now lets add dimension between cells, so when cell receive 100% or very close matching sequence it will produce output signal that contain it's own sequence, that may trigger next.

For center cell to respond 100% it's need receive matching sequences from all surround cells. Receiving just one can produce 25% signal matching, with receiving each additional it will increase it's own output signal.

Now adding multiple connections and changing output sequence.

Even this combination will create double activation on sequence, it's still produce correct output, based on string of the signal. Or it may alter sequence with closes match. ABC, DEF,SQW,QQB,GCE, QQB ... Sequence reader give priority to the strongest signal. Cell reaction Can be accumulative:

Center cell will produce signal that will be accepted only when all surround cells activated. Missing sequence can be produce by cells that not even close related to final cell.

Well it is hard to get out of head. Now start creating algorithm, that allow using smaller matching pieces to create bigger puzzle with intelligent guessing, what will came with what.

Filed under: logic No Comments
15Jan/110

Constructive criticism

Constructive criticism, how would you approach. IF some one spend a lot of time and very proud of there art work. But when you look at that, you see some way to improve it. Technically it's done well, but problem with composition, lighting, atmosphere, material distributions ...etc. Few things need to be change to become master piece. Person probably will be offended if you tell him, that sorry but your work : 5 out of 5 in technical approach, but 2 out of 5 in composition and 3 out of 5 in other details... Let it go?

Filed under: art No Comments
11Jan/110

Design to win.

Designing artwork for competition. When create any art work it's two ways you may approach, one from inspiration, other from logic. Creating art work for competition based on inspiration have chance to be the best, but it have higher chance to fail. Due to very subjective approach to expressing yourself. Designing your work for competition will give you high chance to win, but almost none to be the best. As test I was created work for competitions based on some rules (designing), almost every time I got in top finalists, once even got grand prize.

Design was based on Rules, Judges profile (if possible), there country origin, produced work. Judges is your main public at this approach, they are who making subjective selection. Every competition have advertising subtext, designing your work to highlight points of the sponsors (in most my cases specific application ) will add extra points. Find what make that application stand out and show in your work. Originof judges is important so setup layout and flow in your work.  set your idea, create layout, fill with details. Use basic rules, no experiments at that point. Save palette combination.

Create from insparation ... anything can go here... just keep to competition rules as close you can.

Filed under: art, logic No Comments
11Jan/110

Primal advertising

As living creature first emotion that developed was fear, second sex (reproduction). Most advertisement in existence right now based on this two ideas. It is easy to create one and it's guarantee to get attention.

Filed under: advertising No Comments
11Jan/110

Intelligent guessing

In early 90's I work with idea of intelligent guessing. It's come up from point that in real life we never give absolute 1 or 0 answer, it's always involve little bit guessing and even small chance to say "no" when it's should be definitely "yes".

Converting  to programing code was easy. And when single node was producing random effect, combining those node in to cluster was producing very defined result, even input was not clear in many cases. As example :"Do you want Ice cream?"  can produce very accurate answer.

Node is very simple  in generic programming syntaxes: Answer = Random (MinOutput, MaxOutput)  , where MinOutput and MaximumOutput was effected by Answer.  Let say gate set at 0 so if Min = -1 and Max = 1, that Answer have 50% to be more then 0 and 50% less then 0. Based on previous answer if it was successful positive, we modifying (rewarding) system by moving MinOutput closer to 0, and moving MaxOutput as well. adjustment parameters set lower for positive and higher for negative.

b=0; c=10; a=Rnd(b,c) ; a can be any thing from 0-10; if result was 6 and this was answer that was correct answer then we increment b by 1, Maximum value of B never exceed "c" and can not be equal. We will set gate at middle of result, in time system will average with "c".

Also when answer do not satisfied us, we will decrease "b" to 2 points till t reach original value 0, and after start decreasing "c" by 1 point.

Gate = (c-b)/2+b;

Each node can be interconnect with other nodes.

I did implement this idea in few programming project, one of them ordering system, that after little time of collecting data and adjusting it self, was giving very accurate ordering suggestions.

Filed under: logic No Comments