web-development

What website features are essential for attracting IT Pros from corporations?

I'm developing a set of websites that are geared towards the IT Professional at businesses ranging from 10 to 5,000 employees (small/med business). Most IT Professional expects a certain set of features when dealing with blogs, forums (such as gravitar)... but what I'm most interested in are the ~other~ addins that would be used in a si...

How to add NOT NULL constraint on foreign keys in Web2py

I am having trouble in making my models to generate foreign keys as not null in Web2py. I have tried everything that I knew and all that I could find on the web. Here is a simple example: db = DAL('sqlite://storage.db') users=db.define_table('user', Field('name') ) cars=db.define_table('cars', Field('user', users, notnull=True), Field(...

Wicket 1.4.9 cannot use AjaxRequestTarget from modal after Feedback error!

I create a simple wicket web app for using description this problem when i set require is true at TextField and submit with null value in Textfield. i have got a feedback panel message (This sound good) but my use case i want to get my data from modal windows and send back to this form but it can not AjaxRequestTarget update TextField ...

Apache Shiro combined with LDAP

Hi guys, I integrated Apache Shiro with a dummy user and it works just fine! But this framework has no tutorials online?! It's very hard to get into it as a beginner. Can somebody help me integrating a ldap integration. I have only found information that it is not that difficult :-/ I started with configuring the realm: [main] ...

What's the best practice to start web programing in Java?

Jsp or struts ? In fact I'm even not so clear about the difference of the two framework, or is Jsp a framework at all? ...

Auto-Commenting Tool

Hello All, I recently created a CMS for the client which is meant to work out of the box. But I made a mistake by not commenting my code at the time of writing. Just wanted to know if there is a tool that will go through the files of CMS and add comment blocks automatically. Let's suppose I have this code: class foo{ function bar(ar...

How to develop asp.net mobile application ?

Hi all, how to develop asp.net mobile application? what steps I have to be follow from the beginning. Is there any template provided by Microsoft for visual studio 2008 ? I want to develop this using c# + asp.net in mobile environment. ...

Calculating Project Programming Times

As a lead developer I often get handed specifications for a new project, and get asked how long it'll take to complete the programming side of the work involved, in terms of hours. I was just wondering how other developers calculate these times accurately? Thanks! Oh and I hope this isn't considered as a argumentitive question, I'm ju...

How DOM works/is loaded? (in HTML)

Hi All! How DOM is loaded in a html page? First is load the all html tag ( ) and inside of this element is created an other element and so on or first is create followed by ... and finally, the closing tags are added? Thank you! ...

Referencing variable set by application in models (a good idea?)

i am using zend framework 1.10 with doctrine 2. i wonder if in my (doctrine) model class, isit a good idea to reference a variable set by my application (bootstrap.php, variable stored in Zend_Registry, i think its something like a global variable) what i want to access is the doctrine entityManager. also i want the id of the logged in...

How to access an internal asp.net web application from the internet?

Hi All, I have an asp.net web application in an internal windows domain which calls a wcf-service. In the wcf-service I use the SecurityContext.Identity.Name, so it needs impersonation. Our task is that the web application can be accessed from anywhere. The first step was that the administrators published the web application throught ISA...

Generating/registering client-side scripts on ASP/VB.NET

I am currently in the process of converting old "Web 1.0" code to meet current standards. Is there a better way to generate and append a client-side script other than appending a plethora of lines to a StringBuilder and then registering it to the page via ClientScript.RegisterStartupScript(Me.GetType(), "startUpScript", strScript)? Is ...

Simple CMS for building a small company presentation-website

I'm looking for a free, simple and efficient CMS for building website for a small company. I have limited amount of time (1-2 mths), so my requirements about CMS are: The website is nothing more than a presentation -- with informative content and gallery. I'd like to have nice-looking gallery with js/ajax flavour. Nothing more is plan...

How to escape liquid template tags?

This sounds very easy, however I couldn't find it anywhere in the docs. How can I write {% this %} in a liquid template, without it being processed by the engine? ...

Browser Detection using java/J2EE

In order to achieve browser compatibility in application I am in need of Java class/Bean/Jar which will return the following information current browser of user its Name,version and also the OS of the user. Any thought on this will be really helpful, this should work well in latest versions of all the Modern Browsers such Chrome, Safar...

Are there any guides/tutorials out there for creating a web application that deal with security/scalability/accessibility from the beginning.

I'm starting a new web application project that I would like to release into the wild, and I'm trying to get into the habit of following best practices early. Are there any good guides out there for creating a web application that can survive in the real world? Most tutorials I've seen thus far include setting up the model, controller,...

Is collecting user usage information a popular practice?

Do most web applications log and warehouse user usage information? I assume the big guys like google and facebook do, but is the practice widespread? If so, what are the major uses for this information and are there any best practices for collecting and using it? Any anecdotes about why this is worthwhile or what you gained from your ...

What are some of the things to avoid for web design

What are some of the rules of thumb and things to avoid when for creating a website's design? For instance, an obvious one is to not have sound play automatically on a website. My point in asking this is that we have a newer web developer/designer and I am wanting to give him a general list of "do-nots" when creating a website. ...

Preparing data in json on backend and populating data via ajax on frontend, what're the problems?

Preparing data in json format on backend and populating data to templates via ajax on frontend, what're the problems with this architect design? Assume all visitors use javascript-capable browsers, and we don't care about the number of HTTP connections that a webpage has to make. ...

Use CMS or write all by myself

I'm net-java developer with some small projects implemented. I'm going to start a new project which is portal with many typical features (posts, comments, messaging, users, catalog, news, galleries, etc). I believe the best solution would be use any mature CMS (joomla, drupal...) and customize it where needed. The problem is that I'm n...