Skip to main content

Posts

Attempting to execute an operation on a closed EntityManagerFactory.

Just a simple JPA call .. entityManager.find(Product.class, product.getId()); .. ended with a IllegalStateException. I used Glassfish / Payara as application server. Just restarting the server / domain fixed my issue.
Recent posts

How to run Laravel and Angular app on the same development host?

I had to build a quick demo using Angular . I decided to use Laravel as back end for my app. Setup Setup went easy. I used  angular2-seed for Angular. Cloned it using git. $ git clone https://github.com/angular/angular2-seed.git my-demo-app-gui With command "npm start" after "npm install" in the "my-demo-app-gui" folder I got my angular application running locally - http://localhost:3000. To create a new Laravel project I used following command line command: "laravel new my-demo-app-web" to create PHP server side for my project. In folder I just created, I executed following command: "php -S localhost:8000 -t public" to start local back end server -  http://localhost:8000. So far everything went smoothly. So I started build something amazing, like script of Laravel is suggesting before it is finishing its job. Since the goal for me was to build a web application that will get its data from the back end of the same hos

mongodb

Installed mongo using brew. To have launchd start mongodb at login:     ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents Then to load mongodb now:     launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist Or, if you don't want/need launchctl, you can just run:     mongod --config /usr/local/etc/mongod.conf

A new challenge for me

Recently I finished the book from the authors James and Claudia Azula Altucher called The Power of No . Really recomended - for example in cases where you feel yourself stuck or poorly motivated. It's different from the most self-help books. Resonated with me quite a bit. Awesome and easy reading. How did I became aware of this book? I do listen different podcasts. About Altuchers I heard from Lewis Howes show  - episode #79 . Thanks Lewis! I liked the idea about reading 500 books to reinvent myself. In book they say 200 to 500 books equal one good mentor. I decided that I will do it - take the challenge. And this was mu first book in this trip. 499 to go. I will keep you posted. About what will I read? About topics I'm most interested about - software development, finance and psychology. I'm not sure I will be able to do this in 5 years, since it means 100 books per year, ~2 books in a week. Not sure. But I will do my best to achive my goal.