1.every medium of entertainment is a mix of talent and business
2.what is talent, its a blend of technique accrued over a time by minisicule advances and desire to push oneself
3.what is popularity, a mixture of timing(luck), right associations(politics), talent (as above) and again desire to push oneself
4.popularity is also a result of layman's inability to understand the reason behind it, the ingredients of success
5.Once someone understands it , the perception changes.Rather than considering the popularity as just blind admiration , it becomes a respect for someone who figured out or got the right mixture.
6.so can talents be cultivated yes because if something can happen once it can happen twice also
7.for this to happen knowledge of the process should sink deep into the community, rather than viewing everything in awe, people should look at themselves and the process and prepare a timebased plan.
8.what is failure, it is the reason of not understanding the process completely.hence when that understanding is made things will be on track
9.if still progress cannot be made, the environment is also a factor.
10.a high talent in a particular field at the time of recession will do no good
11.the best way to progress is to follow a path of collective progress
12.discussing,helping without hidden agenda but with open agenda can create positive vibes
13.Knowledge that everything that has evolved big has a smaller version to it
14.try to figure out how to setup this smaller version and then make a steady incremental progress
15.focuss doesnt mean 24x7 working on the thing,but the will to work on it consistantly
16.its 100% true that in sw, if 1 person can do a job in 10 days, 10 equally knowledgeble guys can make it happen in one day,proper planning and assesment needed
17.practically, people who takes risks can only realise their dreams(risk mostly means money)
18.people who can motivate can only realise their dreams(motivation means money)
19.people who can clearly show their vision to others can realise their dreams
20.if this process can rise standard of living for a community(every type of member) it will be acceptable
21.faltering can happen if living situations doesnt improve over a period of time and comparisons come into picture
if two persons put varying amount of money in getting the same goal high probability in getting by high spender to goal first, may not be sustainable
Friday, December 3, 2010
windows security
1.Any process(hence thread) running in windows is under a "logon session","user account" or
"group account"
2.lets talk about a client application and a server service in windows
the above applies to client
3.for server service, when this service application is written, the programmer can specify
security details of all obects it creates and accesses.for he can associate a security info with a directory he creates and another he acceses.before accessing a directory he can also impersonate before the access
4.the service application will have a data structure called DACL,SACL in which he stores the information of all objects
5.client also have access to SID that represent accounts
6.while doing remote access, first a logon session is established, this inturn will give client attributes to each access done by that session.
"group account"
2.lets talk about a client application and a server service in windows
the above applies to client
3.for server service, when this service application is written, the programmer can specify
security details of all obects it creates and accesses.for he can associate a security info with a directory he creates and another he acceses.before accessing a directory he can also impersonate before the access
4.the service application will have a data structure called DACL,SACL in which he stores the information of all objects
5.client also have access to SID that represent accounts
6.while doing remote access, first a logon session is established, this inturn will give client attributes to each access done by that session.
Wednesday, December 1, 2010
oop and binary modules - 1
1. use case - a class implemented in static library
use case - a class implemented in shared library
2. when a eclient uses this , it will first instantiate the class directly, or derive a class
from the above and then instantiate, or it will derive a class and store it in static/dyn lib
3. there is a module boundry between static and dynamic library
4. internal symbol infos are stored per module.c++ name mangling is global per string.same compiler
will give same mangle for the same string across
5. when a class is stored in static or dyn, its mangled symbol info is stored in a stub inside the module
6.when a client uses this class, step one is loading the binary into its space, second resolving names.A memory block is created for the object, then it needs to patch up the function references
in the memory object.for that it consults the stub and fills its load addresses into function table.it means object memory can be global among the loaded address space.though the main class
and subclass implementations belong to different modules, the global unique object of base class
and subclass will contain references to method addresses in differnt modules.
it also implies that the data is stored in global store.global means the process space.
if RTTI is enabled it can identify any objects type in process space.
client(binary) uses class 1
class1(static) class2 der class1(dyn) class3(dyn)
here when client instantiates class1, it has to load class 2 module and its methods will
be resolved auto.the class1 obect will have its base class method in static lib and
derived class methods in dll
when access to virtual method of class 1 is done it will call into either staic module or dll
class 1 gives a uniform interface to methods behind it.client doesnt know whether the implementation is in staic or dynamic lib.
if at the time of instantiation, class 1 could specify from where the dll is loaded then
clients main code becomes decoupled from the static and dynamic
so it becomes
class A-1 classA-2 ..... (binaries)
=================================================
client object selection (selects based on string) (different binaries)
client main logic(will not change ever)
4.if base class is a binary dyn,derived is also binary dyn can it happen
yes if the client loads the base class and derived class into its space before using them
at lazy binding.the created object will resolve to dyn1 for base class and dyn2 for derived class
5.At compilation time there can be a problem, there will not be base class addresses available when compiling derived binaries.how will compiler provide support for this
same applies to client, at compile time client doesnt have symbol access to base and derived
6.a game app can be viewed as
module layers ... all dlls are present in this layer,they may be base classes or derived classes
base and derived can be in separate dlls
client layer interface - a layer that loads members of module layer
client logic - a layer that makes use of base type object to do all the complicated work,here
its assumed that all the classes in thae module layer is somehow derived from base type obect
module layers are separate binaries,client lay intf can be separate binaries,client logic can be separate binaries
7.what if 2 dlls contain same function same prototype ,both expost this function.a client loads the dll and tries to import the function.will compiler give warning or its runtime
use case - a class implemented in shared library
2. when a eclient uses this , it will first instantiate the class directly, or derive a class
from the above and then instantiate, or it will derive a class and store it in static/dyn lib
3. there is a module boundry between static and dynamic library
4. internal symbol infos are stored per module.c++ name mangling is global per string.same compiler
will give same mangle for the same string across
5. when a class is stored in static or dyn, its mangled symbol info is stored in a stub inside the module
6.when a client uses this class, step one is loading the binary into its space, second resolving names.A memory block is created for the object, then it needs to patch up the function references
in the memory object.for that it consults the stub and fills its load addresses into function table.it means object memory can be global among the loaded address space.though the main class
and subclass implementations belong to different modules, the global unique object of base class
and subclass will contain references to method addresses in differnt modules.
it also implies that the data is stored in global store.global means the process space.
if RTTI is enabled it can identify any objects type in process space.
client(binary) uses class 1
class1(static) class2 der class1(dyn) class3(dyn)
here when client instantiates class1, it has to load class 2 module and its methods will
be resolved auto.the class1 obect will have its base class method in static lib and
derived class methods in dll
when access to virtual method of class 1 is done it will call into either staic module or dll
class 1 gives a uniform interface to methods behind it.client doesnt know whether the implementation is in staic or dynamic lib.
if at the time of instantiation, class 1 could specify from where the dll is loaded then
clients main code becomes decoupled from the static and dynamic
so it becomes
class A-1 classA-2 ..... (binaries)
=================================================
client object selection (selects based on string) (different binaries)
client main logic(will not change ever)
4.if base class is a binary dyn,derived is also binary dyn can it happen
yes if the client loads the base class and derived class into its space before using them
at lazy binding.the created object will resolve to dyn1 for base class and dyn2 for derived class
5.At compilation time there can be a problem, there will not be base class addresses available when compiling derived binaries.how will compiler provide support for this
same applies to client, at compile time client doesnt have symbol access to base and derived
6.a game app can be viewed as
module layers ... all dlls are present in this layer,they may be base classes or derived classes
base and derived can be in separate dlls
client layer interface - a layer that loads members of module layer
client logic - a layer that makes use of base type object to do all the complicated work,here
its assumed that all the classes in thae module layer is somehow derived from base type obect
module layers are separate binaries,client lay intf can be separate binaries,client logic can be separate binaries
7.what if 2 dlls contain same function same prototype ,both expost this function.a client loads the dll and tries to import the function.will compiler give warning or its runtime
oop and binary modules
1.how can interfaces be registered with the operating system
a binary module implements the generic interface,and adds its basic info into registry/config file
system wide parser reads the registry/config file and locates the binary and calls the exported
interface.based on the response its loaded.once its loaded other interfaces can be registered from it
2.can 2 binaries , upper and lower extend dynamically
ie suppose lower is not loaded we get the functionality of only upper,once lower is loaded
it shadows the functionality in upper
requirement, the upper should have exported functions,an object of lower should have exported functions that a third entity can access
a third entity should control the master interface of upper and lower,it needs to keep track of where upper is loaded and where lower is loaded
the third entity should be able to access v table of lower that it can write to
3.the system has 2 dlls that implement addition in 2 different ways
the 2 dlls have same interface
whenever a client instantiates a type of that interface,what we need is that
the objects method pointers should be mapped to dll1 or dll2
4.http://stackoverflow.com/questions/1114115/undefined-symbol-error-for-base-class-in-c-shared-library
5.good pluging tutorial http://willperone.net/Code/codedll.php
a binary module implements the generic interface,and adds its basic info into registry/config file
system wide parser reads the registry/config file and locates the binary and calls the exported
interface.based on the response its loaded.once its loaded other interfaces can be registered from it
2.can 2 binaries , upper and lower extend dynamically
ie suppose lower is not loaded we get the functionality of only upper,once lower is loaded
it shadows the functionality in upper
requirement, the upper should have exported functions,an object of lower should have exported functions that a third entity can access
a third entity should control the master interface of upper and lower,it needs to keep track of where upper is loaded and where lower is loaded
the third entity should be able to access v table of lower that it can write to
3.the system has 2 dlls that implement addition in 2 different ways
the 2 dlls have same interface
whenever a client instantiates a type of that interface,what we need is that
the objects method pointers should be mapped to dll1 or dll2
4.http://stackoverflow.com/questions/1114115/undefined-symbol-error-for-base-class-in-c-shared-library
5.good pluging tutorial http://willperone.net/Code/codedll.php
Tuesday, November 30, 2010
work sketches
1.a diagramatic representation of activities for next 1 hr with goal
the diagram should have each component numbered
2.placeholder programming,abstract progra..
when the idea is not concrete building a framework
it would involve functions and statics and visitors
a use case is when rearranging an existing code anticipating changes to incorporate
in next version.the existing code is supposed to fit in the current framework
3.refactoring code may be crude,rigid
issues, if layered code then
will have to shift one function from one layer to anoter,this means moving all dependendent functions in other layer.
this will break layer opaqueness, lower layer becomes visible in upper.
mostly happens when loop nuller(progressers) one is in top layer antother is in bottom
4.another way for a quick solution to above problem is ,
reduntant state and data structures, it will mirror the state in either layers and hence
can be used explicitly in a layer
sometimes to get a quick work around, we may have to shift processing of 1 layer to another
this would involve movement of 1 .c file and only implementing guest layer functions in it
the diagram should have each component numbered
2.placeholder programming,abstract progra..
when the idea is not concrete building a framework
it would involve functions and statics and visitors
a use case is when rearranging an existing code anticipating changes to incorporate
in next version.the existing code is supposed to fit in the current framework
3.refactoring code may be crude,rigid
issues, if layered code then
will have to shift one function from one layer to anoter,this means moving all dependendent functions in other layer.
this will break layer opaqueness, lower layer becomes visible in upper.
mostly happens when loop nuller(progressers) one is in top layer antother is in bottom
4.another way for a quick solution to above problem is ,
reduntant state and data structures, it will mirror the state in either layers and hence
can be used explicitly in a layer
sometimes to get a quick work around, we may have to shift processing of 1 layer to another
this would involve movement of 1 .c file and only implementing guest layer functions in it
Monday, November 29, 2010
insight:
1.adaptive hardware
with powerful web os's, it should be possible to create wearable ose's.
ie at command the working os should upload to web and download to device.
the os has to be sleek,rootfs independent of kernel
powerful boot time http support
overlay http task between boot and normal running.
call it amoeba
the hardware has to act like a mobo at one time , and as a modem,disk,display at other
2.solar robots
flying solar accessor
according to suns movement this bot is supposed to turn or fly
it should carry an adapter with it to store charges
if packet power is present same technology can be used to provide it as a accesspoint with maximum efficiency
3.
with powerful web os's, it should be possible to create wearable ose's.
ie at command the working os should upload to web and download to device.
the os has to be sleek,rootfs independent of kernel
powerful boot time http support
overlay http task between boot and normal running.
call it amoeba
the hardware has to act like a mobo at one time , and as a modem,disk,display at other
2.solar robots
flying solar accessor
according to suns movement this bot is supposed to turn or fly
it should carry an adapter with it to store charges
if packet power is present same technology can be used to provide it as a accesspoint with maximum efficiency
3.
kernel module
1. local dir> on ubuntu make -C kdir M=$(pwd) ... works
local dir> on ubuntu make -C kdir M=$(pwd) modules puts in standard directory
...M=$(shell pwd) .. doesnt work
---M=$(PWD) ... may work
all the above in makefile
kdir is separate
local dir> on ubuntu make -C kdir M=$(pwd) modules puts in standard directory
...M=$(shell pwd) .. doesnt work
---M=$(PWD) ... may work
all the above in makefile
kdir is separate
Subscribe to:
Posts (Atom)