usage

Finding unused columns

I'm working with a legacy database which due to poor management and design has had a wildgrowth of columns which never have been or are no longer beeing used. Is it possible to some how query for column usage? As in how often a column is beeing selected (either specifically or with *, or joined on)? Seems to me like this is something w...

What is the fastest way to calculate disk usage per customer?

Hi there, I'm hoping this is a simple one. I run a Rails web app where I'm hosting about 100 school websites. The one app handles all the sites, and I have a management interface where we can add and remove schools etc... I want to add a stat to this interface which is the total disk space used by that school. Each schools files are st...

Use C# DLL as COM under Delphi

Hi! We got a DLL written by C# programmers, compiled to usable as COM object. We consult these developers to get the function names, and syntaxes, and we can use it after we registered it with regasm. This is ok, but we have more questions to produce faster development (on changes), and some things are not understandable or not workin...

Create "Battery usage" intent android

On my nexus one, there is a handy app reachable from Settings > About Phone > Battery use. I'd like to StartActivity() that app from one of my Activities. I can see in the log that when Settings runs it, this intent is logged: Starting activity: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.fuelgauge.P...

How to use model without a controller in Ruby on Rails?

I'm just learning Ruby on Rails (no prior Ruby experience) I have these models (not showing the migrations here for brevity - they're standard fields like firstname, city etc): class User < ActiveRecord::Base has_one :address end class Address < ActiveRecord::Base has_one :user end How do I use the Address class to manage the und...

Android application usage

How to get application usage statistics on android? What I want is to access the time (in milliseconds) that each aplication is used. Thanks ...

How do you or would you use Bespin?

Bespin is a very nice Lab project. I think it has nice potential but the current project seem to lack of active practical applications. I though of using it as a fixup tool that allows a remote (dev or prod) machine to render the page without having to install dev tools locally. You probably have some better ideas. Do you have a good p...

user’s activity history in android

Hi All, I am new to Android development. I want to make an app, wherin I want to access following Logs: call log, message log, app usage log, media log, ... Logging data per activity: ex) call log: call direction, phone number, call duration, location, ... Are there any APIS available to achieve above mentioned Thanks in advance ...

What is a practical use for PHP's sleep() ?

I just had a look at the docs on sleep(). Where would you use this function? Is it there to give the CPU a break in an expensive function? Any common pitfalls? Cheers. ...

Java - High cpu usage

Hi I have a production web application running in Tomcat. The web application uses struts 2 as MVC layer. We had an issue wherein one of the web servers spiked to 100% cpu usage. This issue lasted for over several hours. I took the thread dump and saw over several hundred threads in runnable state and the dumps show the same stack tra...

CPU Usage of a Process(task) Linux Kernel

Hi, how can i learn cpu usage percentage of a process in kernel-space? We are trying to limit cpu usage of a process looking at a field added to task_struct. Forexample if the field is 10 and the process has already consumed the %10 percent of total timeslice we need to prevent the process from runnning. thanks ...