Posts

Angular JS and HTTP jason data request

Angular JS and HTTP jason data request <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <script type="text/javascript" scr="jscript.js> </script> <body> <div> <h1>Testing Angular JS </h1> <div> <div ng-app="My APP" ng-controller="Planet Controller"> <table>  <tr> <td>Planet Name</td> <td>Planet distance</td> </tr> <tr> <tr ng-repeat="x in names"> <td>{{x.names}}</td> <td>{{x.distance}}</td> </tr> </table> <div> </body> </html> var app=angular.module('myApp',[]); app.controller('planetController,function($scope,$http)) { $http.get("http://www.bogotobogo.com/AngularJs/Files/httpRequest/planet.jason").success.function(response) { $scope.names=respo...
.NET Concepts  (Thanks http://www.indiabix.com/technical/dotnet/dot-net-framework/4) . Differentiate between managed and unmanaged code? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Managed code is the code that is executed directly by the CLR instead of the operating system. The code compiler first compiles the managed code to intermediate language (IL) code, also called as MSIL code. This code doesn't depend on machine configurations and can be executed on different machines. Unmanaged code is the code that is executed directly by the operating system outside the CLR environment. It is directly compiled to native machine code which depends on the machine configuration. In the managed code, since the execution of the code is governed by CLR, the runtime provides different services, such as gar...
Destructor or Finalize --- Whats the confusion?? C# really doesn't have a "true" destructor. The syntax resembles a C++ destructor, but it really is a finalizer. You wrote it correctly in the first part of your example: ~ClassName() { } The above is syntactic sugar for a Finalize function. It ensures that the finalizers in the base are guaranteed to run, but is otherwise identical to overriding the Finalize function. This means that when you write the destructor syntax, you're really writing the finalizer. According to Microsoft, the finalizer refers to the function that the garbage collector calls when it collects ("Finalize"), while the destructor is your bit of code that executes as a result (the syntactic sugar that becomes "Finalize"). They are so close to being the same thing that Microsoft should have never made the distinction. Microsoft's use of the C++'s "destructor" term is misleading, because in C++ it is executed ...
21147 C# ---Understanding Implementing IClonable for Deep Copies ------------------------------------------------------------------------------------- Lets say we have a class Person which refers to another class called Address . Person class contains the reference to Address class.The below is an example of implementing IClonable into classes Person and Address so that one can use clone method to us the deep copy public class Person : IClonable {     public string LastName { get; set};     public string FirstName { get ; set};     public Address personAddress {get ; set}     public object clone()     {          Person newperson=(Person)this.MemberwiseClone();         newperson.personAddress=(Address).this.personAddress.Clone();         return newperson;     } }     public class Addre...
Image
21147 C# ---Understanding Managed Heap ----------------------------------------------------------------------------------------- The managed Heap is an area in virtual memory that is available for your program, that Common Language Runtime     uses for storing instances of reference type objects that are created . The original object is stored in the Managed Heap and the reference is stored in the stack. The Garbagge collector is the component of CLR that is responsible for allocating memory on the heap for the object created and also for releasing that memory when the referece no longer exists in the stack.There is a process called compaction that happens once the memory is freed and the heap is then arranged as a continuous chunk. Static Data and Constants are stored on the Heap ----------------------------------------------------------------------------------------- Static Data and constants are stored on a specific section of the Heap which is not Garbagge Collected...

Checking Space in Linux System and Package Sizes

Checking Space in Linux System and Package Sizes 1) dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n 2) sudo apt-get install wajig     wajig large 3) du --max-depth=1 /home/apotheosis | sort -n -r Removing Package for Linux system 1) du --max-depth=1 /home/apotheosis | sort -n -r

Media query in CSS

Media query in CSS For responsive web designing, 1) Media Type      All,Print,Screen,Speech ,Braille,Embossed,handheld,Projection,TTY,TV      The one which are highlighted /marked bold are mostly used. 2) Media Features      Height/Width,Device-Width/Device-Height,Orientation,Aspect-ration, Device-aspect-ratio     Color,color-index,Monochrome,Resolution,Scan,Grid,     The highlighted ones are most used 3) Logical Operators     AND ,OR,NOT – These are logical operators that are mostly used. Example Queries @media(min-width:500px){...} Page width>500px @media(min-width:700px)and(max-width:960px){...} 700px<Page width<960px @media screen and not(device-aspect-ratio:4/3){...} Device aspect ratio is not 4:3 @media screen and (device-aspect-ratio:16/9),scree and(device-aspect-ratio:16/10){...} Device aspect ratio is 16/9 or 16/10 CSS importing ...