Posts

How to unlock 2Degrees Fritzbox to be used in any other Fibre Network

Image
This guide supports both  FRITZ!Box   7490 and  FRITZ!Box   7390, tested on Win10  It's quite annoying when you want to change your network provider and cannot use your old router as its network locked. Fritzbox! is a German made, popular mid-range router which is popular for the quality of connection and wifi range.  2Degrees normally give them away free for new connections and they are miles ahead compared to standard Huawei routers (vodafone, spark etc).  2Degrees  Fritzbox! is normally managed by 2Degrees it self. All the settings are synced from 2degrees, as customer can easily plug and startup their connection. But when you want to move the same router to a different network, it might work on VDSL/DSL.  But when it comes to Fibre, you need to explicitly set PPPoE settings with network provider username and passwords.  But 2Degrees  Fritzbox!  firmware wont allow you to change  PPPoE  settings...

Why your Job is slowly killing you and how to avoid a toxic workplace

Image
An average person, spends most of their awake time in their workplace. Basically, you spend more time with your office colleagues than you spend with your own family. Therefore, you can call the office your second home and your work life has a direct influence in your personal life. This is a simple guideline on how to identify or avoid a typical toxic workplace. Are you unhappy at work? Even while you are at home, you tend to think about office related issues. DO you feel that you are undervalued, overlooked or unimportant at work. Do you feel trapped inside your work? Do you feel depressed, just by thinking that you have to return work tomorrow. If any of the above describes your situation, you might be working in an environment called "Toxic Workplace". The unhappiness and dissatisfaction you feel at your workplace might badly affect your self-esteem, personal life or even your health (depression, fatigue, burnout). If you are in a toxic workplace, it’s better to tak...

Postgresql , Hibernate and issues with Schemas

In Hibernate you can easily map an entity class to a database table using @Entity @Table(name="student") public class Student implements Serializable {} But if you are using Postgresql and you are on a schema, you cannot use the above. If you use the above method, it will result follwoing error Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:149) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:157) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:164) at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1460) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:511) at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3278) at org.hibern...

How to use Hibernate 5 to insert Postgresql auto incrementing primary key

Postgresql does not have auto_increment keyword functionality on table creation as in mySQL. The best way to do is to use SERIAL or BIGSERIAL data type on the primary key. Serial data type act as an auto increment sequence in the background. This automatically created sequence usually has following name pattern:  student_id_seq You can create a simple table with auto incrementing primary key as bellow in postgresql 9.x: CREATE TABLE student (     id serial NOT NULL ,     first_name character varying(45),     last_name character varying(45),      email character varying(45),      CONSTRAINT student_pkey PRIMARY KEY (id)  ) This will automatically create a sequence called student_id_seq in the background, which will increment the id value by 1 with each increment. When inserting data to the table using SQL you don't need to give any value for the ID You can simply insert data using inse...

Asynchronous Web Service & WS Security With Axis2 & Rampart

Image
Introduction Apache Axis2 is designed to support the easy addition of plug in “modules” that extend the functionality such as security. The addressing module is the one that provide the asynchrony to the web services and Rampart is the security module for Axis2. Getting Started We will start with a simple service that has an operation called “TestMethod” which will return a String. To test the asynchronous behavior, the current thread was delayed for ten seconds. Service class implementation is given below. The service descriptor for the above method as follows (servi...