search for: some_v

Displaying 10 results from an estimated 10 matches for "some_v".

Did you mean: somegv
2016 Oct 20
2
RFC: Killing undef and spreading poison
...ut then e.g. (in todays scheme) >> "trunc(zext(x))" cannot be replaced by "x”. > > I didn’t get this last part? If zext(x) is defined to always produce a concrete value (that is, zext(undef) is either 0 or 1), then this program can never fail the assert: %t = zext i1 %some_val to i2 %t.trunc = trunc(%t) to i1 assert(%t.trunc == %t.trunc) even if %some_val is undef. However, if you get rid of the trunc/zext pair, and transform this to: assert(%some_val == %some_val) then it can fail the assert if %some_val is undef. For the transform above to be allowed, zex...
2005 May 19
5
[OT] Sqlite2 question
So, under Sqlite2, if I want to update a database''s schema, I have to dump the DB, modify the table''s structure, then go and modify EVERY insert statement. The insert statements look like (from memory): INSERT INTO my_table VALUES (''some_id'', ''some_val'', '''', '''', '''', ''some_other val'', '''', '''', '''', '''') Assuming a my_table def like: CREATE TABLE my_table ( id, something, something_else, an...
2016 Oct 20
2
RFC: Killing undef and spreading poison
Hi Alexandre, On Wed, Oct 19, 2016 at 6:27 PM, Alexandre Isoard <alexandre.isoard at gmail.com> wrote: > Really interesting read. I am perplexed now, and am not even sure what is > the meaning of undef anymore. Welcome aboard. :) > Example (unrelated to your blog post, but still weird): > %x = sext i1 undef to i2 > > I understand that I can replace it by either of: >
2013 Apr 02
3
How to do platform independent system calls?
...e everyone has had a happy easter break. Recently my work included writing R function that need to call external tools. I did this using R's system function for example: system( paste( 'tool', '-input', path_to_input, '-output', path_to_output, '-other_switch', some_val ) ) I have two question about this: 1) Is there a way to implement such calls to external tools, so they become platform independent? I mean, so that these calls will work both on a *nix and a Windows system? 2) Is there a way to generate platform independent paths? So that "path/2/input....
2007 Sep 04
1
Couple of questions for Merb 0.4
...up on new requests. Also say I have a controller that needs to render an alternate xml format ie something like: respond_to do |fmt| fmt.xml => { render :xml => true, :action => ''fred'' } end where in fred.xerb I have xml.blee do xml.fred some_val ... end When I tried to run the following code I am getting a merb error on engine.transform where engine is nil ? undefined method `transform'' for nil:NilClass - (NoMethodError) /usr/local/lib/ruby/gems/1.8/gems/merb-0.4.0/lib/merb/mixins/ render.rb:155:in `render''...
2009 Oct 01
2
Any way to avoid instantiating a class twice?
Hey everyone, I''m trying to find a work around for a performance problem I''ve been having. I have a class that builds paths (among other things) dynamically to many files and folders depending on what sets of information the user accesses. Once built, this class instantiation contains all the information necessary for several pages (controllers/views) to operate. However at
2006 Nov 04
0
Problems with ActiveRecord, Oracle adapter, find_by_sql, multi-table join - ORA-04043 error
...The SQL looks like this: SELECT DISTINCT e1.ip_address, loc.street, loc.city, loc.state FROM schema.net_element ne, schema.equipment e1, schema.equipment e2, schema.building b, schema.cust_loc cl, schema.location loc WHERE e2.equipment_id = e1.equipment_id AND e2.some_column like ''SOME_VAL%'' AND e1.equipment_id = ne.net_element_id AND ne.class_name = ''FooBar'' AND e1.building_id = b.building_id AND b.main_address = cl.cust_loc_id AND cl.location_id = loc.location_id So, I setup a class for the ''Location'' table like this: class OracleLoc...
2006 Jul 13
5
Does Javascript let you default input params like Ruby does?
Can you have a Javascript function with a param that''s defaulted if it isn''t present? function X(a, b = false, c = ''dog'') { } X(5) calls X with a=5, b=false, c=''dog'' X(4, true) calls X with a=4, b=true, c=''dog'' X(3, true, ''cat'') calls X with a=3, b=true, c=''cat'' ? -- Posted via
2014 Sep 17
4
[PATCH 0/2] supermin: use librpm for rpm support
Hi, this work makes supermin use the rpm library instead of invoking rpm directly. This, together with a needed refactoring of the dependency resolution, should help in make supermin faster on rpm-based systems. Surely the patches will still need polishing, especially for behaviours of newly added stuff, but at least it's a good starting point. Noting that you need rpm-devel on most of rpm
2013 Mar 25
86
[PATCH 00/28] libxl: ocaml: improve the bindings
The following series of patches fill in most of the gaps in the OCaml bindings to libxl, to make them useful for clients such as xapi/xenopsd (from XCP). There are a number of bugfixes to the existing bindings as well. I have an experimental version of xenopsd that successfully uses the new bindings. An earlier version of the first half of the series was submitted to the last by Ian Campbell on