similar to: First hit on app takes a long time

Displaying 20 results from an estimated 100 matches similar to: "First hit on app takes a long time"

2009 Jul 05
4
Deploying without capistrano, using git pull?
I''m NOT working on an enterprisey big time rails application; just something for my personal site. I''ve been deploying via local> git push origin master remote> git pull origin remote> sudo /etc/init.d/httpd restart Trying to decide if this is sufficient, or if learning capistrano and setting that up will give me any advantages over this? Thanks, Dave
2008 Nov 17
2
Can't seem to test http error codes
in application.rb rescue_from ActiveRecord::RecordNotFound { |e| http_status_code (:missing, e) } def http_status_code(status, exception) @exception = exception respond_to do |format| format.html { render :template => "shared/status_# {status.to_s}", :status => status } format.any { head status } end end in a controller project =
2007 Nov 23
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section. They live in app/views/shared/_header.rhtml & _footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: <div id="header"> <%= render :partial => ''shared/header'' %> </div> They contain many lines like this: <a
2006 Mar 28
1
simple output string
Hi! I am new to Rails and wanted to know how I can print an easy string-line. I wanted to generate a dynamic title for my blog articles made with "typo": The first part of the html-title stays the same: <title>softrockcookie</title> if it is not the mainpage ("softrockcookie") it shall add the page_title, so: <title>softrockcookie <%= page_title
2008 Jun 09
3
[LLVMdev] Online doxygen out of date?
Hi all, I'm having a bit of trouble with the online doxygen documentation. As far is I know, it should reflect current svn trunk. However, it seems out of date. For example, the ExtractValueInst [1] is not a UnaryInstruction yet and still takes Value* as indices. To add to the confusing, the mainpage [2] says it is documentation version "2.1svn" which seems even more weird. What
2008 May 24
2
MS Project and IE trusted zone
MS Project 2003 seems to mostly work in Wine RC1 but it needs to use a html renderer to do anything useful. The problem is that whatever it uses need to be in the trusted zone in the Internet Explorer options which I don't know how to access. I tried to install IEs4Linux but that installs into its own wine environment ~/.ies4linux/ie6/ instead of ~/.wine/ so Project can't get use the
2006 Mar 11
8
SVG in Rails
How can I show an SVG image in a view - I only see how to use jpgs or pngs -- Posted via http://www.ruby-forum.com/.
2004 Sep 30
7
tc monitoring
I have managed to dynamically parse the output of commands: tc qdisc ls dev eth0 and tc -s class show dev eth0 Save statistics in an rrd database and display it via a php script. see http://143.233.4.215/graph.php and dload scripts from http://143.233.4.210/qos/ My next step in developing this monitoring software is to somehow manage to create a tree out of tc and then use it to greatly
2007 Oct 28
1
Wiki mainpage, pheora software, people page, admin rights
Hello! I'd like to add the missing link for "TheoraSoftwarePlayers" to the mainpage. I don't feel like asking Ivo for doing Wiki edits every time is a long term solution. Can you give me admin rights for the Xiph wiki? I'd also like to link to the People page from the front page. Any idea what section I should put that link in? Thanks in advance, Sebastian
2010 Nov 04
9
Delete action is not working and redirects to edit action
Hello, i have a strange problem here. I have made a teacher controller using scaffold. All actions work fine but the delete does not. When i click the delete link, it redirects me to the edit of this teacher. I have restarted the server and i have tried in firefox (i use chrome) but problem still remains. Here is the code from my view. <%= link_to(image_tag("/images/
2013 Mar 11
2
CentOS release 5.3 (Final) yum update error TypeError: unsubscriptable object
Just FYI. This machine has been offline and not updated for several months. I booted it and ran yum update. It generated an error. I googled the error, no hits. I did "yum clean all". Tried yum update again, it finished dependency resolution and reported some missing dependencies. I can deal with that. love and kisses, Dave Here is the tail end of the error output: ---> Package
2010 Nov 30
1
PLC cpu performance badness
Hello all Firstly thanks to everyone involved for creating CELT. It is really very useful :-) One of my targets is current generation Apple iPod with the fixed point decoder (latest version from website, 0.9.1) Based on my simple time-stamp based profiling of my running app it looks like decoding a null buffer for PLC costs a lot more than decoding a normal buffer. For example a standard
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
Newbie learning Rails. I''m currently on Chp9 here: http://railstutorial.org/chapters/sign-in-sign-out#top At the end of the tutorial, rails is erroring (see below). being new to Rails and after having checked the tutorial... How do you resolve this kind of error. It''s saying current_user is not defined, and it is supposed to be defined with/Sites/sample_app/app/helpers/
2006 Mar 22
1
RJS - Still not working in IE
The previous thread on this topic got a little disjointed, so I thought I''d summarize the issue again, in hopes that someone could help. To re-iterate, this rjs works in Firefox and Safari on Mac, and in Firefox on Windows. It fails, in IE on Windows. The failure is that the second page.replace_html seems to do nothing. My environment is: Rails 1.0 + RJS Plugin Updated
2009 May 16
1
problem of update by yum
I had updated by yum,however alway received the same result. The result was: filelists.xml.gz | 1.0 MB 00:15 Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 229, in user_main errcode = main(args) File
2009 Oct 12
1
can't update python ?!@#@?
is this a known issue? # yum update py\* Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: download.srv.ro * updates: download.srv.ro * addons: download.srv.ro * extras: download.srv.ro Skipping security plugin, no data Setting up Update Process Resolving Dependencies Skipping security plugin, no data --> Running transaction check ---> Package
2008 Sep 17
2
Layouts and content_for
when i studied the tutorial about layouts & content_for from railscast.I need a clarification as per their tutorial. url:http://railscasts.com/episodes/8-layouts-and-content-for <!- projects/index.rhtml -> <% content_for :head do %> <= stylesheet_link_tag ‘projects’ %> < end %> <!- layouts/application.rhtml -> <head> <title>Todo List</title>
2010 Jul 02
6
making something available application wide
I''d like to display a banner on every page. Ultimately I''ll be tweaking which banner is displayed via different controllers but initially I''d just like to set a single banner application wide and display it in my "_header", a partial I include in all layouts. I''ve got a BannerAdvert model, simple. If I''m in my welcome controller index action
2004 Nov 21
4
Snom 190 - dhcp - settings_server
Hi, in the Snom FAQ I found the following information: After staring up, the phone tries the URL given in the "Setting URL" of the phone. ... BTW this setting can also be set via DHCP. .... option tftp-server-name "http://192.168.0.9/snom200{mac}.htm" The documents used: FAQ-04-06-14-sf.pdf "Setting up DHCP for snom phones" FAQ-04-03-24-sf.pdf "How can I
2006 Nov 04
1
Partials shared between multiple controllers
(Just getting started w rails, web app dev for a long time...) I have some partials that are common across multiple controllers. They''re not universal, so they don''t belong to be part of these controllers'' layouts. It appears that I can put them at the root of /views/, and render them using a relative path, like so: <%= render :partial => "./footer"