hi,i am developing a multi language site.My problem is i need to set the date and time in the datepicker from the database as the user may have choose the different timezone while registering in the site.At present i am getting the server time on my jquery datepicker.
Thanks in advance.
Technology used:Asp.net mvc,Jquery.
Database:Sql server2005.
O/s :winxp.
i have taken the data from databse into array now i want it to send it back into database by using the insert query.
how can i insert the array of the data into the database.
Hey folks,
I have a serious problem with one of our webservers... after having an internal alpha-testing with a mongrel/haproxy-cluster that worked well, we wanted to use nginx with passenger for our first production server (customers will access this server).
However, I can only run the rails app via development mode with passenger/nginx.
The app itself runs perfect with mongrel or webrick in production mode.
My biggest problem with this case is that I don't find ANY information in the nginx or rails-logs (only when I use mongrel or webrick).
Permissions are correct. Passenger-status shows that the app is running, but I always get the static 500.html-error page...
It would be so nice if you guys could give me a hint and help me solve the problem.
I put the config at the bottom of the post... This exact config works with rails_env development;but I'd like to use the production mode ;-)
Thank you very much for your help!
Version:
Ubuntu 8.04.2 64bit /
nginx-0.7.64 (compiled and installed via passenger-2.2.11)
cat /opt/nginx/conf/nginx.conf
user www-data;
worker_processes 4;
error_log logs/error.log;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11;
passenger_ruby /usr/bin/ruby1.8;
passenger_log_level 3;
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name <<servername>>;
root /srv/app01/public;
passenger_enabled on;
}
I run my development environment in a VM and need to test the delivery and appearance of emails from my applications. The problem is when my SMTP server starts delivering a lot of mail to my corporate email account, the server is soon rejected as a source of spam. Of course, the major Internet email providers will also never accept email from such a server.
I've delivered to a specified pickup directory and open in outlook express, but the problem is images always display as broken images.
If I need to know the total number of rows in a table of database I do something like
$query = "SELECT * FROM tablename WHERE link='1';";
$result = mysql_query($query);
$rows = mysql_fetch_array($result);
$count = count($rows);
So you see the total number of data is recovered scanning through entire database
Is there a better way
Am playing around with html5 local storage on different browsers (Firefox, Opera, Safari & Chrome) and am just wondering where is the location for the local database that i create using "opendatabase".
Can i change the location of this database?
Gath
I've just signed up for the Google group entitled Test Driven Development but it's only had 3 posts in 2010 and seems to be littered with spam.
Does anyone know of a good TDD focussed place to ask those general perhaps 'subjective' questions which might not be welcomed on SO?
I'm joining a start up and there's a debate on which platform we should choose for our development; Mac, Linux or Windows?
We're gonna use mainly open source tools and languages like, ruby, rails, PHP and mysql and photoshop (or something equivalent on Linux) for design.
I suggested mac but they challenged me to be more persuasive. what's your idea?
Help me with your persuasive arguments please.
For development, I guess it is fine to use a plugin like https://github.com/stephenplusplus/grunt-wiredep
But for production I would like to use CDN where such exists. Does it exist a Grunt plugin that goes through the bower.json file and replaces this with a CDN-link from the most popular ones (and if a component is present in more than one CDN, then pick one based on rank-setting or random or something).
For small-to-large teams developing software together, what tools are used to form a comprehensive team development framework?
Specifically, I'm looking for a comprehensive list of all the individual functions involved (e.g. source control, bug management, testing tools, project management), not specific product recommendations. I'm also not restricting the list to a particular methodology (e.g. Scrum).
i need to get an image from client and displayed(preview) before saving it into database..and then should be saved in database after getting preview..?
Is is possible in Asp.net using c#... ?
I am running a GWT Web Application project in Eclipse with certain Entities that I make persisent using JDO. Where (on my file system) do these Entities actually get saved if I run the project in development mode from Eclipse (so not on the Google App Engine, but locally)?
What is the most painful programming mistake you have done and what lesson you have learn after?
I guess mine was making a release to production on the development code which was not tested yet.
The lesson-learned:
Delete any projects that can trigger a
release on the live application from
CCTray. I only add them when a release
to production is necessary since then.
And once I am done, I delete them from
my project lists.
Hi,
If I have an existing DataTable (already filled) but then I want to refresh/reload the data from the database directly (as I know there was a non-ADO.net process that changed data without going through the DataTable), however do I do this "refresh". Note the database data at that point can overwrite whatever is in the DataTable.
thanks
I have a number of users which are logged in at a time in my desktop application.
They are working on the same table (create, read, update, delete data) so I have to update their views, to reflect changes, every few seconds - currently I am thinking to use a different thread to do that.
I am using the MySQL database engine.
Is there a way, using JDBC, to listen for changes on a specific table in the database and triggering a Java method only when changes are made?
I'm looking for a "SINGLE INSTALLER" solution for PHP Development.
Is there anything out there which will give me a nice IDE, Web Server, Debugger, Database, etc, on a single install image (*.msi or *.exe)?
This of course would be completely opposite of Eclipse PDT, which requires you to search and locate a bunch of additional components which never quite work together.
I'm looking to rewrite my git repo to use a new branching model I came across:
http://nvie.com/git-model
But right now all my history lives in the master branch. I'd like to rewrite it (possible using git-filter-branch?) So that all that history is in a branch called development now.
Is this possible? It's definitely beyond my limited git skills.
Today i was going through an website and found something over this iphone and ipad development projects. I had a question whether a developer requires an iphone to actually work with or is there any other simulator type device where we can test it out too.
It would be also great if you can share some docs on getting started.
Thanks.
I found this tutorial on windows NT driver development,
but not sure whether it can be applied for windows XP without modification.
Anyone knows?
UPDATE
BTW, is it a MUST to use cdecl calling convention(int _cdecl main) to communicate with a driver?
We have two SQL server database, and one is kept in US and being changed from day to day and the other one is in India. What is the best way of keeping two database schema in synch. Does any functionality like sql server replication help?
In the organizer of Xcode 3.1.x I used to be able to download the application data for an app in development (not installed thru itunes). In Xcode 3.2 I don't see that option anywhere. Am I missing something?
So our web server apps need to connect to the database, and some other apps have startup scripts that execute at boot time.
What's the best way to store the name/password for these applications, in terms of
security, e.g. perhaps we don't want sysadmins to know the database password
maintainability, e.g. making the configuration easy to change when the password changes, etc.
both windows and linux solutions appreciated!