Displaying 20 results from an estimated 5000 matches similar to: "Separate App an DB servers , Scabality and rails"
2009 Jun 08
4
how can i get attribute values from xml using libxml
Hi ,
i have xml document like this
<?xml version="1.0" encoding="ISO-8859-9"?>
<Root><Stk Category="601" Group="60101"
Brand="001">....................
then i have to use Category attribute but reader class couldnt
recognize attributes
when i use these codes below for testing;
while reader.read
puts reader.node_type
end
2009 Jun 02
9
XML::LibXML::Reader
is there anybody who knows how we can get child values using libxml
(Reader class)
def xml_import_to_brands
require''xml''
reader = XML::Reader.file(''c:/brands.xml'')
.
.
.
2009 Aug 14
3
EC2 -> EBS -> S3 ?
Greetings!
I''d appreciate hearing from anybody who''s had experience with any of
this. I''ve got a Rails app that currently deployed on EC2 with MySQL
and am readying to move from a dev / prototype model to a full-scale
production model. Right now I''ve got a single MySQL instance. I''m
getting ready to move that to a master-slave setup. I''m
2014 May 11
3
find with exclude directory
Hey all,
I'm trying to do a find of all files with the phrase 'varnish' in the
name, but want to exclude a user home directory called
/usr/local/digitalplatform.
Here's what I was able to come up with:
find / -path '/usr/local/digitalplatform/*' -prune -o -name "*varnish*"
Which results in this:
[root at uszmpwsls014lb ~]# find / -path
2013 Jan 10
2
transparency in segments()
Dear all,
i would like to plot each value from my datasets as segment with defined
transparency
However, I didnt find out how to set the transparency.
definition by "col=" in par() or segments() doesnt seem to work
any suggestions?
Thanks in advance.
Kind regards,
Robert Pazur
example code:
xx2 <-read.table("http://www.scandinavia.sk/data/R/0_05.csv", sep=";",
2008 Jan 03
23
deployment survey
Hello Mongrels,
Building on the last messages about Fastthread, can we get a detailed
survey of the different ways people are deploying their applications?
It will help with near-future Mongrel development.
Please include the following things:
* Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...)
* Mongrel version
* Mongrel handlers used (rails, dirhandler, camping,
2013 Jun 28
3
Using Puppet for downgrading Varnish (circular dependency)
Hi all,
I am trying to use puppet (2.7.18) for downgrading varnish cache on Centos
Linux (6.3).
Unfortunately there are two varnish RPMs (which seem to have circular
dependencies):
varnish-3.0.4-1.el6.x86_64
varnish-libs-3.0.4-1.el6.x86_64
When using "ensure" for downgrading I get a bunch of errors:
err: /Stage[main]/Varnish/Package[varnish-libs]/ensure: change from
3.0.4-1.el6
2009 Jun 10
2
add variable in xpath
hi ,
i cant succeed add variable in xpath (libxml)
brand = "037"
xpath = "//Root/Stk[@Category=''601'' and @Brand=#{brand}]"
stack = node.find(xpath)
i used #{brand} but doesnt work
2009 Sep 01
9
Ruby on Rails Project Opportunities
Hi
I am currently recruiting for a number of freelance contracts and
permanent internal positions, both junior and senior, for Europe''s
largest and most dynamic Ruby on Rails development projects, offering
the chance to work alongside some of the industry''s leading figures in
the Web 2.0 development community. Selected locations include Germany
(eg Berlin, Munich, Hamburg,
2012 Mar 22
1
Overriding package installation source
Hi,
I use a module (for Varnish in this case) which has the typical install,
service, package classes.
-- modules/varnish/manifests/install.pp:
class varnish::install {
package { $varnish::params::package_name:
ensure => installed,
}
}
-- modules/project/manifests/proxy.pp
class project::proxy {
include varnish
}
-- manifests/site.pp
node proxy {
2009 Jun 22
5
has_many through , or habtm , using form
i think there ara two ways of relate products and categories ,
basically i want to fix one product(e.g hp dv7....) to some categories
(notebook,17"notebooks...)
i made a table named categorization(incuding category_id,product_id
fields) then in models i write these codes below
class Product < ActiveRecord::Base
has_many :categories, :through => :categorizations
2012 Jan 25
6
Can anyone talk infrastructure with me?
Hi All,
I started a 501c3 (not-for-profit) organization back in February 2011 to deal with information archival. A long vision here, I wont bore you with the details (if you really want to know, e-mail me privately) but the gist is I need to build an infrastructure to accommodate about 2PB of data that is database stuff, stored video, crawl data, static data sets, etc. Right now in my testing of
2006 Aug 18
1
DB load balancing
Hey all,
Are any of you folks running rails apps on a MySQL Master/Slave
configurations?
If so, do you do splits of reads/writes, or any type of load balancing
from rails?
I''ve developed several applications in the past with PHP and other
languages where I did some software load balancing. For example, my
previous application would parse the query and figure out if it was a
read
2014 Dec 13
3
CentOS forum search link in http://wiki.centos.org/AdditionalResources/Repositories under Atomic Repo
[
https://www.centos.org/search.php?query=atomicorp&mid=30&action=showall&andor=AND
forum search] returns a 404.
Can the forum search https://www.centos.org/forums/search.php? be used with
parameters that will provide the supporting material for the warning "Many
CentOS users have had problems after enabling this repo"?
-------------- next part --------------
An HTML
2013 Jan 04
5
FreeBSD wiki offline for a bit
Hey,
Due to a security issue in the moinmoin wiki software, the FreeBSD
wiki will be offline for a bit. I do not yet know if the issue
actually has been exploited in the FreeBSD wiki (haven't had the time
yet to examine it), but I took the wiki down just in case.
Note that even if the software was compromised, it was considered
untrusted from the start and as such heavily sandboxed
2007 Jan 24
4
Rails App on Mongrel+Apache Stops Listening
Howdy,
I''m trying to debug a situation where a Rails app running on Mongrel
+Apache stops listening to requests. Restarting Mongrel and Apache
brings it back to life.
First off, here''s some info on versions, etc...:
Red Hat Enterprise Linux ES release 3 (Taroon Update 8)
ruby 1.8.5 (2006-12-04 patchlevel 2) [x86_64-linux]
Mongrel 1.0.1
Rails 1.2.1
fastthread (0.6.2)
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto,
With systemd it will be as easy as creating additional unit files ( one for
> each memcached instance) with its corresponding config file. That should
> allow to stop / start / restart each memcache instance individually while
> also being systemd compliant.
Thanks for the info and for the examples. It really does make sense the way
you explain it. Thanks for letting me
2015 Mar 18
2
multiple memcached buckets in CentOS 7
Hey guys,
OK so I'm pretty familiar with how to edit an init script for memcached so
that I can get multiple memcached 'buckets' when starting up the service.
The init script would ususally have multiple lines such as these under the
start function:
# cache_block
/usr/local/bin/memcached -d -m 128 -l `hostname -i` -p 11318 -u
daemon -c 8172 -v 2>> /tmp/memcached.log
2009 Sep 30
1
Update on protection against slowloris
Hi list!
We tested mod_antiloris 0.4 and found it quite efficient, but before
putting it in production, we would like to hear some feedback from
freebsd users. We are using Apache 2.2.x on Freebsd 6.2 and 7.2. Is
anyone using it? Do you have any other way to patch against Slowloris
other than putting a proxy in front or using the HTTP accept filter?
Thanks for your feedback,
Martin
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical
impact of whether choosing memory-based tables in MySQL or using memcached.
I got this far on my own:
It seems that MySQL uses the NDB engine for transaction-safe memory access
in a cluster. the memory storage engine seems to be faster but not
synchronizable by any means in a cluster. memcached seems to be ultimately
fast