automatic

How to compare a date from mysql with current date and send a notification email

I have database entrys that have a date column ( mySQL date type ). I want to compare that date with the current server date and with 3 days before that day, every month, to automatically send an email to a specified address. ...

I want to compare the current date of my server with a date stored in a mySQL database

How can I compare the current date of the web server with a date I have stored in the mySQL database and 3 days before that that in the database to send a notification email ? ...

Is there a way to run a process every day in a .Net web application without writing a windows service or SQL server jobs

We require that in a ASP.Net application, a .Net process should be invoked every day at a specified time automatically. This process needs to interact with the database (SQL Server 2005) and generate billing on a daily basis. We are using a shared hosting hence we are not able to create a windows service or create SQL Server jobs. How ca...

How to automatically upload a file once it has been "Browsed" without submitting the form

I have a website were users can create a profile and upload an image for their avatar. The way I have it set up now is a simple HTML form one with an upload box where you Browse to pick a file, and then press "upload" to submit the form. What technology/language would be the best to have the image automatically upload and display on th...

SVN: How to commit without entering password?

Hi there, I need to create a script that backups a couple of files on a SVN repository during the night, since the files are secure I can commit them without entering a username (is that even possible?) or password. Possible solutions I came up with: - creating a dummy user without password or with a known password but this poses a se...

HTML scroll to bottom on a table

So I have a table set up that has a cutsy little javascript running in it, however it will not auto scroll to the bottom. So my question is, how the heck do I have it automatically do it? ...

C# : How to stop streaminig media on flash content ?

Hello, I'm coding an application in C# that enters a site which contains flash embedded content. But every time a site is entered, the streaming movie starts to play automatically. Is there anyway to stop automatic start of embedded content ? I can't disable Flash since the entire site is coded in flash; all I want is to stop the embedd...

SQL Server Automatic Partitioning of Large Database Tables

I am dealing with database tables with tens of millions of rows (with the potential to go to the hundreds of millions over time), and am looking at implementing database partitioning to try to keep performance stable as the row count increases. This is what I'd like to do: Say I have a table that stores animals. One of the fields is the...

Automatic Email Notifications

Hello, I wrote an asp.net program that is designed to retrieve user data. The process, in which the user can log in to the system and input his data, has a Start Date and an End Date where the user is not allowed to log in before the start date or after the end date. I want to send an email notification to the users to log in to the sy...

JPA - saving changes without persist() invoked

Hi, we are using Toplink implementation of JPA + Spring + EJB. In one of our EJBs we have something like this: public void updateUser(long userId, String newName){ User u = em.get(User.class, userId); u.setName(newName); // no persist is invoked here } So, basically this updateUser method is supposed to update the name of...

VIM: Automatically adding menu-items for scripts from a particular directory

I have a number of scripts (Ruby as it happens) I run from VIM, by setting up the startup file to contain (for instance): amenu Ruby.script1 :%!ruby C:\ruby_scripts\script1.rb<cr><cr> amenu Ruby.script2 :%!ruby C:\ruby_scripts\script2.rb<cr><cr> ... What I would like to do, is to have VIM automatically check the C:\ruby_scripts direct...

Makefile: ifeq directive compares special variable to constant does not work

Hi're, I have a little issue with my Makefile. I want make to change commands regarding the working directory. I added a conditionnal directive to the rule testing the current target's directory ($(*D)). The thing is that make always goes to the second branch of my test, even when my file is in mySpecialDirectory and echo indeed prints...

Automatic selection of control points in Matlab

Hello, Is there a way to select the control points automatically in Matlab instead of manually selecting them by cpselect? Thank you very much. ...

Automatic logout Microsoft VSS6 user who is not using it for long time

Suppose some user logged in to VSS for long time but VSS admin need to log off those user who is not using VSS for certain periode of time(such as 15 minutes).How to do it? ...

Do any good libraries and/or tools exist for automatic image "merging"?

I am looking for a tool or library which will allow me to, very quickly, merge two source images, and generate a third, merged image, into a file. My source data are two images in various formats (jpg, png, pdf, etc..), and instructions which identify which portions of the images are to overlap/merge. By "merging" I mean any kind of tr...

Making a list of every separate line with jQuery

Hello. I'd love to know that how to create a list from block of text. Let me explain.. Here's my html: <div class="asd"> well worth it </div> And this should be automatically converted to list like this: <div class="asd"> <ul> <li>well</li> <li>worth</li> <li>it</li> </ul> </div> Hope you understood :-D I've already tried it with...

jquery question... a way to automatically submit a form and move to the next step?

Basically, I have a process that is broken out into 4 forms (thus, 4 urls), but I'd like to bypass the third one completely. I can't really get to the code itself as it's from a third party provider and not open-source. What I was hoping to do was to use jquery to automatically fill out and submit the form as soon as the user gets to t...

Microphone auto level

Hi all! I'm looking for solution to tune mic's level in my VoIP app. I can get a level of sound, but want also tune mic's "volume" when it too low or too high in real-time. Like in Skype... It looks easy ex facte, but I think the algorithm should be a bit smarter then just turning the volume when level comes over hihg/low limits. I'm ...

JS/php add for every minute.

Hello. What i want to do is that every user gets 1 points every minute. Now i have the php code in the addpoints.php, and then i have tried myself with jQuery javascript: function addpoints() { var userid = document.getElementById('user_id_points'); var postFile = 'addpoints.php?userid='+ userid.value; $.post(postFile, function(...

How to make a file update?

I have an SWF on a USB pen that I would like to check a web server each time that I open it to see if there is a more recent version of the SWF. If there is I want the SWF to download it. How does one goes about doing so? What can I use? Im absolutely clueless on this. ...