bootstrapping

How to deploy a Python application with libraries as source with no further dependencies?

人走茶凉 提交于 2019-11-29 02:48:18
问题 Background : I have a small Python application that makes life for developers releasing software in our company a bit easier. I build an executable for Windows using py2exe. The application as well as the binary are checked into Subversion. Distribution happens by people just checking out the directory from SVN. The program has about 6 different Python library dependencies (e.g. ElementTree, Mako) The situation : Developers want to hack on the source of this tool and then run it without

A complete WiX 3.6 bundle example bootstrapping a .NET 4 Client Profile

谁说我不能喝 提交于 2019-11-29 01:48:56
问题 I tried to construct a working example of a WiX 3.6 installation script. We currently use WiX 3.5 and now we would like to begin installing the .NET 4 Client Profile framework as a pre-requisite for our MSI file that our product.wxs script creates. WiX 3.6 seems like the best way forward. Is there a functional example of how to do this with WiX 3.6? Here is our 3.5 script we use today: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util=

How to load kernel into memory from CD-ROM using Assembly (NASM)

陌路散爱 提交于 2019-11-29 00:37:49
I'm writing a bootstrap and kernel for myself and both bootstrap and kernel will be burn on a CD-R and will function as a CD-live. It is not a linux CD-Live or something else,is totally my own bootloader and kernel. I do not want to use other booloaders (i.e. GRUB) so please don't suggest me to use them. Here is my question: In my bootloader ASM code, I want to load my kernel and kernel entry into the RAM from CD-ROM (not from hard disk or floppy disk), and lets assume that we know where the kernel located exactly on the CD-ROM (sector number). As far as I know I have to use int 0x13, AH = 02h

How to intelligently install .NET 4.x using WiX Burn

大憨熊 提交于 2019-11-28 22:41:59
问题 When installing an application that can use either .NET 4.0 or 4.5, what is the best practice when installing the prerequisites .NET framework? And how do you implement it using Burn in WiX? These are the options and trade-offs that I am aware of: Option 1: Install .NET 4.0 (just what you need) Advantages: None known (except for Windows XP, where this is the only choice) Option 2: Install .NET 4.5 if .NET 4.5 is not present Advantages: User won't have to install .NET 4.5 later for future apps

How is the Java Bootstrap Classloader loaded? [duplicate]

别说谁变了你拦得住时间么 提交于 2019-11-28 20:57:42
问题 This question already has answers here : What loads the java system classloader? (4 answers) Closed 2 years ago . In java, it is said that all the classes are being loaded by classloaders. So first of all, bootstrap classloader loads all the rt.jar classes. So I am still confused as Classloader is also a class, so who will load this BootStrapClassloader. Kindly explain. 回答1: Answer : When a JVM starts up, a special chunk of machine code runs that loads the system classloader. This machine

How can a JVM be written in Java

自闭症网瘾萝莉.ら 提交于 2019-11-28 17:48:25
I was briefly reading about Maxine which is an open source JVM implementation that written in Java. This sounds circular to me. If java requires a virtual machine to run in, how can the virtual machine itself be written in Java (won't the VM code require a VM in which to run, and so on?). Edit : Ok, so I see I overlooked the fact that Java doesn't have to run in a VM. How then does one explain how a LISP compiler can be written in LISP? Or should this be a new question altogether? Ignacio Vazquez-Abrams Your assumption that Java requires a virtual machine is incorrect to begin with . You are

Recipe for compiling binutils & gcc together?

空扰寡人 提交于 2019-11-28 16:01:07
According the the gcc build instructions you can build binutils concurrently with building gcc (as well as gmp,mpc,etc). Here's what that page says : If you also intend to build binutils (either to upgrade an existing installation or for use in place of the corresponding tools of your OS), unpack the binutils distribution either in the same directory or a separate one. In the latter case, add symbolic links to any components of the binutils you intend to build alongside the compiler (bfd, binutils, gas, gprof, ld, opcodes, ...) to the directory containing the GCC sources. Likewise the GMP,

What is Erlang written in?

假如想象 提交于 2019-11-28 15:26:48
What is Ericsson's implementation of Erlang and Erlang/OTP written and compiled in? Is is assembly, C or Erlang itself? Update 1: Thanks to DrJokepu. If I understand correctly, Erlang source-to-VM compiler is written in Erlang itself. But the VM is written in C. Update 2: Hynek-Pichi-Vychodil pointed out a lot of details. VM and HW interacting drivers: in C. Compiler (to VM) and libraries: in Erlang. Extensions: Possible in any language by writing a port or an Erlang node in that language. Hynek -Pichi- Vychodil Erlang itself is written in Erlang. Sounds strange? Yes, because it is only

Configuring Automapper in Bootstrapper violates Open-Closed Principle?

喜欢而已 提交于 2019-11-28 15:19:45
I am configuring Automapper in the Bootstrapper and I call the Bootstrap() in the Application_Start() , and I've been told that this is wrong because I have to modify my Bootstrapper class each time I have to add a new mapping, so I am violating the Open-Closed Principle. How do you think, do I really violate this principle? public static class Bootstrapper { public static void BootStrap() { ModelBinders.Binders.DefaultBinder = new MyModelBinder(); InputBuilder.BootStrap(); ConfigureAutoMapper(); } public static void ConfigureAutoMapper() { Mapper.CreateMap<User, UserDisplay>() .ForMember(o =>

How does a language expand itself? [closed]

百般思念 提交于 2019-11-28 13:53:04
问题 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 5 years ago . I am learning C++ and I've just started learning about some of Qt's capabilities to code GUI programs. I asked myself the following question: How does C++, which previously had no syntax capable of asking the OS for a window or a way to communicate through networks (with APIs