Textarea in DJango admin form

For CharField Django admin automatically generates input html block. But if we need to make a CharField appear as textarea in html we can do so by creating a Form class for the model. Consider the following model: file: Next we create the form & add it to ModelAdmin subclass file:

Serving static files (CSS, js, images) in Django, the best way

The Problem: Django tells us to arrange app specific static files in development environment, that is, we are supposed to create a folder named static inside every app folder of INSTALLED_APPS and keep the static files needed for that app inside that folder. But is it really practical? I mean who the hell would put […]

Throwing custom exception in servlet

Suppose we want to throw ‘InvalidParamException’ from within our controller when user doesn’t specify a parameter e.g. ‘page_id’ but the problem is, we can’t simply throw an exception from inside the doGet method (except for RuntimeException, we can throw RuntimeException without including it in the exceptions list). Either we need to handle it by sorrounding […]

Ajax Filter : Prohibit unwanted direct access to ajax requests

The code If we don’t want to give unwanted access to the url’s that we only need to access via ajax, we can simply do it using a Filter. Here is the code: Filter mapping Now we need to specify for which controller’s we want to apply this filter. We can make this process simple […]

JSP custom tag with custom number of attributes

JSP custom tags are very powerful. In this writing, I’m going to show a way to reduce repetitive lines that we write in almost every JSP pages using JSP custom tags. starting from < !DOCTYPE> to the end of < head>tag. We almost include same javascript, css, favicon etc in all JSP pages. The only […]

Servlet mapping for web root

Suppose, you don’t want to put an index.jsp file in the web root and give access to that directly when people go to “”, rather you want to have a HomeController (or whatever) Servlet which will handle the request that comes to the web root. And here comes the problem, there’s no url-pattern for that […]

List of Possible Ligatures in Bangla

While writing a Unicode Parser in Java for English to Bangla Transliteration I needed to make a list that contains all possible ligatures in Bangla. It was needed to automate the conversion of ligatures. To make sure I’ve at least covered the most used ligatures here, I read Bankim’s ‘বঙ্কিম রচনাবলী’, searched the internet and […]

Ridmik Keyboard Updates Log

3.1.5 (Nov 5, 2013) ——- 1. iPhone theme added 2. fixed password problem 3. fixed ঢ in unijoy & দাড়িঁ in Bangla-Shift mode 4. suggestion font fix 5. র‍্য added in Symbols > ALT mode 6. fixed color in the bottom row & numbers in the Symbol’s top row 3.0 (Oct 26, 2013) ——- 1. […]

Ridmik Suggestions

Ridmik Keyboard has been checked carefully before the final release. But still you might face issues as different manufacturers modify the android OS in their own way. Here you can leave your suggestions, comments about Ridmik Keyboard. Your valuable suggestions will let me make the keyboard better in future versions. If you find a problem/bug […]

superDialog plugin for jQuery

superDialog is a jquery plugin for showing ajax (modal) dialog box in webpages. Features: very lightweight, minified version is only 1.37 KB shows loading animator while the page/data is loading can show hidden element can load form using ajax & submit it again using ajax dialog can be closed by clicking either on overlay or […]