bootstrapping

How can I build a small operating system on an old desktop computer? [closed]

江枫思渺然 提交于 2019-12-04 07:17:42
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . This might be in vain, as I know writing an operating system is unbearably complicated (especially by oneself). I don't expect to build the next linux, or windows. I know it will be horrible, and buggy, and won't work, but that's fine. I want to write everything myself, in

Understanding step wise manual bootstrapping of angularJS

≡放荡痞女 提交于 2019-12-04 00:36:58
I was going through the basics of angularJS about how it is manually bootstrapped. I came across different approach and found this approach to be best fitted. angular.element(document).ready(function(){ angular.bootstrap(document,['myapp']) }) Moving further, I came across this another way which breaks it to basics . I have commented the code as per my understanding but can someone please explain to me in more details about how things are working under the hood. window.onload = function (){ var $rootElement = angular.element(window.document); var modules = [ 'ng', // angular module 'myApp', //

What is a kernel, bootloader?

馋奶兔 提交于 2019-12-03 20:56:14
i need to know about boot loader and kernel in deep from its basic. i search the google and got a lot of links... but i need to find the good ones. if you pals have any docs or video or htmls share with me..... thanks in advance Kernel is the core code component of the operating system. It is used to interact with the hardware and provides an interface for application software. Read wikipedia here for detailed info. Details vary from platform to platform, but in general the following steps represent the boot process. When the computer starts, the BIOS performs Power-On-Self-Test (POST) and

How to perform low-level IO with a USB flash drive under the BIOS (compared to a floppy)?

一曲冷凌霜 提交于 2019-12-03 15:25:43
I have recently been studying some bootstrap code which was intended for use with a floppy drive. My goal is to modify the program so that it uses my USB flash drive. Now I see how the INT 13H function has been used with the floppy device, but I guess my question is, how will communicating with the USB drive differ? For example, here is a snippet of the floppy code (GNU assembler): movb $0x00,%dl /* select 1st floppy */ /* later */ movw sec,%cx /* get sector number */ movw head,%dx /* get head number */ movw $0x0201,%ax /* read 1 sector */ int $0x13 Now I have read that moving 0x80 into %dl

How to write on hard disk with bios interrupt 13h

烈酒焚心 提交于 2019-12-03 09:12:39
I want to copy my boot loader to first sector(512) of hard disk within itself (I should use bios interrupt 13h) and I found this code: mov bx, buffer1 ; set BX to the address (not the value) of BlahBlah mov ah,03h ;When ah=, int13 reads a disk sector mov al,5 ;Al is how many sectors to read mov cl,0 ;Sector Id mov dh,0 ;Head mov dl,80h ;Drive (0 is floppy) mov cx,512 ;One sector /2 mov ah, 0x3 ; set function 2h int 0x13 bu it does not work! Daniel Kamil Kozar Your code is very messy. In order to properly use int 13h with AH = 3 , you need to also set ES (the segment in which BX resides, e.g.

Bootstrap Confidence Intervals in R

吃可爱长大的小学妹 提交于 2019-12-03 08:34:17
I am a new R user, and am having trouble using the boot package. All I want to do is use bootstrapping to produce confidence intervals around a mean for a vector of numbers, such as: x <- rnorm(100, 1, .5) Any tips? Doesn't the following suffice? library(boot) x <- rnorm(100, 1, .5) b <- boot(x, function(u,i) mean(u[i]), R = 999) boot.ci(b, type = c("norm", "basic", "perc")) 来源: https://stackoverflow.com/questions/9304582/bootstrap-confidence-intervals-in-r

Injecting AutoMapper dependencies using Ninject

左心房为你撑大大i 提交于 2019-12-03 07:08:43
I am having trouble injecting AutoMapper into an ASP.NET MVC 2 application using Ninject. I used Jimmy Bogard's post on AutoMapper and StructureMap type Configuration as a guide. public class AutoMapperModule : NinjectModule { public override void Load() { Bind<ITypeMapFactory>().To<TypeMapFactory>(); Bind<Configuration>().ToSelf().InSingletonScope().WithConstructorArgument("mapper", MapperRegistry.AllMappers); Bind<IConfiguration>().To<Configuration>(); Bind<IConfigurationProvider>().To<Configuration>(); Bind<IMappingEngine>().To<MappingEngine>(); } } Ninject throws an exception when

PHP Bootstrapping Basics

痞子三分冷 提交于 2019-12-03 06:57:45
问题 I'm writing my first PHP app. Everyone talks about having a bootstrap.php to initialize your app. This makes sense and I've put together one that I'm happy with. There's two things I don't understand, and which no one seems to mention: Where do I call my boostrap from? Do I include it in every page? Please tell me there's a better way... How do I make it so my bootstrap is not called more often than needed? I assume it only needs to be called either at the start of the app or the start of a

Why 55 AA is used as the boot signature on IBM PCs? [closed]

此生再无相见时 提交于 2019-12-03 06:56:42
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Why does the IBM PC architecture use 55 AA magic numbers in the last two bytes of a bootsector for the boot signature ? I suspect that has something to do with the bit patterns they are: 01010101 10101010 , but don't know what. My guesses are that: BIOS is making some bitwise and/or/xor operations on these bytes to compare them together and if it, for example, results in 0, it can easily detect that and jump somewhere.

How can a language's compiler be written in that language? [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-03 05:47:23
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: implementing a compiler in “itself” Bootstrapping a language How can you write a compiler in the same language as the language you're writing that compiler for? Isn't that sort of recursive? Edit : This may be deleted, but otherwise... : How to bootstrap: Writing a compiler in its own language Bootstrapping a language Why to bootstrap: Bootstrapping a compiler: why? 回答1: Generally the first version of the