arundhaj

all that is technology

Better not to ask feedback

 

Better not to ask feedback, if you don't respect it.

It is the feedback which managers' ask the team. Feedback about work, people, environment and organization. Getting feedback from people generally motivates, as it makes people feel better that they are being heard.

Though it is mandatory for the …

Using mail during django development

 

While developing a module that requires to send emails, using actual email servers would be an overhead. They might introduce network latency, possible spam filtering etc. All end up retarding productivity.

We have smtpd.DebuggingServer that could be used as a local email server. All emails that are sent to …

QuerySyntaxException: Foo is not mapped

 

While writing query using hibernate, I always tend to query based on table name and end up getting QuerySyntaxException

org.hibernate.hql.internal.ast.QuerySyntaxException: foo is not mapped [from foo]
    at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
    at org.hibernate.hql.internal.ast.tree …

Automatically generating slug url in django

 

Auto generating a random clean URL (slug URL) for django web application. In URL www.website.com/app/d4Ers the last part is auto generated random string.

We need to first install the following package

$ sudo pip install django-autoslug

then import the package

from autoslug.fields import AutoSlugField

In the …

gitignore for Python projects

 

GIT repo's gitignore file for the python django projects I use. Though it is not extensive, I would update as I encounter new formats.

*.py[cod]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__

# Installer logs
pip-log.txt

# Unit test / coverage reports …

Connecting internet with USB modem - Raspberry Pi

 

After some exploration, I could successfully connet to the internet with Tata Photon Plus from my Pi. Though with Raspbian, it is not as straight forward as it is with any other Linux varient.

There are many options available for connecting to the internet, based on the available infrastructure. In …

J2EE server for Webfaction

 

Webfaction doesn't have j2ee web servers by default. Users have to install it manually, by creating a "custom application listening on port".

I first started with Apache Tomcat, later ended with high memory usage than permitted for my account. My account's limit is 256MB RAM, however Tomcat was consuming around …

UnsupportedClassVersionError unsupported major.minor version 51.0

 

For J2EE webapps, when development environment is different from production environment, deploying could be tedious.

One such issue I encountered is the difference in JDK version. My development machine have latest JDK1.7 whereas my production servers have JDK1.6. When deploying the war on this server, I was getting …