general-development

Why are mainframes still around?

It's a question you've probably asked or been asked several times. What's so great about Mainframes? The answer you've probably been given is "they are fast" "normal computers can't process as many 'transactions' per second as they do". Jeese, I mean it's not like Google is running a bunch of Mainframes and look how many transactions/...

Using Accelerometer in Wiimote for Physics Practicals

I have to develop some software in my school to utilize the accelerometer in the Wiimote for recording data from experiments, for example finding the acceleration and velocity of a moving object. I understand how the accelerometer values will be used but I am sort of stuck on the programming front. There is a set of things that I would l...

Is File good for Interprocess communication

I have an EXE and DLL running in different process. From DLL I have to send large of amount of data to EXE, which would vary from 50 chars to 2000 chars and more(The data is recordid of records saved in DB). I thought about two options to do that: Using SendMessage- In which data's will be sent in batch. Use an Intermediate file to ...

How to struggle with incompetence of mavens ?

Preamble: I like my digital subscription of some computer magazine (no advertisement!), it contains cool weekly digest of programmers useful links. I'm not going to place it there to avoid raising interest. The last issue contained something "30 best practices to your web application performance" The first rule declares "Limit interacti...

Working out the angle of rotation from gyroscope data

How can you use data from the gyroscope to work out the angle of rotation in x,y and z. I am using the gyroscope in the WiiMotion plus amd Brian Peek's Wiimotelib 1.8 beta library. Any help is greatly appreciated. ...

How to write "Last Seen" logic like that on Stack Overflow

I'm working on an application that has similar logic as SO with regards to when the user was last seen. I've run into a conceptual problem that I'm hoping some of you Guru's can help me out with. All activity is logged in an ActivityLog table in the database When a logged in user hits the site and a new session is created, I update th...

What is backend and frontend programming?

What is backend and frontend programming? ...

Why ActionScript is said scripting language even after grown up so much and having compiled language?

From the Wikipedia defination, Programming language is Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed-interpreted, but not compiled. Whilst, Scripting language is Programming languages are languages that all...

Coding Performance Enhancement for ASP.NET

Recently i came across a project that needed a lot of improvement. So i started searching the web for some techniques that could enhance the loading speed of this web application. After a while i found some techniques but they gave me just a couple of seconds boost. So, dear co-programmers, please fill in any coding/enhancing techniqu...

Are there any color-generating algorithms?

Is there a good algorithm for generating colors for use in graphs such as line / pie / bar charts? Virtually all graphs have a built-in list of colors that they automatically assign to elements added to it. But sometimes you need to manually assign the colors yourself, and in that case you'll want to avoid manually inserting colors yours...

A quest for programmers editor under Linux

Hi. I understand this question is very personal for everyone :), but still I'm forced to ask it. Currently I'm using VIM and gVIM as my main editor, but imho it has a lot of downsides: Very inconvenient scripting language. Indentation and highlighting with regexps (real life shows that it's not the best idea). Mixed file types issues ...

which one to use windows services or threading

Hi, We are having a web application build using asp.net 3.5 & sql server as database which is quite big and used by around 300 super users for managing around 5000 staffs. Now we are implementing SMS functionality into the application which means the users will be able to send and recieve sms. Every two minute the sms server of the thir...

is it posible to create Web Bot in delphi?

i was just curious about webbot project and i wish that i could create something similar to that project. ...

download from 4shared

how to download from 4shared.com ...

How to avoid if... else and switch cases

Hi guys, I have been programming for alot of time. Generally i program in some languages like PHP, ASP.net, Java, JavaScript and others. In all languages i have to use alot of if else statments . Like if value= 10 then ... if i review my code then i find alot of if conditions. So i would like to minimise them but how not sure. one poi...

Why using a cronjob in a cms/website?

I am working on an existing CMS. We were thinking if it would be usefull to work with a cronjob. When thinking on this, we could only think on updating the search index for the cronjob, so we have no idea if we should add the cronjob to our CMS or not ... What do you think? ...

Is storing Image File in database good in desktop application running in network?

hi, I recently came across a problem for image file storage in network. I have developed a desktop application. It runs in network. It has central database system. Users log in from their own computer in the network and do their job. Till now the database actions are going fine no problem. Users shares data from same database server. ...

General: callback provided by API, deletion procedure

Hi there, I have a general interest in the following question and would like to hear your opinion. Setting: Imagine an API that provides a Callback-Interface Cb, that is you can create a Cb object and register it on the API. The API will call methods of your object in some other thread. This could be the case where you want to receive...

E Learning Platform

Hi guys am in need of creating e learning environment project using flex and java could sombudy help me ? Thanks Give ur ideas it wud sure help me out ...

I once read that static classes are very difficult and even impossible to debug. Is this true and why?

I once read that static classes are very difficult and even impossible to debug. Is this true and why? If an example would help, here is a PHP class I use to access a database (I don't think this is a PHP-specific question, though): <?php class DB { private static $instance; private function __construct() { } public stat...