text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
What are the differences between [`git pull`](https://git-scm.com/docs/git-pull) and [`git fetch`](https://git-scm.com/docs/git-fetch)? In the simplest terms, [`git pull`](http://git-scm.com/docs/git-pull) does a [`git fetch`](http://git-scm.com/docs/git-fetch) followed by a [`git merge`](http://git-scm.com/docs/git-me...
[ 0.018553799018263817, -0.392971009016037, 0.825416624546051, -0.16684547066688538, 0.06905151158571243, -0.11614503711462021, -0.03200826793909073, -0.12689994275569916, -0.28813791275024414, -0.32771316170692444, -0.44514694809913635, 0.7400694489479065, -0.2706007957458496, -0.0204357486...
I want to decode a string that has been encoded using the `java.net.URLEncoder.encode()` method. I tried using the `unescape()` function in javascript, but a problem occurs for blank spaces because `java.net.URLEncoder.encode()` converts a blank space to '+' but `unescape()` won't convert '+' to a blank space. When I...
[ 0.32370588183403015, 0.2657279372215271, -0.0020050788298249245, 0.01138664036989212, -0.11953844130039215, 0.21660682559013367, 0.12206757068634033, -0.0823589488863945, 0.09710554778575897, -0.770125150680542, -0.14437507092952728, 0.31781715154647827, -0.32298651337623596, -0.0991178005...
page with the applet, the JVM must be initialized and this can take up to a few minutes even on a fast computer * [minus] Applets are not meant to be used as animation media; sure, you can do stuff, but it is like programming in C - you do everything from scratch example: i needed to show a data packet as it moved bet...
[ 0.09821867942810059, -0.17769958078861237, 0.6043651700019836, 0.3035306930541992, -0.21944551169872284, -0.038118768483400345, -0.056883201003074646, -0.025886768475174904, -0.30647873878479004, -0.8003454208374023, 0.03558330237865448, 0.12704405188560486, -0.3257448673248291, 0.00630622...
can be animated. I could not find a suitable solution in Java. Flash: * [plus] really really focused on animations; * [plus] ActionScript is actually an OO language * [minus] ActionScript is sloppy, bughish and has only a few supporters. If you are stuck, be prepared to search obscure Japanese forums for solutions ...
[ 0.13910679519176483, -0.2007075399160385, 0.181148961186409, 0.26791509985923767, -0.24923822283744812, -0.08021168410778046, 0.17112237215042114, 0.5805989503860474, -0.2693709135055542, -0.7086886763572693, -0.30503323674201965, 0.3370708227157593, -0.5909854173660278, -0.409894108772277...
pain. My conclusion: I eagerly await a programming paradigm for animations and rich client interfaces. ps: Silverlight seems to be a disappointment so far, maybe Microsoft will inject some $ into it.
[ 0.13826851546764374, 0.25220391154289246, 0.278856098651886, 0.1195506677031517, -0.22985704243183136, 0.3154289424419403, 0.1161859855055809, 0.4697543978691101, 0.09362925589084625, -0.919344961643219, 0.013594398275017738, 0.4897848963737488, 0.271816223859787, 0.30285850167274475, 0....
Personally, I've found that when good developers deal with clients, they often get sucked into the after-sales support process and this process has been difficult to reverse, so was just interested to hear the various strategies that developers employ in maintaining a healthy, useful relationship that keeps clients usi...
[ 0.6330132484436035, 0.29832279682159424, 0.005115189589560032, 0.31660887598991394, 0.0635451152920723, -0.0016246746527031064, 0.06329898536205292, 0.3445117473602295, -0.25826308131217957, -0.4740556478500366, 0.04431280493736267, 1.0910577774047852, 0.29142144322395325, -0.3442295789718...
happen, but because he pays to get what he wants) * Communicate - on your initiative - in a short regular basis but for small amount of times. * Any doubt can be cleared asking the good questions. The guy don't want that ? Get rid of it (even if you like it better). The guy want that ? Why not, add time and money on th...
[ 0.6725683212280273, 0.13632437586784363, 0.4362740218639374, 0.10347966104745865, 0.3313964009284973, -0.1017841249704361, 0.4699555039405823, 0.32631078362464905, -0.16393016278743744, -0.7473345994949341, -0.2823862135410309, 0.7472966909408569, -0.3611118495464325, 0.01325986161828041, ...
give them bad info * they waste time * they get stressed At the end, nobody is happy. But with trained communication skills you will learn to direct when, how long and about what your chats will be, and so : * Make any deal quick and nice * Give confidence to the client * Understands what the client wants (not what ...
[ 0.3820873498916626, -0.03534926101565361, 0.4113962650299072, 0.33675244450569153, 0.15848404169082642, -0.23131456971168518, 0.22392825782299042, 0.06626838445663452, -0.042390551418066025, -0.6623143553733826, -0.1722950041294098, 0.9352160096168518, -0.10371623933315277, -0.288200557231...
be better. Think talking to customer is boring ? They think it too. And paperwork is boring as well, but you must do it, so do it well instead of looking for excuses.
[ 0.5190357565879822, 0.271009236574173, -0.09348254650831223, 0.09056607633829117, -0.024535924196243286, -0.20359379053115845, 0.4996221959590912, 0.19497813284397125, -0.24528729915618896, -0.5824633240699768, -0.1311180740594864, 0.8543814420700073, 0.18646390736103058, -0.40146702527999...
I'm writing a simple templating layer in PHP but I've got myself a little stuck. Here's how it works at the moment: Firstly I use `fetch_template` to load the template contents from the database - this works (and I collect all the templates at startup if you're interested). I use PHP variables in my template code and...
[ 0.5236863493919373, 0.2030000388622284, 0.3855845034122467, -0.20846913754940033, -0.10108605027198792, -0.17164888978004456, 0.04060603305697441, -0.3450745642185211, -0.062091365456581116, -0.7281494140625, 0.18297313153743744, 0.6026330590248108, -0.30592581629753113, 0.0312284436076879...
* Returns a template after evaluating it * @param string $template Template contents * @return string Template output */ function output_template($template) { eval('return "' . $template . '";'); } ``` My problem, if you haven't already guessed, is that the variables are not declared inside the function...
[ 0.4082622826099396, 0.22309160232543945, -0.01590111292898655, -0.1388760209083557, 0.078950896859169, -0.14050546288490295, 0.5554848909378052, -0.4710535407066345, -0.3623581826686859, -0.5235577821731567, -0.1494603306055069, 0.5590044260025024, -0.43347012996673584, 0.11696208268404007...
have any solutions other than using the code from the function (it is only a one-liner) in my code, rather than using the function? Thanks, Ross *P.s. I know about Smarty and the vast range of templating engines out there - I'm not looking to use them so please don't suggest them. Thanks!* Rather than run through you...
[ 0.4314654767513275, 0.04486684873700142, 0.11544583737850189, -0.006243437062948942, 0.02998504787683487, -0.24014340341091156, 0.13596194982528687, -0.08289100974798203, -0.29605498909950256, -0.8206318020820618, -0.09151153266429901, 0.6048319935798645, -0.5936304330825806, -0.1706229299...
often overlooked PHP syntax: ``` <?php if ($a == 5): ?> A is equal to 5 <?php endif; ?> ``` Alternative syntax is available for if, while, for, foreach and switch ... perfect for manipulating the data in your template. See "[Alternative syntax for control structures](http://php.net/manual/en/control-structures.alter...
[ -0.14799021184444427, 0.050753992050886154, -0.020847611129283905, 0.039563942700624466, 0.1310565024614334, 0.02748558111488819, 0.2326657921075821, -0.2972750663757324, -0.22957275807857513, -0.45781776309013367, -0.10606502741575241, 0.46905091404914856, -0.3126411437988281, -0.23986333...
Say that I have two models- Users and Accounts. Each account can have at most n users associated with it, and a user can only be associated with one account. It would seem natural to say that User ``` belongs_to :account ``` and Account ``` has_many :users ``` However, I'm not clear on the best practice when ...
[ 0.15478459000587463, 0.34263870120048523, 0.40609824657440186, -0.11792237311601639, -0.11564572155475616, 0.027284348383545876, 0.1392069309949875, -0.2011639028787613, -0.4012083411216736, -0.6815797686576843, 0.2134876847267151, 0.5849159955978394, -0.3541043698787689, 0.317606538534164...
that approach seems only to apply to associations created via << . So it would get called when you used ``` @account.users << someuser ``` but not if you used ``` @account.users.create ``` I had also considered that it might be more practical to implement the limit using before\_save within the User model, but ...
[ 0.4386521279811859, -0.125497967004776, 0.31142187118530273, 0.043075963854789734, -0.14483344554901123, -0.10150051862001419, 0.1227312833070755, -0.3058617115020752, -0.26592594385147095, -0.36688923835754395, 0.43206724524497986, 0.6385231614112854, -0.43124255537986755, 0.1979928910732...
number that would be floating around willy nilly in the code. At first, if your users table has foreign key account\_id then you need to use ``` class User belongs_to :account end ``` In this way you will ensure that User can be associated just to one Account. If you want to limit that Account can have e.g. at mo...
[ -0.005637739785015583, -0.06276234984397888, 0.44828638434410095, 0.14121204614639282, -0.14699558913707733, 0.07245329022407532, 0.18737664818763733, -0.40483352541923523, -0.3799408972263336, -0.4239315986633301, 0.14536412060260773, 0.48312532901763916, -0.09248843044042587, 0.320601135...
account if account has already 3 users.
[ -0.03850452974438667, -0.006361853331327438, 0.6521127223968506, 0.041999753564596176, -0.03062080405652523, 0.21618510782718658, 0.40005818009376526, 0.0022332833614200354, -0.37924662232398987, -0.5372647047042847, -0.4237028956413269, 0.21924611926078796, -0.14136652648448944, 0.1488182...
I need to do some process injection using C++ but I would prefer to use C# for everything other than the low level stuff. I have heard about "function wrapping" and "marshaling" and have done quite a bit of google searching and have found bits of information here and there but I am still really lacking. Things I have...
[ 0.22761604189872742, 0.18147358298301697, 0.15118344128131866, -0.09521433711051941, -0.0700850859284401, -0.006635533180087805, 0.07337021082639694, -0.04393216595053673, -0.1592220515012741, -0.49702492356300354, -0.04841219261288643, 0.7689597606658936, -0.024925164878368378, -0.0956942...
information on the topic is much appreciated. I think P/Invoke is really the most straightforward approach: * Create a DLL in *unmanaged* C++, containing all the functionality you need to do the injection. * In your C# code, declare some `static extern` methods, and use the `DllImport` attribute to point them to your ...
[ 0.3265550434589386, -0.19045290350914001, 0.43630585074424744, -0.10945305228233337, -0.19719603657722473, -0.24246764183044434, 0.11498130112886429, -0.3172960877418518, -0.12758401036262512, -0.3537728488445282, -0.26422402262687683, 0.7617809176445007, -0.22649607062339783, -0.145581007...
specifying some less-than-obvious marshalling. In that case, you could consider constructing a COM server instead of a "plain" DLL, and using [COM interop](http://msdn.microsoft.com/en-us/library/kew41ycz(VS.80).aspx) to call your code from C#.
[ 0.3370167315006256, -0.17636117339134216, 0.02730518952012062, 0.09550515562295914, 0.030096055939793587, 0.1403488665819168, -0.14963841438293457, 0.017321189865469933, -0.23727771639823914, -0.525005578994751, -0.2630831003189087, 0.44704097509384155, -0.3429401218891144, 0.0162036493420...
I'm looking into the feasibility of adding a function to my Rails-based intranet site that allows users to upload files. Two purposes: My users are widely distributed geographically and linking to documents on the shared network storage doesn't always work (different addresses, DNS entries and stuff outside my control...
[ 0.6017237305641174, 0.004459380637854338, 0.22582624852657318, 0.12050078809261322, -0.01627630554139614, -0.004298164043575525, -0.09499308466911316, 0.1949489712715149, -0.34908515214920044, -0.7394335865974426, 0.2326163500547409, 0.4347073435783386, -0.1720784455537796, 0.2902688682079...
although attachment\_fu at least can work without a image processing library present, thank goodness. The big problem is that my server does not permit my application to write files locally, and these plugins all seem to want to create a Tempfile. The questions (finally!) Is there a reasonable way to upload binary d...
[ 0.21364815533161163, 0.2684785723686218, 0.3959679901599884, -0.11797919124364853, -0.12596626579761505, -0.11839793622493744, 0.05845116078853607, -0.25117650628089905, -0.2708689868450165, -0.6140428185462952, 0.06026100739836693, 0.5421298146247864, -0.2920258939266205, 0.32776305079460...
big problem is that my server does not permit my application to write files locally, and these plugins all seem to want to create a Tempfile. Yes it does, or you wouldn't be able to upload the files at all. Rails itself creates tempfiles if the uploaded file is larger than 15k or so. ``` <%= f.file_field :file %> .....
[ 0.11752995103597641, 0.14529651403427124, 0.27549535036087036, 0.15261955559253693, -0.4393710494041443, -0.025060385465621948, 0.3011855483055115, -0.19497837126255035, -0.5831695795059204, -0.582403838634491, -0.16746842861175537, 0.3346424698829651, -0.3198797404766083, 0.06621660292148...
which your server disallows. The good news is you can just configure those things to use a different temp dir so they can write their tempfiles, and it should all work. For example, [attachment\_fu's default temp path is under rails root.](http://github.com/technoweenie/attachment_fu/tree/master/lib/technoweenie/attac...
[ 0.352067232131958, -0.02400651015341282, 0.33792170882225037, -0.037983816117048264, -0.07590558379888535, -0.31770867109298706, 0.40718501806259155, -0.12161050736904144, -0.23014740645885468, -0.6141201853752136, -0.12906338274478912, 0.5961353182792664, -0.36901482939720154, 0.206862106...
whole uploaded file/temp file thing works in rails :-)
[ 0.34111133217811584, -0.2877133786678314, 0.18734847009181976, 0.3705258071422577, -0.0237120371311903, -0.1289971023797989, 0.1640985608100891, 0.25854989886283875, -0.15075929462909698, -0.6160480380058289, 0.009786903858184814, 0.4374436140060425, -0.23080548644065857, -0.01135842595249...
If you have a lot of Stored Procedures and you change the name of a column of a table, is there a way to check which Stored Procedures won't work any longer? --- **Update**: I've read some of the answers and it's clear to me that there's is no easy way to do this. Would it be easier to move away from Stored Procedure...
[ 0.3584769070148468, 0.1659104973077774, 0.10759688913822174, 0.22153645753860474, 0.34592413902282715, 0.05590342357754707, 0.2649465799331665, -0.15226298570632935, -0.21871055662631989, -0.6612120270729065, 0.14024794101715088, 0.5503103733062744, -0.030776001513004303, -0.02719633653759...
some effort, but you could easily write tests that *exercise* each stored procedure to ensure it executes w/o error. In the simplest case it would just execute the sp and make sure there is no error and not be concerned about the actual results. If your tests just executed sp's w/o checking results you could write a ...
[ 0.3218635022640228, -0.12202394008636475, 0.025395454838871956, 0.2660621702671051, -0.042587462812662125, -0.08202119916677475, 0.4411764144897461, -0.4379560649394989, -0.21703149378299713, -0.646959125995636, 0.15710492432117462, 0.5908836126327515, -0.3022023141384125, -0.0889945328235...
stored procs, tests) from your source control system, build your database, and execute your tests. This would happen every time you committed changes to source control. Yes it seems like a lot of work. It's a lot of work, but the payoff is also big. The ability to ensure that your changes don't break anything allows y...
[ 0.6500983238220215, -0.1752345860004425, 0.15622207522392273, 0.24222557246685028, -0.01987205073237419, -0.04103803262114525, -0.034474343061447144, -0.17661643028259277, -0.37793779373168945, -0.6837338209152222, 0.012888078577816486, 0.5180147290229797, 0.1148838996887207, 0.12311846762...
One thing I struggle with is planning an application's architecture before writing any code. I don't mean gathering requirements to narrow in on what the application needs to do, but rather effectively thinking about a good way to lay out the overall class, data and flow structures, and iterating those thoughts so tha...
[ 0.2946833074092865, 0.003038818947970867, 0.3007109761238098, 0.2775837481021881, -0.14656004309654236, -0.11188996583223343, 0.17022278904914856, 0.176648810505867, -0.1134406328201294, -0.683466911315918, 0.1286284178495407, 0.46978574991226196, 0.1377037763595581, 0.08725707232952118, ...
way to do this but I have no experience with it so it seems kind of nebulous. How do **you** plan an application's architecture before writing any code? If UML is the way to go, can you recommend a concise and practical introduction for a developer of smallish applications? I appreciate your input. I really find that...
[ 0.3682677745819092, -0.21199096739292145, 0.1386147141456604, 0.33449000120162964, -0.08512209355831146, 0.05355997756123543, 0.013669290579855442, 0.21425184607505798, -0.30287665128707886, -0.7993506193161011, -0.034342821687459946, 0.2770976126194, 0.14611239731311798, -0.23501819372177...
Here's the problem: I have to modify an existing Excel spreadsheet using .NET. The spreadsheet is hugely complex, and I just have to add data in some predefined areas. I'm investigating my options, and Excel Automation/InterOp is out of the question, as I'm implementing an ASP.NET website, and Excel probably isn't i...
[ 0.27305424213409424, 0.170689195394516, 0.20112881064414978, 0.07876244187355042, -0.05663936585187912, -0.05638868734240532, 0.09966667741537094, 0.06725315004587173, -0.3835727274417877, -0.9317317008972168, -0.07148376852273941, 0.5032394528388977, -0.42152079939842224, 0.06274845451116...
so I'm kinda worried: What's the catch with OldDb for Excel? The only drawback I can find on MSDN so far, is that I can't create cells with formulas, but that's really not an issue in my case. I've also considered SSIS, but that's only based on my assumption that you can use existing Excel files when you generate spr...
[ 0.3425423204898834, 0.09168345481157303, 0.2178528755903244, 0.1656256467103958, -0.2216029316186905, -0.46298712491989136, -0.05376679077744484, 0.2583961486816406, -0.11492439359426498, -0.5619229078292847, 0.31760531663894653, 0.3861638009548187, -0.43178415298461914, 0.0361441411077976...
would normally favour not messing with the complex spreadsheet, but setting up a separate data file, to which I would link the data cells in the complex spreadsheet. This is much cleaner and safer than changing a complex spreadsheet from outside. If this is not easier than the alternatives you are currently facing,it ...
[ 0.46006399393081665, -0.005228971131145954, -0.07396142184734344, 0.19747500121593475, 0.18605932593345642, -0.11344306170940399, -0.05938524380326271, 0.05194292962551117, -0.22167393565177917, -0.5149542093276978, 0.25339096784591675, 0.589035153388977, -0.24694575369358063, 0.0241893660...
I have seen the ASP.NET community buzzing about MVC. I know the basics of its origin, and that there are many sites (unless I am mistaken, stack overflow itself) based on ASP.NET MVC. From everything I have heard and read about MVC it seems to be the future of ASP.NET development. But since I don't usually dabble in ...
[ 0.5572329163551331, 0.17437179386615753, 0.08850117027759552, -0.2139601856470108, 0.03910570591688156, -0.4592166244983673, 0.07758618146181107, 0.1332625299692154, -0.29399439692497253, -0.47038620710372925, 0.10221962630748749, 0.532410740852356, -0.21523533761501312, 0.4088681936264038...
of MVC view other languages like RoR I am more interested on its impact for .NET programmers. If this has already been gone over, my apologies! Here are my 2 cents about MVC for web applications. For the sort of GUI apps for which MVC was originally intended, "listener" code was required, so that the UI could be upda...
[ 0.34193065762519836, 0.29554370045661926, 0.4166066348552704, -0.22235718369483948, -0.4851455092430115, -0.2501586079597473, 0.2449333667755127, -0.12319265305995941, -0.17112386226654053, -0.25811928510665894, 0.06745738536119461, 0.8251383900642395, -0.5016664862632751, -0.0457460917532...
be boiled down to the Mediator pattern, where the Controller mediates between the model and the view. There are two things that there is a lot of confusion about. Regardless of conventional "wisdom": Frameworks != MVC Database Data != "Model" "Full stack" web development frameworks typically add lots of features, a...
[ 0.21711337566375732, -0.10098941624164581, 0.3860553205013275, 0.4715685546398163, -0.07939982414245605, -0.29594695568084717, 0.00035903442767448723, -0.2256772816181183, -0.37796956300735474, -0.6880157589912415, -0.26531296968460083, 0.613318920135498, -0.39423221349716187, 0.2332574576...
for the application, but it does NOT have to come from a database. A good example might be a wiki, where the underlying model/data consists of file revision data, for instance, from RCS. Hope this helps and I'm sure others will have plenty to add.
[ 0.5957065224647522, 0.046117618680000305, 0.14175504446029663, 0.4085470736026764, 0.21812690794467926, -0.4612470269203186, -0.17101280391216278, 0.10812756419181824, -0.4294064939022064, -0.4457097053527832, 0.1377658247947693, 0.6308588981628418, 0.13006076216697693, 0.1058434322476387,...
I have looked at the SQL Server 2008 feature comparison matrix and it lists the express/web and workgroup editions as having the SSIS runtime. Does this mean it is possible to develop SSIS packages using the developer edition, and then deploy and run them on a server running one of the lowly SQL Server editions such as...
[ -0.0000737406371627003, 0.008613904938101768, 0.14659200608730316, -0.03600544109940529, -0.29707032442092896, -0.41361406445503235, 0.2484586089849472, -0.02653304673731327, -0.1313527375459671, -0.9108085036277771, -0.1677541881799698, 0.3846259117126465, -0.5354629158973694, -0.13970503...
I run a social networking / blogging website ( <http://www.obsidianportal.com> ), and currently the users are identified by their unique (and unchangeable) username everywhere. Many have requested the ability to have a display name as well that they can choose. I'd like to support this, but I'm worried about spoofing a...
[ 0.882970929145813, 0.3400736451148987, 0.056470099836587906, -0.33417055010795593, -0.1503099799156189, -0.17749999463558197, 0.3165459930896759, 0.47916924953460693, -0.27847468852996826, -0.26954400539398193, 0.28741487860679626, 0.49549025297164917, 0.2939864993095398, 0.076902531087398...
site. Similarly, I don't want people to be able to impersonate each other. Here are some possible avenues I've identified: * Let them choose whatever name they want (within reason: profanity, racism, hate speech, etc.) * Don't allow users to choose a display name that overlaps with an existing unique username * Don't...
[ 0.947738766670227, 0.3502880334854126, 0.017452217638492584, 0.08362463861703873, -0.32274413108825684, -0.5507450699806213, 0.495417982339859, 0.22691477835178375, -0.15091471374034882, -0.5015738606452942, 0.06397747248411179, 0.2380775660276413, -0.11227577924728394, 0.39721590280532837...
a display name that overlaps with an existing unique username OR an existing display name." Otherwise you could have 10 different people with nickname Piskvor talking to each other ;)
[ 0.12381716072559357, 0.20503591001033783, 0.45972970128059387, 0.08357545733451843, -0.19245785474777222, 0.3615410029888153, 0.149416983127594, -0.10101108998060226, -0.46899986267089844, -0.43683940172195435, -0.2699216604232788, 0.2632599472999573, -0.6675917506217957, 0.350807249546051...
I'm writing a J2ME application. One of the pieces is something that polls the contents of a directory periodically, and, if there are any new things, paints them on the screen. I've done this by having the UI form launch a polling thread with a pointer back to itself, and when the polling thread finds something it call...
[ 0.4774216413497925, 0.12805014848709106, 0.280402272939682, -0.0738818347454071, -0.0541287325322628, -0.19246116280555725, -0.23392997682094574, -0.025713462382555008, -0.0016125093679875135, -0.7935280203819275, 0.29919397830963135, 0.23467828333377838, -0.3062342703342438, 0.08415944874...
to handle this is to delegate it up to the UI thread. E.g. the following: ``` public void DoSomeUIThing() { if (this.uiComponent.InvokeRequired) { this.uiComponent.Invoke(someDelegateThatCallsBackToThis); } else { this.uiComponent.Text = "This is the update I want to happen"; ...
[ 0.32445061206817627, -0.22882023453712463, 0.5725272297859192, -0.11551349610090256, -0.1055421307682991, -0.3316400647163391, 0.028547147288918495, -0.4547169804573059, -0.21804594993591309, -0.5635497570037842, -0.21981675922870636, 0.6705603003501892, -0.2571167051792145, -0.08358402550...
supports what I'm asking about via the SwingUtilities.invokeLater() and invokeAndWait() methods. Is there an equivalent framework for J2ME? Regarding Java, what you are describing looks like a [SwingWorker (worker thread)](http://java.sun.com/docs/books/tutorial/uiswing/concurrency/worker.html). When a Swing program n...
[ 0.31004151701927185, -0.03554344177246094, -0.05457387492060661, 0.010343118570744991, -0.08616121113300323, 0.11026043444871902, -0.08356184512376785, -0.3332189917564392, -0.6000224351882935, -0.31589290499687195, -0.08793166279792786, 0.1240982636809349, -0.43051451444625854, -0.2267132...
where time-consuming background tasks are executed. [Single-thread rule](http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html): Once a Swing component has been realized, all code that might affect or depend on the state of that component should be executed in the event-dispatching thread. When used ...
[ 0.11695880442857742, -0.30184072256088257, 0.47689032554626465, 0.12486676126718521, 0.2673510015010834, -0.2527170181274414, 0.019549934193491936, -0.40313228964805603, -0.5358328819274902, -0.2025788128376007, -0.250814825296402, 0.2201342135667801, 0.037481725215911865, -0.2507383823394...
are similar to Swing in the sense that UI operations occur on the event thread, which is not thread-safe as in MIDP. To run code on the event thread, an application must obtain a lock on the event object, or use invokeLater() or invokeAndWait() – extra work for the developer, but sophistication comes with a price tag. ...
[ 0.20281748473644257, -0.486371248960495, 0.7260488271713257, 0.06113051623106003, 0.06791963428258896, -0.09663021564483643, 0.0909801498055458, -0.4612167775630951, -0.4434106945991516, -0.5642125010490417, -0.24942246079444885, 0.3495083451271057, -0.10361144691705704, 0.0678648129105568...
I'm working on something that needs a webpage to go full screen. The screen must become completely white. Is there anyway that I can do this without flash or silverlight? Thanks in advance edit: Im not trying to force anybody into fullscreen, this will be mainly used by a couple of people. Even so I'll give proper ...
[ 0.518672525882721, 0.144144207239151, 0.17244072258472443, -0.15753240883350372, -0.0016963486559689045, -0.29198193550109863, 0.5954655408859253, 0.07121593505144119, -0.1408914029598236, -0.4820577800273895, 0.13403785228729248, 0.6931312084197998, 0.06632867455482483, -0.062485523521900...
say 100 pixels wider and 100 pixels higher and position the window at -50, -50. I havent tried that but if there is no restrains against window size being bigger than screen size it could be a solution.
[ 0.2700005769729614, 0.10208578407764435, 0.6583794951438904, 0.05309903994202614, -0.11730267852544785, 0.06743355840444565, 0.052584193646907806, -0.1677151769399643, 0.023797355592250824, -0.9955157041549683, 0.2564311921596527, 0.3946215808391571, 0.3283134698867798, -0.0330601707100868...
In my master pages I have `<form ... action="" ...>`, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden "MyPage.aspx?MyParams", unfortunately, this causes my postbacks to fail as I have additional pathinfo in the URL (ie. MyPage.aspx\CustomerData...
[ -0.2240448147058487, 0.03843090683221817, 0.5750030875205994, -0.1292170137166977, -0.1923743039369583, 0.11780496686697006, 0.6696274280548096, -0.052290163934230804, -0.4111691415309906, -0.6449138522148132, -0.3431794047355652, 0.5002045631408691, -0.16326811909675598, 0.036956120282411...
a typo in the code because pasting code in the box here doesn't always work correctly. There is a duplication on the WriteAttribute method, corrected code is as follows - ``` public class HtmlFormAdapter : ControlAdapter { protected override void Render(HtmlTextWriter writer) { HtmlForm form = this.Co...
[ -0.04675478860735893, -0.21394900977611542, 0.6603632569313049, -0.09536968171596527, 0.11872956156730652, -0.11294297873973846, 0.6134687662124634, -0.21094557642936707, 0.03197838366031647, -0.6878308653831482, -0.22332055866718292, 0.45755839347839355, -0.36096686124801636, 0.2386630028...
an HtmlForm control"); } base.Render(new CustomActionTextWriter(writer)); } public class CustomActionTextWriter : HtmlTextWriter { public CustomActionTextWriter(HtmlTextWriter writer) : base(writer) { this.InnerWriter = writer.InnerWriter; } publ...
[ 0.05360264703631401, -0.07256580889225006, 0.6854845881462097, -0.3631424903869629, -0.04411249980330467, 0.21438905596733093, 0.6256032586097717, -0.41927024722099304, 0.1342061161994934, -0.6431824564933777, -0.1048235073685646, 0.5221603512763977, -0.44370511174201965, 0.046739630401134...
{ if (name == "action") { value = ""; } base.WriteAttribute(name, value, fEncode); } } } ```
[ 0.17413651943206787, -0.07322996854782104, 0.03771331533789635, -0.3384823799133301, 0.16936692595481873, -0.07750008255243301, 0.4022293984889984, -0.486555278301239, 0.23265792429447174, -0.45601364970207214, -0.44190287590026855, 0.35118865966796875, -0.30803626775741577, -0.13511067628...
When I create a graph after using range.copy and range.paste it leaves the paste range selected, and then when I create a graph a few lines later, it uses the selection as the first series in the plot. I can delete the series, but is there a more elegant way to do this? I tried ``` Set selection = nothing ``` but i...
[ 0.22263097763061523, -0.05878467485308647, 0.5829436182975769, -0.06702882051467896, -0.16523432731628418, 0.15647108852863312, 0.061402153223752975, -0.20647014677524567, -0.316537082195282, -0.8197857141494751, -0.1519736349582672, -0.07363132387399673, -0.5739747285842896, 0.38104039430...
I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master page. Any help very much appreciated :) **EDIT** As @Adam points out in the comments, there is a native jQuery mechanism ...
[ 0.23583631217479706, 0.13807646930217743, 0.2159143090248108, -0.12874692678451538, -0.21622426807880402, -0.05812598392367363, 0.4379549026489258, 0.06383983045816422, -0.14744284749031067, -0.6841050982475281, -0.026325592771172523, 0.47107744216918945, -0.405870646238327, 0.175402432680...
original answer. Note that jQuery basically does the same thing under the hood. I recommend using the jQuery way, though, over implementing my hack. **Original answer left for comment context** When you use a master page, ASP.NET mangles the names of the controls on the dependent pages. You'll need to figure out a wa...
[ 0.383899062871933, -0.33105945587158203, 0.5367868542671204, 0.30212774872779846, -0.168073832988739, -0.03985104337334633, 0.2676398456096649, -0.4309285581111908, -0.3699333369731903, -0.5310918092727661, -0.03902250900864601, 0.372477263212204, -0.4340738356113434, -0.05090450868010521,...
Array(); if (tagName) { tags = document.getElementsByTagName( tagName ); } else { tags = document.getElementsByName( id ); } var control = null; for (var i = 0; i < tags.length; ++i) { var ctl = tags[i]; if (idRegexp.test(ctl.id)) { control = ctl;
[ 0.3175385296344757, -0.4532439112663269, 0.32058286666870117, -0.08384814858436584, 0.10285275429487228, -0.02324794791638851, 0.18144865334033966, -0.7804358005523682, -0.044854577630758286, -0.307578980922699, -0.31492412090301514, 0.4006626307964325, -0.3464844524860382, 0.1953465193510...
break; } } if (control) { return $(control.id); } else { return null; } } ``` Then you can do something like: ``` jQuery(asp$('myButton','input')).click ( function() { alert('button clicked'); } ); ``` where you have the following on your child page ``` <asp:Button ID="...
[ 0.1279713660478592, -0.22947528958320618, 0.5887964367866516, -0.10875476896762848, 0.3562101423740387, 0.084353968501091, 0.15537410974502563, 0.05592508241534233, -0.3809051811695099, -0.5054769515991211, -0.421263188123703, 0.33130982518196106, -0.25879743695259094, 0.16538475453853607,...
Start a new Silverlight application... and in the code behind (in the "Loaded" event), put this code: ``` // This will *NOT* cause an error. this.LayoutRoot.DataContext = new string[5]; ``` But... ``` // This *WILL* cause an error! this.LayoutRoot.DataContext = this; ``` The error that is raised is "Value does no...
[ 0.48035863041877747, 0.1258060783147812, 0.5522235631942749, -0.14659728109836578, -0.016021857038140297, -0.3145798444747925, 0.38432207703590393, -0.26699098944664, -0.10814351588487625, -0.9201926589012146, -0.05021633580327034, 0.6754878163337708, -0.41216355562210083, -0.1364184916019...
How can I make a variable (object) available for the whole lifetime of the webservice? Static variable seem to work but is there an other way to do it? Static variables exist for the lifetime of the App Domain that contains them. In the case of a web service, this is usually the ASP.Net Worker Process. What that means...
[ 0.2954287827014923, -0.15115222334861755, 0.3086305558681488, 0.22974137961864471, 0.07295266538858414, -0.021184725686907768, 0.14599967002868652, 0.07570474594831467, -0.5101480484008789, -0.6414865255355835, -0.1192089319229126, 0.2819882929325104, -0.38200145959854126, 0.34052452445030...
a given context). Within the scope of a web service you also have access to the [HttpApplicationState](http://msdn.microsoft.com/en-us/library/system.web.httpapplicationstate.aspx) via the Application property (this would be an asmx service...not sure if WCF is the same or not), so this could also be a good choice for...
[ 0.4298003315925598, -0.021313855424523354, 0.32501697540283203, 0.1897723525762558, -0.007985505275428295, -0.3408656120300293, 0.27392077445983887, -0.11116379499435425, -0.23051688075065613, -0.6371076703071594, -0.270204097032547, 0.3554011583328247, 0.1371432989835739, 0.19897650182247...
Does anybody has an experience with [Spring Integration](http://springframework.org/spring-integration) project as embedded ESB? I'm highly interesting in such use cases as: * Reading files from directory on schedule basis * Getting data from JDBC data source * Modularity and possibility to start/stop/redeploy module...
[ 0.14017200469970703, 0.059413664042949677, 0.08331268280744553, -0.0820031687617302, 0.003179287537932396, -0.18115302920341492, -0.039869584143161774, -0.07897958904504776, -0.2659434974193573, -0.2537784278392792, -0.2624959647655487, 0.5797620415687561, 0.012984178029000759, -0.15922743...
jobs you need your software to do, and pick accordingly. If Spring Integration seems to fit the bill, I wouldn't be too concerned if it doesn't look much like an uber-expensive server installation.
[ 0.470356822013855, -0.10530932247638702, -0.0550750270485878, 0.289166122674942, 0.4274446964263916, 0.197750061750412, -0.14202655851840973, 0.5201444029808044, -0.42160943150520325, -0.4570898115634918, -0.08236362785100937, 0.5991830229759216, 0.0970519483089447, -0.21967720985412598, ...
In designing any desktop applications, are there any general rules on how much memory should the application uses? For heavy-weight applications, those can be easily understood or at least profiled such as Firefox or Google Chrome. But for smaller utilities or line-of-business application, how much is an acceptable am...
[ 0.47322535514831543, 0.18962426483631134, 0.3183469772338867, 0.11053456366062164, -0.008618554100394249, -0.07147731631994247, -0.1306561827659607, 0.10851351916790009, -0.4612351655960083, -0.7300548553466797, 0.0762941762804985, 0.5809693336486816, -0.15182648599147797, -0.1573556810617...
memory. If possible, I'd love to have my app cache as much as the user's memory will allow. I have done it so that the application will cache upto a certain maximum limit *considering memory pressure at the moment.*. But what would be a good number? How do you come up with one? That's the point I'm asking. There is no...
[ 0.5289137363433838, 0.38539227843284607, 0.0005123423179611564, 0.3367217779159546, 0.4432124197483063, 0.4210961163043976, 0.04099821299314499, 0.03195028752088547, -0.33142903447151184, -0.5649181008338928, 0.14098386466503143, 0.544289767742157, -0.02797926589846611, 0.00219946028664708...
developing some kind of server software) * Who is your target audience, home users? power users? * Are you making realistic expectations for the amount of RAM a user will have? * Are you taking into consideration that the user will be using a lot of other software on that computer as well? Sometimes it's possible to h...
[ 0.6564297676086426, 0.11051198095083237, 0.03721855953335762, 0.10547980666160583, -0.03312837332487106, 0.19610650837421417, 0.15588484704494476, 0.11157256364822388, -0.6151017546653748, -0.6271244287490845, -0.013529746793210506, 0.37921762466430664, 0.1818905472755432, -0.0274655856192...
usage, and no speed decrease. I would generally recommend to use more RAM to get better speed if you must. But only if the RAM requirements are realistic for your target audience. For example if you expect a home user that has 1GB of RAM to use your program, then don't use 600MB of RAM yourself. Consider using more R...
[ 0.5096972584724426, 0.13890323042869568, 0.33793964982032776, 0.11241896450519562, -0.13666756451129913, 0.006021059583872557, 0.24688318371772766, -0.05961151048541069, -0.3905095160007477, -0.9594889283180237, 0.023316483944654465, 0.652997612953186, -0.2683064937591553, -0.4062972664833...
amount of caching they would like to perform as an option. That way people with a lot of RAM can put it higher for better performance, and the people with little RAM can set it low.
[ 0.07580026984214783, 0.3402950167655945, -0.002556185470893979, -0.1574619859457016, -0.0872882530093193, 0.1282000094652176, 0.32076093554496765, -0.23002316057682037, -0.1817774921655655, -0.6989472508430481, -0.007773573976010084, 0.6294798851013184, -0.02416321448981762, -0.22979205846...
which one of the two is more spread? I want to read out the version number from <http://freshmeat.net/projects-xml/mysql/mysql.xml?branch_id=46519> but I want to use the one which more people have. If you know another way to get the latest stable version number from mysql please tell me ;) For this kind of task, readi...
[ 0.409913569688797, -0.4327899217605591, 0.3182579278945923, 0.041139308363199234, -0.06310731172561646, -0.3634296655654907, -0.09534887969493866, -0.2564472556114197, -0.31537413597106934, -0.7713624835014343, -0.15260060131549835, 0.6691693067550659, -0.06947708874940872, -0.010771690867...
Well, what is one? It's an identification number that will uniquely identify something. The idea being that id number will be *universally* unique. Thus, no two things should have the same uuid. In fact, if you were to generate 10 trillion uuids, there would be something along the lines of a .00000006 chance of two uui...
[ 0.5947590470314026, 0.059931740164756775, -0.1460220068693161, 0.2855900824069977, -0.30207645893096924, -0.07829806208610535, 0.16075962781906128, 0.2409825325012207, -0.3994912803173065, -0.46584829688072205, 0.13331688940525055, -0.0787384957075119, -0.13814955949783325, 0.5602294206619...
What's the secret to getting ClaimsResponse working with [DotNetOpenId](http://code.google.com/p/dotnetopenid/)? For example, in this bit of code (from [Scott Hanselman's blog](http://www.hanselman.com/blog/CategoryView.aspx?category=DasBlog)) the ClaimsResponse object should have lots of nice little things like 'nick...
[ 0.04093130677938461, 0.11972127109766006, 0.586005687713623, 0.1598970592021942, 0.04348040372133255, -0.49493956565856934, 0.3727433383464813, -0.3138945996761322, -0.0662032961845398, -0.3208295702934265, -0.11304596066474915, 0.7438455820083618, 0.05345125496387482, 0.160371333360672, ...
ClaimsResponse fetch = openid.Response.GetExtension(typeof(ClaimsResponse)) as ClaimsResponse; string nick = fetch.Nickname; string homepage = openid.Response.ClaimedIdentifier; string email = fetch.Email; string comment = Session["pendingComment"] as string; ...
[ 0.14362609386444092, 0.15821345150470734, 1.0257617235183716, -0.033323824405670166, -0.06024414300918579, 0.12516365945339203, 0.0739344134926796, -0.30492904782295227, -0.06811739504337311, -0.2846388518810272, -0.1356627494096756, 0.7274152636528015, 0.13435785472393036, 0.4403202533721...
== false && String.IsNullOrEmpty(entryId) == false) { AddNewComment(nick, email, homepage, comment, entryId, true); } break; } } ``` At first, I thought it was because I wasn't redirecting to the provider with a 'ClaimsRequest' ... but using this code to r...
[ 0.1229090467095375, 0.2439158707857132, 0.5895576477050781, -0.10270754992961884, 0.26359155774116516, -0.3276022970676422, 0.5726993083953857, -0.29506874084472656, -0.06045573577284813, -0.46393299102783203, -0.11340387165546417, 0.5835421085357666, -0.28870418667793274, 0.53606027364730...
doesn't help: ``` OpenIdRelyingParty openid = new OpenIdRelyingParty(); IAuthenticationRequest req = openid.CreateRequest(openid_identifier.Text); ClaimsRequest fetch = new ClaimsRequest(); fetch.Email = DemandLevel.Require; fetch.Nickname = DemandLevel.Require; req.AddExtension(fetch); req.RedirectToProvi...
[ 0.26610642671585083, 0.039006151258945465, 0.6869917511940002, 0.09298989176750183, -0.30131053924560547, -0.005317901261150837, 0.503026008605957, -0.48284024000167847, -0.3612765967845917, -0.5480455756187439, -0.05720154941082001, 0.8923455476760864, -0.32891449332237244, -0.05586833134...
against.
[ -0.35488685965538025, 0.30306652188301086, 0.010589353740215302, -0.36084216833114624, -0.2949367165565491, -0.16006672382354736, 0.006994122639298439, -0.07888398319482803, 0.06699728965759277, -0.6263495683670044, 0.06796960532665253, 0.603708028793335, -0.18212994933128357, 0.2259343564...
can you set SO\_RCVTIMEO and SO\_SNDTIMEO socket options in boost asio? If so how? Note I know you can use timers instead, but I'd like to know about these socket options in particular. Absolutely! Boost ASIO allows you to access the native/underlying data, which in this case is the SOCKET itself. So, let's say you h...
[ -0.0017400917131453753, -0.13800211250782013, 0.4345845878124237, -0.06387363374233246, 0.1333644688129425, -0.0648282989859581, 0.2635892927646637, -0.20263172686100006, -0.2289869487285614, -0.5263034105300903, -0.36094796657562256, 0.6535700559616089, -0.06176497042179108, -0.0491444915...
to use>); } ``` So there you have it! Boost's ASIO lets you do many things more quickly than you otherwise might be able to, but there are a lot of things you still need the normal socket library calls for. This happens to be one of them.
[ 0.20609988272190094, 0.022437438368797302, 0.1537322998046875, 0.044568631798028946, 0.02893916703760624, -0.44623303413391113, 0.022139200940728188, 0.11994278430938721, 0.07082130014896393, -0.4709828495979309, -0.06788711249828339, 0.8067789673805237, 0.2654075026512146, -0.203067615628...
I want do something like this: ``` Button btn1 = new Button(); btn1.Click += new EventHandler(btn1_Click); Button btn2 = new Button(); // Take whatever event got assigned to btn1 and assign it to btn2. btn2.Click += btn1.Click; // The compiler says no... ``` Where btn1\_Click is already defined in the class: ``` vo...
[ 0.20502305030822754, -0.07921945303678513, 0.33617138862609863, -0.17692765593528748, 0.3801778554916382, 0.04312603548169136, 0.12789207696914673, -0.45918402075767517, -0.08345359563827515, -0.6200155019760132, -0.16078174114227295, 0.5054886937141418, -0.4672314524650574, 0.240691438317...
it to another control at runtime doable? A couple of points: I have googled the heck out of this one for awhile and found no way of doing it yet. Most of the attempted approaches involve reflection, so if you read my question and think the answer is incredibly obvious, please try to compile the code in Visual Studio f...
[ 0.26063260436058044, -0.2474585622549057, 0.22796060144901276, 0.35954955220222473, 0.34801000356674194, -0.30468714237213135, 0.3635656237602234, -0.19789284467697144, -0.20688943564891815, -0.7137938141822815, -0.012677638791501522, 0.7117646932601929, -0.22591187059879303, -0.1914083808...
here. This is also not what I'm looking for: ``` EventHandler handy = new EventHandler(btn1_Click); Button btn1 = new Button(); btn1.Click += handy; Button btn2 = new Button(); btn2.Click += handy; ``` Yeah, it's technically possible. Reflection is required because many of the members are private and internal. Start...
[ 0.20181134343147278, -0.275429368019104, 0.5549293160438538, -0.20107877254486084, -0.052140973508358, -0.07784983515739441, 0.3119506537914276, -0.5798504948616028, -0.29757973551750183, -0.522466242313385, -0.22949694097042084, 0.6848836541175842, -0.1395830512046814, -0.0219892710447311...
FieldInfo eventClick = typeof(Control).GetField("EventClick", BindingFlags.NonPublic | BindingFlags.Static); object secret = eventClick.GetValue(null); // Retrieve the click event PropertyInfo eventsProp = typeof(Component).GetProperty("Events", BindingFlags.NonPublic | BindingFlags.Instance); E...
[ -0.373773992061615, -0.32725146412849426, 0.33170557022094727, -0.049658194184303284, 0.1403934359550476, 0.03427770733833313, 0.22374674677848816, -0.37776705622673035, -0.2036486715078354, -0.12173598259687424, -0.4803648293018341, 0.43947720527648926, -0.3944588303565979, 0.150420799851...
void button1_Click(object sender, EventArgs e) { MessageBox.Show("Yada"); } } } ``` If this convinces you that Microsoft tried really hard to prevent your from doing this, you understood the code.
[ 0.10414555668830872, -0.12491590529680252, 0.14938557147979736, -0.2043924182653427, 0.1067085862159729, -0.23367658257484436, 0.4228295683860779, 0.18246445059776306, -0.11276604980230331, -0.5284979939460754, -0.13836944103240967, 0.4565143883228302, -0.38709574937820435, 0.2009543925523...
Many products/services we are interact with (including our own) uses XML-over-HTTP or derivatives (like OMA IMPS IM/presence protocol). I am looking for some tool that will "listen" to a traffic and produce client/server stubs for simulation/testing. Thanks. To some degree, it sounds like what [maxq](http://maxq.tigr...
[ 0.834516167640686, 0.00420598778873682, 0.21049027144908905, 0.1629853993654251, -0.1708599179983139, -0.2876896858215332, -0.11004746705293655, 0.5631989240646362, -0.14118540287017822, -0.6310296058654785, -0.02326815016567707, 0.5012049078941345, -0.3417838215827942, -0.0004574867780320...
Is there any persistence solution for Common Lisp, such as Elephant, that allows function persistence? Currently my app stores an identifier on the db and later searches in a function table which it is, but this method does not allow dynamically created functions to be stored. It's not a database persistence mechanism,...
[ -0.27828940749168396, 0.2606503963470459, 0.6573433876037598, -0.06746422499418259, -0.08127318322658539, -0.04274850711226463, 0.1197529286146164, -0.11586570739746094, -0.2909373342990875, -0.2671974003314972, 0.021392975002527237, 0.5623705983161926, -0.5100217461585999, 0.0694958791136...
can trivially capture those bytes and stuff them into a database if you wished.
[ 0.31004923582077026, 0.023348897695541382, 0.018440738320350647, 0.5542644262313843, 0.06581219285726547, -0.1642512083053589, -0.19149264693260193, 0.3419947028160095, -0.20013700425624847, -0.3498358130455017, 0.11958381533622742, 0.24808482825756073, -0.06668929755687714, 0.105258055031...
So standard Agile philosophy would recommend making your domain classes simple POCOs which are Persisted using a separate proxy layer via data access objects (like NHibernate does it). It also recommends getting as high unit test coverage as possible. Does it make any sense to write tests for these simple POCO object...
[ 0.2683986723423004, -0.13138815760612488, -0.21549196541309357, 0.14786888659000397, -0.03728814423084259, -0.2652895450592041, -0.1537693440914154, -0.3665103614330292, 0.1086638867855072, -0.6249600648880005, 0.0733897015452385, 0.6770010590553284, -0.2179296314716339, -0.029846400022506...
own tests. You'll get coverage from the classes that use it to actually do something. The unit tests are designed to test behavior. No behavior? No need for a test.
[ 0.8443507552146912, -0.11384667456150055, -0.17591950297355652, 0.523611307144165, -0.016844172030687332, -0.20755405724048615, 0.5117486715316772, 0.0024785466957837343, -0.1611345410346985, -0.41552504897117615, 0.41571247577667236, 0.49399444460868835, -0.019533295184373856, -0.41151878...
I need to do some quick-and-dirty Perl GUI building. I can't afford a Komodo License. What would people recommend as a free (as in beer) alternative. I don't care if it is UNIX or Windows or both. I would be using either Win32 Perl or Perl/Tk depending on what has the best solution. I would also look at any PM's that u...
[ 0.17436859011650085, 0.1110067367553711, 0.43403109908103943, 0.24979840219020844, -0.07005839049816132, 0.05458708480000496, 0.04249752685427666, -0.08530296385288239, -0.25176605582237244, -0.6286011338233948, -0.19181334972381592, 0.7308366298675537, 0.014441375620663166, 0.088224530220...
I'm writing an application that includes a plugin system in a different assembly. The problem is that the plugin system needs to get application settings from the main app (like the directory to look for plugins). How is this done, or am I going about this the wrong way? Edit: I was encouraged to add some details ab...
[ 0.5568475723266602, 0.25571689009666443, 0.43618470430374146, -0.3937543034553528, -0.11486851423978806, -0.08804991841316223, 0.12463808059692383, -0.06956914067268372, -0.10661274939775467, -0.5365887880325317, -0.06489935517311096, 0.5621570348739624, -0.3130541443824768, -0.00309406942...
The most common way of changing a cursor in Flash apps seems to be based on simply **hiding the native OS cursor** and **displaying a graphic** (drawn by the Flash Player) inside the Flash rectangle where the (hidden) cursor would be. This is what [`mx.managers.CursorManager`](http://livedocs.adobe.com/flex/3/langref/m...
[ -0.18408991396427155, -0.13253244757652283, 0.6793569922447205, 0.057503592222929, -0.03278503194451332, -0.06409190595149994, 0.05404173582792282, -0.09018153697252274, -0.3779268264770508, -0.6491943597793579, -0.15607362985610962, 0.6880282163619995, -0.43221309781074524, -0.14704097807...
is. On the other hand, I've noticed that the **CSS [`cursor`](http://www.w3schools.com/CSS/tryit.asp?filename=trycss_cursor) property** implementation in browsers works like it should -- i.e. there's no visible lag in the cursor movement when using it to implement a custom mouse cursor. So my question is: *is there a...
[ 0.043772559612989426, 0.09174241870641708, 0.22497546672821045, 0.0008309132535941899, -0.09384112060070038, -0.04657638445496559, 0.0075723156332969666, 0.045134834945201874, -0.16863353550434113, -0.727973222732544, -0.28844088315963745, 0.38168272376060486, -0.3317755162715912, -0.02923...
work. Has anyone successfully done something like this? Native cursors are available in Flash Player 10.2 beta. So you should give it a try! See: <http://www.bytearray.org/?p=2373>
[ 0.5078123211860657, -0.0697513148188591, 0.3684713840484619, 0.0948672965168953, -0.10492493212223053, -0.3851807415485382, 0.3074449896812439, -0.22103692591190338, -0.6056139469146729, -0.4526849091053009, 0.14316074550151825, 0.5406345725059509, -0.10747451335191727, -0.3256099224090576...
I've read a lot about the pros and cons of sizing with either relative or absolute font sizes. Fixed sizes don't zoom in IE6 but that's not much of an issue these days. Accessibility is important, but I assume that all good accessibility software is built to deal with these issues? I guess it mainly comes down to whet...
[ 0.4264547526836395, 0.21434691548347473, 0.2581978142261505, 0.08739195764064789, -0.13081088662147522, 0.13978946208953857, 0.14360398054122925, 0.0332336500287056, -0.4004878103733063, -0.780188262462616, 0.06795408576726913, 0.40329015254974365, -0.011108627542853355, -0.308889210224151...
frustrates me most!). Anyone have any tips? According to [YUI Font CSS](http://developer.yahoo.com/yui/fonts/), > Always use percentages as the units > because they render more consistently > than ems, and because they allow > user-initiated resizing (unlike > pixels). Relative font sizes work pretty well when ...
[ 0.26304101943969727, -0.04585694149136543, 0.3597850501537323, 0.2785990834236145, -0.400486022233963, 0.15736450254917145, 0.342696875333786, -0.03984265401959419, 0.22196930646896362, -0.5863606929779053, -0.008851751685142517, 0.5067256093025208, 0.29761385917663574, -0.3733415901660919...
a certain element and then a different % to a contained element. But that's the only real gotcha I've found.
[ 0.09194204211235046, 0.33815544843673706, -0.2692296802997589, 0.09987279772758484, -0.0003646279510576278, 0.11920827627182007, 0.30595818161964417, -0.04397904872894287, 0.2408744841814041, -0.22494113445281982, 0.017031274735927582, 0.1438211053609848, -0.08722968399524689, -0.052020315...
I'm using C# and .NET 3.5. I need to generate and store some T-SQL insert statements which will be executed later on a remote server. For example, I have an array of Employees: ``` new Employee[] { new Employee { ID = 5, Name = "Frank Grimes" }, new Employee { ID = 6, Name = "Tim O'Reilly" } } ``` and I need ...
[ 0.3283105790615082, 0.30523866415023804, -0.04379827529191971, -0.06983745098114014, 0.18020525574684143, 0.14591875672340393, -0.015103300102055073, -0.032463110983371735, -0.04845882207155228, -0.4696716368198395, -0.09501656144857407, 0.47004052996635437, -0.4078575670719147, 0.27623203...
doesn't feel right. I considered using SqlCommand (hoping to do [something like this](https://stackoverflow.com/questions/265192/how-to-get-the-generated-sql-statment-from-a-sqlcommand-object)), but it doesn't offer a way to combine the command text with parameters. Is it enough just to replace single quotes and build...
[ 0.36643365025520325, 0.19360798597335815, 0.3461056053638458, 0.1789945363998413, 0.006039286497980356, -0.23629599809646606, 0.18428413569927216, -0.30164894461631775, -0.0625489205121994, -0.22542665898799896, 0.023678889498114586, 0.5776808857917786, -0.25336983799934387, 0.019722834229...
SQL Server. This particular app needs to generate sql statements and queue them up to be executed somewhere else - otherwise I'd be using SqlCommand.Parameters.AddWithValue() Use parameterised commands. Pass the parameters along to your remote server as well, and get that to call into SQL Server, still maintaining the ...
[ 0.4341520071029663, -0.1397567093372345, 0.42976292967796326, 0.31232237815856934, -0.04454111307859421, -0.07540135830640793, 0.3232702612876892, -0.09114760905504227, -0.2171582132577896, -0.52959805727005, 0.03260362520813942, 0.8284446001052856, -0.4911220371723175, -0.0247711520642042...
The "core" .NET languages are integrated into VS2008 - C#, VB.NET, and C++. I'm not sure about current support for J# and JScript. But there are a number of other .NET languages out there - A#, Boo, Oxygene, F#, IronLisp/IronScheme, IronPython, IronRuby, Nemerle, Phalanger, P#, PowerShell, and [more](http://en.wikiped...
[ 0.3182004690170288, 0.018902823328971863, 0.07225222140550613, 0.02315429598093033, -0.29217201471328735, 0.21794886887073517, 0.26438653469085693, 0.3127242624759674, 0.010056261904537678, -0.5634675621986389, -0.11517319828271866, 0.4689716696739197, -0.37186363339424133, -0.121376223862...
that there would be a way to use those languages inside VS. Is there some limitation(s) of Visual Studio that prevent this? Is there a way to "force" VS to compile these languages? I suspect it's pretty simple: IDE integration is no simple task, if you want to do it well. I would guess that most of these languages are ...
[ 0.7699048519134521, 0.10520230233669281, -0.15665510296821594, 0.35653987526893616, -0.15294581651687622, 0.03457482531666756, 0.31425586342811584, -0.12262166291475296, -0.13801750540733337, -0.46176594495773315, 0.17949606478214264, 0.8607774972915649, -0.104085773229599, -0.081154204905...
well. That's not to say it can't be done, of course - just that it's hard, and "hobby" projects aren't likely to get that level of commitment unless they're really popular. For Boo, by the way, you should look at [BooLangStudio](http://www.codeplex.com/BooLangStudio).
[ 0.8523511290550232, -0.16052891314029694, 0.029949307441711426, 0.18540067970752716, 0.09129800647497177, -0.6436796188354492, 0.28598400950431824, 0.3812181353569031, -0.5694113373756409, 0.051163483411073685, 0.006174255628138781, 0.2796212434768677, -0.12627223134040833, 0.0067097875289...