search for: hackish

Displaying 20 results from an estimated 311 matches for "hackish".

2006 Feb 13
1
hackish error handling
...ough succesfully. So i could fail on ActiveRecord Validation - or either of those two XML request can send back an error code. In all three cases I want to send the user back to the form they came from and display either the active record errors or the XML error messages. You can see my two "hackish" approaches to catching the errors with the XML errors with an if else in the verfication and a rescue at the bottom to catch times when the success values i expect are not present. But trying to add in the ActiveRecord validation at the top (go.save) causes the error to fall straight down to...
2005 Aug 29
5
Testing if all elements are equal in a vector/matrix
Is there a canonical way to check if all elements of a vector or matrix are the same? Solutions below work, but look hackish to me. > x <- rep(1, 10) > all(x == x[1]) # == operator does not provide for small differences [1] TRUE > isTRUE(all.equal(x, rep(x[1], length(x)))) # ugly [1] TRUE Best, Vincent -- Vincent Goulet, Associate Professor ??cole d'actuariat Universit?? Laval, Qu??bec Vince...
2009 Aug 23
3
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
...back as to whether this is a desired feature before I put too much effort into it, so here goes: I would like to be able to export a symbol that is inside an LLVM structure. This is possible on ELF targets[2], and the attached proof- of-concept patch to AsmWriter makes it work (although in a hackish way that I am NOT suggesting be committed as-is). With this patch, the you can compile this: %0 = type { i32, i32 } @structure = global %0 { i32 0, i32 1 } @element1 = alias getelementptr( %0* @structure, i32 0, i32 1) To this: .subsections_via_symbols .section __DATA,__data...
2009 Aug 25
0
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
I've attached a less-hackish implementation of this. This includes the following modifications: - getSupportsOverlappingAliases() method on TargetMachine which returns whether the target supports multiple symbols to the same object. This returns false in the superclass and needs to be explicitly overridden for each...
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
...on stuff. That abstract class, I was thinking, would inherit from ActiveRecord. Didn''t work, though, and looking around, I found this: <http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel> http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel. Which looks pretty hackish to me. Is there any best way or recommendations on how to achieve this kind of behavior? I know I could modify ActiveRecord directly, but that seems brittle -- to run my app on later versions of rails, I''d have to remember to re-modify ActiveRecord. What''s really brittle, though...
2010 Oct 09
4
[LLVMdev] LTO, plugins and binary sizes
...2MB gcc -Os: 25MB clang lto -Os: 22MB I then decided to try to link without export-dynamic, since it produces some fairly large tables and blocks many optimizations. The new results were gcc -O3: 30MB gcc -Os: 23MB clang lto -Os: 18 MB The full patches I used are attached. I hope to get the non-hackish bits reviewed, starting by the fix to 8313. Cheers, -- Rafael Ávila de Espíndola
2006 Jan 03
5
RDOC and dot on mac
All, This is probably a bit more of a mac question, but here goes. (Admission: I posted this to ruby-talk as well....) I am trying to use rdoc -d to generate class diagrams on a mac running Tiger (OS X 10.4) for a rails app. I managed to get dot installed, but now am running into problems with dot looking for libraries that either do not exist or are apparently in the wrong place. I probably made
2013 Jan 31
2
[LLVMdev] Tablegen problem populating TSFlags
An extra call to resolveReferences after setting the value in the `let` does fix this, but I'm not sure that it is the right fix. The attached hackish patch seems to fix up a reduced version of the test case you gave here (I haven't run a full battery of tests on it, so it might cause other failures). Jakob, any idea about what the "right" fix is here? -- Sean Silva -------------- next part -------------- A non-text attachment was...
2009 Dec 08
2
[LLVMdev] PR 5723
I just filed PR 5723. This is a rather serious bug for us, causing all sorts of problems in creating dynamically-linked C++ programs due to the C++ runtime containing lots of leaf-like routines that use thread-local storage. I can imagine a number of hackish workarounds, but I think probably the right way to go is to mark routines with thread-local storage accesses in them as non-leaf. I guess that would have to happen in the PrologueEpilogueInserter. Is there an easy way to tell if a MachineFunction uses TLS without doing a full scan of the body? P...
2011 Mar 21
2
apcsmart question
Before I start any commits. In patch 2/18 - http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-March/005299.html Two "custom" commands slipped in: ups.firmware.old and shutdown.return.grace. In 18/18 I tried to rename them and add remainig commands for "hackish" shutdown methods, to make them easily callable through e.g. upscmd (for example for testing). Is it acceptable to add certain commands specific only to some driver and documented in its manual page (but otherwise meaningless for the rest of the drivers) ? Say with (in this case) a driver pre...
2007 May 08
2
Problem calling $ inside a $ method
..."bo") [1] 1 `$`(f, "al") [1] 2 ## So set a method on Foo that does this setMethod("$", "Foo", function(x, name) `$`(x at d, name)) [1] "$" ## But it doesn't work. Why? f$bo NULL f$al NULL ## Here is a hackish workaround. setMethod("$", "Foo", function(x, name) eval(substitute(x at d$FOO, list(FOO=name)))) [1] "$" f$bo [1] 1 f$al [1] 2 Other suggestions for workarounds? Is this a bug? + seth -- Seth Falcon | Computational Biology...
2006 Jan 16
7
Editing N instances of a model on one page
I have a situation where I want to edit an arbitrary number of instances of one model on one page. I can and have accomplished this by manually managing the object <-> text field relationship, but in a way I consider at best hackish. I''d like to know a clean way to do this. If you want to edit the name attribute on a person class, you write code like this text_field("person","name") Say I have an array in variable @people. What my mind feels is the logical thing to do is for i in 0...n p...
2011 May 15
3
Chainloading pxe boot loaders and dhcp root-path option
...called pxeboot that you can use. You just have to boot it from tftp and set the root-path dhcp option (option 17) to the location of your nfs server with the kernel and network filesystem. I want to support multiple versions of freebsd (i386 and amd64) along with Linux distros and others. The are hackish ways to accomplish this using memdisk, but thats not a great idea if you want to have a 280MB live cd image. The most elegant way I can see to do this is to chain load freebsd's pxeboot loader from pxelinux. The problem is when you do this, the dhcp root-path option is not set and defaults to /...
2009 Aug 25
1
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
...? Using aliases to point to the interior of objects seems like something that could be very likely to break, but I don't know anything about how ELF encodes aliases. - Daniel On Tue, Aug 25, 2009 at 9:07 AM, David Chisnall<csdavec at swansea.ac.uk> wrote: > I've attached a less-hackish implementation of this.  This includes the > following modifications: > > - getSupportsOverlappingAliases() method on TargetMachine which returns > whether the target supports multiple symbols to the same object.  This > returns false in the superclass and needs to be explicitly over...
2006 Jun 01
5
History plugin
Hello, I felt annoyed enough when having to redirect user back to their previous location in a hackish way that I wrote this plugin. It avoids storing POST and Ajax request. It also has a facility to specify actions not to store in the history. If you are interested, it''s there: http://blog.cosinux.org/pages/rails-history See you all, Damien -- Damien MERENNE <dam@cosinux.org&g...
2014 Aug 11
2
Sieve: Saving "pristine" messages for backups and spam training
...That's unmanageable for the spam training process I use. redirect *could* work, but that adds a header during the process so the email saved would not be "pristine". I'm thinking of using the extprograms plugin to pipe to a program that will do a simple copy. That feels very hackish, however, and I'm hoping there is a more elegant solution. Am I missing something obvious here? Thanks! Jeff
2010 Sep 07
2
[LLVMdev] Complex regalloc contraints
...ms: 1) the LLVM op operates over a vector reg, thus *overwrites* the input also (and that is not what our machine does) 2) LLVM needs to be able to copy those regs for two-addr instruction rewritting, but input regs are not readable and output regs are not writable. This latter way is probably too hackish and that's why I am having so weird problems, but I have found no other way to achieve this. Is there one? Thanks and BR, Carlos
2011 Jul 01
3
Xen XCP - How to make WLB work?
...this right. Anyone knows of how to make WLB or HA work - what software (open source, preferably is out there?) Something that installs without having to hack the system too much - just like there is configure/make/rpms - I don''t mind compiling code as long as things are not too ''hackish'' Thank you. -- View this message in context: http://xen.1045712.n5.nabble.com/Xen-XCP-How-to-make-WLB-work-tp4542197p4542197.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensourc...
2019 Oct 05
3
should base R have a piping operator ?
...f users?" Two packages with many features, dozens of functions and under heavy development to fix bugs, add new features and improve performance, vs. a single operator with a limited and well-defined functionality, and a reference implementation that hasn't changed in years (but certainly hackish in a way that probably could only be improved from R itself). Can't you really spot the difference? I?aki
2016 Mar 22
3
Replication issues master <-> master nfs backend
...believe this is still the case, but not able to confirm 100%. Also users are reporting closing Thunderbird. I can see them logging out and back in in the logs, but email does not replicate or show till I run doveadm sync manually. Tempted to have cron invoke that on the regular, but seems very hackish and likely will have its own issues doing that. Since its not the right way or how things were designed. Not sure if this is a bug or what. Hopefully miss-configuration on my end. Open to any feedback, advice, etc. I can provide replicator configuration but its pretty straight forward and mostl...