Saturday, July 21, 2018

Teodesson (Blogspot) Moves to Dariawan.com

So here we are. teodesson.blogspot.com has been around since 2005. That’s more than 13 years! And I’ll going for at least another 50 :p.

Today, I announce that I'll start posting new articles on my new home, www.dariawan.com. Dariawan will serve a bigger pictures than just a blog site. It'll serve as a base for my new adventures.


Dariawan.com will hosts Java, Spring, Web Application and Microservices tutorials, blogs, and announcements of my side projects

Follow our:
Twitter: dariawantech
Facebook: dariawantech

Let The Show Begin!

Thursday, July 19, 2018

Some errors encounter in Django 2.x Projects

ImportError: No module named 'django.core.urlresolvers'
Django 2.0 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use django.urls instead
from django.urls import reverse, NoReverseMatch

'WSGIRequest' object has no attribute 'user' Django admin
In Django 2.x  go to your setting and look for MIDDLEWARE_CLASSES. The new-style is MIDDLEWARE. Change it...

'djdt' is not a registered namespace
Not exactly Django 2.x problem, but because of django-debug-toolbar
Add debug_toolbar.middleware.DebugToolbarMiddleware in MIDDLEWARE, and add urlpattern:
if DEBUG:
 import debug_toolbar
 urlpatterns += [
  url(r'^__debug__/', include(debug_toolbar.urls)),
  ...
 ]

Thursday, November 23, 2017

I'm (formally) a Mac User

I bought for myself a 13-inch MacBook Air
With the following configuration:
  • 1.8GHz dual-core Intel Core i5 processor, Turbo Boost up to 2.9GHz
  • 8GB 1600MHz LPDDR3 memory
  • 256GB SSD storage
  • Intel HD Graphics 6000

Next: learn swift?

Saturday, October 1, 2016

Bad Design is...

Bad design is:
Rely on session for your data-flow

Bad design is:
Using ftp connection to loop: open a file, process the transaction, open another one, process...

Bad design is:
Not using temporary table to store unfinished transaction

Bad design is:
If your admin/management screen is so limited and messy, until you need to always query from database

Bad design is:
No filter and sorting for your data

Bad design is:
Store files in your database table

And if you still says that nothing wrong with your system...
Then that's is bad decision...

Sunday, November 1, 2015

(Java) Development Stack 2015

So, I switched company last year. My current company is a e-commerce B2B which also built it's offering based on Java and Open Source technologies. Here my technology stack per Oct 2018:

Presentation Layer
Depending on the nature of the project (urgency). My default stack is still to use JSF 2.x with Primefaces for rapid development. I also still working with Spring MVC, Angular.JS and Twitter Bootstrap. Lately, I also start to work with SpringBoot. I found it kinda tricky sometimes (maybe I'm too conservatives)

Business Layer
Still using Spring Framework and Spring Security. Similar like in the web arena (presentation layer), I also start to use SpringBoot for several independent tasks, especially batch jobs.

Data Access Layer
I'm using Hibernate - JPA combo! For my latest webservice project, I'm using Spring JDBC (JdbcTemplate).

Build
Start to use Maven 3.x.x. Currently evaluating Graddle, but I'll give it a pass.

Testing
Using JUnit with some mocking library (JMockit and/or Mockito). To test REST webservice, I'm using Rest Assured.

Continuous Integration and Code Quality
Now I'm becomes a fan of Continuous Integration. We are using Jenkins for CI. Sonarqube for code quality is a must!

Application Server
I'm still using Tomcat 7.0.x for development and production.

Database Server
My company using Oracle DB. For my own side projects, I'm move away from MySQL and using PostgreSQL.

Source Control
Pretty much I'm using both Mercurial (bitbucket) and Git (bitbucket & github).

Linux?
Currently I'm move away from Ubuntu to CentOS.

What do you think compared to this?

I'm sure you also notice that lately I've been posting about Python and pyramid framework. Yes, Python is my 2nd programming language now (I mean for back-end). And I pretty much love SQLAlchemy. Maybe in the future I'll touch Django, who knows...