similar to: pretty neat Mash class (Magic Hash)

Displaying 20 results from an estimated 1000 matches similar to: "pretty neat Mash class (Magic Hash)"

2006 Mar 24
4
Parsing Filemaker 6 XML into something I can use
Hi One of our customers has a Filemaker database which needs to be accessed for some data. Using the Web Companion, I can query the database for an XML version of the data. I need to be able to push this data into an array of hashes, so I can access it in a more convenient way. Filemaker is able to provide me with 2 XML formats (DSO-XML and FMP-XML): *********** DSO-XML ***********
2007 Sep 25
16
putting away HashWithIndifferentAccess
Hey, campineros. And many good handshakes to zimbatm for getting some patches applied. So, yeah, I''d really like to get rid of any serious dependancies with this 1.6 release. Anything that''s not in stdlib has to go. Of course, camping-omnibus will still assume the whole ActiveRecord, Markaby, Mongrel setup that''s in the history books. Metaid can be removed and
2007 Nov 28
0
OpenHash class I thought I would share...
I love OpenStruct, but it has no ability to iterate over the members. I had extended it, but recently I use this little class. Anyone see any issues with it ? class OpenHash < Hash def method_missing(name, value=nil) key = name.to_s.sub(/[=?!]$/,'''').to_sym self[key] = value if name.to_s[-1,1] == "=" return self[key] end end >> o =
2010 Nov 28
2
converting xml to a OpenStruct
Hi just wondering if there is a easy way to turn an xml entity into a object like of type OpenStruct where i can access everything like a property? It''s kind of like parsing xml, I already know about nokogiri, but I want to work is a OpenStruct and not a DOM object, does that make sense? =P -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux:
2007 Sep 27
2
Problem getting "extract" from RDig
Hi All, I have to have a site wide search for my current application. By search I mean I have to search the static and the dynamic contents from the database. I have been searching on this for a while on the net and RDig seems to be a apt solution. While using it I have encountered a few problems. I know these might be very basic issues but I have not been able to figure out what is wrong with
2007 Jan 23
3
Someone getting RDig work for Linux?
I got this root at linux:~# rdig -c configfile RDig version 0.3.4 using Ferret 0.10.14 added url file:///home/myaccount/documents/ waiting for threads to finish... root at linux:~# rdig -c configfile -q "Ruby" RDig version 0.3.4 using Ferret 0.10.14 executing query >Ruby< Query: total results: 0 root at linux:~# my configfile I changed from config to cfg, because of maybe
2007 Sep 18
4
basic rdig setup
I''m developing locally on Windows and I have a remote dev box that runs Linux. I''m trying to use RDig just to index using urls, no files. Both use acts_as_ferret for an administrative search that works fine. On the Windows machine, I get no errors, but get no results. On the Linux machine, I get: File Not Found Error occured at <except.c>:93 in xraise Error occured in
2006 Mar 28
2
Dealing with Form Data
Google lets me down once again :-) Coming from a PHP background I know I can take submitted form data, mix it, mash it and put it together in very odd ways. In other words do this. $title = "My Title" $sub_title = "My Sub Title" $full_title = $title . "-" . $sub_table And submit $full_title to the database. I have yet to find a solution for this in Rails - I
2014 Jan 03
1
Need help with spec file for Apache-2.4.7
I am trying to build an RPM for Apache-2.4.7-1 on Centos-6.5-i86_64. I am using mock. The are three build dependencies that I am trying to resolve. One, mod_socache_dc / distcache, I have simply removed from the spec file. The other two are arp and apr-utils. Since httpd-2.4.7 needs arp >= 1.4 I got the two latter requirements from http://www.apache.org/dist/httpd/httpd-2.4.7-deps.tar.bz2
2007 Oct 11
0
pdf-writer - SimpleTable - change font betweent columns
The client wants the top of the pdf laid out like this: From: John Smith To: Jane Doe 999-999-9999 888-333-3333 555 W. 55th Street 222 W. 55th Street Somewhere, Somestate 999999 Somewhere else, State 444555 They also want "From" and "To" to be bold, and the rest of the information to be normal font
2011 Jun 18
0
Unexpected result with lag() et diff() in plm package.
I have an unexpected result with the functions lag() and diff() in the plm (panel data) package when used with transform(). These plm-specific functions are supposed to generate lags and first differences within each panel. lag() does not work properly the first time (it reproduces the same series--this is a common time series pitfall), BUT then it does work properly when it is run a second
2005 Oct 23
0
brewing stats
I guess this isn't so much of a help request as a show-and-tell from a non-statistician homebrewer who has been fumbling around with R. If nothing else it provides yet another data set. I hope it is not out of line. Anyway, the plots I have produced are at http://brewiki.org/BatchSparge#poll The polling method is somewhat simple, its just one of those multiple choice style polls you
2006 Feb 20
0
No Magic for HABTM forms?
Hi, I posted yesterday asking how to get form tags to reference the associated objects in a habtm relationship. I was hoping for Rails Magic, but it looks like Rails doesn''t have habtm magic beyond a certain point. Here was my solution for others who might have the problem. Also, I hope someone shows me that there is a simpler way. The Database Model: class Registration <
2006 Aug 16
3
Easiest way to create a google map mashup?
I wanted to add a mash up to my website and was wondering if there were any recommendations? I saw that there is a cartographer plugin (http://cartographer.rubyforge.org/) and also something else called YM4R (http://wiki.rubyonrails.org/rails/pages/YM4R). I have no idea if they are up to date or not or whether this is currently the easiest/best way to go about it short of rolling your own.
2004 Mar 14
1
1.8.1 Make problem on SunOS
I am trying to make R-1.8.1 on (SunOS shell1 5.8 Generic_108528-15 sun4u sparc SUNW,UltraAX-i2). I did ./configure make Configure output seems ok. The make proceeds until the following line appears, repeated indefinitely (until I break): ./config.status: ./confstat28489-19881/subs.frag: cannot overwrite existing file I suspect that this may involve write permissions (and maybe the umask set in
2012 Sep 04
1
what package does the mesh function need
Hello, I tried to plot some 3d-plots with the 'mesh' function, but I allways get the message 'Fehler: konnte Funktion "mash" nicht finden' in english this means 'error: can't find the function "mesh"'. Do I need another package? I didn't found anything in the web this afternoon, only descriptions how to use the function. I looked up a lot of
2017 Oct 15
2
Problems about implementing a customized overlay network via Tinc
Hi guys: I am using Tinc to build an overlay network, but I want to control the network topology by myself. So how can I disable the automatic full mash feature of Tinc? Besides, my overlay network is supposed to support anycast and I have a routing algorithm for it. I wonder if it is convenient to implement it in Tinc, and do you have any suggestions for achieving this? Looking forward to your
2009 Mar 16
0
Version of Struct for initializing via Hash
is there any equivalent to this class A attr_accessor :foo, :bar def initialize(options={}) options.each{|k,v| send("#{k}=", v)} end end I know that OpenStruct is very similar, but you don''t get to define specific attributes. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2010 May 19
2
Reading in and writing out one line at a time
I hope that somebody can help me with this - I think very simple - issue...? I am running a package that only accepts one line at a time, but I would like to run this package on a dataframe of >500 lines. Dataframe "d" is a single column: APPLES PEARS AUBERGINES KUMQUATS I would like to read one line of my dataframe "d", individually into a new frame "f", then
2007 Sep 09
0
The use for an XML based metadata format
Hi Daniel, On 9/10/07, Daniel Aleksandersen <aleksandersen@runbox.com> wrote: > It is indeed necessary. I hope this format will be a huge leap in metadata > descriptions for media content. Not only for music, but any media found in > Oggs. You are thinking too small. Such standards should not be made to just work with Ogg, but rather possible to work with any media format out