@angular/platform-browser vs. @angular/platform-browser-dynamic

The difference between platform-browser-dynamic and platform-browser is the way your Angular app will be compiled. Using the dynamic platform makes Angular send the just-in-time compiler to the front-end along with your application. Which means your application is being compiled client-side. On the other hand, using platform-browser leads to an ahead-of-time pre-compiled version of your application … Read more

What is meant by Bootstrapping in angular JS?

Bootstrapping is the equivalent of initializing, or starting, your Angular app. There are 2 main ways to do so. The first is automatically bootstrapping by adding ng-app to the an element in your HTML, like so: <html ng-app=”myApp”> … </html> The second would be to bootstrap from the JavaScript, like so, after having creating your … Read more

What is Erlang written in?

Erlang itself is written in Erlang. Sounds strange? Yes, because it is only partially true. OK look at it in more detail: Erlang preprocessor is written in Erlang. Erlang parser is written in Erlang. Erlang compiler to BEAM (byte-code VM) is written in Erlang. Erlang compiler to HiPE (native VM extension) is written in Erlang. … Read more

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

First things first. Read, read, read, read, read. You need to have a firm understanding of how the OS works before you can hope to implement your own. Grab one of Andrew Tanenbaum’s books on operating systems. This is the one we used in my OS class in college: Modern Operating Systems PDF Modern Operating … Read more

Is the buildSessionFactory() Configuration method deprecated in Hibernate?

Yes it is deprecated. Replace your SessionFactory with the following: In Hibernate 4.0, 4.1, 4.2 private static SessionFactory sessionFactory; private static ServiceRegistry serviceRegistry; public static SessionFactory createSessionFactory() { Configuration configuration = new Configuration(); configuration.configure(); ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings( configuration.getProperties()). buildServiceRegistry(); sessionFactory = configuration.buildSessionFactory(serviceRegistry); return sessionFactory; } UPDATE: In Hibernate 4.3 ServiceRegistryBuilder is deprecated. Use … Read more

What is bootstrapping?

“Bootstrapping” comes from the term “pulling yourself up by your own bootstraps.” That much you can get from Wikipedia. In computing, a bootstrap loader is the first piece of code that runs when a machine starts, and is responsible for loading the rest of the operating system. In modern computers it’s stored in ROM, but … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)