Posts

Showing posts from May, 2012

html - How can I make space between two buttons in same div? -

Image
what best way horizontally space bootstrap buttons? at moment buttons touching: <div class="btn-group"> <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"> <i class="icon-in-button"></i> add list <span class="caret"/> </button> <ul class="dropdown-menu"> <li> <a href="#">here</a> </li> <li> <a href="#">new</a> </li> </ul> <button class="btn btn-info"> <i class="icon-in-button"></i> more </button> </div> jsfiddle showing problem: http://jsfiddle.net/hhimanshu/sylrq/4/ put them inside btn-toolbar or other container, not btn-group . btn-group joins them together. more info on bootstrap documentation . ...

asynchronous - How to asynchronously load a google map in AngularJS? -

now have found way initialize google maps of andy joslin in initialize-google-map-in-angularjs , looking way asynchronous load google map object. i found example of how in phonecat project. notice how js files loaded in example: index-async.html in jade scripts partial loaded program tried: script(src='js/lib/angular/angular.js') script(src='js/lib/script/script.min.js') script $script([ 'js/lib/angular/angular-resource.min.js', 'js/lib/jquery/jquery-1.7.2.min.js', 'http://maps.googleapis.com/maps/api/js?key=aizasybtmi_pcxmztlx5mwfrqgbveyx-h-pdxo4&sensor=false', 'js/app.js', 'js/services.js', 'js/controllers.js', 'js/filters.js', 'js/directives.js', 'bootstrap/js/bootstrap.min.js' ], function() { // when done, execute bootstrap angular application angular.bootstrap(document, ['ofm']); }); when , go load map page g...

windows phone 7 - WP7 Deserialize JSON -

i'm new c# , having problems below giving invalidcastexception on line addresses address = (addresses)serializer.readobject(e.result); : namespace my_app { [datacontract] public class addresses { [datamember(name = "line1")] public string line1 { get; set; } [datamember(name = "line2")] public string line2 { get; set; } [datamember(name = "postcode")] public string rpostcode { get; set; } [datamember(name = "city")] public string city { get; set; } [datamember(name = "state")] public string state { get; set; } } public partial class sim : phoneapplicationpage { public sim() { initializecompon...

getting result from JSON in iphone SDK with strange character and numbers -

i developing iphone app receive data sql server through php file in json format , work fine when test on safari browser, used sbjson framework develop json in app ,i received data in app in wrong format : ["&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x062b;&#x0627;&#x0644;&#x062b; &#x0639;&#x0634;&#x0631; - &#x0627;&#x0644;&#x0645;&#x0624;&#x0642;&#x062a; - uidatepicker ","&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x062b;&#x0627;&#x0645;&#x0646; - &#x0627;&#x0644;&#x0627;&#x0646;&#x062a;&#x0642;&#x0627;&#x0644; &#x0645;&#x0646; &#x0635;&#x0641;&#x062d;&#x0647; &#x0644;&#x0627;&#x062e;&#x0631;&#x0649; - uiswipegesturerecognizer","&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x0627;...

javascript - Code by Paul Irish - Good or bad practise? -

i checking view source of site http://mothereffinghsl.com/ . coded paul irish in code id of html elements not enclosed in quotes few elements. other elements id enclosed in quotes. practice. mistake or purposefully omitted? dont think person paul has overlooked it. <div id="main" role="main"> <h1>mother-effing <span>hsl()</span></h1> <canvas width=360 height=100><a href="http://noyoueatabagofdicks.com/">your browser doesnt support canvas.</a></canvas> <span id=loading>one sec, bro.</span> <label id=sat>saturation</label> what thoughts? edited after accepting answer conclusion: in html5 quotes not necessary, recommend reasons mentioned in comments. also not practice use quotes attributes , not other though supported. he's using html5. attribute quotes optional in html5 (and html 4, not in xhtml). see do quote html5 attributes? , http://mathiasbyn...

java - jaxws import. binding file being ignored -

i trying generate java classes using jaxws. problem binding files being ignored. have 2 binding files in bindingdirectory. maybe ? <profiles> <profile> <id>generate model (pojos) wsdl</id> <activation> <activebydefault>true</activebydefault> </activation> <build> <!-- jax-ws provides tool called wsimport takes wsdl of web service , generates proxy classes or wsdl's service , port definitions. these can used access web service endpoint. --> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>jaxws-maven-plugin</artifactid> <executions> <execution> <id>id1</id> ...

gridview - Process after grid was loaded completely using ExtJS -

i using extjs load data grid, , want add additional processes after data put on grid completely. my context is, after data put on grid, check rows, , mark of them disabled based on specified condition , put tooltip row (explain why disabled). tried use 2 events: 'afterrender' of grid, , 'load' of grid's store, did not work. because grid's 'afterrender' fired when first grid initialization, not concern data load. store's 'load' fired when data prefetch store (not render on screen), cannot row <div> style disabled. so, event detect when data loaded , rendered on grid? , how can implement requirement? i think task don't need wait until grid loaded rather use viewconfig option grid panel configure how display rows: viewconfig: { getrowclass: function(r) { if (r.get('disabled')) return 'disabled-class'; else return ''; } }

php - Can a server notify iOS/Android app about changes whitout the users being aware? -

i new in mobile development , have project , spent whole past days searching solution problem until got lost hope can find final answer here. i have server (php & mysql db) , developing mobile app in ios + android retrieve data server. mobile app should take data server in first run , save in phone whenever run again take stored data. the server should notify app "without user being aware" whenever change made app can go , update data immediately. i thought using webservice (probably rest restkit) or applying sort of timestamps on server records, not problem. my problem can't find way let server notify app changes whenever change happen , allowing app update new data. thought using push notifications - specially in ios - can't hidden users. so there possible way it? complex? worth? other suggestions? as said new maybe thinking wrong sorry in case, , searched through questions , couldn't figure out answer question. can explain trying do...

c# - What's the difference between using System.speech.recognition and ISpRecognizer in SAPI? -

i'm creating simple speech recognition application , implement recognition using system.speech.recognition namespace. came across isprecognizer in msdn , know how can use , other classes improve application. note: need prioritize user defined grammars , dictation grammar in application well

WPF : Resize DataTemplate -

i tried set width , height property data template control control keeps default size. <itemscontrol grid.row="1" x:name="containerusers" itemssource="{binding validusers}" > <itemscontrol.itemspanel> <itemspaneltemplate> <wrappanel isitemshost="true" allowdrop="true" cliptobounds="false" dragenter="panelusers_dragenter" drop="panelusers_drop" /> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemtemplate> <datatemplate> <my:picturelabelcontrol width="20" height="50" /> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> in fact have 3 panels these , wish change size of control when c...

arrays - Why do I get a warning trying to pass a 'char (*c)[6]' to a function expecting a 'const char (*c)[6]'? -

i know char ** vs const char ** thing (like described in c faq ) can't see scenario doing pointer arrays lead content inside arrays being modified. my code: void fun(const char (*p)[6]) { printf("%s", p[0]); } int main(int argc, char *argv[]) { char a[6] = "hello"; char (*c)[6]; c = &a; fun(c); } gives below output when compiled gcc: test.c:17:9: warning: passing argument 1 of 'fun' incompatible pointer type test.c:5:10: note: expected 'const char (*)[6]' argument of type 'char (*)[6]' the question here somehow related has no answer far. compiler being paranoïd , way rid of warning explicitly cast ? or there chance can go wrong ? it quirk of c language specification. example, char ** const char *const * conversion safe const-correctness point of view, yet prohibited in c. this quirk of const-correctness rules "fixed" in c++ language, c continues stick original specificatio...

Rails: how to redirect to a specific page after signing out with devise -

i have question using devise in rails. how can redirect specific page after signing out (destroying user session)? i tried following in application controller, not seem working: def after_sign_out_path_for(resource_or_scope) root_path end thanks in advance! that should work according wiki . maybe you've missed last line: you should override method devise::controllers::helpers#stored_location_for in application controller, return nil . applies after_sign_in_path_for also. ymmv.

algorithm - Order Statistic Tree in C++ -

i need order statistic tree standard gcc stl map containers. i checked , there known pbds. policy based data structures. usage not clear me. anyone can tell me how use stl map containers order statistic tree? if on gnu g++ enough? here example of gnu policy-based stl map implemented order statistic tree (tested on linux gcc 4.6.1): #include <iostream> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef tree< int, int, less<int>, rb_tree_tag, tree_order_statistics_node_update> map_t; int main() { map_t s; s.insert(make_pair(12, 1012)); s.insert(make_pair(505, 1505)); s.insert(make_pair(30, 1030)); cout << s.find_by_order(1)->second << '\n'; return 0; } here a link overview of gnu policy-based data structures . here other tree_order_statistics example . cannot find reference policy-based data structures, can...

c - comparing intervals using integers -

first off, know there many different easier/reliable ways perform ask, not point of question. i attempting compare 2 sets of integers if fractions. mean suppose have 2d array: int array[2][2]; array[0][0] = 2; array[0][1] = 3; array[1][0] = 1; array[1][1] = 50; how want treat these numbers number in: array[0][0] = 2 <--- numerator array[0][1] = 3 <--- denominator or 2/3 in case. want compare 2 fractions; if(2/3 < 1/50){ //blah blah blah code here } the caveat here can not convert numbers floating point numbers retain accuracy or create temporary floating point placeholder. there way compare these using integer values? i don't know should tag question, if think of let me know , i'll tag it. cross multiply 2 numerators 1 another's denominators ie 2/3 vs 1/50th: multiply 50 , 1 3 , multiply 2 , 3 50. then can compare numerator without having convert float.

plsql - Sql Data Manipulation -

i have data in table in following manner tablename : history page_url verified day ------------------------------------------ some_url1 true 2012-06-25 some_url2 true 2012-06-24 some_url1 false 2012-06-25 some_url2 false 2012-06-24 this using day field values field names in table i need output in following manner : page_url 2012-06-25 2012-06-24 ------------------------------------------------ some_url1 true false some_url2 true false is possible using pl/sql or stored procedures ?? what looking here pivoting columns. if these columns limited in sample data, can simple case statement this: select page_url, max(case when day = '2012-06-25' verified end) '2012-06-25', max(case when day = '2012-06-24' verified end) '2012-06-24' tablename group page_url

java - Jmeter - group results in listener based on response code or variable -

i'm preparing load test web service , i'm done have 1 problem. right have listeners, example graphs, 1 successful samples , other failures only. want able create more listeners or perhaps column in table somewhere tell me how time did service take run when there no errors, when error "a" occured (response code... or variable..), error "b" etc. along how many times these errors occured. so example of output like: success | 1000 | avg 32ms | max 120 ms | min 20 ms, ... errors | 300 | avg 50 ms | max 300 ms | min 10 ms, ... error | 100 | avg 10 ms | max 20 ms | min 8 ms, ... error b | 54 | avg 100 ms | max 200 ms | min 60 ms, ... etc. etc. is possible in jmeter? if so, how? help! yes possible, add listener. view results in table , configure need.

java - (J2me) Stream as a buffer? -

here got j2me application , need transmit or save live data output stream. what happen if use 1 thread write data stream , after writing no ofl bytes other thread bytearray out of save or transmit , reset stream zero.. i.e calling reset on .. equals using stream fixed size buffer.. the constrain here may not able use bytebuffer object purpose will make stream invalid because first thread still wiring it? i assume going use java.io.bytearrayoutputstream class, part of cldc 1.0 standard of j2me. cldc 1.0 not thread safety of bytearrayoutputstream . but if implementation of bytearrayoutputstream , needed methods seems synchronized : public synchronized byte tobytearray()[] { ... } public synchronized void reset() { ... } public synchronized void write(byte b[], int off, int len) { ... } if have access sources of j2me classes. can double check that. if methods synchronized, should safe use stream plan.

javascript - How to display Google viz line chart interval in hours and minutes? -

Image
i got line chart displaying intervals in minutes or hours. dates correctly set , chart displays correctly. problem here labels. data passed chart: u d: array[96] 0: object c: array[2] 0: object v: wed jun 27 2012 00:00:00 gmt+0200 (romance daylight time) __proto__: object 1: object length: 2 __proto__: array[0] __proto__: object 1: object c: array[2] 0: object v: wed jun 27 2012 00:15:00 gmt+0200 (romance daylight time) __proto__: object 1: object length: 2 (...) and chart displays this: now issue label should display hour range , vertical lines disapear :( (they show if there more 1 day being displayed). i've been shewing https://developers.google.com/chart/interactive/docs/gallery/linechart#data_format check solution can't find references why hours hidden on vaxis. anyone knows how display them? (i'll update answer when find rest of it) display hours in tooltip it's configurable datefor...

asp.net - Variable number of categories/checkboxes -

i building form parents enter health information students. our nurses want build similar fill out when see new doctor have categories , conditions within category check if apply you. want number of categories , conditions variable can change them willy nilly desired. i need ideas how approach ui side. initial thought parent gridview row each category , inside that, child gridview each condition own checkbox. bit of work gridviews , know how access nested objects i'm not terribly worried how data back. my question this: there better way , suggestions community make might different or more efficient using nested gridviews? +1 asking is there better way? what i'm suggest may end being little more complicated @ first, rest assured worth in end. there javascript framework named knockout.js perfect situations these. knockout vastly simplifies situations variable amount of ui controls needed. http://knockoutjs.com/ here tutorial on website has similar situat...

php - get all imdb id from page url by preg_match_all -

how can imdb ids page? example, want ids here . in page, urls of format: http://www.imdb.com/title/tt0948470/ i need ids page using preg_match_all() - can me? okay, i'm giving cooked-up code, explain it: obtain html source parse <a> href attributes test regular expression if value matches. if matches, extract id link , store in way don't duplicates. done. example/ demo // initialize $ids = array(); $url = 'http://www.imdb.com/movies-coming-soon/'; # url $expr = '//a/@href'; # these attributes $regex = '(/title/(tt\d{5,7})/)u'; # matching regex $match = 1; # take group 1 // process foreach((new domxpath(@domdocument::loadhtmlfile($url)))->query($expr) $obj) preg_match($regex, $obj->value, $matches) && $ids[$matches[$match]] = 0; ; $ids = array_keys($ids); // output print_r($ids); ( notes: tagge...

c - Replay Pcap files like data -

i want record handshake messages between server , client file , replay them later. for example, when run s_server command -debug option, output follows: read 0x9482088 [0x948d518] (2064 bytes => 2064 (0x810)) 0000 - 0b 00 08 0c 00 08 09 00-04 1a 30 82 04 16 30 82 ..........0...0. 0010 - 02 fe a0 03 02 01 02 02-01 02 30 0d 06 09 2a 86 ..........0...*. 0020 - 48 86 f7 0d 01 01 05 05-00 30 81 88 31 0b 30 09 h........0..1.0. 0030 - 06 03 55 04 06 13 02 4e-4c 31 0b 30 09 06 03 55 ..u....nl1.0...u 0040 - 04 08 0c 02 4e 42 31 12-30 10 06 03 55 04 07 0c ....nb1.0...u... 0050 - 09 41 4d 53 54 45 52 44-41 4d 31 10 30 0e 06 03 .amsterdam1.0... 0060 - 55 04 0a 0c 07 4d 41 49-4e 20 43 41 31 0c 30 0a u....main ca1.0. 0070 - 06 03 55 04 0b 0c 03 49-43 54 31 17 30 15 06 03 ..u....ict1.0... 0080 - 55 04 03 0c 0e 77 77 77-2e 6d 61 69 6e 63 61 2e u....www.mainca. i can record data files. how can extract data (bytes) buffer? there utility in openssl it? or can done in c prog...

javascript - I have a parser to make, i'd like to learn proper parsing -

i want parse text javascript. syntax want parse markup language. language has 2 main kind of markup: $f56 mean following characters of color #f56 . until following $ 3 hex char using color. $i mean until following $z (closing tag) text in italic. other 1 letter tags. so language composed of 3 character long hexa tags color , 1 letter long tags. i can craft ugly parse text, storing char position , current status of tags (formatting , color) i'd learn proper parsing. give me few tips/principle make clean parser language ? if know antlr might intrested in exploring http://www.antlr.org/wiki/display/antlr3/antlr3javascripttarget , generates javascript lexers , parsers if set target language javascript grammer t.g grammar t; options { language=javascript; [other options] } ... ... parser.html <script type="text/javascript" src="lib/antlr3-all-min.js"></script> <script type="text/javascript" src=...

Base java classes still in the classpath during maven android build -

i'm having rather strange problem caused both facts android java implementation differs sun java implementation , base java classes still included in classpath (all way @ end) during maven build of android project. think solution not have java classes on classpath, can't seem find way this. basically, there class called abstractexecutorservice in java.util.concurrent (in both android , java). java class contains couple methods called newtaskfor i'd use in android, android implementation doesn't have them. no problem, i'll implement them (with few changes such using future instead of runnablefuture). works fine in ant (the build tool migrating away from). the problem when maven tries compile class (which extends abstractexecutorservice), instead of adding methods android implementation when doesn't find them, continues down classpath, finds java methods , complains return types don't match. ideally don't think java classes should available during ...

ruby on rails - Devise authentication: log out and redirect -

is there way write rails method log out , redirect custom page? i'm using devise authentication gem. i not want logouts followed redirect, in place method called. it depends on conditions have in order redirect 1 place or another, here in application redirect differently depending on role of user: add private method in applicationcontroller : private def after_sign_out_path_for(resource_or_scope) # if it's admin if is_admin?(current_user) admin_path # otherwise else root_path end end basically, need find condition need apply in after_sign_out_path , return path accordingly condition. notice symbol scope, , therefore can use choose returned path redirect.

What's wrong with this rails syntax? -

well, hate using syntax checker, life of me cannot figure out why thi error where line #8 raised: unexpected $end, expecting keyword_end here offending code: 5: <%= f.input :allele2 %> 6: <%= f.input :run_date %> 7: 8: <%=f.association :gmarkers, :collection => gmarker.all(:order => 'marker'), :prompt => "choose marker", :label => "marker" %> 9: i'm using simpleform gem, , not familiar yet (obviously!) tia, --rick you're missing <% end %> after last line there, line 8.

c# - Why does ImageResizer not handle extraction of tiff pages if the tiff has pages of differing image types? -

i'm using imageresizer.net in console app pull pages out of tiff images, when tiff contains pages of differing image types, imageresizer extracts not represent original page. i using managed api, code: imagebuilder.current.build(sourceimagepath, destinationimagepath, new resizesettings("page=[whatever]")); the tiff image contains... page 1, image type "bilevel (white zero)", compression "group 3", size "485kb". page 2, image type "ycbcr (2,1 subsampling)", compression "jpeg (old style)", size "11mb". page 3, image type "ycbcr (2,1 subsampling)", compression "jpeg (old style)", size "11mb". page 4, image type "grayscale (256 grays, black zero)", compression "jpeg (old style)", size "4mb". the behaviour getting is... extracting page 1 works correctly. extracting page 2 ends extracting image of page 1. extracting page 3 ends extractin...

xml - Indentify the boolean tag in jersey request -

in jersey put request passing xml file data input curl. how should test particular boolean value in xml input file, because jaxb converts non-true values false. , if tag isnt present gives value false. try declaring attribute using object type boolean instead of primitive boolean.

arrays - jQuery wont turn this is into JSON -

so code want turn json following var locationdata = []; locationdata['lat'] = position.coords.latitude; locationdata['long'] = position.coords.longitude; locationdata['address']['road'] = data['address']['road']; locationdata['address']['suburb'] = data['address']['suburb']; locationdata['address']['city'] = data['address']['city']; locationdata['address']['county'] = data['address']['county']; locationdata['address']['state'] = data['address']['state']; locationdata['address']['postcode'] = data['address']['postcode']; locationdata['address']['country'] = data['address']['country']; locationdata['address']['country_code'] = data['address']['country_code']; but when run it, not alert me has been successful ...

ruby - How do I start redis as a rakefile task -

i trying create rakefile runs both redis , irb. have figured out how run irb (the first task runs), when try run redis task see error: rake aborted! wrong number of arguments exactly wrong? code below: task :default require 'irb' irb.start end task :init require 'redis' exec {'redis-server'} end command use run code: bundle exec rake (or rake :init, depending on 1 want run) you receiving argument error because exec expects string argument, , sending block. exec not block , wants string. use exec "redis-server" execute command correctly. hopefully result looking for. not sure why requiring redis @ since aren't using gem, executing command. behavior of task no different running redis-server on command line.

html - Pixel where top and left borders meet -

i have div has 1 pixel solid white border on left , right, , on top have 2 pixel solid black border. on corner these borders meet, pixel showing white. possible make black? how work? html: <div id="bodyholder"> <div id="leftholder"> welcome website.... <br> <br style="line-height:10px"> <img src="images/1_p1.jpg" align="left" style="margin-right:19px" alt="" border="0"> <br>lorem ipsum dolor sit amet, consectetur adipisicing elit sed eiusmod tempor. <br> <br style="line-height:40px"> sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. nemo enim ipsam voluptatem quia. </div> <div id="mi...

ios - Configuring Provisioning Profile -

i configuring new apple provisioning profile , noticed there 2 configuration options not documented anywhere (or hidden deep in documentation). enable passes enable data protection i know "data protection" means on ios can't find documentation mentioning provisioning profile option. could please me meaning of these options? data protection ios 5.0 feature. if use @ provisioning level (it entitlement), entire application read-lock data when app not running in foreground (or if choose, when device unlocked if perform tasks in background). can see more info in wwdc 2011 video session 208 (around 38 minute mark). however, mentioned in paul's answer, passbook ios 6.0 feature , cannot discussed in more detail mentioned on public page linked to.

scala - How make tests always run in same order in Scalatest? -

we use spec trait our tests in scalatest. when run entire suite, not run in same order. answers in google suggest defining suite , specifying test names. requires add test name every time add new test. is possible use discoverysuite , define test execution order? run tests in alphabetical order. looked @ extending discoverysuite discoverysuite seems private scalatest. ---more info---- by ordering mean, if there tests a, b, c. class extends spec {..} class b extends spec {..} class c extends spec {..} then want tests run in order (a, b, c). happens is, run in different order everytime. discoverysuite private scalatest, yes. execution order of tests in spec (now called funspec, way) defined order of appearance in source file. define order of test classes themselves, need define nestedsuites method , run wrapper suite instead of using discovery. can go using discovery once no longer need order. i'll @ adding defined order discoverysuite in next scalatest rel...

jquery - How to create form elements input box , label using javascript onclick -

i know how create hidden type input box , labels using javascript onclick function. $().ready(function() { $("#product").autocomplete("get_completeproducts", { width: 406, matchcontains: true, selectfirst: false }); }); <input type="text" value="" name="product" id="product" size="50"> <input type="button" value="add list" onclick="addprotolist()" name="select_pro"> i getting above input box value through ajax auto complete , user click on select box , have , have add list them number of selected phones bellow input box like <label>samsung galaxy y<label><input type="hidden" value="778" name="pro_id[]"> <label>samsung galaxy y duos<label><input type="hidden" value="788" name="pro_id[]"> <label>samsung galaxy ...

objective c - Sort a complex NSarray -

i have nsarray *userinputs , array contains custom objects "userinput" . @interface userinput :nsobject { nsstring *page_id; @end each userinput ( instance of userinput ) belog bookpage . @interface bookpage: nsobject { nsstring *pageprefix; ( exemple : pageprefix = @"k1") @end from each userinput know witch bookpage it's belong : bookpage *bookpage = [self.book pagewithid:userinput.page_id]; how can sort array of userinputs ( instances of userinputs ) pageprefix key. answers ? you can sort array of custom object this: nssortdescriptor *asortdescriptor = [[nssortdescriptor alloc] initwithkey:@"pageprefix" ascending:yes]; [userinputs sortusingdescriptors:[nsarray arraywithobject:asortdescriptor]];

Run External application web browser -

please advice me how can run external application web browser on client side like this: http://ucp-anticheat.org/monitor.html if click 1 row on link browser asks permissions. this web page makes installed service on windows. i dont know how google please advice me something you need create client app client must install, , based on protocol u can execute yr app based on link. same utorrent opens magnets , torrent files have here http://msdn.microsoft.com/en-us/library/aa767914.aspx

xslt - XSL Transformation to split a single node into two nodes in the same level -

i have source xml <cars> <car> <make>fiat</make> <colors> <color>red</color> <color>blue</color> </colors> </car> <car> <make>volvo</make> <colors> <color>red</color> <color>white</color> </colors> </car> <car> <make>renault</make> <colors> <color>blue</color> <color>black</color> </colors> </car> </cars> which want transform like <cars> <detail> <name>makename</name> <entry>fiat</entry> <entry>volvo</entry> <entry>renault</entry> </detail> <detail> <name>availablecolors</name> <entry>red</entry> <entry>blue</entry> <entry>white</entry> <entry...

.net - Inheritance and Polymorphism in LINQ Lambdas -

i've got couple of classes inheriting base class public mustinherit class baseclass public property name string end class public mustinherit class classa inherits baseclass public property string end class public mustinherit class classb inherits baseclass public property somethingelse string end class i want able use single expression query multiple lists of objects, of inherit same base class public function dostuff(expression system.linq.expressions.expression(of func(of baseclass, boolean))) dim lista new list(of classa) ''populating elsewhere dim listb new list(of classb) ''and dim resultseta = lista.where(expression) ''problems on line dim resultsetb = lista.where(expression) ''and end function since both classa , classb inherit same base class, , since linq query against base class, should work. expression can refer properties of base class guaranteed present on both derived classes follow...

A few questions about Javascripts Prototype -

i coming @ javascript classical oop background , having trouble understanding prototype. given code example below: how call/execute bar in foo? why use "privileged" function instead of putting on prototype? this answered in q1 can bar1 , bar2 call each other? function foo() { this.property = "i'm property"; this.privileged = function() { // stuff } } foo.prototype.bar = function() { // stuff } foo.prototype.bar2 = function() { // stuff } there's lot of fud this day. 1). simple usage: var xxx = new foo(); // create instance of object. xxx.privileged(); // calls internal closure. xxx.bar(); // first looks internals, looks prototype object. 2). creates closure can modified on instance. not private @ (since can talk through object instance), rather individual copy of function, each instance of object gets new copy of function. can alter fun...

java - Incomplete WSDL - Account class is missing a child relationship with a custom object -

i generated enterprise wsdl, in account class has bunch of fields , relationships custom , native objects, not have relationship need use in code. any ideas why it's omitted? know wsdl generated based on permissions of user creating it, that's not case here. more details, if needed: custom object name "attachment_category__c". it's child relationship account called r00n30000000vdrheaa . i expect see following field declaration in account class: private com.sforce.soap.enterprise.queryresult r00n30000000vdrheaa; similar present following ones: private com.sforce.soap.enterprise.queryresult notesandattachments; //standard object private com.sforce.soap.enterprise.queryresult legal_documents__r; //custom object i expect getr00n30000000vdrheaa() method in account class, same has getlegal_documents__r() , it's not there. you need go setup , give relationship real name.

vim - Understanding VimClojure new installation startup errors -

i attempting vimclojure working first time. new vim plugins. i'm having problems (error messages below) , looking hints @ least. not idea start. i trying following steps how tamed vimclojure inspecting vimclojure-easy when start vim, presented following error (occurs in both vimclojure 2.3.1 , 2.3.3, later below): error detected while processing /home/nzucker/.vim/bundle/vimclojure/autoload/vimclojure.vim: line 249: e475: invalid argument: 1 line 273: e475: invalid argument: 2 line 343: e475: invalid argument: 1 line 367: e475: invalid argument: 2 line 407: e475: invalid argument: 2 line 413: e475: invalid argument: 7 line 730: e475: invalid argument: 1 line 747: e475: invalid argument: 2 line 823: e475: invalid argument: 8 press enter or type command continue (first error location: vimclojure.vim:249 ) the plugin seems partially work however. have syntax highlighting. when attempt open repl sr command, following: error detected while processing function ...

c# - Converting a DataTable to JSON without adding extra backslashes using Json.NET -

i using json.net convert datatable json mentioned below, json string contains backslash characters \ before quotation marks. how can remove these characters? c# code convert datatable json string: string json = jsonconvert.serializeobject(objacctdtable, formatting.none); json output string: "[{\"acctid\":5822,\"acctname\":\"1 edi source inc (vendor)\"},{\"acctid\":4350,\"acctname\":\"21c oats, inc. (rail customer)\"},{\"acctid\":5729,\"acctname\":\"24 waterway llc (leasing company account)\"},{\"acctid\":3799,\"acctname\":\"3d corporate solutions llc (rail customer)\"},{\"acctid\":4596,\"acctname\":\"3fnp (hines 70 west madison lp) (vendor)\"},{\"acctid\":6035,\"acctname\":\"3fnp llc (oracle vendor)\"},{\"acctid\":4622,\"acctname\":\"3m co (vendor)\"},{\"ac...