Hello,
We are now required by law to digitalize all the financial documents in our company and submit them to evaluations every 3 months.
Since this is sensitive data we decided to take matters into our own hands and build some sort of digital data archiver. The tool works perfectly, but after 7 months of usage we are begining to worry about the…
I drafted 2 ASP.NET applications using LINQ. One connects to MS SQL Server, another to some proprietary memory structure.
Both applications work with tables of 3 int fields, having 500 000 records (the memory structure is identical to SQL Server table). The controls used are regular: GridView and ObjectDataSource.
In the applications I calculate…
Hi!
Scenario:
I have some @Statefull bean for user session (not an http session, it is web services session). And I need to manage user`s session per user.
Goal:
I need to have possibility to get collection of @Statefull UserSession`s instances and control maximum number of session`s per user, and session`s life time.
Q: Is it possible to…
how to delete all lines below a word except last line in a file. suppose i have a file which contains
| 02/04/2010 07:24:20 | 20-24 | 26 | 13 | 2.60 |
| 02/04/2010 07:24:25 | 25-29 | 6 | 3 | 0.60 |
+---------------------+-------+------------+----------+-------------+
02-04-2010-07:24 --- ER GW 03
…
I'd like to do visitor tracking similar to how stackoverflow does it..
By reading through numerous posts, I've figured out some details already:
Count only 1 IP hit per 15 minutes (if anonymous)
Count only 1 unique user-Login (per day?)
Now that leaves the question of the real implementation..
Should I log the two factors live into a…
If I run a simple query in SQL Query Analyzer, like:
SELECT * FROM TableName
the Messages pane always produces a message like:
(30 row(s) affected)
If I run a stored procedure with many statements, the messages are useless because there's no indication of what each one relates to.
So firstly: Is there a way to customise the default…
I have a PHP script that grabs data from an external service and saves data to my database. I need this script to run once every minute for every user in the system (of which I expect to be thousands). My question is, what's the most efficient way to run this per user, per minute? At first I thought I would have a function that grabs…
Hello,
I am working in Visual Studio 2005, .NET 2.0.
I need to write an application, which listens on COM port and saves incoming data to a database. Main feature: save incoming data (series of 13-digits numbers), if this number allready exists, then mark it as double. For example, there could be these records in database:
…
I have a large website at www.mydomain.com. There are 1000 new documents per month and 100 new users per week lets say. I need to be able to programmatically do the following:
user goes to www.mydomain.com/documents
user sees list of all documents they have access to (not ALL of the docs)
I know you can retrieve an ACL…
I'm designing an internal web application that uses MySQL as its backend database. The integrity of the data is crucial, so I am using the innoDB engine for its foreign key constraint features.
I want to do a full-text search of one type of records, and that is not supported natively with innoDB tables. I'm not willing to…
Is there a list of reserved memory addresses out there - a list of addresses that the memory of a user-space program could never be allocated to? I realize this is most likely per-OS or per-architecture, but I was hoping someone might know some of the more common OSes and Arches. I could only dig one up for a few versions…
I have a simple iPhone game consisting of two "threads": the main game loop where all updating and rendering happen 30 times per second (NSTimer)... and the "thread" that calls the accelerometer delegate 100 times per second. I have a variable "xPosition" that's updated in the accelerometer delegate function and used in…
I'm looking to improve the D garbage collector by adding some heuristics to avoid garbage collection runs that are unlikely to result in significant freeing. One heuristic I'd like to add is that GC should not be run more than once per X amount of time (maybe once per second or so). To do this I need a timer with the…
When we say caching like using memcahe or Redis, is this a 1:1 caching between the user and the cache or can we cache 1 item and use it for all user? Some items like a Friend list will be 1:1 a that is unique per user. But if i want to cache the auto complete list for city lookups which can be used by any user, will it…
This is for a homework assignment. I just plain don't understand how to do it.
The instructions for this particular question is:
List the branch name for all branches that have at least one
book that has at least 4 copies on hand.
Where the tables in question are:
Branch:
BranchName | BranchId
Henry…
I'm creating a web service that often scrapes data from remote web pages. After scraping this data, I have a simple multidimensional array of information to use. The scraping process is fairly taxing on my server, and the page load takes a while. I was considering adding a simple cache system using a MySQL…
I've seen various Grails plugins which allow easier handling of file uploads, however these tend only to support a single file per form-submit.
I'd like a multi-attach form where as soon as you pick one file, an extra field and button is added using JS (various sites do it like this).
Do you know of any…
I am trying to build an online registration form for an institute I intern at that is running a training programme with multiple courses and hundreds of applicants. I've done registration forms with Google Docs Forms before, but the tricky spot this time round is that I'm trying to put a registration cap…
How do you sum a variable range of cells based upon today's date in MS Excel 2003.
Spreadsheet format:
Variable range = # of days to sum
Date range = listed in row 1, 1 day per cell (example A1=1/1/10, B1=1/2/10, C1=1/3/10....)
Numbers to be summed - listed in row 2, X number per cell (example A2=8,…
Well basically I have a scraping application.
It scrapes around n items per minute.
currently i have only one IP.
The site i'm scraping allows me 3 connections per IP.
I'm thinking about getting another IP.
so i'll be able to get 6 connections.
in theory i should be able to get n items in 40…
I'm porting my iPhone app to android and I'm having a problem with the string files now.
The app is a translation tool and users can switch the languages, so all the localized strings are in both languages and they are independent from what locale the OS is running.
For iOS version I have…
Hi there,
I have written a while ago an application used by multiple users to handle trades creation.
I haven't done development for some time now and can't remember how I managed the concurrency between the users and so would have liked your advices in term of design.
The application was…
A flipping coin on table will slow down and drop to the table surface, facing up or down. How can I calculate the flip-per-second declaration rate over time?
For example,
assuming the coin is at 10 flipping per second when it starts
how long will it take to stop?
For each second (9,…