text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
of the same package, can I just copy the bin directories with the two above files and keep separately should I need to roll back to a previous package? * Where are these packages installed to? How does SSIS know where the packagess are? > Correct me I'm wrong but for any deployment, I believe there needs to > be at le...
[ 0.4615955352783203, -0.09008621424436569, 0.18057893216609955, 0.1679975390434265, -0.0389246866106987, -0.2915237545967102, 0.29057827591896057, -0.20063826441764832, -0.15386174619197845, -0.8846049904823303, -0.32906731963157654, 0.4495484232902527, -0.2299022376537323, 0.12722663581371...
how when you run > the installer. When you install it, the package gets added to a list > of ssis packages for that instance. Your assumptions are mostly correct. You don't need the deployment manifest, but it can be handy. Also, you don't need to deploy to the SQL Server instance. You have the option to deploy to t...
[ 0.5696998238563538, -0.3402317464351654, 0.10033559054136276, 0.2040933072566986, 0.05944046005606651, -0.5171376466751099, 0.24176649749279022, 0.10058417171239853, 0.05995185673236847, -0.9872422218322754, -0.2241157591342926, 0.8745983242988586, -0.25207456946372986, -0.1630880683660507...
labeling, then you should be able to easily roll back to a previous version. As you mention, you also can just save a copy of your old bin directory but naturally put them in dated subfolders or something. However, this does not take the place of proper version control. Regarding your 2nd question: Deployment: -----...
[ 0.5165903568267822, -0.24310070276260376, 0.34953561425209045, 0.16592881083488464, 0.05857383459806442, -0.43132284283638, -0.04748297110199928, -0.1816994547843933, -0.34523385763168335, -0.7275458574295044, 0.06775321066379547, 0.5508403182029724, -0.11920402199029922, 0.023331403732299...
to maintain. See this post for much more on this: <http://blogs.conchango.com/jamiethomson/archive/2006/01/05/SSIS_3A00_-Common-folder-structure.aspx> The code is in the dtsx package. Generally,in order to make your packages portable you also abstract your connection strings and other configurable information into a ...
[ 0.7110978960990906, -0.039701882749795914, 0.4399382174015045, 0.16632534563541412, 0.0676332339644432, -0.26393505930900574, -0.04558812826871872, -0.15906250476837158, -0.07757129520177841, -0.7529377937316895, -0.15402187407016754, 0.5608938932418823, -0.21058344841003418, -0.0546215325...
but they'll need instructions. To me, the manifest file is more useful for deploying to SQL Server than to the file system. Really, all it does is make a copy of the dtsx and config files and puts them where you tell it. You could just as easily instruct the DBA to copy your dtsx files to a common folder on the serve...
[ 0.5003710985183716, -0.07528643310070038, 0.14862914383411407, 0.1825464516878128, 0.20552362501621246, -0.18817363679409027, 0.17030389606952667, -0.04046881943941116, -0.10728314518928528, -1.087345004081726, -0.10447751730680466, 0.5508289933204651, -0.2661658525466919, 0.02316711097955...
and browse to where it's located. If you're using configurations, then there's a tab to specify where the config file is located. There is so much to know about configuring/deployment/versioning of SSIS packages. But hopefully this will get you started on the right path.
[ 0.397605836391449, -0.2014957219362259, 0.26803043484687805, 0.43586811423301697, 0.14058968424797058, -0.5041534900665283, 0.163260817527771, 0.32996559143066406, -0.26511770486831665, -1.101123332977295, -0.08246821910142899, 0.4465217888355255, 0.11014769226312637, 0.18623727560043335, ...
I tend to take the academic approach all too often and adhere to strict principles in my development when the reality is that I could have finished the project sooner had I been a little *less* cautious. I'm looking to find the right amount of practicality. I want to take the "Zen" approach to designing a site which (...
[ 0.6303043365478516, 0.4466741681098938, -0.1273736208677292, -0.1778089702129364, -0.1306535005569458, -0.40680044889450073, 0.8017945289611816, 0.21937592327594757, 0.0175428856164217, -0.5785241723060608, -0.1946112960577011, 0.44692128896713257, 0.1257627308368683, -0.20908129215240479,...
come back in and design it later. I know structure-wise how I want the site to flow, but I haven't even begun playing with the CSS layout, graphics, or any of the other designy stuff. What is the right approach here? It's absolutely practical, and provides infinite benefit. In fact it's exactly what CSS and the separat...
[ 0.6702000498771667, -0.05123772472143173, 0.2266138643026352, 0.1991136074066162, 0.09364461153745651, -0.20553670823574066, -0.09733472764492035, 0.11032198369503021, -0.1837397664785385, -0.7519622445106506, 0.025442814454436302, 0.48089173436164856, 0.4030027985572815, -0.16872180998325...
of naming conventions for things like "#viewport", ".user" etc.. The markup team will usually be backend driven and will usually lead the design team slightly, but they should and must remain flexible enough to change markup where required, or put that in the control of the designers. This last is just my $.02, but w...
[ 0.545853316783905, 0.06118018552660942, 0.31151220202445984, 0.16643263399600983, 0.13083218038082123, -0.19822055101394653, -0.08419571071863174, -0.027968812733888626, 0.04368257522583008, -0.7586025595664978, -0.10900679230690002, 0.8077705502510071, 0.11231818795204163, -0.278783053159...
We have a requirement to generate PDF documents using information from a PDA / Mobile Phone. We cannot send the information back to a server as the information is required immediately and the engineers with the devices may be out of coverage. So, can anybody recommend a .NET compact framework component for producing P...
[ 0.20839989185333252, 0.07722538709640503, 0.3974951505661011, 0.2766912281513214, 0.1881761997938156, -0.4904906153678894, -0.07576140761375427, -0.16960757970809937, -0.041515424847602844, -0.519727349281311, -0.25041860342025757, 0.47849342226982117, 0.14957313239574432, -0.3832449615001...
I'm just learning Objective-C/Cocoa programming for the Mac. All of the tutorials, books, blogs, podcasts, etc. I've been using really cover the two together. Is there an easy way to tell which pieces are vanilla Objective-C and which come from Cocoa? Objective-C is the language... it defines all the things like the ke...
[ 0.22772279381752014, 0.30310893058776855, 0.3623824119567871, 0.10420915484428406, 0.07509837299585342, -0.13948588073253632, 0.03832685574889183, 0.26763078570365906, -0.20808365941047668, -0.6198325753211975, -0.05576420575380325, 0.6258722543716431, -0.06359401345252991, -0.146759703755...
as a number of functions. For example, Cocoa defines things like `NSString` and `NSObject`. Cocoa can currently be used with other language bindings, such as python or ruby, and used to be used with Java as well. So, if you were using Cocoa with Java, you would still get an `NSString` object, but you would call and use...
[ 0.05183234438300133, 0.3040759563446045, 0.16335000097751617, 0.0038759326562285423, -0.36016133427619934, -0.1661808341741562, -0.25461944937705994, 0.25680455565452576, -0.482845664024353, -0.15440477430820465, -0.07437322288751602, 0.45107847452163696, -0.46120136976242065, 0.0562311075...
The following query will display all Dewey Decimal numbers that have been duplicated in the "book" table: ``` SELECT dewey_number, COUNT(dewey_number) AS NumOccurrences FROM book GROUP BY dewey_number HAVING ( COUNT(dewey_number) > 1 ) ``` However, what I'd like to do is have my query display the name of the autho...
[ -0.12797415256500244, 0.3815426528453827, 0.17794054746627808, 0.27635177969932556, -0.032060131430625916, 0.1323723942041397, -0.12558676302433014, -0.2806876003742218, -0.2834905683994293, -0.34386008977890015, -0.03708196431398392, 0.2713453471660614, -0.1974615454673767, 0.473027676343...
similar to the following: ``` author_last_name | dewey_number | NumOccurrences ------------------------------------------------- Smith | 5000 | 2 Jones | 5000 | 2 Jackson | 9090 | 3 Johnson | 9090 | 3 Jeffers
[ -0.011139525100588799, 0.5547102093696594, 0.04562126472592354, 0.37154799699783325, 0.3496588468551636, 0.14768864214420319, 0.20017607510089874, -0.42314159870147705, -0.5233533978462219, 0.01085297204554081, 0.043148528784513474, -0.025305436924099922, -0.384175181388855, 0.571459889411...
| 9090 | 3 ``` Any help you can provide is greatly appreciated. And, in case it comes into play, I'm using a Postgresql DB. **UPDATE**: Please note that "author\_last\_name" is not in the "book" table. A nested query can do the job. ``` SELECT author_last_name, dewey_number, NumOccurrences FROM author INNER...
[ -0.20025405287742615, 0.3357819616794586, 0.17909134924411774, 0.11914461851119995, 0.02380930446088314, -0.24757163226604462, 0.1792326718568802, -0.23461169004440308, -0.14438307285308838, -0.5255033373832703, -0.18181823194026947, 0.458076149225235, -0.2680811882019043, 0.20002074539661...
> 1 ) ) AS duplicates ON author.id = duplicates.author_id ``` (I don't know if this is the fastest way to achieve what you want.) Update: Here is my data ``` SELECT * FROM author; id | author_last_name ----+------------------ 1 | Fowler 2 | Knuth 3 | Lang SELECT * FROM book; id | author_id | dewey_number ...
[ -0.07296114414930344, 0.3856380879878998, 0.5145165920257568, 0.25432199239730835, 0.21630080044269562, -0.02663480117917061, 0.23551133275032043, -0.5022253394126892, -0.16178956627845764, -0.5486206412315369, 0.18476992845535278, 0.29871848225593567, -0.4117230474948883, 0.29540839791297...
| 1 | 600 | Refactoring 3 | 1 | 600 | Analysis Patterns 4 | 2 | 600 | TAOCP vol. 1 5 | 2 | 600 |
[ -0.27437135577201843, -0.08741862326860428, 0.4091739356517792, -0.24332013726234436, -0.11881401389837265, 0.02654058299958706, 0.04812623932957649, -0.6913043260574341, -0.08388425409793854, -0.2298058271408081, -0.352120578289032, 0.47565239667892456, -0.49778228998184204, -0.4066325426...
TAOCP vol. 1 6 | 2 | 600 | TAOCP vol. 2 7 | 3 | 500 | Algebra 8 | 3 | 500 | Undergraduate Analysis 9 | 1 |
[ -0.6495193839073181, 0.03595222160220146, 0.4546040892601013, -0.14387908577919006, -0.2557806372642517, 0.07010544836521149, -0.19832946360111237, -0.40822017192840576, 0.04095705226063728, -0.02553865872323513, -0.34498369693756104, 0.4088855981826782, -0.14709685742855072, -0.5791116952...
600 | Refactoring 10 | 2 | 500 | Concrete Mathematics 11 | 2 | 500 | Concrete Mathematics 12 | 2 | 500 | Concrete Mathematics ``` And here is the result of the above query: ``` author_last_name | dewey_number | numoccurrences ------------------+--------------+-...
[ 0.27988457679748535, 0.5500757694244385, 0.22835128009319305, 0.14637555181980133, -0.00953767355531454, 0.2025890201330185, 0.04381118342280388, -0.5216705203056335, -0.04184422269463539, -0.0617557168006897, 0.07338305562734604, 0.3328721821308136, -0.11531317979097366, 0.449436664581298...
| 600 | 4 Knuth | 600 | 3 Knuth | 500 |
[ -0.8019054532051086, 0.24049296975135803, 0.8292253613471985, -0.3401138484477997, -0.4012145400047302, 0.5448325872421265, 0.4369140863418579, -0.5408313870429993, -0.18156294524669647, -0.23913921415805817, -0.1916184425354004, 0.37561386823654175, -0.026606034487485886, 0.14790613949298...
3 Lang | 500 | 2 ```
[ -0.597312331199646, 0.32055509090423584, 0.458042711019516, -0.2847854793071747, 0.017983954399824142, 0.17569442093372345, 0.17650337517261505, -0.5080182552337646, -0.07361219078302383, -0.376280277967453, -0.25124919414520264, 0.24986718595027924, -0.3626611530780792, 0.1620697230100631...
I am working on a Java project using Netbeans for the first time. I would like to use Netbeans 6.5 to create a jar including about 50 text files. Is there a simple way to do this? You need to locate the project directory on your drive. And then put all your 50 text files into **src** folder. Go back to Netbeans. You sh...
[ 0.5575733780860901, 0.26935458183288574, 0.0975864976644516, -0.09575993567705154, -0.26306724548339844, -0.08459767699241638, 0.33860665559768677, -0.1828843057155609, -0.11611083894968033, -0.8465834259986877, 0.3342708647251129, 0.6363319754600525, -0.20836792886257172, 0.19287839531898...
"default" package. The file name is "hello.txt". ``` package testtextfile; import java.io.InputStream; import java.util.Scanner; import javax.swing.JLabel; import javax.swing.JOptionPane; public class Main { public static void main(String[] args) { InputStream s = Main.class.getClassLoader().getResource...
[ 0.1507992297410965, -0.16016259789466858, 0.7475177645683289, -0.46171003580093384, -0.0558677613735199, 0.09741728007793427, 0.3220343291759491, -0.30534929037094116, -0.45032063126564026, -0.606597363948822, -0.6013094782829285, 0.4862786829471588, -0.6100339293479919, 0.2099979519844055...
I have two professional programmer friends who are going to teach me, and they both love the language (C#). I know that their specific skills and enthusiasm more than out-weigh any drawbacks to the language, but they seem like such fanboys I'm left wondering what the catch is. I only have experience of XHTML and CSS, ...
[ 0.6373026967048645, 0.3734968900680542, -0.3067866563796997, 0.11768663674592972, 0.07980985939502716, -0.4080384373664856, 0.4533965587615967, 0.589180588722229, -0.2834444046020508, -0.08672095835208893, -0.06396426260471344, 0.426318883895874, 0.23807337880134583, -0.40140777826309204, ...
I can walk by going straight for C#. I'm sorry this is a bit of a rambling question, but advice would be greatly appreciated. There's a lot you'll be learning way before you get to object oriented concepts. If all you know is HTML and CSS then you'll be learning all the basics way before you touch objects. For that re...
[ 0.5203452706336975, 0.19641853868961334, -0.04067869111895561, 0.30187729001045227, -0.25717535614967346, -0.23554958403110504, 0.15681259334087372, 0.3200291097164154, -0.22543589770793915, -0.6215862035751343, 0.09327657520771027, 0.7115746140480042, 0.13938729465007782, -0.0814690813422...
you can test very small snippets of code before you even get to any WinForms development. I say good choice.
[ 0.4746587574481964, 0.14381197094917297, -0.11462155729532242, 0.4551032781600952, 0.07689472287893295, -0.17971955239772797, 0.08269264549016953, 0.41646602749824524, 0.05224429816007614, -0.5124699473381042, 0.1385834962129593, 0.476500928401947, 0.24544641375541687, 0.004924147855490446...
Is there any advantage in using one over the other? Should I use the [vendor provided](http://dev.mysql.com/doc/refman/5.1/en/mac-os-x-installation.html) PKG file or use the Darwin Ports version? Is there a general rule of thumb for deciding how to install a package? I would use the vendor provided package just because...
[ 0.5513509511947632, 0.20973674952983856, 0.18617941439151764, -0.07987426966428757, -0.09121041744947433, -0.41951102018356323, 0.07481630146503448, -0.04985910281538963, -0.018069783225655556, -0.6292310953140259, -0.18735289573669434, 0.9232065081596375, -0.26204705238342285, 0.003850501...
It seems they canceled in Python 3 all the easy way to quickly load a script by removing `execfile()` Is there an obvious alternative I'm missing? [According to the documentation](https://docs.python.org/3.3/whatsnew/3.0.html?highlight=execfile#builtins), instead of ``` execfile("./filename") ``` Use ``` exec(o...
[ -0.030895302072167397, 0.2037743330001831, 0.4119781255722046, -0.008857364766299725, -0.07264258712530136, -0.257291704416275, 0.34037938714027405, -0.06277590245008469, -0.4084654450416565, -0.27854305505752563, -0.3394627869129181, 0.6471465826034546, -0.37760159373283386, 0.20868809521...
I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python? [How can I detect the encoding/codepage of a text file](https://stackoverflow.com/questions/90838/how-can-i-detect-the-encoding-codepage-of-a-text-file) deals with C#. EDIT...
[ 0.12401273846626282, 0.0395384356379509, -0.03812083974480629, 0.0785570740699768, -0.09958021342754364, -0.12701433897018433, 0.48075181245803833, -0.07446838915348053, 0.11951187252998352, -0.3996288776397705, -0.1520843505859375, 0.29820603132247925, -0.1205512285232544, -0.341481298208...
opens a > newspaper and finds “txzqJv 2!dasd0a > QqdKjvz” will instantly recognize that > that isn't English (even though it is > composed entirely of English letters). > By studying lots of “typical” text, a > computer algorithm can simulate this > kind of fluency and make an educated > guess about a text's language. ...
[ 0.2114517092704773, 0.14678320288658142, 0.13665133714675903, 0.08561009913682938, -0.21871435642242432, -0.03337494656443596, 0.5106390118598938, 0.06858087331056595, -0.0645252987742424, -0.6967793107032776, -0.38993003964424133, 0.2323361337184906, -0.38249483704566956, -0.1964176595211...
META tag. If Beautiful Soup finds this kind of encoding within the document, it parses the document again from the beginning and gives the new encoding a try. The only exception is if you explicitly specified an encoding, and that encoding actually worked: then it will ignore any encoding it finds in the document. * An...
[ 0.24521690607070923, -0.1800866276025772, 0.11449114978313446, -0.16679364442825317, -0.28769558668136597, -0.18908323347568512, 0.508338212966919, -0.2364833652973175, 0.03200078755617142, -0.7212949395179749, -0.0462423637509346, 0.20947693288326263, -0.7014076113700867, -0.1285506188869...
This is a follow up to a question I just posted. I'm wondering how you all handle member variables in javascript clases when using MyClass.prototype to define methods. If you define all of the methods in the constructor function: ``` function MyClass(){ this.myMethod = function(){} } ``` You can very nicely declar...
[ -0.07294132560491562, 0.03199911117553711, 0.2775757908821106, -0.1945953369140625, -0.1528356522321701, -0.1984938681125641, 0.3834352195262909, -0.032482825219631195, -0.1869419515132904, -0.8803678154945374, -0.0107339508831501, 0.3172244131565094, -0.42502835392951965, 0.30869561433792...
want to use the Object.prototype approach for memory and flexibility reasons, but it seems a lot clumsier syntax-wise. Is this how you folks generally work? thanks, -Morgan You should get over your aversion to using the `this` pointer to access member variables. Assign member variables in the constructor, and you c...
[ 0.24144050478935242, 0.07147359848022461, -0.13001294434070587, -0.004635731689631939, 0.036716870963573456, -0.03050069510936737, 0.5833236575126648, -0.20941400527954102, -0.29621270298957825, -0.7244673371315002, -0.03255273029208183, 0.5896837115287781, -0.4603204131126404, 0.046796083...
language. The benefits of "private" variables in this environment are shaky at best. I say just be explicit and obvious about how your object should be accessed, and violators will stray from that at their own risk.
[ 0.32675787806510925, 0.08771952986717224, 0.003108593635261059, 0.2777305543422699, -0.18239974975585938, -0.02329239808022976, 0.7973385453224182, 0.45311442017555237, 0.03706609457731247, -0.6890263557434082, 0.02623566798865795, 0.8165245652198792, -0.15484939515590668, -0.2915150225162...
I was kind of shocked by this. Could someone explain why this works? A good example of when to use it would also be nice. ``` Public Interface IFoo Sub DoIt() End Interface Public Class Bar Implements IFoo Private DoIt() implements IFoo.DoIt End Class ... Dim b as new Bar() b.DoIt() 'error CType(b, IFoo).DoI...
[ 0.21452033519744873, -0.15335635840892792, 0.661155641078949, -0.06992936879396439, -0.07492794096469879, -0.21050027012825012, 0.37596651911735535, -0.19145570695400238, -0.18661287426948547, -0.7628896832466125, 0.12402476370334625, 0.5246103405952454, -0.413840651512146, 0.1701150685548...
private member implements a member of an interface, that member becomes available by way of the interface even though it is not available directly on object variables for the class.
[ -0.12109070271253586, -0.1927490532398224, -0.02758103609085083, 0.23802289366722107, -0.16390039026737213, -0.1617816686630249, 0.2332657128572464, 0.049179788678884506, -0.20702268183231354, -0.41544651985168457, -0.31139135360717773, 0.10540098696947098, -0.3002169132232666, 0.424159437...
Microsoft already has a [Windows 7 Beta Customer Preview Program](http://msdn.microsoft.com/en-ca/dd353271.aspx) on their MSDN site where they encourage us to: "Evaluate and jump-start your development efforts on Windows 7 Beta". Do you feel it is worthwhile to spend my time now re Windows 7, or should I wait a few r...
[ 0.5188310146331787, -0.08900544792413712, 0.26851198077201843, 0.01222663838416338, 0.06884916126728058, -0.17145127058029175, 0.33816632628440857, 0.22257393598556519, 0.09720961004495621, -0.5401645302772522, -0.0661848783493042, 0.8384233713150024, 0.16534382104873657, -0.07582005858421...
They have made it easy enough for a end user to take care of. It's basically Vista 6.2. Lots of good improvements but not a new operating system. So it's no rush to test,
[ 0.30893683433532715, 0.2040679007768631, 0.6870781183242798, -0.01836116425693035, 0.40727463364601135, -0.3390524387359619, 0.23918449878692627, 0.19855347275733948, 0.10726777464151382, -0.5671157836914062, 0.18458452820777893, 0.8332861661911011, 0.03034019283950329, -0.1936128735542297...
[Wikipedia](http://en.wikipedia.org/wiki/Join_(SQL)#) states: "In practice, explicit right outer joins are rarely used, since they can always be replaced with left outer joins and provide no additional functionality." Can anyone provide a situation where they have preferred to use the RIGHT notation, and why? I can't...
[ 0.34095072746276855, 0.2839674651622772, 0.43995457887649536, -0.09216311573982239, -0.19397728145122528, -0.3349573314189911, 0.15754695236682892, -0.041320446878671646, -0.1812426894903183, -0.26906177401542664, -0.001765608205460012, 0.287011057138443, 0.026463089510798454, 0.1890858560...
possibly want to use left joins for queries that have null rows in the dependent (many) side of one-to-many relationships and right joins on those queries that generate null rows in the independent side. This can also occur in generated code or if a shop's coding requirements specify the order of declaration of tables...
[ 0.4248904883861542, -0.08819828182458878, 0.07772281765937805, 0.1381610482931137, 0.08812537789344788, 0.06803591549396515, 0.14654269814491272, -0.15291641652584076, -0.1555333137512207, -0.4405808448791504, -0.30612683296203613, 0.4340905547142029, -0.28571751713752747, -0.0624938346445...
I want to compile a project differently, according to a constant defined by #define, like this: ``` #define USE_COMPONENT_X #if USE_COMPONENT_X ... #endif ``` and I can do that in C#. But when I go to another file in the same project, this constant is not defined. Can I in some way define a constant to all the pro...
[ 0.8140328526496887, -0.08597545325756073, 0.03138267993927002, 0.07030010968446732, -0.21760810911655426, -0.11134399473667145, 0.16492000222206116, -0.2839489281177521, -0.03599642589688301, -0.706129789352417, 0.16408632695674896, 0.7849885821342468, -0.3452574908733368, 0.27476787567138...
When embedding JavaScript in an HTML document, where is the proper place to put the `<script>` tags and included JavaScript? I seem to recall that you are not supposed to place these in the `<head>` section, but placing at the beginning of the `<body>` section is bad, too, since the JavaScript will have to be parsed be...
[ 0.17636433243751526, 0.37123703956604004, 0.25543496012687683, -0.24712969362735748, -0.08450288325548172, -0.33478426933288574, 0.15515927970409393, -0.26109015941619873, -0.08510995656251907, -0.5923668742179871, -0.39165231585502625, 0.2381003499031067, -0.21132275462150574, -0.17978680...
was suggested that JavaScript function calls should be moved from `<a>` tags to `<script>` tags. I'm specifically using jQuery, but more general answers are also appropriate.) Here's what happens when a browser loads a website with a `<script>` tag on it: 1. Fetch the HTML page (e.g. *index.html*) 2. Begin parsing the...
[ -0.005683272611349821, -0.07613880187273026, 0.6008378267288208, -0.11578492820262909, -0.19729448854923248, -0.41810640692710876, 0.33104535937309265, -0.24467463791370392, -0.21501260995864868, -0.773393988609314, -0.37032583355903625, 0.4194518029689789, -0.19820283353328705, -0.1341446...
#4 causes a bad user experience. Your website basically stops loading until you've downloaded all scripts. If there's one thing that users hate it's waiting for a website to load. Why does this even happen? -------------------------- Any script can insert its own HTML via `document.write()` or other DOM manipulations...
[ 0.053845543414354324, 0.1631898283958435, 0.7475959062576294, -0.18902558088302612, -0.25674235820770264, -0.2142685204744339, 0.6321101784706116, -0.1173362135887146, -0.4861815273761749, -0.14803546667099, -0.2768310308456421, 0.5476621985435486, -0.35126256942749023, 0.07037235796451569...
wait until the document has been loaded before modifying it. For example: ``` <!-- index.html --> <html> <head> <title>My Page</title> <script src="my-script.js"></script> </head> <body> <div id="user-greeting">Welcome back, user</div> </body> </html> ``` JavaScript: ``` // m...
[ 0.11412328481674194, 0.05202338844537735, 0.9043678641319275, -0.3484584093093872, 0.006952160038053989, -0.11226154863834381, 0.32629454135894775, -0.39693671464920044, 0.006125723011791706, -0.7054573893547058, -0.5217879414558411, 0.5352858901023865, 0.10744205862283707, 0.1603813022375...
document until it has been downloaded and executed, the parser stops parsing. Antiquated recommendation ------------------------- The old approach to solving this problem was to put `<script>` tags at the bottom of your `<body>`, because this ensures the parser isn't blocked until the very end. This approach has its...
[ 0.05111965164542198, 0.04636216163635254, 0.7165318727493286, 0.13743092119693756, 0.02673991769552231, -0.5401346683502197, 0.4993398189544678, -0.11558505892753601, -0.33806297183036804, -0.7816531658172607, -0.3787587583065033, 0.3927895426750183, -0.17953528463840485, 0.027368279173970...
browser would start downloading your scripts as soon as possible, while at the same time parsing the rest of your document. The modern approach ------------------- Today, browsers support the `async` and `defer` attributes on scripts. These attributes tell the browser it's safe to continue parsing while the scripts a...
[ 0.13335707783699036, -0.06289113312959671, 0.583720862865448, -0.06854777038097382, -0.19547680020332336, -0.2907915413379669, 0.32494744658470154, 0.14193835854530334, -0.27121052145957947, -0.9840676188468933, -0.43290838599205017, 0.4991872012615204, -0.2440347820520401, -0.210505545139...
defer ``` <script src="path/to/script1.js" defer></script> <script src="path/to/script2.js" defer></script> ``` Scripts with the defer attribute are executed in order (i.e. first script 1, then script 2). This also does not block the browser. Unlike async scripts, defer scripts are only executed after the entire do...
[ 0.19515301287174225, -0.15505440533161163, 0.505090057849884, -0.15156562626361847, -0.1947396695613861, -0.09653236716985703, 0.5222663283348083, -0.38252153992652893, 0.003436801489442587, -0.5529715418815613, -0.39928364753723145, 0.7145484685897827, -0.36322346329689026, -0.11268562078...
and normal scripts check the first two links at the references section of this answer)* Conclusion ========== The current state-of-the-art is to put scripts in the `<head>` tag and use the `async` or `defer` attributes. This allows your scripts to be downloaded ASAP without blocking your browser. The good thing is t...
[ 0.04468318074941635, 0.0441022589802742, 0.465196430683136, 0.17441143095493317, -0.12934903800487518, -0.21632657945156097, 0.41350024938583374, -0.2372630536556244, -0.18529251217842102, -0.8095311522483826, -0.24903982877731323, 0.7791607975959778, -0.14842547476291656, -0.2350306659936...
I have a UIView with a navigation bar. How can I hide the navigation bar when the user puts the iPhone in landscape orientation, and have it show again on portrait view? This is very easy to find in the documentation. In the UINavigationController docs, to hide the nav bar, you use: ``` - (void)setNavigationBarHidden:...
[ -0.012515272945165634, -0.34212005138397217, 0.9534900784492493, -0.14805704355239868, -0.10025385767221451, 0.014103413559496403, 0.5687523484230042, -0.01861501671373844, -0.22296737134456635, -0.8066981434822083, -0.01659809611737728, 0.6777800917625427, -0.3002690076828003, 0.063771724...
I am writing a .Net application where I must support user-defined formulas that can perform basic mathematics, as well as accessing data from any arbitrary table in the database. I have the math part working, using JScript Eval(). What I haven't decided on is what a nice way is to do the generic table lookups. For ex...
[ 0.015581779181957245, -0.28832799196243286, 0.6190474033355713, 0.05175461247563362, 0.16223932802677155, 0.09014414250850677, 0.05262419581413269, -0.11394248157739639, -0.14730782806873322, -0.633467435836792, 0.07888725399971008, 0.09445050358772278, 0.046709880232810974, 0.095282487571...
of (select Value from SystemSettings WHERE SettingName='CorpBonus' AND Year=2008) So, basically, I am looking for something very much like the MS Access DLookup function: DLookup ( expression, domain, [criteria] ) DLookup("[UnitPrice]", "Order Details", "OrderID = 10248") But, I also need to overall parsing rou...
[ -0.3258086144924164, -0.038637418299913406, 0.38723960518836975, 0.23156775534152985, -0.1059122160077095, 0.09918878972530365, 0.05154954269528389, 0.04968081787228584, -0.15755701065063477, -0.8511516451835632, 0.050985340029001236, 0.2652234733104706, -0.2205226719379425, 0.260154873132...
that can handle this formula parsing *and* database lookup / aggregate function resolution requirements. The most correct way to go about this is using a parser such as ANTLR <http://www.antlr.org/> but not a walk in the park.
[ 0.4019908308982849, -0.026553858071565628, 0.06373625993728638, 0.3426298499107361, 0.052108850330114365, -0.5601299405097961, 0.47811540961265564, -0.16275060176849365, -0.19423191249370575, -0.4927922189235687, 0.24827063083648682, 0.17747463285923004, -0.24080510437488556, -0.2463431060...
I am having a problem with custom components in facelets. The first time that the page is rendered, the attributes are set properly on the component class. When a form is submitted however, the attributes are not set. Here is the class that I am using to test this. ``` public class TestEcho extends UIData { /** L...
[ 0.35025280714035034, 0.2483607679605484, 0.533536970615387, -0.16103807091712952, -0.1315535008907318, 0.17519128322601318, 0.34802481532096863, -0.3800780773162842, 0.1128762811422348, -1.1340241432189941, -0.20034298300743103, 0.5763330459594727, -0.282278448343277, 0.02571307122707367, ...
context) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("div", this); writer.writeText("The value of msg is '" + msg + "'.", null); writer.endElement("div"); } public void setMsg(String msg) { log.debug("Setting msg ...
[ -0.03269130736589432, -0.09527697414159775, 0.5672083497047424, -0.3778436779975891, 0.16178388893604279, 0.3880281150341034, 0.5102365612983704, -0.45373058319091797, -0.02387942560017109, -0.38307181000709534, -0.44346505403518677, 0.7496752142906189, -0.63155198097229, 0.104330986738204...
in the .xhtml page like this. ``` <h:form> <v:testEcho msg="hello" /> <h:commandButton action="#{PictureManager.trigger}" value="Click" /> </h:form> ``` When the page renders for the first time, the component renders the following html code. ``` <div>The value of msg is 'hello'.</div> ``` When the button ...
[ -0.07932033389806747, 0.14032676815986633, 0.9420664310455322, -0.06671086698770523, -0.2739314138889313, 0.0771714299917221, 0.45260822772979736, -0.3357117474079132, -0.2954165041446686, -0.8333879113197327, -0.2929377555847168, 0.6398417949676514, -0.2793905735015869, -0.061835780739784...
so I don't need a tag class, but I don't understand why the attribute would be set correctly the first time, but not the second time. each element in `pdf.pages` is a dictionary, so assuming it's on page 1, `pdf.pages[0]['/MYOBJECT']` should be the element you want. You can try to print that individually or poke at i...
[ -0.0859222561120987, 0.013851745054125786, 0.5066652894020081, 0.014003020711243153, -0.08265531063079834, -0.24898353219032288, 0.07942818850278854, -0.2213795781135559, -0.009304951876401901, -0.6227459907531738, -0.14391319453716278, 0.5959528684616089, -0.3435242772102356, 0.1050248965...
way to solve this by recursively looking for the key in question ``` import types import pyPdf pdf = pyPdf.PdfFileReader(open('file.pdf')) pages = list(pdf.pages) def findInDict(needle,haystack): for key in haystack.keys(): try: value = haystack[key] except: continue ...
[ -0.08642133325338364, -0.152388334274292, 0.6018955111503601, 0.012195443734526634, 0.23257067799568176, 0.01550584752112627, 0.37011733651161194, -0.44185927510261536, -0.33132752776145935, -0.24732404947280884, -0.35335394740104675, 0.5605074167251587, -0.28694963455200195, -0.0254730638...
type(value) == types.DictType or isinstance(value,pyPdf.generic.DictionaryObject): x = findInDict(needle,value) if x is not None: return x answer = findInDict('/MYOBJECT',pdf.resolvedObjects).getData() ```
[ -0.14989866316318512, -0.11135309189558029, 0.5563493967056274, -0.007643852848559618, 0.10883891582489014, -0.006746777333319187, 0.22147271037101746, -0.21133729815483093, 0.14337998628616333, -0.44880855083465576, -0.4044121205806732, 0.4958735704421997, -0.3826521635055542, 0.043786298...
Has anybody tried to use StructureMap for IoC with Rhino.Commons? Thanks Windsor is deeply rooted in Rhino Commons, a search for "Windsor" in the source code gives back 45 files. Binsor, for example, is **very** specific to Windsor. However, it shouldn't be very difficult to refactor **some parts** of Rhino.Commons to...
[ 0.4594368636608124, 0.2646403908729553, -0.14668510854244232, 0.26776230335235596, -0.20573019981384277, -0.3600524067878723, -0.14664414525032043, -0.36044734716415405, -0.5514433979988098, -0.36539411544799805, 0.3134115934371948, 0.10415884852409363, -0.16096742451190948, 0.112152278423...
I'm just getting into the practice of version control (I'd like to use Eclipse and SVN), and I'm not sure the best setup for my scenario. I'm currently a lone developer and I have two computers (a work desktop and a home office laptop) that I like to use for development (mainly web-based stuff). I have access to a Lin...
[ 0.6148645877838135, 0.46319374442100525, -0.029211198911070824, -0.1913958191871643, 0.2615393102169037, 0.15549243986606598, 0.16409705579280853, 0.2712933421134949, -0.17676039040088654, -0.7070059180259705, 0.0723685696721077, 0.5510216355323792, 0.18154703080654144, 0.3551311194896698,...
I sit down at either machine I have the same files to work with and the ability to utilize version control? Some things I have used between my laptop/workstation/server. * If the paths are exposed create a local svn repository, and then use the network path to the repo from the second machine. Works well if you dont w...
[ 0.5758225321769714, -0.05335181951522827, 0.3629448413848877, 0.12418723851442337, -0.2099071443080902, -0.20252177119255066, 0.3105470836162567, 0.06329034268856049, -0.41210871934890747, -0.7255848050117493, 0.030007757246494293, 0.6152347922325134, 0.15051905810832977, -0.00452807173132...
not versioning, and with date time hints it does rather well at 'which is newer'. Also, if you're the only one using both, conflicts are really low. I use this to manage my 'my documents' <http://www.cis.upenn.edu/~bcpierce/unison/> * Of course you can create an SVN server, and I have found Visual SVN to make this almo...
[ 0.8607118129730225, -0.11693188548088074, 0.42164915800094604, -0.061874378472566605, -0.3550648093223572, -0.23198938369750977, 0.20893171429634094, 0.3918767273426056, -0.4237513840198517, -0.8220980167388916, -0.05238476023077965, 0.3725895881652832, 0.04705740138888359, 0.0295299887657...
### Background * I have an application with a *Poof-Crash*[*1*]. I'm fairly certain it is due to a blown stack. * The application is Multi-Threaded. * I am compiling with "`Enable C++ Exceptions: Yes With SEH Exceptions (/EHa)`". * I have written an SE Translator function and called `_set_se_translator()` with it. * I...
[ 0.34433743357658386, -0.03733617439866066, 0.39897921681404114, -0.2521798610687256, 0.07410266995429993, -0.2806398868560791, 0.6542821526527405, -0.028818726539611816, -0.37467584013938904, -0.5332134962081909, -0.25140875577926636, 0.6799710392951965, -0.3076605200767517, -0.28107908368...
simulate the issue by adding infinite recursion on execution of one of the functions, and thus test the catching of the `EXCEPTION_STACK_OVERFLOW` exception. * I have WinDBG setup as the crash dump program, and get good information for all other crash issues but **not this one**. The crash dump will only contain one th...
[ 0.4212392568588257, -0.002647131448611617, 0.171815887093544, -0.013042946346104145, 0.04590398445725441, -0.2771548926830292, 0.4714874029159546, 0.025336645543575287, -0.33867645263671875, -0.7123709321022034, 0.029317039996385574, 0.6180157661437988, -0.07306818664073944, -0.08147848397...
"poof" and disappearing without a trace. *(Considering the name of this site, I'm kind of surprised this question isn't on here already!)* ### Notes 1. An answer was posted briefly about adjusting the stack size to potentially force the issue sooner and allow catching it with a debugger. That is a clever thought, bu...
[ 0.23876126110553741, -0.13850469887256622, 0.3699163496494293, 0.3321080207824707, -0.018289225175976753, -0.26899048686027527, 0.3127073347568512, 0.4331539571285248, -0.42875614762306213, -0.3933020830154419, 0.02237868309020996, 0.2011757493019104, -0.13297989964485168, 0.08069889992475...
even if you did remove it. Everything prior to windows xp would not (or would be harder) generally be able to trap stack overflows. With the advent of xp, you can set [vectored exception handler](http://msdn.microsoft.com/en-us/library/ms679274(VS.85).aspx) that gets a chance at stack overflow prior to any stack-based ...
[ 0.1573849767446518, 0.18814852833747864, 0.23541270196437836, -0.08512845635414124, -0.17593082785606384, -0.1975950002670288, 0.22966964542865753, -0.19694873690605164, -0.6183254718780518, -0.23155991733074188, 0.018118100240826607, 0.16037237644195557, -0.3216591477394104, 0.07738108187...
overflow) that can potentially be used for backout. If you can squeeze your backout code to use just one stack page - you can free as much as your logic allows. Otherwise, the application is pretty much dead upon encountering stack overflow. The only other reasonable thing to do, having trapped it, is to write a dump f...
[ 0.05884329974651337, 0.001744333771057427, 0.1638384759426117, 0.34425511956214905, 0.2500320076942444, -0.13829781115055084, 0.2473553717136383, -0.14319613575935364, -0.28718385100364685, -0.3439123332500458, -0.24384805560112, 0.3756789267063141, -0.3692934513092041, 0.15426403284072876...
Since IE6 does not support the child selector (see <http://kimblim.dk/csstest/#ex1>), what is the alternative when dealing with this browser? I do not want to modify the markup, and I'd much much prefer a CSS-only solution... And yes, it is the direct child that I wish to target. Thanks! I've come across something o...
[ 0.12614023685455322, -0.05570150166749954, 0.45888665318489075, -0.09098415821790695, -0.2039831280708313, 0.1473114937543869, 0.36770761013031006, 0.003863873891532421, 0.16297000646591187, -0.5613401532173157, -0.3548184037208557, 0.33726993203163147, -0.07763227820396423, 0.238943025469...
style here for IE 6 */ padding-top: 10px; /* This applies the style to every F inside of E */ } * html body E * F { /* undo style here */ padding-top: 0px; /* This will undo the style set above for every F that has something in between itself and E, that is, every F besides the direct children of E ...
[ 0.2773749530315399, 0.1402435451745987, 0.6434468626976013, -0.09079493582248688, -0.2590172588825226, -0.0309959314763546, 0.32484692335128784, -0.0874904990196228, 0.03714703023433685, -0.8709647059440613, -0.3420127034187317, 0.5259844064712524, -0.18217870593070984, -0.3034100532531738...
settled on. Thanks guys!
[ 0.5263900756835938, 0.14889173209667206, 0.46820542216300964, 0.2449791580438614, 0.3076595366001129, -0.022078178822994232, -0.0507795475423336, 0.17953841388225555, -0.23315578699111938, -0.3682669997215271, 0.033121444284915924, 0.2604060769081116, 0.1621626615524292, -0.101652719080448...
I have been getting a number of attacks on my website lately, with a User-Agent of NV32ts. They all are some variation of the following injection attacks against a querystring variable (where 99999 represents a valid querystring value, the attack is appended to the value): (For convenience I have urldecoded the follo...
[ -0.11370614171028137, 0.27691295742988586, 0.18063129484653473, -0.3045499622821808, -0.38425213098526, 0.21231091022491455, 0.5122044682502747, -0.3651520013809204, -0.18983985483646393, -0.4590602219104767, -0.05942774564027786, 0.5758479833602905, -0.5042787790298462, 0.1949068903923034...
out what they are trying to accomplish. **Edit:** I have now seen these same things with two different user agents: * NV32ts * Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; **WWTClient2**) I read...
[ 0.3269484043121338, 0.10531598329544067, 0.5088335871696472, 0.023069536313414574, 0.14547258615493774, -0.08305825293064117, 0.4080151915550232, -0.14546459913253784, -0.19392408430576324, -0.5107060074806213, -0.050548046827316284, 0.5201738476753235, -0.4436665177345276, -0.055274203419...
the page actually returns a result rather than throwing an error, the script will log that for a future more detailed attack. You'll eventually end up with malicious javascript code appended to every text (varchar, nvarchar, char, nchar, text) column of every row of every table in the entire db. I think this is the mor...
[ 0.4042024612426758, 0.3171095848083496, 0.4158940315246582, 0.07346472144126892, -0.2506709694862366, -0.2663753032684326, 0.8407629132270813, -0.19063065946102142, 0.0111449109390378, -0.5740959644317627, -0.07564869523048401, 0.5018594264984131, -0.36810222268104553, 0.03405635803937912,...
I am getting to the last stage of my rope (a more scalable version of `String`) implementation. Obviously, I want all operations to give the same result as the operations on `String`s whenever possible. Doing this for ordinal operations is pretty simple, but I am worried about implementing culture-sensitive operation...
[ 0.26616814732551575, 0.22117376327514648, -0.09106108546257019, -0.17698197066783905, -0.29898756742477417, 0.05973728001117706, 0.8129820823669434, -0.038362689316272736, 0.04208347946405411, -0.7316091656684875, -0.03593491390347481, 0.13379301130771637, -0.2755427062511444, -0.248347923...
being equal to SS when ignoring cases in German; about dotted and undotted i in Turkish. Surrogate pairs, if you plan to support them - including invalid combinations (e.g. only one part of one). If you're doing encoding and decoding, make sure you retain enough state to cope with being given arbitrarily blocks of bin...
[ -0.0655580386519432, -0.01808101125061512, -0.11568087339401245, -0.03343646600842476, -0.3043574094772339, 0.1804884374141693, 0.45670217275619507, -0.5176416635513306, -0.29542067646980286, -0.6209931969642639, -0.5702003836631775, 0.10585284233093262, -0.09731481969356537, -0.2995860278...
I am currently running an application with the following properties: * Java-based with Spring and Acegi * Running on Tomcat 5 I need the ability to support user sessions **without** cookies. Could someone please point me in the right direction. Thank you. The complete answer to this question is a combination of all ...
[ 0.23375092446804047, 0.08744004368782043, 0.41155391931533813, 0.2682124376296997, -0.06899043172597885, -0.3004053235054016, 0.5180532932281494, -0.07586919516324997, -0.26606515049934387, -0.6183609366416931, 0.06345652043819427, 0.4798956513404846, 0.13668616116046906, 0.169876307249069...
will identify the session by the "JSESSIONID" parameter from the url of the request. A couple sample urls are as follows `http://www.myurl.com;jsessionid=123456AFGT3` `http://www.myurl.com;jsessionid=123456AFGT3?param1=value&param2=value2` Notice how the session id is not part of the url query string (this is a j2ee st...
[ -0.06138808652758598, 0.12871360778808594, 0.6646109223365784, 0.024983374401926994, -0.2098555862903595, -0.07021300494670868, 0.5750405192375183, -0.15654174983501434, -0.38592302799224854, -0.7404179573059082, -0.3827063739299774, 0.4574086666107178, -0.19680966436862946, 0.172892838716...
a>
[ 0.20197200775146484, 0.5073404908180237, -0.04989837855100632, -0.09579715877771378, -0.09053277969360352, -0.10076826810836792, 0.28121012449264526, 0.13671694695949554, 0.18788091838359833, -0.4325769245624542, -0.21325483918190002, 0.4254596531391144, -0.08001577109098434, -0.0117242531...
I am trying to use Amazon Web Services to query Artist and title information and receive album art back. Using C# I cannot find any examples that come even close to this. All of the examples online are outdated and do not work with AWS' newer version. Here you go for what it's worth. This is code within an Asp.Net cont...
[ 0.7272908091545105, 0.14064966142177582, 0.14938600361347198, 0.22127662599086761, 0.038365427404642105, -0.35564714670181274, -0.08229458332061768, -0.11389586329460144, -0.08645160496234894, -0.5696102976799011, 0.03848559781908989, 0.47473809123039246, -0.07065965980291367, -0.016466975...
string.IsNullOrEmpty(ASIN))) { AWSECommerceService service = new AWSECommerceService(); ItemLookup lookup = new ItemLookup(); ItemLookupRequest request = new ItemLookupRequest(); lookup.AssociateTag = ConfigurationManager.AppSettings["AssociatesTag"]; lookup.AWSAccessKeyId = ConfigurationManager.Ap...
[ -0.5128222107887268, -0.3661231994628906, 0.8657234907150269, -0.24358011782169342, 0.12663128972053528, 0.35082682967185974, 0.35751795768737793, -0.5146985054016113, -0.07558611035346985, -0.5909128189086914, -0.43999937176704407, 0.6104440689086914, -0.3123602271080017, 0.04338657110929...
request.ItemId = new string[] { ASIN }; } request.ResponseGroup = ConfigurationManager.AppSettings["AWSResponseGroups"].Split(new char[] { ' ', ',', ';' }, StringSplitOptions.RemoveEmptyEntries); lookup.Request = new ItemLookupRequest[] { request }; ItemLookupResponse response = service.ItemLookup(look...
[ -0.2672416865825653, -0.4096558690071106, 0.8329924941062927, -0.09931027889251709, 0.026789536699652672, 0.3271060883998871, 0.6305739283561707, -0.5437469482421875, -0.24114207923412323, -0.6292296648025513, -0.768142819404602, 0.5680124759674072, -0.26102766394615173, 0.1563198268413543...
false; } else { bookImageHyperlink.ImageUrl = item.MediumImage.URL; } bookImageHyperlink.NavigateUrl = item.DetailPageURL; bookTitleHyperlink.Text = item.ItemAttributes.Title; bookTitleHyperlink.NavigateUrl = item.DetailPageURL; if (item.OfferS...
[ -0.2992900609970093, 0.11101910471916199, 0.609251081943512, -0.1582604944705963, 0.20064935088157654, 0.16994455456733704, 0.9253156185150146, -0.16102296113967896, 0.089011549949646, -0.5753939151763916, -0.4180244505405426, 0.8351739048957825, -0.1792629212141037, 0.39172014594078064, ...
if (item.OfferSummary.LowestUsedPrice == null) { priceHyperlink.Visible = false; } else { priceHyperlink.Text = string.Format("Buy used {0}", item.OfferSummary.LowestUsedPrice.FormattedPrice);
[ -0.028838975355029106, -0.33238956332206726, 0.563386857509613, -0.23711466789245605, 0.23520925641059875, 0.10933716595172882, 0.2859470844268799, -0.3016556203365326, 0.3823511302471161, -0.36318957805633545, -0.3902313709259033, 1.0356792211532593, -0.06567082554101944, 0.29422882199287...
priceHyperlink.NavigateUrl = item.DetailPageURL; } } else { priceHyperlink.Text = string.Format("Buy new {0}", item.OfferSummary.LowestNewPrice.FormattedPrice); priceHyperlink.NavigateUrl = item.DetailPageURL; } if (item.ItemAttributes.Author
[ -0.25122612714767456, -0.1610671579837799, 0.8326996564865112, -0.1029568612575531, 0.06943563371896744, 0.06258416175842285, 0.24103718996047974, -0.2945423424243927, 0.13434848189353943, -0.7512732148170471, -0.22612297534942627, 1.087828516960144, 0.08861871063709259, 0.4931875467300415...
!= null) { authorLabel.Text = string.Format("By {0}", string.Join(", ", item.ItemAttributes.Author)); } else { authorLabel.Text = string.Format("By {0}", string.Join(", ", item.ItemAttributes.Creator.Select(c => c.Value).ToArray())); } ItemLink lin...
[ -0.13337858021259308, -0.14376556873321533, 0.672265350818634, -0.15230204164981842, 0.2252362072467804, 0.16145862638950348, 0.5859296321868896, -0.5835155844688416, -0.16521042585372925, -0.5460317134857178, -0.5540949106216431, 0.6340027451515198, -0.3522689938545227, 0.5172581076622009...
if (link == null) { wishListHyperlink.Visible = false; } else { wishListHyperlink.NavigateUrl = link.URL; } } } ```
[ -0.4130937457084656, 0.13898979127407074, 0.7720640897750854, -0.10921787470579147, 0.28297629952430725, -0.1956082135438919, 0.46351179480552673, 0.07573890686035156, 0.08965069055557251, -0.7854112982749939, -0.3070591688156128, 0.43007832765579224, -0.3620336353778839, 0.345683217048645...
There are four kinds of 'dashes' in LaTeX: hyphen, en-dash(--), em-dash(---) and minus $-$. They are used for, respectively, hyphenation and joining words, indicating a range, punctuation, and a mathematical symbol. My question is: how do I indicate an en-dash (range) in math mode? (as in `$S=1 to 2$`)? Do I have to dr...
[ -0.1780785769224167, 0.17745304107666016, 0.3856937885284424, -0.1309991031885147, -0.4386989176273346, 0.5654797554016113, 0.5738350749015808, 0.0027070711366832256, -0.04831789806485176, -0.7258943915367126, -0.23613914847373962, 0.3918345272541046, -0.1322513371706009, -0.06048022955656...
going to have to drop out of math mode but maybe there is a way to do it without that. The simplest way is to use `$S=1\mbox{--}2$`. If you already have `\usepackage{amsmath}` in your document's preamble, however, you're better off using `\text`: `$S=1\text{--}2$` because `\text` will adjust the size of the font when u...
[ -0.0677468404173851, -0.10976797342300415, 0.6342132687568665, 0.06544991582632065, 0.026871874928474426, -0.27296385169029236, 0.395692378282547, 0.0388549342751503, 0.025364365428686142, -0.977341890335083, -0.405572772026062, 0.30048513412475586, -0.15630313754081726, -0.120472557842731...
[used between centered operators such as plus signs]) or using the bracket notation. Some examples: ``` $S = \{1, 2, \ldots, n\}$ indicates an element in the set containing integers between 1 and $n$. $S = [0, 1]$ indicates a real number between 0 and 1 (inclusive). ```
[ 0.1840749979019165, 0.04779395833611488, 0.27745696902275085, -0.10822493582963943, 0.06244790181517601, 0.06640143692493439, 0.052181266248226166, -0.43617069721221924, -0.08586297929286957, -0.20086421072483063, -0.266225129365921, 0.34032881259918213, -0.16771070659160614, 0.08299896866...
What am I doing wrong? I have a simple console app in VS08. When I hit Publish, it creates a setup.exe in the target folder. When you run setup.exe, it goes through the motions of installing, but it also runs the app, which is undesirable to say the least. Is there a setting I'm missing or something? You're creating a ...
[ 0.7758667469024658, 0.13908037543296814, 0.2266167849302292, -0.018709123134613037, 0.14637909829616547, -0.2916632294654846, 0.3438495397567749, -0.12370986491441727, 0.019619040191173553, -0.7414982914924622, 0.09421777725219727, 0.7678739428520203, -0.20368143916130066, 0.22747182846069...
extra assemblies (dlls) or an app.config file), and the framework is already installed on the machines that will use the app, then you can just distribute the exe file by itself.
[ 0.5919487476348877, -0.13917523622512817, 0.41032400727272034, 0.08767399191856384, 0.12808562815189362, -0.18008354306221008, 0.039545685052871704, -0.3259739577770233, -0.43454936146736145, -0.8141616582870483, -0.4891234040260315, 0.2131836712360382, -0.47349727153778076, -0.12627838551...
I want to do the following with regular expressions but not sure how to do it. I want it to match `one two` when `one two` is the beginning of the line unless the string contains `three` anywhere after `one two`. You need a [negative lookahead assertion](http://www.perl.com/doc/manual/html/pod/perlre.html#item__pattern...
[ 0.16994690895080566, 0.08713197708129883, 0.2434985339641571, -0.4589591324329376, -0.43851548433303833, 0.04510399326682091, 0.2866053581237793, -0.046807222068309784, -0.08922866731882095, -0.5755232572555542, -0.14616189897060394, 0.5196359157562256, -0.35692456364631653, -0.11410944908...
i want to mark a method as obsolete, but Delphi 5 doesn't have such a feature. For the sake of an example, here is a made-up method with it's deprecated and new preferred form: ``` procedure TStormPeaksQuest.BlowHodirsHorn; overload; //obsolete procedure TStormPeaksQuest.BlowHodirsHorn(UseProtection: Boolean); overlo...
[ 0.013006402179598808, 0.7533087730407715, 0.49061939120292664, -0.1402265876531601, -0.31163543462753296, -0.2919580936431885, 0.7176457047462463, -0.5776827335357666, 0.12659664452075958, -0.16542094945907593, 0.0945337638258934, 0.5951203107833862, -0.32123005390167236, 0.200641512870788...
default the parameterless version to continue *not* using protection: ``` procedure TStormPeaksQuest.BlowHodirsHorn; begin BlowHodirsHorn(False); //No protection. Bad! end; ``` then the developer is at risk of all kinds of nasty stuff. If we force the parameterless version to use protection: ``` procedure TStor...
[ -0.0499410480260849, 0.3852040469646454, 0.2999795377254486, -0.20647498965263367, 0.10662901401519775, -0.3520326316356659, 0.8340891003608704, -0.2581325173377991, -0.06503129005432129, -0.5353310108184814, -0.30568456649780273, 0.8734927773475647, -0.5830100178718567, 0.2259988039731979...
them to get a *nag*, rather than an actual error. i thought about adding an assertion: ``` procedure TStormPeaksQuest.BlowHodirsHorn; //obsolete begin Assert(false, 'TStormPeaksQuest.BlowHodirsHorn is deprecated. Use BlowHodirsHorn(Boolean)'); ... end; ``` But i cannot guarantee that the developer won't ship...
[ 0.09652580320835114, 0.3967287838459015, 0.31306546926498413, -0.07865606993436813, -0.19325199723243713, -0.21633398532867432, 0.6377302408218384, -0.2968559265136719, -0.26964208483695984, -0.3849521577358246, -0.12707193195819855, 0.7771468758583069, -0.491786926984787, 0.23299442231655...
they're in the debugger (which is a technique i've done in the past): ``` procedure TStormPeaksQuest.BlowHodirsHorn; //obsolete begin if DebugHook > 0 then MessageDlg('TStormPeaksQuest.BlowHodirsHorn is deprecated. Use BlowHodirsHorn(Boolean)', mtWarning, [mbOk], 0); ... end; ``` but that is still too...
[ 0.15923510491847992, 0.5718392133712769, 0.551533043384552, -0.30065637826919556, 0.23294368386268616, -0.1094430461525917, 0.780678927898407, -0.06626854836940765, -0.19278259575366974, -0.5862169861793518, -0.3736932575702667, 0.6087531447410583, -0.20193487405776978, 0.2844124436378479,...
variable: ``` procedure TStormPeaksQuest.BlowHodirsHorn; //obsolete var ThisMethodIsObsolete: Boolean; begin ... end; ``` i was hoping this would cause a hint only if someone referenced the code. But Delphi shows a hint even if you don't call actually use the obsolete method. Can anyone think of anything else...
[ 0.18583162128925323, -0.012421764433383942, 0.3810252249240875, -0.08851856738328934, -0.18401971459388733, -0.19852645695209503, 0.3338291049003601, -0.12917625904083252, 0.021856829524040222, -0.42082107067108154, -0.0672745406627655, 0.6096574068069458, -0.34294620156288147, 0.234761431...
not have deprecated code in their project: ``` {$IFNDEF Strict} procedure TStormPeaksQuest.BlowHaldirsHorn; overload; //obsolete {$ENDIF} procedure TStormPeaksQuest.BlowHaldirsHorn(UseProtection: Boolean); {$IFNDEF Strict}overload;{$ENDIF} {$IFNDEF Strict} procedure TStormPeaksQuest.BlowHaldirsHorn; //obsolete begin ...
[ 0.18122337758541107, 0.46794018149375916, 0.23205803334712982, -0.08731938153505325, -0.013834614306688309, -0.33743903040885925, 0.7061975002288818, -0.15053032338619232, -0.101578488945961, -0.3733333945274353, -0.5055987238883972, 0.4477090835571289, -0.49717068672180176, 0.491384804248...
strings left over. And finally, if there's a debugger attached, then they'll get a debug breakpoint out of nowhere. If anyone asks about, i can take that opportunity to make fun of them.
[ 0.3609880208969116, -0.15413165092468262, 0.6120380163192749, 0.26691877841949463, 0.1959362030029297, 0.08563467860221863, 0.03388246148824692, 0.17021557688713074, -0.3157227337360382, -0.012369922362267971, -0.1819528192281723, 0.34082138538360596, 0.10096901655197144, 0.114186957478523...