development-environment

TV guide written in PHP - problems with datetime() and database functions

蓝咒 提交于 2019-12-25 03:43:10
问题 I'm creating a TV Guide which lists programmes coming up (and on some listings, previous airings from the past), with all data stored in a database. It runs in PHP, my version being 5.28 (upgrading to 5.30 or 6 soon). Below is a script which works (note the field airdate is stored as DATETIME in the database): [Disclaimer: The script isn't mine, but a generic one I downloaded, and modified to suit my own needs.] <? //connect to mysql //change user and password to your mySQL name and password

How do I handle hard coded URL, database configuration in my product that has multiple modules in Git level?

蹲街弑〆低调 提交于 2019-12-25 03:09:10
问题 I am working on a product that has been developed by multiple developers over the years. The product is built on PHP jQuery Angular Bootstrap The product has different modules separated by directories in the server. These modules are individual repositories in my BitBucket as well. Fortunately, all the modules use the same database. In a code level, the configurations such as Database name, URLs (to access APIs, assets that point to the other folders in the server) are hard-coded. We have 4

Cannot write to file on Google App Engine Dev server with PHP?

旧巷老猫 提交于 2019-12-24 12:16:39
问题 I had this working literally just a few hours ago. Not sure what I did to mess it up, if anything. I am trying to use file_put_contents() to a test.txt file in my temp directory to test some stuff. I can't use print_r() or echo, because sometimes it is an ajax call I am testing. The errors I keep getting are: Warning: file_put_contents(temp/test.txt): The local filesystem is readonly, open failed in sub-dirs.../request.php on line 62 Warning: file_put_contents(temp/test.txt): failed to open

Getting the RailsKits SaaS app up and running w/ a mysql2 server

北战南征 提交于 2019-12-24 06:36:03
问题 I'm fairly new to the Rails game; I'm a front-end dev teaching myself to program. I've built a web application and decided to use the RailsKit SaaS kit to handle my registrations and such. I'm having problems just getting the default app up and running, but I'm sure it's due to my lack of knowledge and I think it has to do with getting a mysql server set up (usually I use sqlite3, but that doesn't seem to work w/ this app either). Here's the process and errors that I've come across, and I

Local Development, Apache vs Developer - file permissions

痞子三分冷 提交于 2019-12-23 19:18:33
问题 I am interested in setting up a local php testing / development environment using the lamp stack. I would like to use the php plugin for eclipse (I typically work with java and am very familiar with eclipse). First of all, is it proper practice to develop my site locally directly within the apache /var/www directory? If this is ok, can somebody describe how to properly set the permissions of the www directory so that eclipse (not being run as root) has access to read/modify php files within

Is WPF development feasible under VM? [closed]

我只是一个虾纸丫 提交于 2019-12-23 10:30:57
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago . After reading how to keep your dev machine from slowing down, I was reminded of my good intention a year ago to build a VM for my development machine. However, I'm developing WPF and SilverLight GUIs on Vista x64. I can run x64 versions of the OS under a VM but I'm concerned

Is WPF development feasible under VM? [closed]

孤者浪人 提交于 2019-12-23 10:29:14
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago . After reading how to keep your dev machine from slowing down, I was reminded of my good intention a year ago to build a VM for my development machine. However, I'm developing WPF and SilverLight GUIs on Vista x64. I can run x64 versions of the OS under a VM but I'm concerned

Alternate grunt.js tasks for development/production environments

爷,独闯天下 提交于 2019-12-23 09:49:29
问题 I would really love to be able to have a development grunt file and using the same file an production version of the script. I have tried the suggestion on SO but my script will just fail when trying to call a dev/prod argument. I believe that the answer is for an older version of grunt, or maybe the plugins I am using. module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ pkg: grunt.file.readJSON(

Getting error (exit code 2) for bootsnap, not allowing to set up Rails Server

China☆狼群 提交于 2019-12-23 04:20:45
问题 Trying to test a website built on Rails and keep getting an error that refuses to allow me to set up my server. After getting an error, I used 'gem install bootsnap -v '1.4.2' --source 'https://rubygems.org/' with the source as Rubygems. Same error: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing bootsnap: ERROR: Failed to build gem native extension. current directory: C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3

Filtering warnings in eclipse by filename

时间秒杀一切 提交于 2019-12-22 09:59:28
问题 We use Eclipse for our Java development, and we've got Maven compiling our JSPs into servlets to be used in our embedded Jetty instance. This means that to run the project from Eclipse, I have to include ./target/jsp-source as a source folder, which works great. The warnings that show up for that generated code are everywhere though, and I want to filter them out. mainMenu_jsp.java has a warning about a local variable not being used. It's generated code, so I don't care about it, but I can't