Wednesday, 8 March 2017

calculating e value

Factorial Meaning, n! = 1×2×3×4…..(n-1)×n.

Factorial plusspluss n!++ = 1 x 2++ x 3++ x 4++ x … x (n-1)++ x n++;

1!++ = 1;
2!++ = 1 x 2++ = 3
3!++ = 3x 3++ = 9 + 1 = 10
4!++ = 10 x 4++ = 40 + 1 = 41
5!++ = 41 x 5++ = 205 + 1 = 206
6!++ = 206 x 6++ = 1236 + 1 = 1237

n!++ = (n-1)!++ x n + 1

note: add 1 to the product of a factorial except for 0 and 1;


e = 1 +  (n!++ /  n!);
We have n!  this needs to be redefined.

n! = 1 x 2 x 3 x 4 x 5 x ...  x n;

n!0 =  (((((((((( ((1 x 2) + 0) x 3) + 0) x 4) + 0) x 5) + 0) x 6) +
0) x n) + 0);

------------------------------------------------------------------------------------------------

all 0s are in a series like mi = m1 m2 ... mi

if we make this m sequence as {1,1,...,1}

then I name it as n!1

e = 1 + (n!1 / n!);
-------------------------------------------------------------------------------------------------

e^x =  1 + (n!x^n / n!);

mi =  x^0, x^1, x^2,  x^3, x^4,  ....,  x^n

I am trying to calculate e^i value.

--------------------------------------------------------------------------------------------------
note we may have to start from 2 or 3 for i some times depending on
the situation.









Friday, 20 January 2017

Wednesday, 30 November 2016

ELECTRICAL POWER SHOCK?

What is the remedy for inefficiency in energy sector?  Energy leakage due to long transmissions of power generation to power consumption points is the major reason for the higher cost.  So the power is generated at a cost of Rs.1/- or Rs.3/-.  Monopoly is the reason for most inefficiency and irresponsibilily in cost of production.  First it should be opened for free competition.  Any one should be given licensing to produce power and distribute if they can produce the power at lesser cost and distribute for lesser cost. Open market should be allowed to play its role in energy sector. Once POWER LICENSES are issued to Startup companies then the power cost per unit would come down.  The looting people concept would be reduced from the monopolists.  So  GOVERNMENT OF INDIA should open the licensing policy for anyone willing to generate power and distribute power less than the DISCOM power production cost would save lot of money for the Governemnt.

ALL UNIVERSISITES SHOULD BE ASKED TO DO RESEARCH IN GENERATION OF POWER WHO PRODUCED AT LOW COST WOULD BE GIVEN PERMISSION FOR THE LICENSE ISSUING FROM THE UNIVERSITY APPROVED LOW COST POWER POLICY.

NOW THE COST OF POWER PER UNIT by DISCOM   Rs.5.94   about Rs.6/- per unit

given LICENSES for any one who can generate & distribute power less than Rs.4.53  about Rs.4.50/- per unit.

Allow them to use OLD CURRENCY notes for paying power bills.


Thursday, 10 November 2016

GOVERNMENT DEPARTMENTS GENERATE UNREST IN PEOPLE

Every one blames the politicians for unrest in people.  But the root cause of all the problem in the Country is because Government Departments who do not respond for information or queries disassociating people from the Government.  The Departments respond only through middlemen who are becoming big leaders in the society.  Next what people get benefits from the Government when the approach is restricted. All these things are generating unrest in the society and creating a new class who fight against Administration for their benefits as a professional business. All this leading to disturbed areas in our Country. So when a big problem comes all POLITICAL PARTIES join together to visit the places of UNREST.  Government Departments should become responsive and people friendly rather middlemen friendly. This creates good atmosphere for GROWTH and DEVELOPMENT leading to FULL EMPLOYMENT more JOBS.

Wednesday, 9 November 2016

Hystrix

1. It works in a distributed environment when service dependancies fails occassionally.

2. a library that control interactions between distributed services.

3. This uses latency tolerance and fault tolerance logic.

4. Isolating points of access between the services.

5. stops cascading failures across the services.

6. It provides fall back options.

7. It improves sstem's overall resiliency.

8. Netflix API

9.  thread-isolated and semaphore-isolated calls are executed via Hystrix

10. improved uptime and resilience

Making Netflix API More Resilient
Fault Tolerance in a High Volume, Distributed System
Performance and Fault Tolerance for the Netflix API
Application Resilience in a Service-oriented Architecture
Application Resilience Engineering & Operations at Netflix


VC1 H264 H263 H265 for video
WMA Dolbydigital plus AAC(advances audio coding) OggVorbis : windows media audio for audio

adaptive bitrate streaming


adaptive bitrate streaming




reference
https://github.com/Netflix/Hystrix/wiki
https://github.com/Netflix/Hystrix/wiki/How-it-Works
https://github.com/Netflix/Hystrix/wiki/How-To-Use

