server-side

Logs queue in multithreaded application which dump information to DB (server side application)?

Could you advise me how to implements queue in multithreaded application. I have to register events in my application in queue (events from all users) which I flush and save to database every 100 events to improve performance. I don't want save database log for every single user commit. I suppose commit e.x. every 100 events to databas...

Output or Input filtering?

Output or Input filtering? I constantly see people writing "filter you inputs", "sanitize your inputs", don't trust user data, but I only agree with the last one, where I consider trusting any external data a bad idea even if it is internal relative to the system. Input filtering: The most common that I see. Take the form post data or ...

css and android web application, loading local images

how do i load a local image from android assets from a generated (php) server-side html file? eg. > img src="file:///android_asset/calendar-date-icon.png"> -or- background:#ffffff url(file:///android_asset/calendar-date-icon.png)no-repeat; cannot get either to work ...

Office 2010 server side automation in a Windows HPC Server 2008 R2 Environment

I am aware of of the infamous Considerations for server-side Automation of Office from Microsoft and it clearly lists products from the 2010 suite. However, today I was made to believe by an IT ops techie that Office 2010 does not suffer from the issues mentioned in that article and can be used without issues within a server environment...

Click on row in datagrid in asp.net

Hi, I have a datagrid with a button in each row that when I click on it, it redirects to another page. I want to be able to click on the entire row and not on that button. The problem is that now I go to database when I click on the button like so: DataTable dt = DataAccessLayer.selectFromTable(reviewedGrid.Rows[e.NewSelectedIndex].Ce...

Easiest way to run javascript on server side

I have an application which runs on mobile devices such as android, and I have some third party traffic tracking js code to track the usage of my application. So everytime a user opens up my application the js code sends a ping to the 3rd party tracking server. However I'm not sure if there's an easy way to embed the js code directly int...

Looking for DOM-independent JavaScript templating system works \w plain text.

Is there a templating library/system/engine/technique written in javascript that: Doesn't screw up plain-text (non-html) templates ( like tabs and line breaks ) But also works with HTML Doesn't have it's own DSL for loops and conditions (uses pure JS) Can be run server-side without the DOM ...and is open-source licensed? ...