reload

Grails auto-reloading new controller actions

泪湿孤枕 提交于 2019-12-04 07:18:35
I've created new Grails 2.4.3 project created TestController set grails.reload.enabled = true in BuildConfig.groovy run application with grails -reloading run-app My controller action code: def index() { render "test" } When I change the string test to test2 - I see in console (in Eclipse): .................. |Compiling 1 source files And after reloading page I see test2 - ok. But when I try to add new method: def test3() { render "test3" } I see: Why? Why there isn't even the url? Example - action does't exist: Interesting thing is - when I create a whole new controller the index action of

Unable to get Update panel working right

会有一股神秘感。 提交于 2019-12-04 06:25:25
问题 I am working on a website using Google maps apiv3. I have a button in an update panel through which I execute some logic using code behind of button_click and a javascript function. Since the button is in the update panel, I am unable to see anything in watch window of firebug and neither my breakpoints in javascript function work. Without an update panel I can see the execution flow in watch and everything works fine but I get a reload on map. Code in aspx: <asp:ScriptManager ID=

Auto refresh a specific div blogger javascript

久未见 提交于 2019-12-04 04:30:32
问题 I use a Javascript widget on a blogspot. It include a div with some javascripts that get some "non-statical" strings from a server and print them on the page. Until here everything works fine, the problem is that I would like to update the execution of this div every few seconds in order to have updated strings, without refreshing the whole page, but just the specific widget (div). I have added another script that tries to refresh the specific div, but I had no luck. Please see the code below

Is there a way to force Yii to reload module assets on every request?

廉价感情. 提交于 2019-12-04 00:33:39
My website is divided into separate modules. Every module has it's own specific css or js files in /protected/modules/my_module/assets/css or js for js files. Yiis assets manager creates folder when I first use page that uses my assets. Unfortunately if I change sth in my files - Yii does not reload my css or js file. I have to manually delete /projects/assets folder. It is really annoying when you are developing the app. Is there a way to force Yii to reload assets every request? In components/Controller.php add the following (or adjust an existing beforeAction ): protected function

Progressively slower reloading time of .vimrc

断了今生、忘了曾经 提交于 2019-12-03 22:43:03
My boot time for vim is about a half second (tested with "--startuptime"), but after I reload vimrc a couple times via source , it gets slower subsequently. I have not debugged .vimrc in a systematic way, so I am not sure how to proceed. Setting verbose helps to kind of see what is going on and I am almost certain that the .vimrc is being loaded more than once. (especially filetype.vim and ftplugin.vim ) Whenever I press Ctrl-C to stop the hang, I get an error in filetype.vim , which I think is because vim spends most time trying to load filetype.vim . The most probable culprit I see is the

Make Visual Studio auto reload solution when project files change

做~自己de王妃 提交于 2019-12-03 22:07:27
On the current project I am working on, there is, at the moment, a large churn of code, which means updating from source control can mean at times many csproj file changes. As we all know, VS2010 doesn't have a "Reload all" button, but you must reload each project and confirm each reload. Is there a method where either the project is auto-reloaded or the IDE can detect this and ask for a solution reload? Ray Booysen Finally found a solution: http://lostechies.com/jimmybogard/2011/01/27/reloading-all-projects-with-vscommands/ Quoting from the site: Quite often I’ll find myself working in

reload servlet once a month

不羁的心 提交于 2019-12-03 21:19:28
How can a reload a servlet once a month? We got some data which will change once a month, the data is for the servlet, but we don't need to save the data into DB, instead we want to make it a configuration file which will be replaced once a month, how can I do this? I know that the servlet's lifecycle policy is controlled by the container, I am using websphere 7, but I don't know if there is a way to configure that in websphere. Will calling the destory() method affect the running instances of servlet? AFAIK, the servlet is multi-threaded. Don't use a servlet to store the data. Rather store

Use AJAX to reload captcha

旧街凉风 提交于 2019-12-03 20:53:40
This question may have been asked already - but unfortunately, I could not find any satisfactory answers. I will just ask it for my concrete case and ask the admins not to delete the question for at least a few days so I can try it out... I have a page. It uses a captcha. Like so: <?php session_start(); // the captcha saves the md5 into the session ?> <img src="captcha.php" onclick="this.src = this.src" /> That was my first code. It did not work, because the browser condsidered it useless to reload an image if the source is the same. My current solution is to pass a get parameter: onclick=

how to re-initialize java servlet on text file change

本秂侑毒 提交于 2019-12-03 17:37:54
I have a servlet that pulls data from a text file during initialization. Now I am updating that text file with a cron job(say everyday at 10am) and want to reinitialize the servlet every time this particular file changes. Second approach I can follow is to sync the reinitialization of the servlet to my cron job. Kindly suggest on how to go about implementing either of the above two approaches. thanks. Don't get hold of it as instance variable of the servlet. Create a ServletContextListener which stores it in the application scope and runs a thread which updates it on every interval with help

How to correctly invalidate cache on production for Symfony2 application?

与世无争的帅哥 提交于 2019-12-03 16:31:57
问题 I changed the configuration of the application and deployed the new code to production server. Since the application does not parse the configuration files and use precompiled classes I needed to update the cache files. There is app/console cache:warmup and app/console cache:clear commands. But the cache wasn't updated after invoking these commands, so I had to delete the app/cache folder manually. Manual deletion is very dangerous operation because it's not atomic so I can remove part of