Posts

compiler construction - C# directly to machine language -

i'm looking tool gives me ability write code in c # , compiling binary file can opened , translated directly machine language, mean did not have dependency on framework .. i heard c # parser, wanted know , whether gives me ability thank you, oriel. a parser give parse tree, not machine code. as far know, there no such compiler. in large because need compile part of bcl use well.

arrays - how to push text values to their parent and siblings div. using jquery -

i need select values following input fields respective divs.. see bellow <div id='table_row_div'> <div id='txtbox'><input type=text name='from' value='<?php echo $someval?>'></div> <div id='splited'> <div new="0"><div>i want text's splited value here</div> <div new="1"><div>i want text's splited value here</div> <div new="2"><div>i want text's splited value here</div> </div> </div> these input text fileds contains (1,0,0), (0,1,1), (1,0,1) type values... above block 49 times... , want automated system splits text value, , push "one" character on each next div of attr(new); how can using jquery. tried following type of code.. var inputval = $("#table_row_div #txtbox input"); var arrayfromdb = inputval.val().split(','); inputval.closest('div...

Dynamically set maximum scale of horizontal pointer slide in labview? -

Image
i want make primitive movie player in labview. want user able load in movie , have slider select frames. such, want range of slider go 0 n n number of frames in movie. how set scale of slider programmatically? i don't see inputs slider, 1 output. here example of "horizontal pointer slide" bar taken ni website. slide bar in upper right hand corner of image. right click on slider: create -> property node-> data entry limits -> maximum create -> property node-> scale -> range -> maximum this creates property nodes can wire set maximum limit of slider.

javascript - How do I iterate over a queue, adding and deleting elements as I go? -

i want able iterate on queue, each time adding new elements queue, removing elements have dealt with. queue = [[0,8],[1,2],[2,4]] [x,y] in queue in [1,2,3] # results in new coordinate.. queue.push([newx,newy]) the problem is, not sure best way be. if delete each element array iterate, leaves empty element in array. if copy array, empty doing queue.length = 0 , iterate on copy, wont work because doing slice copy doesn't work when array contains objects. what correct way this? what should modify copy of array: queue2 = queue.slice 0 [x,y] in queue in [1,2,3] # generate newx , newy queue2.push([newx,newy]) queue = queue2 i'm not sure mean when say that wont work because doing slice copy doesn't work when array contains objects. you may have been misled read elsewhere. using slice array copy works objects: coffee> queue = [[0,8],[1,2],[2,4]] [ [ 0, 8 ], [ 1, 2 ], [ 2, 4 ] ] coffee> queue.slice 0 [ [ 0...

c# - Accessing foreign keys through LINQ -

i have setup on sql server 2008. i've got 3 tables. 1 has string identifier primary key. second table holds indices attribute table. third holds foreign keys both tables- attributes aren't held in first table instead referred to. apparently common in database normalization, although still insane because know that, since key string, take maximum of 1 attribute per 30 first table room entries yield space benefit, let alone time , complexity problems. how can write linq sql query return values first table, such hold specific attributes, defined in list in second table? attempted use join or groupjoin , apparently sql server 2008 cannot use tuple return value. "i attempted use join or groupjoin, apparently sql server 2008 cannot use tuple return value". you can use anonymous types instead of tuples supported linq2sql. ie: from x in source group x new {x.field1, x.field2}

ruby - Regular expressions - Unable to match this string -

i writing ruby script requiring pattern matching. got unable match long string of 01122223_200000_1717181 on using / (\d+\_+\d+)*/ . it's matching following pattern though / \**|type:|\=*/ . can't figure out why. have checked ordering of pattern matching too. does have suggestion? you have more 1 thing going on pattern, think 1 causing matching fail: your parentheses off. you have + after underscore, don't think want/need one. you have whitespace @ beginning of pattern. of these, issue preventing getting match last one. rest of pattern should still match, though not quite way want (meaning it'll match things wouldn't want match). i'd go this: /\d+(_\d+)+/ if want accept pattern no underscores (e.g. 999999), use this: /\d+(_\d+)*/ about second question: reason it's matching / \**|type:|\=*/ \** , \=* use * quantifier, rather + . means they'll match if input contains no * or = characters @ all. \=* matches empty s...

sql server - How can I copy several columns from table1 into table2 while ALSO defining certain static rows in table2? -

i understand how copy column 1 table another, need + define values of columns in table2 according local variables within stored procedure. is there way in 1 go? help! if understand question correctly, can select variables' values inline columns second table, so: -- pseudo-declarations clarify example create table t1 ( col1 int, col2 int, col3 int, cola varchar, colb varchar ) create table t2 ( col1 int, col2 int, col3 int ) declare @vara varchar declare @varb varchar [...] -- can select whatever other values need alongside columns source table insert t1 (col1, col2, col3, cola, colb) select col1, col2, col3, @vara, @varb t2