text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have JavaScript which performs a whole lot of calculations as well as reading/writing values from/to the DOM. The page is huge so this often ends up locking the browser for up to a minute (sometimes longer with IE) with 100% CPU usage. Are there any resources on optimising JavaScript to prevent this from happening (...
[ 0.3363357484340668, 0.06206098943948746, 0.20332492887973785, -0.09765676409006119, -0.016013268381357193, -0.32971304655075073, 0.39069581031799316, -0.24922506511211395, -0.19222860038280487, -0.7427051663398743, -0.06745420396327972, 0.5684701204299927, -0.1329450011253357, 0.1118670105...
something like this... ``` function doCalculation() { //do your thing for a short time //figure out how complete you are var percent_complete=.... return percent_complete; } function pump() { var percent_complete=doCalculation(); //maybe update a progress meter here! //carry on pumping? if...
[ 0.3646673262119293, -0.16641776263713837, 0.8278027772903442, -0.11473424732685089, 0.3920677900314331, -0.044540174305438995, 0.34965431690216064, -0.6710928082466125, 0.1284417062997818, -0.7578892111778259, 0.11805392056703568, 0.9815394878387451, -0.009301135316491127, -0.3049426376819...
I need to downgrade Java in Ubuntu. Current version is 1.6.0, I have to use JDK 1.5.0 for my Android platform. How to do it? Remove it and reinstall? `update-java-alternatives` is your friend: ``` $ sudo update-java-alternatives -l java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun java-6-sun 63 /usr/lib/jvm/java-6-sun `...
[ -0.14728806912899017, 0.2651589810848236, 0.5607601404190063, -0.2854815125465393, -0.09887088090181351, 0.022314880043268204, 0.43027549982070923, -0.094672292470932, 0.02273651771247387, -0.970832884311676, -0.07296516746282578, 0.6749185919761658, -0.3451244533061981, 0.2213787138462066...
Please can anyone recommend a quick checklist / best practice guide to help us avoid simple (but subtle) mistakes that cause could cause memory leaks in .net apps I find it difficult and quite painful to begin searching for the cause of a memory leakage when i'm in the testing phase of a project. If there are 'rules ...
[ 0.5101146101951599, 0.3379645049571991, -0.2880088984966278, 0.5826927423477173, 0.05854832008481026, -0.4953291118144989, 0.48080891370773315, 0.5699314475059509, -0.3971518576145172, -0.6480981707572937, -0.08526559174060822, 0.581658124923706, 0.1473163664340973, 0.006163336336612701, ...
forms of leaks: * Unmanaged leaks (code that allocates unmanaged code) * Resource leaks (code that allocates and uses unmanaged resources, like files, sockets) * Extended lifetime of objects * Incorrect understanding of how GC and .NET memory management works * Bugs in the .NET runtime The first two is usually handle...
[ 0.3331531286239624, -0.005027858540415764, -0.19927188754081726, 0.37425026297569275, -0.012740354984998703, -0.2877679765224457, 0.2884133458137512, -0.2715436518192291, -0.41517335176467896, -0.46539390087127686, -0.09681661427021027, 0.46160888671875, -0.41311201453208923, 0.18260297179...
of objects, totalling a significant size of memory. If you keep around a reference to this list for longer than you need to, you will have what looks like a memory leak. In addition, if you keep adding to this list, so that it grows with more data periodically, and old data is never reused, you definitely have a memory...
[ 0.15751345455646515, 0.20700208842754364, 0.047490887343883514, 0.44282400608062744, -0.15819810330867767, -0.06894663721323013, 0.4026602506637573, 0.07648833841085434, -0.8222398161888123, -0.43090134859085083, -0.05087316408753395, 0.1741781234741211, -0.27551817893981934, 0.52527964115...
.NET memory management works can mean that you look at the memory usage in a process viewer and notice that your app keeps growing in memory usage. If you have lots and lots of memory available, GC might not run that often, giving you an incorrect picture of the current *usage* of memory, as opposed to mapped memory. ...
[ 0.204536572098732, -0.03726671263575554, 0.3242109417915344, 0.26500943303108215, -0.15189474821090698, -0.025174753740429878, 0.5210268497467041, 0.12495353817939758, -0.44142019748687744, -0.7811289429664612, 0.030366087332367897, 0.7490713000297546, -0.2955499589443207, 0.05229570344090...
the comments, how to avoid keeping references longer than necessary, then the only way to do that is to to just that. Let me explain. First, if you have a long-running method (for instance, it might be processing files on disk, or downloading something, or similar), and you used a reference to a big data-structure ea...
[ 0.5216042995452881, 0.167317733168602, 0.06541357189416885, 0.3091481029987335, -0.12378931045532227, -0.20260195434093475, -0.19279742240905762, 0.2856574058532715, -0.25656935572624207, -0.5622449517250061, 0.20419161021709442, 0.7794216275215149, -0.19992797076702118, 0.2042743116617202...
that is technically in scope, is eligible for garbage collection. The garbage collector is really aggressive in this respect. In debug-builds and running under a debugger, it will keep the reference for the life of the method, in case you want to inspect it when stopped at a breakpoint. However, if the reference is st...
[ 0.3696606457233429, 0.23314696550369263, 0.1731286197900772, 0.3072827160358429, 0.10910220444202423, -0.5905197262763977, 0.32786890864372253, -0.011686746962368488, -0.20676979422569275, -0.3993341028690338, -0.09947440773248672, 0.5246361494064331, -0.08775120228528976, 0.37904128432273...
holding to it, so that GC will pick it up later.
[ 0.20274434983730316, 0.04060214012861252, 0.6884158253669739, 0.03541664779186249, 0.17133070528507233, -0.12544184923171997, -0.043187569826841354, -0.32088741660118103, -0.24145983159542084, -0.03226305544376373, -0.007190720643848181, 0.44415950775146484, -0.12121450901031494, -0.020519...
I have a somewhat ridiculous question regarding DDD, Repository Patterns and ORM. In this example, I have 3 classes: **Address**, **Company** and **Person**. A Person is a member of a Company and has an Address. A Company also has an Address. These classes reflect a database model. I removed any dependencies of my Mo...
[ 0.026375768706202507, 0.17573489248752594, 0.16943633556365967, 0.22885562479496002, 0.16970078647136688, 0.18173392117023468, -0.1365116387605667, 0.2879379987716675, -0.1892673373222351, -0.5465810298919678, -0.23991064727306366, -0.0017974060028791428, -0.13477110862731934, 0.5153655409...
Person object has a Company, I currently save/update the values of the Company property too when making that SavePerson call. I insert / update all of the Company's data - Name and Address - during this procedure. However, I really have a hard time thinking of a case where a Company's data can change while dealing wi...
[ -0.20721301436424255, 0.1021948829293251, 0.34678491950035095, 0.12486819922924042, 0.05846023932099342, 0.2739366590976715, -0.03725297749042511, 0.22271206974983215, -0.35394081473350525, -0.3444671928882599, -0.07138365507125854, 0.4287584722042084, 0.022875597700476646, 0.4085291922092...
introduce unnecessary database calls. When saving a Person I should just be able to update the CompanyId column. But since the Person class has a Company property, I'm somewhat inclined to update / insert it with it. From a strict/pure point of view, the SavePerson method should save the entire Person. What would the...
[ 0.1547759622335434, 0.028769968077540398, -0.03426368162035942, 0.24167963862419128, 0.07889952510595322, -0.01918313093483448, 0.11028840392827988, 0.1524229794740677, -0.3219913840293884, -0.574023425579071, 0.26087164878845215, 0.5131054520606995, -0.3022507131099701, 0.0689059421420097...
Address and a Company, so when I save a Company, I also call SaveAddress. Let's assume I use LinqToSql - this means that I don't insert/update the Company and the Address in the same Linq query. I guess there are 2 Select Calls (checking whether a company exists, checking whether an address exists). And then two Insert...
[ 0.2728371024131775, 0.039015498012304306, 0.3286254107952118, -0.17499038577079773, 0.2112301141023636, 0.14512571692466736, -0.08375334739685059, -0.003438085550442338, 0.06092699617147446, -0.7329857349395752, -0.17353923618793488, 0.5428853034973145, -0.4071483314037323, 0.2704026699066...
} public string AddressLine2 { get; set; } public string City { get; set; } public string PostalCode { get; set; } } public class Company { public int CompanyId { get; set; } public string Name { get; set; } public Address Address { get; set; } } public class Person { public int Pe...
[ 0.12078884243965149, -0.2624988853931427, 0.09144417196512222, -0.1844724416732788, 0.23813126981258392, 0.3286227881908417, 0.16194771230220795, 0.28719162940979004, 0.13869009912014008, -0.7867855429649353, -0.41184377670288086, 0.08082536607980728, -0.12357214838266373, 0.14461725950241...
get; set; } public string Email { get; set; } public Company Company { get; set; } public Address Address { get; set; } } ``` **Edit** Also see [this follow up question](https://stackoverflow.com/questions/679005/how-are-value-objects-stored-in-the-database). How are Value Objects stored in a Database? ...
[ 0.4376423954963684, 0.22378261387348175, 0.40133583545684814, 0.16558323800563812, -0.018517419695854187, -0.3475721776485443, 0.17441296577453613, 0.10063305497169495, -0.3512782156467438, -0.5186360478401184, -0.2848871350288391, 0.6964665055274963, -0.033840760588645935, 0.0538056343793...
you case, it would be the Address. The difference between a Value Object and an Entity Object is that Entities have an identity; VOs do not. The VO's identity really is the sum of it's properties, not a unique identity. In the book [Domain-Drive Design Quickly](https://rads.stackoverflow.com/amzn/click/com/1411609255) ...
[ 0.32565978169441223, -0.11642034351825714, 0.6543020009994507, 0.4047676920890808, 0.3317919373512268, -0.04041663184762001, -0.12538480758666992, -0.33266109228134155, -0.06381424516439438, -0.45029231905937195, -0.16505710780620575, 0.29434800148010254, -0.1862940788269043, 0.44960844516...
longitude values, but still those are even VOs by definition because it's a combination of two points. Use *Services* for combining your entities into a single entity to act upon. ---------------------------------------------------------------------------- Also, do not forget about the Services concept in the DDD pla...
[ 0.34500667452812195, -0.2748609185218811, 0.5378735661506653, 0.3666386008262634, 0.37643763422966003, -0.0381661020219326, -0.04216594621539116, -0.1393079310655594, -0.19957581162452698, -0.743117094039917, -0.040508419275283813, 0.29726293683052063, -0.15926116704940796, 0.2533394098281...
other actions. In your case, saving a Person() and creating a blank Company() at the same time. ORMs usualyl require an identity, period. ----------------------------------------- Now, how would you go about saving the Address VO in the database? You would use an IAddressRepository obviously. But since most ORMs (i.e...
[ 0.03757181391119957, -0.09645170718431473, -0.03135913982987404, -0.008855617605149746, 0.33937978744506836, 0.08209137618541718, 0.2075280100107193, -0.04827091470360756, -0.34338799118995667, -0.708648145198822, -0.18921919167041779, 0.8173308372497559, -0.32680636644363403, -0.015562617...
, AutoSync = AutoSync.OnInsert)] internal int AddressID { get; set; } // everything else public [Column] public string StreetNumber { get; set; } [Column] public string Street { get; set; } [Column] public string City { get; set; } ... } ```
[ 0.45666876435279846, -0.1269569993019104, 0.25570735335350037, -0.11707518994808197, 0.03183874487876892, 0.24975036084651947, 0.33787018060684204, -0.22595810890197754, -0.09286131709814072, -0.7052851915359497, -0.3847050070762634, 0.655067503452301, -0.4431113600730896, 0.26640519499778...
Let's suppose I have a struct like this: ``` struct my_struct { int a; int b; } ``` I have a function which should set a new value for either "a" or "b". This function also requires to specify which variable to set. A typical example would be like this: ``` void f(int which, my_struct* s, int new_value) { if...
[ -0.13448458909988403, 0.11966101080179214, 0.3055110573768616, -0.3148173689842224, -0.03178633376955986, -0.062171828001737595, 0.21189697086811066, -0.21513643860816956, -0.07746351510286331, -0.6952706575393677, -0.20112919807434082, 0.45975691080093384, -0.3709477186203003, 0.108397103...
I cannot do is to declare a vector (int vars[2]) within my\_struct and pass an integer as index to f. Basically in f I need to access the variables by name. Problem with previous example is that in the future I plan to add more variables to struct and in that case I shall remember to add more if statements to f, which...
[ -0.05328518524765968, 0.032516077160835266, 0.361890584230423, -0.15206068754196167, -0.0829237699508667, -0.043171416968107224, 0.2762032151222229, -0.14617738127708435, 0.056227024644613266, -0.6360111236572266, 0.07870977371931076, 0.5893328785896301, -0.4928715229034424, 0.336558878421...
call FUNC(a) or FUNC(b). This would work but I don't like using macros. So my question is: Is there a way to achieve the same goal using templates instead of macros? **EDIT**: I'll try to explain why I cannot use pointers and I need access to variable by name. Basically the structure contains the state of a system. ...
[ 0.08369819819927216, 0.08270720392465591, -0.026979466900229454, -0.0022325876634567976, -0.10492880642414093, -0.05547177791595459, 0.11174312233924866, -0.2929852604866028, -0.354496568441391, -0.4536164104938507, -0.017614198848605156, 0.2621532678604126, -0.43910151720046997, 0.4195708...
well). When I add a new variable to the structure I generally also add a new class, like this: ``` class undo_a : public undo_token { int new_value; public: undo_a(int new_value) { this->new_value = new_value; } void undo(my_struct *s) { s->a = new_value} }; ``` Problem is I don't know pointer to s when I cre...
[ -0.10873067378997803, 0.14893445372581482, 0.16980919241905212, -0.2638651132583618, -0.08145270496606827, 0.1367965191602707, 0.3276819586753845, -0.4680086076259613, -0.47611716389656067, -0.5459339022636414, -0.14521591365337372, 0.3234460651874542, -0.2673870027065277, 0.30229514837265...
per variable... ``` #include <iostream> #include <ostream> #include <string> struct my_struct { int a; std::string b; }; template <typename TObject, typename TMember, typename TValue> void set( TObject* object, TMember member, TValue value ) { ( *object ).*member = value; } class undo_token {}; template...
[ 0.27810239791870117, -0.29741451144218445, 0.8217356204986572, -0.31217294931411743, -0.041766583919525146, 0.2215213030576706, 0.29134881496429443, -0.4430541694164276, -0.4509011209011078, -0.6460153460502625, -0.5818039774894714, 0.5398218035697937, -0.5536321401596069, 0.15113809704780...
{ set( s, member_, new_value_ ); } }; int main() { my_struct s; set( &s, &my_struct::a, 2 ); set( &s, &my_struct::b, "hello" ); std::cout << "s.a = " << s.a << std::endl; std::cout << "s.b = " << s.b << std::endl; undo_member<int> um1( &my_struct::a, 4 ); um1.undo( &s );...
[ -0.5837345719337463, -0.2759493291378021, 0.7634574770927429, -0.44481122493743896, 0.2710915207862854, 0.620815634727478, 0.3989681005477905, -0.2871391475200653, -0.3861197829246521, -0.48626431822776794, -0.8364707231521606, 0.3753803074359894, -0.5549744367599487, 0.189066082239151, ...
undo_member<std::string> um2( &my_struct::b, "goodbye" ); um2.undo( &s ); std::cout << "s.b = " << s.b << std::endl; return 0; } ```
[ -0.4594264328479767, 0.11063210666179657, 0.6884211301803589, -0.5509589314460754, 0.3086559772491455, 0.31716153025627136, 0.2501223385334015, -0.1759752333164215, -0.3748023211956024, -0.3242138624191284, -0.5106251239776611, 0.38924363255500793, -0.4391063451766968, 0.21903137862682343,...
Is Python slower than Java/C#? [performance-comparison-c-java-python-ruby-jython-jruby-groovy](http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/) Here is a project that optimizes CPython: [unladen-swallow](http://code.google.com/p/unladen-swallow/) Don't conflate Lan...
[ 0.00047787264338694513, -0.011717219837009907, -0.03160921856760979, -0.11009683459997177, -0.44831278920173645, 0.09006038308143616, 0.5075012445449829, -0.016043124720454216, -0.2717445492744446, -0.45333918929100037, 0.06611140817403793, 0.496855765581131, -0.2493991255760193, -0.643324...
C++. You can -- to an extent -- further optimize C++ and perhaps squeeze out a little bit better performance than unoptimized output from PyREX. For more information, see <http://arcriley.blogspot.com/2009/03/so-long-pyrex.html> Note that Python (the language) is not slow. Some Python run-times (CPython, for example)...
[ -0.01592976599931717, -0.41488879919052124, 0.12115495651960373, 0.013781118206679821, -0.24116164445877075, -0.09547573328018188, -0.0018983532208949327, -0.11945924907922745, -0.24180926382541656, -0.19415101408958435, -0.20987190306186676, 0.6236748695373535, -0.15736643970012665, -0.40...
I recently reinstalled XP and then SP3 and I'm currently getting an error whenever I try and copy something from a network share. ``` Title: Internet Explorer Message: This page has an unspecified potential security flaw. Would you like to continue? ``` I believe it's related to [KB921398 (MS06-045)](http:/...
[ 0.3159899115562439, 0.1596813201904297, 0.5880370736122131, -0.035350240767002106, -0.1709761768579483, -0.3558066785335541, 0.5695707201957703, 0.019545506685972214, -0.4400389790534973, -0.6569982767105103, -0.2552100419998169, 0.6668028831481934, -0.15185336768627167, 0.0781901255249977...
it's no fix :( > There's a temporary fix by adding any network ip masks to the trusted intranet zones That's the real fix. The error message occurs when you are trying to copy files out of the Internet Zone. And it is indeed risky if you really are dragging files out of a public-internet network share, so the message ...
[ 0.12104911357164383, 0.09890415519475937, 0.42589306831359863, 0.45989474654197693, 0.3047526180744171, -0.2874191403388977, 0.14021369814872742, 0.3715294301509857, -0.5304054617881775, -0.6112428903579712, -0.31058284640312195, 0.6792405247688293, -0.29554641246795654, 0.1095274612307548...
Internet Options-> Security -> Local intranet -> Sites. If “Automatically detect intanet network” is ticked, untick it as obviously the automatic detection isn't working. Turn on the top two; if you're sure that you will never be accessing network shares outside the intranet (eg. because a firewall prevents it), you ca...
[ 0.1489066183567047, -0.31872472167015076, 0.3422199785709381, 0.32289668917655945, 0.03978385403752327, -0.16817817091941833, -0.13733108341693878, 0.16003328561782837, -0.5046898126602173, -0.9274004697799683, 0.14567594230175018, 0.6948747038841248, -0.22598496079444885, -0.0439943596720...
I need to copy from input document to output document all attributes but one. My input is like this: ``` <mylink id="nextButton" type="next" href="javascript:;" /> ``` And I need output like this: ``` <a id="nextButton" href="javascript:;" /> ``` If I use the following XSL: ``` <xsl:template match="mylink"> ...
[ -0.06364244967699051, -0.05827662721276283, 0.728111982345581, -0.252889484167099, -0.040970101952552795, 0.06996850669384003, -0.07299496978521347, -0.5212786793708801, -0.04788772761821747, -0.8847780823707581, -0.17103619873523712, 0.5202682018280029, -0.35109642148017883, -0.0938054844...
up with, I leave it for reference): ``` <xsl:template match="mylink"> <a> <xsl:for-each select="@*"> <xsl:if test="name() != 'type'"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:if> </xsl:for-each> </a> </xsl:template> ```
[ 0.13932374119758606, 0.026444321498274803, 0.7703341245651245, -0.0017143483273684978, -0.015595078468322754, 0.03766515478491783, -0.1749957650899887, -0.9273470640182495, -0.2956755459308624, -0.5853628516197205, -0.13737623393535614, 0.4903859496116638, -0.46893739700317383, 0.225199326...
We're looking for a cheap-to-free "off the shelf" ASP.NET catalogue application, that will meet the following requirements: * Support two kinds of listings: + **Suppliers** of Services + **Suppliers** of Products, and their **Products** * Suppliers can be categorised by: + Area of specialisation - including sub-cat...
[ 0.5597359538078308, 0.0886295884847641, 0.29620179533958435, -0.02558603696525097, -0.05633147805929184, 0.011666100472211838, -0.12585796415805817, -0.09840095043182373, -0.2892357409000397, -0.4895639717578888, -0.255409300327301, 0.3699488341808319, -0.004382545128464699, 0.012793104164...
available to us (that will obviously need some additional development to meet these requirements) are: * Content Management System (MS) * Commerce Server - bear in mind we're not selling the products/suppliers, just listing them * Simple DB application. I'm happy to knock something up in MCMS/simple DB, I'm just look...
[ 0.7397066354751587, 0.2869202792644501, 0.2659749388694763, 0.05884888768196106, -0.08122266829013824, 0.044739194214344025, 0.4450574219226837, 0.29718124866485596, -0.1854165643453598, -0.6666168570518494, 0.015285840258002281, 0.46316999197006226, -0.07177023589611053, 0.181905344128608...
launched, and at the time of writing, offered a number of .NET based eCommerce applications including some with paid/supported options: I've not used or investigated any of these, so your mileage may vary, but I'm listing them here (as a community wiki) to assist the few people who bounce past every now and again look...
[ 0.419265478849411, -0.07081703841686249, 0.12993648648262024, 0.11357708275318146, -0.030122680589556694, -0.026173364371061325, -0.22040170431137085, -0.27731454372406006, -0.2479015588760376, -0.14498616755008698, 0.021573130041360855, 0.38299205899238586, 0.1338929980993271, -0.02616518...
I have been playing with Augmented Reality recently (and having lots of fun with it too!!) I have been able to create PaperVision primitives (cube, cylinder, cone, etc.. and work with them) But adding a DAE model is proving to be illusive! ``` var cubeMaterialList:MaterialsList = new MaterialsList( { all: new FlatShad...
[ 0.2722591161727905, 0.23091359436511993, 0.6176950931549072, -0.08606809377670288, 0.05499257519841194, 0.2020191252231598, 0.025434739887714386, -0.20300863683223724, -0.16934800148010254, -0.8347384333610535, -0.12718579173088074, 0.5602198839187622, -0.21160203218460083, 0.0640001669526...
30, 30, 30); cube.z += 15;
[ -0.2675284147262573, -0.11702311038970947, 0.5083780288696289, -0.3375664949417114, -0.18465721607208252, 0.36809810996055603, -0.08122328668832779, -0.4551747739315033, -0.1439063847064972, -0.4274651110172272, -0.3867182433605194, 0.5760955810546875, -0.538809597492218, 0.226365551352500...
mainContainer.addChild(cube); ``` This all works fine! I am using this to import/attempt to import a dae! ``` private var mCollada:Collada; private var universe:DisplayObject3D; mCollada = new Collada("sample.dae"); universe = new DisplayObject3D(); universe.addChild(mCollada); mainContainer.addChild(univer...
[ -0.22675377130508423, 0.020793715491890907, 0.6679269671440125, -0.14733761548995972, -0.46495798230171204, 0.1993914693593979, 0.2959401309490204, -0.0794307217001915, -0.22922168672084808, -0.6369039416313171, -0.3398551344871521, 0.40897393226623535, -0.5089566707611084, 0.0568864792585...
a bit differently as is displayed in the video abobe. It is also important to note that you may very well be doing this correctly and that there is a problem with the model or possibly even the texture. If the texture isn't loading you should know immediately from the console. Try creating a ColorMaterial and create a...
[ 0.24160371720790863, -0.3379876911640167, 0.690707802772522, 0.32723355293273926, -0.20813877880573273, -0.02215772494673729, -0.02544073387980461, -0.20809626579284668, -0.3348012864589691, -0.6516873240470886, -0.22633111476898193, 0.7073498368263245, 0.10243526846170425, -0.037554617971...
3D Object behind it. Finally play with the scale, not all models come in at the same scale, and using Collada class, as opposed to DAE, seems to blow the model up considerable as shown in the video link above. I have had a lot of time to play with the FlarToolkit / Papervision3D / Collada partnership lately in prepara...
[ 0.30860939621925354, 0.17779020965099335, 0.5761716365814209, 0.09701571613550186, -0.21516786515712738, -0.0472952164709568, -0.11259965598583221, 0.04577071964740753, -0.1385563462972641, -0.5249903202056885, 0.12975287437438965, 0.7590945959091187, 0.07382108271121979, 0.027911759912967...
for my Collada files. * Next take the ".skp" sketchup file into Google Sketchup. * Make sure the sketchup window has focus and hit CTRL and A at the same time. (Select all) * Head up to edit, and go down to the bottom of the drop-down list where it will typically say how many groups you have selected. * Choose explode....
[ 0.1438857913017273, -0.2364426851272583, 0.12715157866477966, 0.04906610772013664, -0.29661908745765686, 0.11064110696315765, 0.16692376136779785, -0.14988397061824799, -0.36920544505119324, -0.7994884848594666, -0.17468290030956268, 0.5222101211547852, -0.31292837858200073, -0.37371414899...
not own Sketchup the .dae extension is not available, lookup the work around :) (Essentially the .dae is wrapped in the ".skp" * You will now have a .dae file, and a folder with the same EXACT name, with textures pertaining to the model inside of it. - Importing / parsing the model and displaying it ------------------...
[ 0.10107041150331497, -0.1657240241765976, 0.7600870132446289, 0.03466792032122612, -0.12813927233219147, -0.044175032526254654, 0.15225276350975037, -0.36423394083976746, -0.11121880263090134, -0.6308600306510925, -0.1930219978094101, 0.3734179139137268, -0.4015107750892639, -0.14771199226...
import org.libspark.flartoolkit.core.transmat.FLARTransMat; import org.libspark.flartoolkit.core.transmat.FLARTransMatResult; import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector; import org.libspark.flartoolkit.pv3d.FLARBaseNode; import org.libspark.flartoolkit.pv3d.FLARCamera3D; impor...
[ -0.1593586504459381, -0.0015587388770654798, 0.6228031516075134, -0.07970933616161346, -0.3912653625011444, 0.4209434390068054, 0.4114930331707001, -0.7658289074897766, -0.25092199444770813, -0.3165322244167328, -0.36616429686546326, 0.47924697399139404, -0.3675975501537323, 0.085952565073...
markerPattern:FLARCode; private var raster:FLARRgbRaster_BitmapData; private var detector:FLARSingleMarkerDetector; private var cam:Camera; private var vid:Video; private var capture:BitmapData; private var cam3D:FLARCamera3D; private var scene3D:Scene3D; private var viewPort:Viewport3...
[ -0.01584099605679512, -0.3278677463531494, 0.5286269783973694, 0.009525185450911522, 0.1138729453086853, 0.44641679525375366, 0.326244980096817, -0.23562882840633392, -0.11687587201595306, -0.07851222902536392, -0.3719978630542755, 0.8508099913597107, -0.2832862436771393, -0.03369071707129...
Main():void { cameraParameters = new FLARParam(); cameraParameters.loadARParam(new CameraParameters() as ByteArray); markerPattern = new FLARCode(16, 16); markerPattern.loadARPatt(new MarkerPattern()); cam = Camera.getCamera(); cam.setMode(640, 480, 30); v...
[ 0.1397211253643036, -0.44733694195747375, 1.02279531955719, -0.0020675386767834425, 0.1348029226064682, 0.40924152731895447, -0.014057756401598454, -0.31128591299057007, -0.5551803708076477, -0.17704805731773376, -0.17352493107318878, 0.6328822374343872, -0.1971406638622284, 0.253556460142...
vid.attachCamera(cam); addChild(vid); capture = new BitmapData(vid.width, vid.height, false, 0x0); capture.draw(vid); raster = new FLARRgbRaster_BitmapData(capture); detector = new FLARSingleMarkerDetector(cameraParameters, markerPattern, 80); cam3D = new FLARCamera3D(...
[ -0.20590505003929138, -0.4719296991825104, 1.0898979902267456, -0.09566193073987961, -0.13141582906246185, 0.2404821515083313, -0.09842636436223984, -0.583945631980896, -0.39278408885002136, -0.2922407388687134, -0.12295923382043839, 0.5915374159812927, -0.31608903408050537, 0.024436725303...
scene3D.addChild(mainContainer); viewPort = new Viewport3D(vid.width, vid.height); viewPort.scaleX = viewPort.scaleY = 2; addChild(viewPort); renderer = new LazyRenderEngine(scene3D, cam3D, viewPort); _dae = new DAE(); _dae.load("assets/dae/apc.dae"); _dae.rota...
[ -0.2596694231033325, -0.4750596582889557, 0.849075436592102, -0.4902836084365845, -0.18246141076087952, 0.5108509659767151, 0.1007978767156601, -0.3972035050392151, -0.40812328457832336, -0.41921180486679077, -0.5970948934555054, 0.5048142075538635, -0.22572697699069977, 0.1093217432498931...
_collada = new Collada("assets/dae/apc.dae"); _collada.scale = 0.05; _collada.rotationZ -= 90; mainContainer.addChild(_collada); */ trans = new FLARTransMatResult(); this.addEventListener(Event.ENTER_FRAME, mainEnter); } private function mainEnter(e:Event):void ...
[ 0.10566987097263336, -0.5114562511444092, 0.8450050950050354, -0.22089913487434387, 0.4011410176753998, 0.1567668914794922, 0.25735142827033997, -0.6517017483711243, -0.27699461579322815, -0.3859541416168213, -0.2500225007534027, 0.5803848505020142, -0.3243227005004883, 0.27443239092826843...
{ detector.getTransformMatrix(trans); mainContainer.setTransformMatrix(trans); mainContainer.visible = true; renderer.render(); } else { mainContainer.visible = false;
[ 0.1591009944677353, -0.5015872120857239, 0.5506672263145447, -0.20714619755744934, -0.05789570510387421, 0.25246095657348633, 0.760442852973938, -0.4754902720451355, 0.024247895926237106, -0.6785728931427002, -0.1682860255241394, 0.44598710536956787, -0.5276052951812744, 0.1242217794060707...
renderer.render(); } } } ``` } Hopefully all this helps you, I suggest you just keep playing with it and keep familiarizing yourself with it.
[ 0.3149125874042511, -0.03822346776723862, 0.16873805224895477, -0.057640645653009415, 0.09517382830381393, -0.2924582064151764, 0.09317651391029358, 0.36981815099716187, 0.17467588186264038, -0.9140211343765259, 0.23249943554401398, 0.8022469878196716, -0.1665862649679184, -0.0344718061387...
I'm using jquery to call a webservice which returns a dataset with a couple of tables in it. This was working ok until i needed to set up my webmethod to accept a parameter. I reflected this on the client side with ``` data: "{paramname:'" + paramval+ "'}", ``` I now get the following error when the webmethod retu...
[ 0.06532904505729675, 0.053317878395318985, 0.5604222416877747, 0.13256725668907166, -0.3817807137966156, 0.06746974587440491, 0.13072027266025543, -0.28970715403556824, -0.6121031045913696, -0.4841575622558594, 0.08363285660743713, 0.2173200249671936, -0.2562280297279358, 0.451059818267822...
the client side js looks the same as below except the data: line is removed. ``` function ClientWebService(paramval){ $.ajax({ type: "POST", url: "WebService1.asmx/webmethodName", data: "{paramname:'" + paramval+ "'}", contentType: "application/json; charset=utf-8", dataType: "json", success: ...
[ -0.36792993545532227, -0.18870697915554047, 0.6892920136451721, -0.2829867899417877, -0.18241740763187408, 0.3004706799983978, 0.41427385807037354, -0.1791544109582901, -0.21579065918922424, -0.6288084983825684, -0.33009541034698486, 0.5798258781433105, -0.21346619725227356, -0.05972234904...
} else { alert('Error:' + err.responseText + ' Status: ' + err.status); } } }); ``` } Edit: As per suggestion to change the request to ``` data: {paramname: paramval}, ``` yields the following error. > Error:{"Message":"Invalid JSON primitive: paramval.","StackTrace":" > > at > System.Web.Scr...
[ -0.14049705862998962, -0.02363044023513794, 0.47786998748779297, -0.13749080896377563, -0.0800558403134346, 0.5636222958564758, 0.462678998708725, -0.9990415573120117, -0.41401997208595276, -0.5792689323425293, -0.2964686155319214, 0.440399706363678, -0.4066818058490753, 0.1615312993526458...
System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext > context, WebServiceMethodData > methodData)","ExceptionType":"System.ArgumentException"} Status: 500 I changed my webmethod to return ``` ds.GetXml(); ``` and this worked. Considering datasets are serializeable I'm not sure why I have to d...
[ -0.16851666569709778, -0.28109264373779297, 0.39354223012924194, 0.15623368322849274, 0.1364617794752121, 0.011160647496581078, 0.4072006940841675, -0.2986704707145691, -0.2750335931777954, -0.817564070224762, 0.04416404664516449, 0.5889036059379578, 0.004133407957851887, 0.208846643567085...
I want to capture all the progress messages emitted by an rsync process from a Perl script. In certain circumstances this isn't working. Here's a typical rsync command line I use: ``` rsync -aL --verbose --progress --bwlimit=100 \ --include-from=/tmp/78hJ2eDCs1 \ --include '*/' --exclude '*' \ /srcdir/* \ hos...
[ 0.21803933382034302, 0.21183542907238007, 0.3732888698577881, -0.2551151216030121, 0.05435510352253914, -0.1003929004073143, 0.15849722921848297, -0.44446295499801636, -0.4704659581184387, -0.604651153087616, 0.021706704050302505, 0.5888770818710327, -0.257357656955719, 0.00773115549236536...
or die "Couldn't fork: $!\n"; my $ch; while(read(OUTPUT, $ch, 1)==1) { print $ch; } close(OUTPUT); ``` My guess is that either rsync senses the output handle isn't a typical console, or is being output in some unusual manner that I'm not capturing. *However, what makes it even odder is that if I omit the --inclu...
[ 0.41028672456741333, 0.17081141471862793, 0.11115121841430664, -0.07974773645401001, 0.13996410369873047, -0.028239989653229713, 0.21560505032539368, -0.01947726309299469, -0.2888058125972748, -0.6136303544044495, 0.019778095185756683, 0.6063541173934937, -0.18521113693714142, 0.2553580701...
some rsync options and not others. Thankyou Paul Tomblin and dsm for giving me ideas.
[ 0.32726719975471497, 0.10391645133495331, 0.0974046066403389, 0.37042659521102905, 0.0749325379729271, -0.26183417439460754, 0.0889446884393692, 0.18161994218826294, -0.2867055833339691, -0.6822900772094727, -0.27680703997612, 0.47932708263397217, 0.0885193720459938, -0.07439880818128586, ...
I have developed a winform application in 1280 X 1024 pixels.....when using the same screen resolution it shown exactly...But i change my screen resolution to 800 X 600 pixels it shows screen with close button out of screen. How to fix this...is there is any restriction to build an application using a particular screen...
[ 0.3359912037849426, -0.025685397908091545, 0.5275775194168091, -0.024103937670588493, -0.02366671897470951, 0.01226956769824028, -0.07808257639408112, -0.3006453812122345, -0.08896256238222122, -0.8225942850112915, 0.21030695736408234, 0.8038271069526672, -0.17462243139743805, 0.1588983535...
only for one resolution - make sure that company will be ok to have all computers set to this resolution. it's in 99% not able to do, but sometimes it can be done, when your app is so specific and rare and computers are bought only for this one and only app, like netbooks. 2 How to handle different resolutions? Use `D...
[ -0.056727197021245956, -0.12667450308799744, 0.6206992268562317, 0.37718892097473145, -0.08408556878566742, 0.01168990321457386, -0.05003250390291214, -0.3447725772857666, -0.47779643535614014, -0.6494738459587097, 0.26181766390800476, 0.6061434149742126, -0.2166258543729782, -0.0471754446...
is no restriction to build app for a resolution you choose. But nowadays app I think can assume that res is min. 1024x768. And when it overlaps like you describe on 800x600 just don't bother yourself to implement fancy logic to handle this one. User will catch fast that he needs to change res to higher one.
[ 0.1125342920422554, -0.2736031711101532, 0.5152801275253296, 0.21859563887119293, -0.06603351980447769, 0.10164366662502289, 0.13050465285778046, -0.28912824392318726, -0.4832960069179535, -1.0168665647506714, 0.1070006787776947, 0.8716902136802673, 0.05921702831983566, 0.16019979119300842...
I'm planning to write a utility using ncurses. That is menus and panels on Unix. Is there any way of designing my TUI to see how it looks and feels before I do the actual coding? Are there any utilities for this, or some articles, links, etc.? I believe your syntax is using the [Win32\_Product](http://msdn.microsoft.c...
[ 0.5906745791435242, 0.007421220652759075, 0.6540120840072632, -0.2359190434217453, 0.4544808864593506, 0.09505091607570648, -0.06662918627262115, 0.09642241895198822, -0.14186719059944153, -0.7570034861564636, -0.39752236008644104, 0.5987753868103027, 0.03481358662247658, 0.338383764028549...
that the Add/Remove Programs list will use to populate the list of applications. I'm sure that there are applications that don't list themselves in this location. In that case you'd have to resort to another cruder method such as searching the Program Files directory or looking in the Start Menu Programs List. Both of ...
[ 0.42798301577568054, 0.13879461586475372, 0.11404185742139816, 0.20769017934799194, 0.18338145315647125, -0.0022531356662511826, 0.09527072310447693, 0.1344037801027298, -0.2831996977329254, -0.46266716718673706, 0.15755459666252136, 0.6307516098022461, -0.272462397813797, 0.31172037124633...
Is there a way to know what are the tables used by one stored procedure by doing an SQL query? Best regards, and thanks for the help. P.S.: I'm using SQL Server 2005. This article on TechRepublic [Finding dependencies in SQL Server 2005](https://web.archive.org/web/1/http://blogs.techrepublic%2ecom%2ecom/datacenter...
[ -0.017723403871059418, -0.03526842221617699, 0.4077613055706024, 0.10048460215330124, -0.10189643502235413, -0.2458164542913437, 0.035569097846746445, -0.2079755812883377, -0.3320302367210388, -0.5194473266601562, 0.22276687622070312, 0.6049416661262512, -0.3019151985645294, -0.10692374408...
SYSNAME, @ObjectType VARCHAR(5) = NULL ) AS BEGIN DECLARE @ObjectID AS BIGINT SELECT TOP(1) @ObjectID = object_id FROM sys.objects WHERE name = @ObjectName AND type = ISNULL(@ObjectType, type) SET NOCOUNT ON ; WITH DependentObjectCTE
[ -0.15409335494041443, -0.6277544498443604, 0.4748271405696869, -0.23620879650115967, -0.016902241855859756, -0.10953106731176376, 0.4474698007106781, -0.3446909785270691, -0.1486535519361496, -0.28266215324401855, -0.13433223962783813, 0.6434398889541626, -0.5487381219863892, -0.0351168401...
(DependentObjectID, DependentObjectName, ReferencedObjectName, ReferencedObjectID) AS ( SELECT DISTINCT sd.object_id, OBJECT_NAME(sd.object_id), ReferencedObject = OBJECT_NAME(sd.referenced_major_id), ReferencedObjectID = sd.refe...
[ -0.03786304593086243, -0.2625090181827545, 0.6421017646789551, -0.0030566297937184572, -0.19135205447673798, 0.00011536508827703074, 0.07900881767272949, -0.09507778286933899, 0.09479990601539612, -0.26027199625968933, -0.12775221467018127, 0.6561354398727417, -0.3088468611240387, 0.431629...
FROM sys.sql_dependencies sd JOIN sys.objects so ON sd.referenced_major_id = so.object_id WHERE sd.referenced_major_id = @ObjectID UNION ALL
[ 0.03740065544843674, -0.03281409665942192, 0.48056453466415405, 0.06945506483316422, -0.10872481018304825, -0.09394486248493195, 0.012773444876074791, -0.4366247355937958, -0.10162653028964996, -0.787710964679718, -0.17697392404079437, 0.14367569983005524, -0.18654420971870422, 0.408004671...
SELECT sd.object_id, OBJECT_NAME(sd.object_id), OBJECT_NAME(referenced_major_id), object_id FROM sys.sql_dependencies sd
[ -0.14799413084983826, -0.2195156067609787, 0.27785906195640564, 0.23857586085796356, -0.19245024025440216, 0.16628149151802063, -0.0957610011100769, -0.14525939524173737, -0.12233303487300873, -0.6808856129646301, -0.1647314727306366, 0.27113083004951477, 0.023588726297020912, 0.3900518119...
JOIN DependentObjectCTE do ON sd.referenced_major_id = do.DependentObjectID WHERE sd.referenced_major_id <> sd.object_id ) SELECT DISTINCT DependentObjectName FROM
[ 0.13748519122600555, -0.46124953031539917, 0.673608660697937, -0.1395418792963028, -0.26870208978652954, -0.11721488833427429, 0.13687455654144287, -0.4183286130428314, 0.25627830624580383, -0.2764076590538025, 0.28583967685699463, 0.4535207152366638, -0.5898963809013367, 0.458175301551818...
DependentObjectCTE c END ``` > This procedure uses a Common Table > Expression (CTE) with recursion to > walk down the dependency chain to get > to all of the objects that are > dependent on the object passed into > the procedure. The main source of data > comes from the system view > sys.sql\_dependencies, w...
[ 0.5713239908218384, -0.35879606008529663, 0.5643838047981262, 0.08200942724943161, -0.08779359608888626, -0.1596633791923523, -0.03312995657324791, -0.02193520776927471, 0.21750524640083313, -0.4441763758659363, 0.26299160718917847, 0.7876901626586914, -0.751208484172821, 0.028336657211184...
What's the point of JAAS if I have to write my own {whatever}LoginModule and everything else? JAAS provides an abstraction layer between your application and the underlying authentication mechanism. Therefore, you could change the authentication mechanism used by your application without having to change any of your ap...
[ 0.24541321396827698, 0.16330985724925995, 0.38982492685317993, 0.21549765765666962, 0.31299012899398804, -0.15544399619102478, 0.34532830119132996, -0.006655767560005188, 0.026199936866760254, -0.6075267195701599, -0.023011816665530205, 0.3099150061607361, -0.18111613392829895, 0.119988389...
If they are different, under what circumstances should we decide to use either approach? Also, what is the advantage of ascx over aspx? user controls are a form of custom control, that gives you a visual designer. They are ideal for use when you want a reusable control within the same web site. (It is possible to crea...
[ 0.36160165071487427, -0.1926872432231903, 0.24431107938289642, 0.43657997250556946, -0.032046664506196976, -0.13437962532043457, -0.2652081847190857, -0.10720226913690567, -0.5195167660713196, -0.6433205604553223, -0.08024132251739502, 0.43055281043052673, -0.4268527030944824, 0.0824678540...
of a web control. These controls have no designer and are usually implemented in seperate projects from your web allowing them to be reused accross many sites. Now your second question, ASCX and ASPX are two different things. ASCX is the extension for a User Control, where as ASPX is an ASP.Net Page. You cannot use an...
[ 0.2629419267177582, -0.2335970103740692, 0.42934927344322205, 0.46753373742103577, 0.019229689612984657, -0.1814233511686325, -0.28876277804374695, 0.010858366265892982, -0.4863061308860779, -0.6093505024909973, -0.03530098497867584, 0.2235386222600937, -0.4358804225921631, 0.2881540060043...
are identicle. Well what I can do is create a seperate user control for the content of the tabs, this now reduces the code I need down significantly (Since three grids are identicle except for the data). Further more it allows multiple to work on various parts of the page, and it helps me keep everything straight sin...
[ 0.4140187203884125, -0.0976623073220253, 0.7135658860206604, 0.28373149037361145, -0.32608506083488464, -0.1740466058254242, 0.1265682876110077, -0.3084663450717926, -0.21220047771930695, -0.9402311444282532, 0.13886407017707825, 0.3995034098625183, -0.4903382360935211, 0.12629379332065582...
page has the same footer, but I don't want every page to derive from a single master page. I can create my footer as an acsx control and put it in each of my master pages. Another example, I have a form that lets a user enter three different date ranges. (And we have other forms). So I put the logic to enable a calen...
[ 0.2681896984577179, -0.21906426548957825, 0.6292634010314941, 0.11470344662666321, 0.14574314653873444, 0.15782569348812103, 0.15023063123226166, -0.13537681102752686, -0.2667223811149597, -0.6939368844032288, 0.18944232165813446, -0.06958553194999695, -0.10760778188705444, 0.1921809762716...
i'm trying to merge a branch in Visual SourceSafe 6. Here you see the bug in the 'main line' code base: [![alt text](https://i.stack.imgur.com/CEd8P.png)](https://i.stack.imgur.com/CEd8P.png) A hotfix branch was created, and the file was fixed: [![alt text](https://i.stack.imgur.com/VrWEN.png)](https://i.stack.imgu...
[ 0.16898630559444427, -0.053737640380859375, 0.534565806388855, -0.03851384297013283, 0.10482076555490494, -0.06345562636852264, 0.2708219885826111, -0.012627865187823772, -0.186478391289711, -0.7557411789894104, -0.18095076084136963, 0.7096832990646362, -0.48430776596069336, 0.116515912115...
mainline file. Then execute Merge Branches. In the dialog, select the file you want to merge **from**, i.e. the hotfix file.
[ 0.21820536255836487, -0.3710896372795105, 0.3527959883213043, -0.0038485906552523375, 0.15329688787460327, -0.20270399749279022, 0.27582353353500366, -0.11650644242763519, -0.32286953926086426, -0.42231136560440063, -0.45125675201416016, 0.10950682312250137, -0.5671181082725525, 0.26320141...
How can I clear my working directory in Git? To reset a specific file to the last-committed state (to discard uncommitted changes in a specific file): ``` git checkout thefiletoreset.txt ``` This is mentioned in the `git status` output: ``` (use "git checkout -- <file>..." to discard changes in working directory) ...
[ 0.11343315988779068, 0.07908722758293152, 0.41460639238357544, 0.09593238681554794, 0.2782859206199646, -0.22591029107570648, 0.5161852240562439, 0.03964563086628914, -0.22111599147319794, -0.9071372151374817, -0.5680592656135559, 0.6344273686408997, -0.23128055036067963, 0.112916454672813...
cause Git to delete ignored files): ``` git clean -d -x -f ``` will remove untracked files, including directories (`-d`) and files ignored by git (`-x`). Replace the `-f` argument with `-n` to perform a dry-run or `-i` for interactive mode, and it will tell you what will be removed. Relevant links: * [git-reset m...
[ -0.26335445046424866, 0.1557784527540207, 0.22272582352161407, -0.23096099495887756, 0.08415558934211731, -0.1689416617155075, 0.6579280495643616, -0.24537287652492523, -0.4704186022281647, -0.5726626515388489, -0.7542200088500977, 0.4514457583427429, -0.5089324116706848, 0.374961078166961...
In my Flex application, I call several .NET WebServices that return XML. However, these WebServices all return XML with a namespace. I cannot read/parse the XML without referencing the namespace, meaning that I have to include the following lines of code in each Class that calls a WebService: ``` private namespace PCR...
[ 0.5297014713287354, 0.07800992578268051, 0.44333481788635254, -0.11927487701177597, -0.03618265688419342, -0.044079773128032684, -0.1260005086660385, -0.004508713725954294, -0.3095008432865143, -0.845617949962616, -0.17999385297298431, 0.5938979983329773, -0.18679869174957275, -0.041760448...
WebService call that handles results and faults: ``` private function faultHandler(event:FaultEvent):void { } private function resultHandler(event:ResultEvent):void { var resultXML:XML = new XML(event.result); } ``` I would like to add some logic to the result handler to "convert" the XML. Any ideas? This wha...
[ -0.16120916604995728, -0.06121858209371567, 0.3467361330986023, 0.0798359215259552, -0.249345600605011, -0.01788385398685932, 0.171120285987854, -0.4575096666812897, -0.19406332075595856, -0.44150209426879883, -0.02766425535082817, 0.4722073972225189, -0.31970298290252686, 0.11838915199041...
<ReturnCode>0</ReturnCode> </ReturnCode> </DataSet> </GetDataResult> ``` I found this workaround, using RegEx to remove the namespaces from the XMLString. <http://brianmriley.wordpress.com/2008/03/14/remove-xml-namespaces-in-flex-or-as3/> Here is how I implemented it: ``` private function resultHandler(event:...
[ 0.024495691061019897, -0.32221636176109314, 0.41104236245155334, -0.175471231341362, -0.26688823103904724, 0.032030850648880005, 0.07196331024169922, -0.4671618342399597, -0.37325695157051086, -0.392421692609787, -0.2762160301208496, 0.6700149178504944, -0.3137238323688507, -0.131582617759...
new RegExp("xmlns=[^\"]*\"[^\"]*\"", "gi"); /* Replace the default namespace from the String representation of the result XML with an empty string. */ var cleanXMLString:String = rawXMLString.replace(xmlnsPattern, ""); // Create a new XML Object from the String just created return new XML(cle...
[ -0.0061226836405694485, -0.2655807435512543, 0.7110927104949951, -0.14453482627868652, -0.013971869833767414, 0.0518052913248539, 0.13678774237632751, -0.5370110869407654, -0.292939692735672, -0.6226736903190613, -0.48241037130355835, 0.6659413576126099, -0.4700157642364502, 0.193865329027...
I have a class that I want to have access to my IOC container (Windsor), however I don't want to keep a static IWindsorContainer property hanging around - I would prefer to have the container inject itself into any classes that require an IWindsorContainer as a constructor dependency. I've pulled this off with Unity, ...
[ 0.058156631886959076, 0.1065596342086792, -0.10739374905824661, 0.11154022067785263, 0.08338041603565216, -0.16938506066799164, 0.21496686339378357, 0.0065547386184334755, -0.07656566798686981, -0.4677157700061798, 0.16954120993614197, 0.4712032079696655, -0.21929208934307098, 0.4176221787...
pass to my class, and that instance won't have all my other types registered with it. I also don't see a way to construct the container, register all the types in it, and then register that instance of itself against IWindsorContainer - all of the registration methods only take types for service and implementation - ne...
[ 0.07282072305679321, 0.16511046886444092, -0.05755894258618355, 0.27588438987731934, 0.0567353181540966, -0.24444162845611572, 0.015386180020868778, -0.1968754678964615, -0.23590773344039917, -0.49704697728157043, -0.16534993052482605, 0.2387963980436325, -0.338783860206604, 0.095532998442...
you put the container?](https://stackoverflow.com/questions/109668/ioc-where-do-you-put-the-container) **BTW**: you get `IKernel` injection for free, and you **can** register `IWindsorContainer`: ``` container.Register(Component.For<IWindsorContainer>().Instance(container)); ```
[ 0.30069029331207275, -0.055557671934366226, 0.4919334053993225, -0.08076223731040955, 0.08671513199806213, -0.21897883713245392, -0.12846432626247406, -0.3518827259540558, -0.4818255603313446, -0.48505890369415283, -0.1859603077173233, 0.609691321849823, -0.2838289141654968, 0.139693871140...
Why would the code below throw a io.system.directorynotfound exception? I can't recreate the problem myself but another user of my code does see it, any ideas why? Thanks ``` try { //create path string strAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\MyApp\\Data\\lo...
[ 0.10569844394922256, -0.2347656488418579, 0.5330886244773865, 0.0451527014374733, 0.032949578016996384, -0.10449207574129105, 0.4263453185558319, -0.5677985548973083, -0.28162211179733276, -0.7572199702262878, -0.057206831872463226, 0.6358892321586609, -0.3440117835998535, -0.0773862153291...
System.IO.File.Delete(file); } } this.fileName = fileName; // delete the file if it exists if (File.Exists(fileName)) { //delete the file File.Delete(fileName); } // write the data to the file fs = File.OpenWrite(fileName); sWriter = new StreamWriter(fs); sWriter...
[ 0.024940911680459976, -0.4547390341758728, 0.7003861665725708, -0.08574807643890381, 0.3809969425201416, 0.1557002067565918, 0.3697476089000702, -0.17973075807094574, -0.30399563908576965, -0.5920248031616211, -0.3348277509212494, 0.3312280476093292, -0.41888025403022766, 0.464142590761184...
throw new Exception(exp.Message); } ``` Have you tried using System.IO.Directory.Exists rather than System.IO.File.Exists when checking to see if the path exists?
[ 0.33432650566101074, 0.1275928020477295, -0.15541578829288483, -0.13631339371204376, 0.17386606335639954, -0.2529847323894501, 0.46546682715415955, -0.07441414892673492, -0.393578439950943, -0.7240946888923645, 0.1428513377904892, 0.512860894203186, -0.5450584292411804, 0.16132529079914093...
I've been tasked with creating a SharePoint web part for our new web site. One of the things it needs to know is which AD groups the current user belongs to (each site user will belong to one or more special security groups within the domain.) Is there a part of the SharePoint API that exposes this information, or do I...
[ 0.5334813594818115, 0.18916331231594086, 0.39898988604545593, 0.14190928637981415, -0.11889173835515976, -0.26909777522087097, -0.3064824044704437, -0.26580336689949036, 0.18177393078804016, -0.6259341239929199, 0.26605701446533203, 0.5166139006614685, -0.4576139450073242, 0.12396477907896...
I'm using this code to make my Java program open a (visible) CMD window: ``` try { String line; Process p = Runtime.getRuntime().exec("cmd /C start \"Render\" \"" + myPath + "\\punchRender.cmd\""); BufferedReader input = new BufferedReader(new InputStreamReader(...
[ -0.06875095516443253, 0.003841558936983347, 0.7836967706680298, -0.48744335770606995, 0.2427026480436325, 0.2842022180557251, 0.3127782642841339, -0.11812490224838257, -0.16459859907627106, -0.9443984031677246, -0.12758556008338928, 0.32287856936454773, -0.3525150418281555, 0.1656661033630...
((line = input.readLine()) != null) { System.out.println(line); jLabel7.setText(line); } input.close(); } catch (Exception err) { err.printStackTrace(); } ``` and I've been trying to do the same thing with the OSX terminal, this is
[ -0.23521706461906433, -0.2854281961917877, 0.7190952897071838, -0.4148665964603424, 0.2685354948043823, 0.029366960749030113, 0.427775502204895, -0.13651052117347717, -0.1430552750825882, -0.5106419324874878, -0.2987690269947052, 0.5450321435928345, -0.4229329824447632, 0.13683263957500458...
where I'm at right now: ``` try { String line; Process p = Runtime.getRuntime().exec("sh " + myPath + "/punchRender.sh"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null...
[ 0.007568269968032837, -0.19644145667552948, 0.9388675689697266, -0.35978707671165466, 0.23027552664279938, 0.3716735541820526, 0.5356000065803528, -0.24549466371536255, -0.16491104662418365, -0.7540057897567749, -0.27431416511535645, 0.33127203583717346, 0.027308564633131027, 0.21247799694...
System.out.println(line); jLabel7.setText(line); } input.close(); } catch (Exception err) { err.printStackTrace(); } ``` So far, no luck :( Any suggestions? The .sh file isn't even running... I would just make sure your shell script has the execute bits...
[ 0.02871095761656761, -0.21415191888809204, 0.3535211384296417, -0.27605319023132324, 0.22879841923713684, -0.08810167759656906, 0.631986677646637, -0.04145379737019539, -0.22438885271549225, -0.5579028725624084, -0.2660820782184601, 0.6191620230674744, -0.31676018238067627, 0.0635326653718...
and just pass in the shell script file name. `Process p = Runtime.getRuntime().exec(myPath + "/punchRender.sh")` **Edit:** I don't know Java specifically if there is anyway to set file permissions for Unix/Linux with it to set the eXecute bit or how to escape quotes. But It would be something like this: `Process ch...
[ 0.17218557000160217, 0.21780380606651306, 0.394145667552948, -0.15608645975589752, 0.12831267714500427, -0.0698409453034401, 0.2372901439666748, -0.22276802361011505, -0.06810312718153, -0.7218457460403442, -0.1967456340789795, 0.5260797142982483, -0.31367045640945435, 0.008760862052440643...
When I run the following **Northwind WPF Toolkit Datagrid** code from [this article](http://www.codeproject.com/KB/WPF/WPFDataGrid.aspx), I get a datagrid, but there are **no scrollbars** and hence the user can only see part of the datagrid. I am using the newest version March 2009. **What do I need to specify so tha...
[ -0.37337785959243774, 0.1434166431427002, 0.8208808898925781, -0.13909760117530823, -0.4884139895439148, -0.23323993384838104, 0.4443134665489197, -0.452295184135437, -0.1474096029996872, -0.6161782145500183, 0.18145839869976044, 0.4835713803768158, -0.09026835113763809, 0.0397867411375045...
</StackPanel> </Window> ``` **code-behind:** ``` using System.Linq; using System.Windows; using TestDataGrid566.Model; namespace TestDataGrid566 { public partial class Window1 : Window { public Window1() { InitializeComponent(); NorthwindDataContext db = new Northwin...
[ -0.22029365599155426, -0.21235032379627228, 0.7535822987556458, -0.2289881557226181, 0.2096080183982849, 0.23322252929210663, 0.3243652880191803, -0.17244744300842285, -0.3214886486530304, -0.5951416492462158, -0.42956405878067017, 0.2234276831150055, -0.14245548844337463, 0.23709161579608...
select c; TheDataGrid.ItemsSource = customers; } } } ``` Put the `DataGrid` in a `Grid`, `DockPanel`, `ContentControl` or directly in the `Window`. A vertically-oriented `StackPanel` will give its children whatever vertical space they ask for - even if that means it is rendered out of view.
[ -0.1820726990699768, -0.13417977094650269, 0.5452641844749451, 0.04509430751204491, 0.2678351104259491, 0.10856382548809052, -0.2807740569114685, 0.07460888475179672, -0.11566316336393356, -0.6401126384735107, -0.6630216240882874, 0.18154697120189667, -0.05663566291332245, 0.04040987789630...
I have the following setup: ``` <VirtualHost *:80> ServerName svn.project1.com <Location /> DAV svn SVNPath /svn </Location> </VirtualHost> <VirtualHost *:80> ServerName svn.project2.com <Location /> DAV svn SVNPath /svn </Location> </VirtualHost> ``` When I nav...
[ 0.03162049129605293, 0.2066209763288498, 0.5707999467849731, -0.15534065663814545, 0.1391070932149887, 0.11146381497383118, 0.30484867095947266, 0.0043836478143930435, -0.16815701127052307, -0.8718675971031189, 0.15303806960582733, 0.2519313395023346, -0.16915200650691986, 0.25680252909660...