http://techblog.netflix.com/2011/12/making-netflix-api-more-resilient.html
http://techblog.netflix.com/2012/02/fault-tolerance-in-high-volume.html
https://speakerdeck.com/benjchristensen/performance-and-fault-tolerance-for-the-netflix-api-august-2
012
http://radar.oreilly.com/2013/06/application-resilience-in-a-service-oriented-architecture.html
https://speakerdeck.com/benjchristensen/application-resilience-engineering-and-operations-at-netflix

https://en.wikipedia.org/wiki/Netflix
https://en.wikipedia.org/wiki/Technical_details_of_Netflix
https://github.com/Netflix/Hystrix/wiki

PRE-REQUISITES

1. threads
2. semaphores
3. SOA
4. JMS
5. TOMCAT

Friday, 28 October 2016

BUSINESS SOLUTIONS

Business meeting every week to solve all your financial problems: 1 hour

place: bathroom

weekly once apply gingelly oil (pure) to your body now what to do for 1 hour just chant namo naryanaya namaha for 1 hour, but mind wants to do some thing more, so you given the some thing more as your financial and business problems then for 1 hour you would chanting one side srimannarayana and the other side your brain solves your financial problems like dual core, after 1 hour your body gets cleansed with toxins through skin. Take good head bath using seekakaya podi/kumkudu kaya podi and chekka podi.  Use a natural soap if you get. see your progress in prosperity of your life.

macro programming

;;mocro programming standard

macroname       macro   par1,par2,par3,parn


                endm


bgnmac  name    par1,par2,par3,par4
dfltlbls        name_bgn,name_end,name_ov,name_strt
labels          name_a,name_b,name_c,name_d
variables       v1,v2,v3,v4
registers       bx,cx,dx,xi,ix,all
name_strt:


name_ov:
endmac  name

name   arg1,arg2,arg3,argn ;;      // macro calling
...............................................................................


macro name(par1,par2,par3,parn)
{

        exitm;


}

name(arg1,arg2,arg3,argn);;


...............................................................................
what is the advantage of new macro programming?

already macros are being used in every assembler and it is being implemented as #defines in c and an extension as templates in c++.  So the question raises in the minds of programmers what additioan l value is there using new macros.  A little.  That is flavoring c or pascal type of function appera nce. This gives a fealing of macros are similar to functions but not functions known to every one.



you can delcare labels but the names are a little standardised. This standardisation makes the
user to declare same variables in every macro, so it is ease of programming.

explain all the default macros

next we are going use standard labels for all the other controls also using a suffix and alphabet.

;;---------------------------------------------------------------------------------

What is the next major advantage in macro programming?

You can use all 4 types of commenting. Like ; // COMMENT /*  */ compatible with legacy

what is the 3rd advatange of usng new macro programming?

You can extend the instruction set of the CPU with macros as pseudo instructions. You can group a few instructions as a single instruction that gives meaningful pseudo instruction. For example you want to push all ?x registers then you can create pushx instruction that do the job of pushing 3 variables that names like bx,cx,dx.  So a new instruction that is equally meaningful as if it is implemented in the CPU.  This is one type of instruction set extention.

There is another way of extending the instructions set by creating variable dependant instructions rather register dependant instructions.  Take an example of loop that works with a cx register. But many times in the programming we need to depend concurrently multiple level looping here we can't use the same cx register or we need to swap the values of the variable into the cx and use this loop instruction.  But it is very discomfort for the programming and finallyit is dependng on a variable instead a register.  So we can create a new instruction like loopvcntr means loop variable counter so we pass a variable as an operand to the loopvcntr additionally to handle this looping. There is a great advantage of using this type of variable dependant instruction set.

Using this type of pseudo instructions we can we increase the power of CPU and the capability of the CPU from the programming perspective.  It reduces the programming instrtuctions to use for doing a task.

What is the over all advantage of using new macro progrmaming?

The instruction set available on the Hard ware of a CPU is n we can make it mn instruction set. Just it is not increasing the number of macros to support pseudo instructions, we are able to generate the instructions while using them with good naming convention like push pushx pushi these instructions are easy to memorise and use. That is very much important in extending instructions, otherwise it would be a big overhead on thedeveloper to learn more instructions, the developer should generate or extend instructions what are available and not learn to use. No learning overhead should be there in new macros.

Extending instruction set of the existing chip. Second extending instruction set to work variables rather with registers.  Some of the instruction set works with a register or depend on a register value, but here we can create new instructions that canwork using a variable as register. Take a simple example of using a loop it depends on cx register but we can make a new instruction loopvcntr loop vcntr means loop variable counter using a variable as a parameter to this instruction. We can design pseduo instructions that are more helpful for comprehensive and legible instruction set.

Only thisfeature enhances your CPU power with more instructions which will use more number of cycles but they do your job with the same CPU.  Final advantage is increasing the power of CPU is done using pseudo instructions.

The fifth advantage of new macro programming?

Extending the macro facilities using a preprocessor to allow expressions.

 ax = datavar;

datavar = bx;

ax = (bx * cx - dx);

This feature is not a new feature but available in some companies but not being used widely by the developers.
;;----------------------------------------------------------------------------------------------------------------------