search for: pjkh

Displaying 20 results from an estimated 45 matches for "pjkh".

2005 Sep 20
3
signing dovecot certs with own Cert. Auth.
Hi, I'm trying to get apache, sendmail , and dovecot to use SSL certs signed by my own CA. I've got the apache certs working fine. However, dovecot ( I haven't even tried sendmail yet) doesn't seem to accept any of the certificates that I create for it. There is a script that comes with dovecot that creates self-signed certificates for you but, I need certificates signed by my own
2006 Dec 20
2
OSX Dashboard Widget for managing mongrels...
Hey everyone - I recently switched to using a Mac and have several different rails projects going and was getting tired of starting/stopping mongrels via the shell so wrote my first dashboard widget to do it for me. More details at the URL below... http://blog.pjkh.com/2006/12/20/mongrel-rails-dashboard-widget Hope those of you on OSX find it handy... feels good to finally give something (even a little something) back :) -philip
2006 May 11
4
string to date/time?
Hey All, Anyone know of a library for parsing "human" dates, like "this friday" or "2 days ago"? I used to use strtotime in php, but starting from here; http://wiki.rubyonrails.com/rails/pages/PhpStrtotime and doing lots of googling, I haven''t been able to find anything similar for ruby. I know of javascript solutions to this, but I''d need to do
2007 Dec 17
0
Tag/Mailto plugin...
Hi all - I''ve written a ''mailto'' plugin for webgen to generate javascript/obfusciated code to display the mailto link (similar to what Rail''s "mail_to" method does. So you can now do this: {mailto: philip at pjkh.com} which generates the javascript to write that out hopefully hiding it from spam bots. More info here: http://www.pjkh.com/articles/webgen-mailto-tag.html Enjoy! -philip
2010 Feb 10
1
metainfo tag called instead of a custom one
Hi, I had adapted this mailto tag http://pjkh.com/articles/2007/12/14/webgen-mailto-tag Now webgen gives me errors like so: ERROR -- No default mandatory parameter specified for tag ''Webgen::Tag::Metainfo'' but set in </contact.en.html> ERROR -- No value for meta info key ''mailto'' in </conta...
2006 Nov 30
4
mongrel served from a subdirectory
Hello, I have setup mongrel successfully a few times now, but, each time I have used apaceh 2.2 and mod_proxy setup descibed on the mongrel site. However, I need to set up another app in a subdomain. example.com/docserver instead of docserver.example.com. I have tried just adding I have something like: ProxyPass /docserver/ http://example.com:3001/ ProxyPassReverse /docserver/
2006 May 25
4
Using an external database behind a firewall
Hi everyone, There''s a separate database I''m using to get mail group info for our users (Sympa), and I''ve got Rails configured to pull data directly from it via an entry in database.yml The issue we''re having is that the database server in question is behind an internal firewall that has idle timeouts set at 30 minutes. If the connection isn''t used
2006 Apr 27
5
mysql lost connection
Hi, I''m lost and my mysql connection as well... I got this error in my production.log: ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query: SET NAMES ''utf8''): Config: Debian Sarge (last updated), Rails 1.1.2, Webrick, mysqld Ver 4.1.11-Debian_4sarge2 for pc-linux-gnu on i386 apache2 with mod_rewrite and webrick as proxy on 8080.
2006 Apr 25
2
DateTime format YYYY-MM-DDTHH:MM:SSZ ????
Hi all - Implementing my first web service with rails and trying things out using the "/controller/invoke" interface. Mostly works fine. But I have a function that takes a datetime and returns all rows that are newer than that. According to the log the SQL it''s generating is this: SELECT * FROM xxxx WHERE (created_at >= ''2006-04-25T13:18:31Z'') I have
2006 Jul 19
13
MySQL Replication as Load Balancing
Hello: We will be setting up MySQL replication for a load balanced environment, but we have to separate reads and writes. How can we modify rails to do so? Has anyone done this already? Thank you in advance! Dan -- Posted via http://www.ruby-forum.com/.
2007 Mar 28
2
[OT] Starting Mongrel on Mac: Launchd or Crontab?
I have some Rails apps I use on my Mac to do brutally stupid stuff like track time and activities. They''re always running, but each time I restart, I (duh) have to restart the Mongrels. Well, I know better than that, right? So I dug around in Google to find out how people are getting Mongrels started using Launchd. There are some detailed posts, but none of them seemed to work. My
2006 May 11
5
Engines 1.1.2
I''ve just pushed out a new bug-fix release for the Engines plugin. Most notably, it''s now super careful (to the point of paranoia) about ensuring that the right version of Rails is loaded, and should no longer cause any issues where it ignores vendor/rails. Full CHANGELOG is here: http://dev.rails-engines.org/repository/file/engines/tags/rel_1.1.2/CHANGELOG And you can find
2006 Aug 10
4
Telling Apache Not to Send a Sub-Directory to the Cluster
Howdy, I am using Apache 2.2 and Mongrel with great success. I have a mod_rewrite question and I am NO expert. I think it''s really simple but I haven''t nailed it. I was hoping someone here could help. I''m using Apache conf right out of the cluster example from the Mongrel site. I have a directory under my apps ''public'' directory called
2006 Jun 22
4
stylesheet linking and layouts
In my layout, I have something like (shortened for clarity): <html> <head> <%= stylesheet_link_tag "index", :media => "all" %> </head> <body> <div id="site-container"> ... <cut for space> <%= @content_for_layout %> ... <cut for space> </div> </body> A view action has another stylesheet defined
2006 Jul 27
3
[somewhat OT] Apache config for Rails + ColdFusion + PHP
Our group has several web apps developed in ColdFusion, PHP, and Rails. The ColdFusion and PHP apps are on an older server, and the Rails apps on a new server. Ideally, we''d like them all to share the same server. Our current setup for the Rails server is Apache2.2 with mod_proxy_balancer and mongrel_cluster. We''d like to have specific directories be processed and served by
2006 Oct 03
4
Apache Re-Write and Directories
Howdy, I am using the ''default'' Apache 2.2 mod_rewrite rules suggested from the Web site and they are working. One thing related to static (non cluster directed) resources: If I have a directory in public called ''static'', if I request it as follows: http://www.domain.com/static/ - then it works If I request it as: http://www.domain.com/static - then it
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all - I am trying to get rails to use memcache for sessions and fragment caching. I''d also like to use the same connection for general caching of this and that. I''m following the instructions here: http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read
2006 Apr 19
1
Separate databases for reads and writes?
Hi all - New to rails... been reading as much as I can though and have yet to find a solid answer (although I think I found an unsolid negative). I''m wondering if there''s a way to split up the reads and writes in Rails so that pages/actions that don''t need to write can query from a group of mirrored databases. And my content managers can update a single master. I
2006 Jul 19
3
How do I check the retuned value from check_box_tag?
Hi, I have this in my form <%= check_box_tag(@accept, value = "1", checked = false) %> Which puts a nice checkbox on my form but when I try to retrieve the value that is returned, which I expect to find in @accept, there is nothing. How do I check the returned value? Thanks, Paul Thompson
2006 Nov 28
34
Uploading Large (100mb+) files
I have an Apache 2.2.3 (mod_proxy_balancer) frontend server that does not have mongrel installed. It does proxy requests to several other mongrel-only servers (each running 2 mongrel processes). Each mongrel node has the same rails code-base and it''s working perfectly. However, my question is when I add an upload file form... where is it going to physically put that file? I mean since