text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
One problem I have with open-source is not often the product or documentation, but the level of community involvement and support. Response time for some questions on official forums can take more than a week, which can honestly make a big difference when choosing a platform for commercial services use. However, I find...
[ 0.7865471839904785, 0.5461533069610596, -0.13166898488998413, 0.10139615088701248, -0.3389706015586853, -0.4452386796474457, 0.5998668670654297, 0.24266192317008972, -0.22602017223834991, -0.5188894271850586, -0.07791484147310257, 0.42709285020828247, 0.04370242357254028, 0.306702047586441...
of community support? Do you have a formula for performing this evaluation? I've usually found that relying on community support for anything mission critical is asking for trouble. So I usually stay away from open source unless it's something that I'm confident we can support in-house or there is a commercial support ...
[ 0.7527417540550232, 0.2575247287750244, -0.535092294216156, 0.20714785158634186, -0.1129559651017189, -0.46409520506858826, 0.44817087054252625, 0.122444286942482, -0.03927328810095787, -0.02094690129160881, 0.12531712651252747, 0.6283491253852844, 0.026500249281525612, -0.0741171091794967...
I'm getting married soon and am busy with the seating plan, and am running into the usual issues of who sits where: X and Y *must* sit together, but A and B cannot stand each other etc. The numbers I'm dealing with aren't huge (so the manual option will work just fine), but being of the geeky persuasion, I was wonderi...
[ 0.7373115420341492, 0.17181654274463654, 0.4791931211948395, 0.08464165031909943, 0.35851648449897766, -0.08494473248720169, -0.0948934480547905, 0.2048325091600418, 0.14073173701763153, -0.45224979519844055, 0.14776834845542908, 0.05165421590209007, 0.32358038425445557, 0.2283593118190765...
Joel On Software. Never tried it though. Hope it helps.
[ 0.27645984292030334, -0.04244416207075119, 0.10188013315200806, 0.5041788220405579, 0.1458326280117035, -0.0069162785075604916, 0.5618520975112915, 0.6283659934997559, 0.16887442767620087, -0.6045671701431274, 0.22134670615196228, 0.34701427817344666, 0.22340959310531616, -0.05355241894721...
Using the SharePoint API, how can I modify an extended webapp web.config file? I have to do some changes in this file to specify the connection string, membershipprovider, etc... for using Forms Authentication. Currently, I can change the "master" webapplication web.config file, but not the extended one. > Edited > ...
[ 0.4240282475948334, -0.012171491049230099, 0.6192159652709961, 0.16183826327323914, -0.2291281670331955, -0.4917340874671936, 0.4343264102935791, -0.28429314494132996, -0.25629526376724243, -0.7054288387298584, 0.20483578741550446, 0.7119404673576355, -0.29425910115242004, 0.13745629787445...
that: > > > * Shows a WebApp list so the user can select one > * Extend that selected webapp to a different zone > * Configure that extended zone to use Forms Authentication Thanks I got an answer form a blog. > In your case , you need to write a Web Application scoped feature which after you provision your site us...
[ 0.4270777106285095, 0.11345826834440231, 0.6430227160453796, 0.09066545218229294, -0.06902414560317993, -0.3126097619533539, 0.35420945286750793, -0.2881656587123871, -0.11505839973688126, -0.6164290308952332, -0.15660113096237183, 0.3689783811569214, 0.05676376074552536, -0.31724810600280...
you don’t use SPWebConfigModification class and either use ASP.NET 2.0 configuration API or your own mechanism , propagating changes across the farm is YOUR RESPONSIBILITY. If this happens on an standalone installation then you don;t need to be worried about this. So it cannot be done externally. We have to do a featu...
[ 0.5230157375335693, -0.21934573352336884, 0.38878533244132996, -0.09517177939414978, -0.278247594833374, -0.2553570568561554, 0.4480631947517395, -0.0839688703417778, -0.29243987798690796, -0.561312198638916, -0.10672599077224731, 0.583968460559845, -0.11077405512332916, -0.050273686647415...
We may start converting an old VS2003 MFC project to use the fancy new features provided by the MFC Feature Pack and VS2008. Several of the new UI controls would be very nice except for one thing - they automatically save their information to the registry. I don't have a problem with the registry, but for the multiple ...
[ 0.24436601996421814, -0.09737101197242737, 0.5789003372192383, 0.4096916913986206, 0.29327622056007385, -0.16310638189315796, 0.07721496373414993, -0.22314174473285675, -0.3169257938861847, -0.7513763904571533, 0.1010943353176117, 0.5287654399871826, -0.28368982672691345, 0.077830977737903...
up anything. Has anyone else had any success doing something similar? It seems like it should be possible to do what you're suggesting, according to the information on [this page](http://msdn.microsoft.com/en-us/library/cc309001.aspx) in MSDN. I haven't tried this myself, so I don't know how difficult it will be in pra...
[ 0.18949642777442932, -0.06249542906880379, 0.5251476764678955, 0.3092120885848999, 0.018589802086353302, -0.09938930720090866, 0.0401332713663578, -0.3881511986255646, -0.6808266639709473, -0.6408419013023376, -0.10110092908143997, 0.3965492248535156, -0.18599356710910797, -0.1937298923730...
I am using a Session Parameter on an ObjectDataSource. It works fine on the local development machine but I get this error after copying the website to the production server: Type 'System.Web.UI.WebControls.SessionParameter' does not have a public property named 'DbType'. Me again! First Answer I gave was WRONG! ...
[ 0.3238562047481537, 0.19363521039485931, 0.3310358226299286, -0.15538233518600464, -0.3676014840602875, -0.22241581976413727, 0.8705368638038635, -0.4608752727508545, -0.15566188097000122, -0.5415300130844116, 0.018553372472524643, 0.6226246953010559, -0.46074092388153076, 0.07415580749511...
Say you have a bunch of files. Say you can store meta data to these files. Say, one of these meta attributes were called "encryption" Say everyone was allowed to look at these files, but since they are encrypted, only people who know how to decrypt them can actually read the contents. Say, for every given value of "enc...
[ 0.572910487651825, 0.0779869481921196, 0.11661109328269958, 0.5159100294113159, -0.061412058770656586, -0.05442140996456146, 0.3184318542480469, -0.027837703004479408, -0.43857425451278687, -0.23497536778450012, -0.07918539643287659, 0.5835137963294983, -0.13988837599754333, 0.069210819900...
would you organize access to the keys? I am currently leaning towards following implementation: * the value of the field "encryption" contains the name of a key, possibly also denoting the algorithm used * each user has access to a bunch of keys. This could be defined by roles the user has in an LDAP/ActiveDirectory ...
[ 0.3239760994911194, -0.1603361815214157, 0.004589074291288853, 0.23872199654579163, 0.12042368203401566, -0.2447151243686676, -0.07507060468196869, -0.37696555256843567, -0.2722945213317871, -0.613098680973053, -0.049792177975177765, 0.5398044586181641, -0.3715258836746216, -0.092400372028...
use? Symmetric (AES)? Or Asymmetric (what are the good ones)? Using asymmetric keys would have the additional benefit of making a difference between reading a file and writing a file: Access to the private key is necessary for writing the file, access to the public key (only semi public, as only certain roles have acc...
[ 0.3519769310951233, 0.21996469795703888, 0.08625780045986176, 0.1063925251364708, 0.17292499542236328, -0.1455516815185547, 0.06859053671360016, -0.17053638398647308, -0.13653850555419922, -0.431115984916687, -0.04236408695578575, 0.6889330148696899, -0.3511563539505005, -0.004034616053104...
more clearly: Imagine a Document Management System that operates in a distributed fashion: Each document is copied to various nodes in a (company controlled, private) P2P network. An algorithm for assuring redundancy of documents is used to ensure backups of all documents (including revisions). This system works as a ...
[ 0.058012206107378006, -0.01914551854133606, 0.44779008626937866, 0.49440711736679077, 0.491233229637146, -0.25686192512512207, 0.03771377354860306, -0.005407397635281086, -0.5521429181098938, -0.5271807312965393, -0.4978790879249573, 0.24571861326694489, 0.014939769171178341, 0.30457341670...
all up and controls who is part of the P2P network). This rules out directory access based schemes, as the user will probably be able to get to the data. Am I mistaken here? Could a local folder be encrypted such that it can only be accessed by a Domain user? How secure is that? I am aware of users sharing decrypted ...
[ 0.47255948185920715, -0.03941146656870842, 0.4131414592266083, 0.2512103319168091, 0.22373732924461365, -0.5442454814910889, 0.08970761299133301, -0.09054124355316162, -0.5520386695861816, -0.1618044376373291, -0.28351426124572754, 0.5546854734420776, -0.5203396081924438, 0.154584765434265...
against, is the hard part. Key management isn't a trivial thing. I highly recommend the book "[Applied Cryptography](http://www.schneier.com/book-applied.html)" to help you understand the protocol-level issues better.
[ 0.3441017270088196, 0.21253646910190582, -0.010924710892140865, -0.09366080164909363, -0.11019910871982574, -0.1699315458536148, 0.4288042485713959, -0.5510549545288086, 0.05637175589799881, -0.07633055001497269, -0.051626961678266525, 0.7646831274032593, -0.22248080372810364, 0.0283634979...
I know there are [libraries out there for working with ZIP files](https://stackoverflow.com/questions/11737/net-library-to-unzip-zip-and-rar-files). And, you can alternatively [use the functionality built into Windows for working ZIP files](https://stackoverflow.com/questions/30211/windows-built-in-zip-compression-scri...
[ 0.5526047945022583, 0.12409614026546478, 0.12306752055883408, 0.14235900342464447, 0.05341210216283798, -0.24303174018859863, -0.05730509012937546, -0.09821223467588425, -0.248398557305336, -0.6508855223655701, -0.14705178141593933, 0.3918811082839966, -0.08645960688591003, 0.1280570477247...
I have this .NET regex: ``` ^(?<prefix>("[^"]*"))\s(?<attrgroup>(\([^\)]*\)))\s(?<suffix>("[^"]*"))$ ``` It properly matches the following strings: ``` "some prefix" ("attribute 1" "value 1") "some suffix" "some prefix" ("attribute 1" "value 1" "attribute 2" "value 2") "some suffix" ``` It fails on... ``` "some ...
[ -0.006728341802954674, 0.21218682825565338, 0.5584492683410645, -0.1676422655582428, -0.037772439420223236, -0.23085540533065796, 0.470192551612854, -0.26615574955940247, 0.03600965067744255, -0.8724725246429443, -0.054381899535655975, 0.514461874961853, -0.12609463930130005, 0.12212356925...
between double quotes, or is a whitespace. If you want to know how I came up with this, read [Mastering Regular Expressions](https://rads.stackoverflow.com/amzn/click/com/0596528124). ps. if I'm correct, then this will also validate attribute group as pairs of quoted string.
[ 0.18472252786159515, 0.09648144245147705, -0.0033969972282648087, -0.11723101884126663, -0.07820317894220352, 0.11163219809532166, 0.20330660045146942, -0.20255763828754425, -0.07370447367429733, -0.31913647055625916, -0.1914050281047821, 0.2937997579574585, -0.22766423225402832, -0.321108...
We have a Java Applet built using AWT. This applet lets you select pictures from your hard drive and upload them to a server. The applet includes a scrollable list of pictures, which works fine in Windows, Linux and Mac OS X 10.5. We launch this applet via Java Web Start or within a web page. Our applet does not beha...
[ 0.3904278576374054, 0.086918905377388, 0.4241030514240265, 0.1624346226453781, 0.027276525273919106, 0.027948446571826935, 0.273250013589859, 0.06707634031772614, 0.19057945907115936, -0.7140166163444519, 0.3090548515319824, 0.7753902673721313, -0.2199629694223404, -0.04624076560139656, ...
footer of the application. This behaviour does not occur on other platforms. On Mac OS X 10.4, it shows the pictures in the incorrect location when scrolling, which would not be so bad if it refreshed the screen after painting the image at that location. However, it does not appear that the application knows it painted...
[ 0.06730184704065323, -0.2684308588504791, 0.5353195071220398, -0.09015733748674393, 0.1586197167634964, 0.15820744633674622, 0.5610681772232056, 0.13456322252750397, -0.3362155556678772, -0.34248512983322144, 0.11498382687568665, 0.48660436272621155, -0.14427782595157623, -0.12390121072530...
unsuccessfully. (the repaint the image directly, repaint all children of a few panels, etc. ) Thus, I am looking for any tips that would help me resolve this problem under Mac OS X 10.4 or, in the worst case, simply simulate a full applet refresh. Until recently, everything was compatible with Java 1.1 but this has c...
[ 0.27070796489715576, 0.2481721043586731, 0.4337863624095917, -0.0868651494383812, 0.194533109664917, 0.26354262232780457, 0.587527871131897, -0.1683230847120285, -0.1523900330066681, -0.44483864307403564, -0.030354008078575134, 0.7930008172988892, 0.08141906559467316, -0.04130184277892113,...
is a common platform bug for which workarounds must be known. To replicate the problem, open the following Java Web Start application: <http://www.lavablast.com/tmp/opal-webstart.php.jnlp> Select a folder containing lots of images and play with the scrollbar. At some point (fairly quickly), you should get the refresh...
[ 0.0941280871629715, -0.1455511897802353, 0.5184752345085144, 0.22685867547988892, -0.05117904767394066, -0.232074573636055, 0.40872398018836975, -0.06900595128536224, -0.253263384103775, -0.4557521343231201, 0.07467006146907806, 0.8598602414131165, -0.20500557124614716, -0.1582113206386566...
be great :) Edit2: The main thread creates the panels and launches X threads. Using an observer/notifier pattern, the threads complete and notify the main control, which adds a panel to the page. This is done via an EventQueue.invokeLater which, unless I am mistaken, should run on the right thread. The issue is at its...
[ 0.2471940964460373, -0.16491073369979858, 0.48194319009780884, 0.056878022849559784, 0.09472668915987015, -0.2931435704231262, 0.10112496465444565, -0.012927309609949589, -0.35686302185058594, -0.9202715754508972, -0.2985773980617523, 0.7520720958709717, -0.14486587047576904, -0.1770476400...
like this : ``` using (OracleDataReader odr=command.ExecuteReader()) { reader.Read(); if (!dr.IsDBNull(0)) using (Stream s=(Stream)dr.GetOracleValue(0)) using (Image image=Image.FromStream(s)) return Copy(image); } ``` where Copy is ``` public static Image Copy(Image or...
[ 0.13165642321109772, -0.239018052816391, 0.8801829814910889, -0.08018550276756287, 0.04976409301161766, 0.17871160805225372, 0.09538069367408752, -0.4717462360858917, -0.2412843257188797, -0.6838415265083313, -0.2576655149459839, 0.8122556805610657, -0.3815826177597046, 0.15717773139476776...
} return ret; } ``` See [my blog post](http://macinsoft.blogspot.com/2009/09/beware-image-object.html) and/or [KB 814675](http://support.microsoft.com/?id=814675) for why a Copy is necessary.
[ -0.050368793308734894, 0.42047229409217834, 0.20931127667427063, -0.1325957477092743, 0.1673884242773056, -0.24089732766151428, 0.38343799114227295, 0.23803254961967468, 0.014251370914280415, -0.5973279476165771, -0.40310153365135193, 0.6579819917678833, -0.3610236644744873, 0.145181432366...
PNG images appear "fuzzy" in flash CS3. They are very blocky and appear unanti-aliased (if that is a word) Does anyone have a fix for this? Is there some setting I'm missing? Are you loading them into your SWF through a loader? Or are they imported into your library as bitmap symbols? If they are loaded in try calling ...
[ 0.1084209606051445, -0.2969379723072052, 0.4346195161342621, 0.22079460322856903, -0.23834200203418732, -0.05653864145278931, 0.256037175655365, 0.18569132685661316, -0.4831150770187378, -0.7229981422424316, -0.01907137967646122, 0.3908464014530182, -0.4732953906059265, -0.0848892331123352...
the scale of it in your code at any time. Those two options tend to mess with bitmap images fuzziness. If all else fails you'd probably want to look into turning your images into vector based graphics, then they'd always look exactly how you'd want them to regardless of scaling.
[ 0.19758465886116028, -0.28636273741722107, 0.5373751521110535, 0.43484899401664734, -0.2095637321472168, 0.12935660779476166, 0.15236955881118774, -0.025023721158504486, -0.5295466184616089, -0.8708959817886353, 0.2731185257434845, 0.6789449453353882, -0.04374696686863899, 0.10493374615907...
I downloaded a VM image of a web application that uses MySQL. How can I monitor its space consumption and know when additional space must be added? I have some great big queries to share: Run this to get the Total MySQL Data and Index Usage By Storage Engine ``` SELECT IFNULL(B.engine,'Total') "Storage Engine", CONC...
[ 0.02387918345630169, 0.03331808000802994, 0.9828957319259644, 0.1816156655550003, 0.13772855699062347, 0.21789193153381348, -0.028787408024072647, -0.36767399311065674, -0.16351711750030518, -0.6657428741455078, -0.28590133786201477, 0.6391140222549438, -0.2539041340351105, -0.018269361928...
Index Usage By Database ``` SELECT DBName,CONCAT(LPAD(FORMAT(SDSize/POWER(1024,pw),3),17,' '),' ', SUBSTR(' KMGTP',pw+1,1),'B') "Data Size",CONCAT(LPAD( FORMAT(SXSize/POWER(1024,pw),3),17,' '),' ',SUBSTR(' KMGTP',pw+1,1),'B') "Index Size", CONCAT(LPAD(FORMAT(STSize/POWER(1024,pw),3),17,' '),' ', SUBSTR(' KMGTP',pw+1,1...
[ -0.2810198664665222, 0.20263619720935822, 0.7252320051193237, 0.3123748302459717, 0.05000710487365723, 0.24659815430641174, -0.21242697536945343, -0.43585529923439026, -0.21474361419677734, -0.6288411617279053, -0.049285806715488434, 0.5216693878173828, -0.19722379744052887, 0.155582860112...
FROM (SELECT table_schema,engine, SUM(data_length) DSize,SUM(index_length) ISize, SUM(data_length+index_length) TSize FROM information_schema.tables WHERE table_schema NOT IN ('mysql','information_schema','performance_schema') AND engine IS NOT NULL GROUP BY table_schema,engine WITH ROLLUP) B, (SELECT 3 pw) A) AA ORDER...
[ -0.1611432582139969, -0.06573278456926346, 0.481101393699646, 0.07025377452373505, -0.14678962528705597, 0.32785677909851074, 0.07740920782089233, -0.7499691247940063, -0.22897665202617645, -0.6355785727500916, -0.27839231491088867, 0.3362419009208679, -0.12071199715137482, 0.0485943444073...
Report in PetaBytes (please contact me if you run this one) Here is a report query with a little less formatting: ``` SELECT IFNULL(db,'Total') "Database", datsum / power(1024,pw) "Data Size", ndxsum / power(1024,pw) "Index Size", totsum / power(1024,pw) "Total" FROM (SELECT db,SUM(dat) datsum,SUM(ndx) ndxsum,SUM(dat...
[ 0.36479508876800537, -0.11779238283634186, 0.46659260988235474, 0.13822683691978455, -0.5429211258888245, 0.03815038874745369, 0.42042508721351624, -0.683001697063446, -0.4439978301525116, -0.4729548990726471, 0.2526676654815674, 0.6617443561553955, -0.3799189627170563, 0.1355961114168167,...
unit displays. Each unit display is calculated for you. Report By Storage Engine ``` SELECT IFNULL(ENGINE,'Total') "Storage Engine", LPAD(CONCAT(FORMAT(DAT/POWER(1024,pw1),2),' ', SUBSTR(units,pw1*2+1,2)),17,' ') "Data Size", LPAD(CONCAT(FORMAT(NDX/POWER(1024,pw2),2),' ', SUBSTR(units,pw2*2+1,2)),...
[ -0.021967977285385132, -0.028861690312623978, 0.8727830052375793, 0.09614259004592896, 0.30993664264678955, 0.6196632385253906, -0.12866993248462677, -0.3807831108570099, -0.3376540541648865, -1.1652401685714722, -0.5577394366264343, 0.30276137590408325, 0.2054966390132904, 0.2406389862298...
FLOOR(LOG(IF(TBL=0,1,TBL))/LOG(1024)) pz FROM (SELECT ENGINE, SUM(data_length) DAT, SUM(index_length) NDX, SUM(data_length+index_length) TBL FROM ( SELECT engine,data_length,index_length FROM
[ -0.2638761103153229, -0.028585059568285942, 0.6654692888259888, 0.13890859484672546, 0.3789294362068176, 0.20137037336826324, -0.09640270471572876, -0.6454878449440002, -0.2929038107395172, -0.631310224533081, -0.38273683190345764, 0.16248252987861633, -0.027549024671316147, 0.140728786587...
information_schema.tables WHERE table_schema NOT IN ('information_schema','performance_schema','mysql') AND ENGINE IS NOT NULL ) AAA GROUP BY ENGINE WITH ROLLUP ) AAA ) AA) A,(SELECT ' BKBMBGBTB' units) B; ``` Report By Database ``` SELECT IFNULL(DB,'Total') "Database", LPAD(CON...
[ -0.38500773906707764, 0.02933333069086075, 0.8373067378997803, 0.3213628828525543, 0.3166119456291199, 0.23245924711227417, -0.34282153844833374, -0.3197436034679413, -0.07025357335805893, -0.7213568091392517, -0.4832909107208252, 0.4884236454963684, -0.23118774592876434, 0.067936904728412...
SUBSTR(units,pw3*2+1,2)),17,' ') "Total Size" FROM ( SELECT DB,DAT,NDX,TBL, IF(px>4,4,px) pw1,IF(py>4,4,py) pw2,IF(pz>4,4,pz) pw3 FROM (SELECT *, FLOOR(LOG(IF(DAT=0,1,DAT))/LOG(1024)) px, FLOOR(LOG(IF(NDX=0,1,NDX))/LOG(1024)) py, FLOOR(LOG(IF(TBL=0,1,TBL))/LOG(1024)) pz FROM...
[ -0.24290509521961212, -0.17420437932014465, 0.4850446283817291, -0.11722447723150253, 0.10986420512199402, 0.54176926612854, 0.24077226221561432, -0.9077255725860596, -0.2955537438392639, -0.5649511814117432, -0.6064944267272949, 0.1352657526731491, 0.005663854535669088, 0.1727157980203628...
FROM ( SELECT table_schema DB,data_length,index_length FROM information_schema.tables WHERE table_schema NOT IN ('information_schema','performance_schema','mysql') AND ENGINE IS NOT NULL ) AAA GROUP BY DB WITH ROLLUP ) AAA) AA) A,(SELECT ' BKBMBGBTB' units) B; ``` Report By Databas...
[ -0.2938268780708313, -0.006002798210829496, 0.5228413939476013, 0.04551807418465614, 0.2160029411315918, 0.4205801486968994, -0.27912408113479614, -0.6094232797622681, -0.191179558634758, -0.3652094602584839, -0.35275694727897644, 0.32440173625946045, -0.19041213393211365, 0.04290450364351...
"Index Size", LPAD(CONCAT(FORMAT(TBL/POWER(1024,pw3),2),' ', SUBSTR(units,pw3*2+1,2)),17,' ') "Total Size" FROM ( SELECT DB,ENGINE,DAT,NDX,TBL, IF(px>4,4,px) pw1,IF(py>4,4,py) pw2,IF(pz>4,4,pz) pw3 FROM (SELECT *, FLOOR(LOG(IF(DAT=0,1,DAT))/LOG(1024)) px, FLOOR(LOG(IF(NDX=0,1,ND...
[ -0.3560841679573059, -0.10491994023323059, 0.5962327122688293, -0.10296696424484253, 0.1374552845954895, 0.4562976062297821, -0.006698505021631718, -0.7407870888710022, -0.15843017399311066, -0.6301920413970947, -0.42541101574897766, 0.3007499873638153, 0.002265786752104759, 0.118637181818...
SUM(data_length+index_length) TBL FROM ( SELECT table_schema DB,ENGINE,data_length,index_length FROM information_schema.tables WHERE table_schema NOT IN ('information_schema','performance_schema','mysql') AND ENGINE IS NOT NULL ) AAA GROUP BY DB,ENGINE WITH ROLLUP ) AAA) AA) A,(S...
[ -0.11585704982280731, 0.1279352456331253, 0.515306830406189, -0.18692925572395325, -0.19449487328529358, 0.35122740268707275, -0.011269405484199524, -1.0517760515213013, -0.16983751952648163, -0.1655597686767578, -0.21855096518993378, 0.22761066257953644, -0.44237837195396423, 0.2194998711...
We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so [Checkstyle](http://checkstyle.sourceforge.net/) and [PMD](http://pmd.sourceforge.net/) integration come for free. However it looks like there is a large overlap in functionality between these two tools, in terms...
[ 0.25738731026649475, -0.16445474326610565, 0.17725834250450134, 0.18304187059402466, -0.0024612690322101116, -0.1862974315881729, 0.06945168226957321, -0.15625518560409546, -0.23280924558639526, -0.6460723280906677, -0.08402260392904282, 0.6070608496665955, -0.36803045868873596, -0.2213003...
is preferred over CheckStyle. I don't see a solid reason to use both, and I don't want to maintain 2 sets of rule files, so we will probably aim for PMD exclusively. We'll also be bringing in FindBugs, and perhaps, eventually, Macker to enforce architectural rules. You should definitely use [FindBugs](http://findbugs.s...
[ 0.48750531673431396, -0.006368663627654314, 0.4139765501022339, 0.08672059327363968, -0.20692650973796844, -0.6455055475234985, 0.3225724697113037, -0.019094377756118774, 0.007730207405984402, -0.41320011019706726, -0.23857776820659637, 0.7330406904220581, -0.3766450583934784, -0.355181545...
things that are completely irrelevant. PMD on the other hand is also able to point out questionable coding practices and its output is generally more relevant and useful.
[ 0.2864319682121277, 0.35759007930755615, -0.06661650538444519, 0.37738868594169617, 0.1277777999639511, -0.05812205374240875, 0.1978493481874466, 0.06705810129642487, -0.011449592188000679, -0.39789333939552307, -0.5433911085128784, 0.3555985689163208, -0.11778629571199417, -0.054123155772...
Is there a way to do this in one line? ``` $x =~ s/^\s+//; $x =~ s/\s+$//; ``` In other words, remove all leading and trailing whitespace from a string. ``` $x =~ s/^\s+|\s+$//g; ``` or ``` s/^\s+//, s/\s+$// for $x; ```
[ -0.30842071771621704, 0.1955718994140625, 0.22912079095840454, 0.03726957365870476, -0.0806257426738739, 0.2920222282409668, 0.44745075702667236, -0.10721294581890106, 0.0363442525267601, -0.5148565173149109, -0.4164784550666809, 0.04430447518825531, -0.6676959991455078, 0.0388884358108043...
Consider the following two ways of writing a loop in Java to see if a list contains a given value: ### Style 1 ``` boolean found = false; for(int i = 0; i < list.length && !found; i++) { if(list[i] == testVal) found = true; } ``` ### Style 2 ``` boolean found = false; for(int i = 0; i < list.length && !fou...
[ 0.4867381155490875, -0.07796625047922134, -0.15533068776130676, -0.3658576011657715, -0.157201886177063, -0.28060486912727356, 0.6483432054519653, -0.5471915602684021, -0.0013866209192201495, -0.2893499732017517, -0.028252670541405678, 0.36583492159843445, -0.4815840423107147, -0.155348196...
take more time. I am wondering: is this second assumption true? ### Nitpicker's corner * I am well aware that this is a case of premature optimization. That doesn't mean that it isn't something that is useful to know. * I don't care which style you think is more readable. I am only interested in whether one has a per...
[ 0.4065380096435547, 0.12494844943284988, -0.11904218047857285, 0.0691535547375679, -0.31173524260520935, -0.3531350791454315, 0.4563075006008148, 0.12366870790719986, -0.005584294442087412, -0.8147907257080078, -0.18759675323963165, 0.577078640460968, -0.27396655082702637, -0.1797368824481...
java.util.*; public class Test { private static int[] list = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9} ; private static int testVal = 6; public static boolean version1() { boolean found = false; for(int i = 0; i < list.length && !found; i++) { if(list[i] == testVal) ...
[ 0.27699944376945496, -0.19004948437213898, 0.041906021535396576, -0.3878702223300934, 0.11764657497406006, 0.10642821341753006, 0.6029678583145142, -0.5387192368507385, 0.11476247757673264, -0.4678932726383209, -0.1957770138978958, 0.33429285883903503, -0.29203540086746216, 0.1419012099504...
true; } return found; } public static boolean version2() { boolean found = false; for(int i = 0; i < list.length && !found; i++) { found = (list[i] == testVal); } return found; } public static void main(String[] args) {
[ 0.2286047786474228, -0.17476142942905426, 0.08055267482995987, -0.4276469051837921, 0.25762641429901123, 0.03712974488735199, 0.447985976934433, -0.10903134196996689, 0.16812846064567566, -0.18889786303043365, -0.2885328233242035, 0.5023742318153381, -0.2960979640483856, 0.3427197933197021...
// warm up for (int i=0; i<100000000; i++) { version1(); version2(); } long time = System.currentTimeMillis(); for (int i=0; i<100000000; i++) { version1(); } System.out.println("Version1:" + (System.currentTimeMillis() - time)); time = System.currentTimeMillis(); ...
[ -0.18552251160144806, -0.28298482298851013, 1.3446476459503174, -0.27674371004104614, 0.4742865562438965, 0.31312185525894165, 0.5143348574638367, -0.2285979986190796, -0.1171867847442627, -0.59066241979599, -0.40950295329093933, 0.3908928632736206, 0.03699001669883728, 0.333648145198822, ...
System.out.println("Version2:" + (System.currentTimeMillis() - time)); } } ``` On my machine version1 seems to be a little bit faster: Version1:5236 Version2:5477 (But that's 0.2 seconds on a 100 million iterations. I wouldn't care about this.) If you look at the generated bytecode there are two more instruct...
[ -0.12991905212402344, -0.14281423389911652, 0.7001371383666992, -0.1499137282371521, 0.08178471773862839, 0.21169309318065643, 0.3821672797203064, -0.04769016429781914, -0.3928435146808624, -0.9622043967247009, -0.0348803848028183, 0.5135189294815063, -0.4010041654109955, 0.064156182110309...
#2; //Field list:[I 8: arraylength 9: if_icmpge 35 12: iload_0 13: ifne 35 16: getstatic #2; //Field list:[I 19: iload_1 20: iaload 21: getstatic #3; //Field testVal:I 24: if_icmpne 29 27: iconst_1 28: istore_0 29: iinc 1, 1 32: goto 4
[ -0.3573114275932312, -0.033570073544979095, 0.287324458360672, -0.13147468864917755, -0.1745140552520752, 0.3565008342266083, 0.4075258672237396, -0.5497375130653381, -0.3457605242729187, -0.5679947733879089, -0.1941295862197876, 0.5855429768562317, -0.4396262764930725, -0.2427118718624115...
35: iload_0 36: ireturn public static boolean version2(); Code: 0: iconst_0 1: istore_0 2: iconst_0 3: istore_1 4: iload_1 5: getstatic #2; //Field list:[I 8: arraylength 9: if_icmpge 39 12: iload_0 13: ifne 39 16: getstatic #2; //Field list:[I 19:...
[ -0.3681560754776001, -0.027990693226456642, 0.34391459822654724, -0.2747892439365387, -0.153671532869339, 0.37353402376174927, 0.30732712149620056, -0.16434244811534882, -0.062443677335977554, -0.63223797082901, -0.22700843214988708, 0.59565269947052, -0.7350811958312988, -0.20344583690166...
20: iaload 21: getstatic #3; //Field testVal:I 24: if_icmpne 31 27: iconst_1 28: goto 32 31: iconst_0 32: istore_0 33: iinc 1, 1 36: goto 4 39: iload_0 40: ireturn ```
[ -0.12691760063171387, 0.041809409856796265, 0.2766837179660797, 0.113212451338768, -0.08749783039093018, 0.27375027537345886, 0.3988884687423706, -0.3899133801460266, -0.2132096290588379, -0.7005549073219299, -0.25040730834007263, 0.6258111596107483, -0.3342125415802002, -0.101471148431301...
1. We are looking to store transactional data in SharePoint lists. The lists will easily grow to 100,000+ items. 2. How would the query performance be compared with queries on a database table with these columns? Queries: Select by Id Select Where ColumnValue = X Group By OrderId Group By Date The SP List will be 6 c...
[ 0.02219180017709732, -0.2277490198612213, 0.8732868432998657, 0.1993408501148224, -0.28819388151168823, 0.03869478031992912, 0.08395254611968994, -0.6473931074142456, -0.5352751612663269, -0.3962711989879608, 0.23191434144973755, 0.22705648839473724, -0.3873727023601532, 0.0210022535175085...
"indexed" through SharePoint. Essentially SharePoint is designed for a specific purpose (content/documents) and trying to get it to do something out of the ordinary means you have to fight the application tooth and nail. Fortunately SharePoint has several means of integrating transactional data into it. First off (i...
[ 0.5771120190620422, 0.024783378466963768, 0.6133701205253601, 0.37671351432800293, 0.06750816851854324, -0.29329878091812134, -0.10522056370973587, 0.024600815027952194, -0.384739488363266, -0.5388193130493164, 0.0641394779086113, 0.504655659198761, -0.24822956323623657, 0.2391098439693451...
relevant pages within SharePoint. In summary: You will be setting yourself up for a lot of uneccesary work by storing transactional data within SharePoint compared to other application designs hosting the data in traditional database applications and integrating to SharePoint.
[ 0.30263808369636536, 0.10557832568883896, 0.7597954869270325, 0.4073892831802368, -0.02975928597152233, -0.4775117337703705, -0.0558210089802742, -0.07341613620519638, -0.4984542727470398, -0.6938460469245911, -0.15304461121559143, 0.27804872393608093, -0.10920234024524689, 0.0908025205135...
I'm interested in learning C. I have read [K & R](http://en.wikipedia.org/wiki/The_C_Programming_Language_(book)), and I have even done some simple C extension work in R and Python. What's a worthwhile project idea for doing something more substantial with C? Any good online resources, similar to [Dive Into Python](htt...
[ 0.7346650958061218, 0.20142439007759094, -0.3518567979335785, -0.09452324360609055, -0.15211087465286255, 0.017706403508782387, 0.2205026000738144, 0.3405558466911316, -0.427036851644516, -0.3966502547264099, 0.08528240770101547, 0.5067964792251587, 0.15224677324295044, -0.1613157689571380...
K&R what book to use to learn programming in plain C?](https://stackoverflow.com/questions/803522/after-kr-what-book-to-use-to-learn-programming-in-plain-c)
[ -0.08062542229890823, 0.33896127343177795, -0.12428366392850876, 0.05893249437212944, 0.05888697877526283, 0.038694996386766434, 0.3870723247528076, -0.2526617646217346, -0.0856022909283638, -0.02257760614156723, -0.2412966787815094, 0.5025517344474792, -0.11131064593791962, -0.08897753804...
Which of these pieces of code is faster? ``` if (obj is ClassA) {} if (obj.GetType() == typeof(ClassA)) {} ``` Edit: I'm aware that they don't do the same thing. [This should answer that question, and then some.](https://learn.microsoft.com/en-us/archive/blogs/vancem/drilling-into-net-runtime-microbenchmarks-typeof...
[ 0.07050105184316635, 0.02932450734078884, 0.3022330403327942, 0.03567841649055481, 0.061557359993457794, -0.2685770094394684, 0.18246056139469147, -0.08481244742870331, -0.2910943031311035, -0.780437707901001, -0.36647218465805054, 0.643850564956665, -0.5385503768920898, -0.182023867964744...
I'm a doing some blackbox testing of a ASP.Net website and I need to test different session timeout scenarios. I'm not sure they fully encapsulated session timeouts. Other then leaving a page open for 20 minutes is there an easier way to force a session timeout? **Decrease the timeout** The easiest and most non-intr...
[ 0.6488334536552429, -0.13572277128696442, 0.04592648893594742, 0.11569122225046158, -0.10492341965436935, -0.175190269947052, 0.6880126595497131, 0.08356005698442459, -0.3974427282810211, -0.5275514125823975, 0.33587023615837097, 0.5030390024185181, 0.18766248226165771, -0.0045550861395895...
on your test results. You can modify the session state timeout in a few locations - globally (in the web.config located in the config folder for the applicable .NET framework version), or just for your application. To modify the timeout just for your application, you can add the following to your application's web.co...
[ 0.8005824089050293, -0.09681559354066849, 0.2527875602245331, 0.24414685368537903, 0.28973737359046936, -0.16358570754528046, 0.5866762399673462, -0.002451623324304819, -0.2533630430698395, -0.9931435585021973, -0.1130334734916687, 0.3683847188949585, -0.04634678736329079, 0.18066011369228...
on your web application in IIS, and navigate to Properties | ASP.NET tab | Edit Configuration | State Management tab | Session timeout (minutes). Note that you can also manipulate this setting through code - if this is already being done, than the setting in the web.config file will effectively be ignored and you will...
[ 0.266967236995697, 0.10517899692058563, 0.18064048886299133, -0.1057390421628952, 0.12020041793584824, -0.39190423488616943, 0.7411888241767883, -0.018658066168427467, -0.2750604748725891, -0.8141554594039917, -0.008943752385675907, 0.6784517765045166, -0.15396681427955627, 0.1703648567199...
page are processed. My understanding is that this would be a fairly clean way to test session timeouts without actually waiting for them. **Force an application restart** In a default configuration of session state, you can simulate a session timeout by blowing away the sessions entirely by causing the application t...
[ 0.09210586547851562, -0.09822361916303635, 0.6555899977684021, -0.019225195050239563, 0.09914582967758179, -0.10742375254631042, 0.3882116377353668, -0.31391316652297974, -0.42661017179489136, -0.561760663986206, -0.3874697983264923, 0.677665650844574, -0.4590266942977905, 0.08349535614252...
service + the command-line (iisreset) When I mention "default configuration", I mean a web application that is configured to use "InProc" session state mode. There are others modes that can actually maintain session state even if the web application is restarted (StateServer, SQLServer, Custom). **Tamper with the st...
[ 0.22671832144260406, -0.407719224691391, 0.5438865423202515, -0.1559804230928421, -0.1957939714193344, -0.35246792435646057, 0.7387900352478027, -0.21209149062633514, -0.10738461464643478, -0.7565307021141052, -0.42318710684776306, 0.820830762386322, -0.2526485025882721, 0.0933146700263023...
using it. The request without a session ID will simply be treated as an unseen request in need of a new session, which may or may not be what you want to test.
[ 0.5514745712280273, -0.16739481687545776, 0.11291204392910004, 0.33839455246925354, 0.2347056269645691, -0.4793499708175659, 0.16451682150363922, -0.016588738188147545, -0.0953695997595787, -0.5286895036697388, 0.0009152249549515545, 0.4206123352050781, -0.15712308883666992, -0.04973407089...
There's a cots (commercial off-the-shelf) application that I work on customizing, where a couple of pages take an extremely long time to load for certain distributions of data. (I'm talking approximately 3 minutes for a page to load in this instance... and the time is growing exponentially). Clearly this is unaccepta...
[ 0.4056354761123657, -0.06901927292346954, 0.3616597056388855, 0.06245752051472664, -0.4275035858154297, 0.06449535489082336, 0.4101610779762268, -0.42057177424430847, -0.46230271458625793, -0.4929870367050171, 0.16637614369392395, 0.3069114685058594, -0.06345996260643005, -0.16494601964950...
manipulating** objects in the UI. * **1 second**: Limit for users feeling that they are **freely navigating** the command space without having to unduly wait for the computer. * **10 seconds**: Limit for users **keeping their attention** on the task. So for web apps you should keep your page response times at 500 ms m...
[ -0.1392478346824646, -0.3855409324169159, 0.7909315228462219, 0.07793186604976654, -0.24514511227607727, 0.12922734022140503, 0.35033687949180603, -0.08896475285291672, -0.5094210505485535, -0.7611487507820129, 0.0960884764790535, 0.4859302043914795, 0.09393905848264694, -0.391787052154541...
We're using CruiseControl.NET to manage our builds and we're in the process of obtaining a new build server. I've been tasked with coming up with the spec for the new server. This server will need to run multiple builds concurrently and as effeciently as possible. What would you consider the ideal spec for this serve...
[ 0.806991696357727, -0.20525509119033813, 0.8456675410270691, 0.28861674666404724, 0.0016502989456057549, -0.11105136573314667, 0.14445315301418304, 0.10152561217546463, -0.3229234218597412, -0.6262404918670654, 0.26260656118392944, 0.6971002817153931, 0.3956676721572876, -0.033761806786060...
line for instance, you will be very sad the first time you try concurrent builds. Also how many builds will be going on, if they are concurrent. Most people try beefing up build servers way too much, Processor is rarely the bottleneck. Disk I/O is usually the culprit. You also need to analyze how much of your build can...
[ 0.29687973856925964, -0.07596646249294281, 0.3727065920829773, 0.2206704467535019, -0.09672900289297104, 0.24339263141155243, 0.18659436702728271, 0.28497788310050964, -0.33860135078430176, -0.39084669947624207, -0.017608843743801117, 0.3783475458621979, -0.0927598848938942, 0.275523066520...
running on a single quad core with 4 GB of RAM and it works nearly as fast as when they each ran straight on the server. That is how we obtained our parallelism.
[ 0.03521376848220825, -0.039036985486745834, 0.30078473687171936, 0.34490951895713806, -0.009950174950063229, 0.22629718482494354, 0.05909032002091408, 0.1463129073381424, -0.30516311526298523, -0.5429198741912842, 0.2880798280239105, 0.4401506781578064, -0.3756222426891327, 0.0840042307972...
I am using partial classes to split some functionality between 2 files, but I am getting an error. What am I doing wrong? A1.cs: ``` private partial class A { private string SomeProperty { get { return "SomeGeneratedString"; } } } ``` A2.cs: ``` private partial class A { void SomeFunction() { ...
[ 0.08228690922260284, 0.07121462374925613, -0.0752687081694603, -0.17818322777748108, 0.021389538422226906, -0.14068837463855743, 0.47170427441596985, 0.2575725018978119, -0.17041335999965668, -0.2686907947063446, -0.20288001000881195, 0.4125876724720001, -0.3772708475589752, 0.185918182134...
the two partial classes in the same namespace? That could be an explanation.
[ 0.1281091421842575, -0.13400663435459137, -0.3084484040737152, 0.21894629299640656, -0.294282466173172, 0.17247390747070312, 0.020562903955578804, 0.3226081430912018, -0.33488261699676514, -0.23172594606876373, 0.024944134056568146, 0.0745064988732338, -0.018559450283646584, 0.232091650366...
I seem to be having an issue with iPhone SDK 2.1 in as far as being able to establish a relationship between a ViewController and a View window. In as far as a Cocoa Touch Class, I went forward and added a `UIViewController` subclass. I made sure that the target is part of the existing project. Right afterwards I added...
[ -0.03167419135570526, 0.24466030299663544, 0.6526755094528198, -0.14557045698165894, -0.3485034108161926, 0.02057737298309803, 0.33090740442276, -0.32560959458351135, -0.005031407345086336, -0.7625688314437866, -0.23802433907985687, 0.46800869703292847, -0.2539382874965668, -0.037638045847...
(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } - (void)dealloc { [super dealloc]; } @end ``` As you can tell, it doesn't do mu...
[ -0.005680680740624666, -0.2348550707101822, 0.8347592949867249, -0.17162266373634338, -0.02627411298453808, -0.2693420648574829, 0.13708941638469696, -0.10019324719905853, 0.004862885922193527, -0.6906852722167969, -0.0524623841047287, 0.8140937089920044, -0.31203538179397583, 0.2635889351...
I also ensure that my User Interface View XIB is associated with the project besides seeing the project name checked off as a Target? Are the two partial classes in the same namespace? That could be an explanation.
[ 0.47691160440444946, -0.02569616585969925, -0.1085716038942337, 0.29602736234664917, -0.32630446553230286, -0.2654978334903717, 0.11761917173862457, 0.32574427127838135, -0.04968956485390663, -0.5885767340660095, 0.1277933567762375, 0.17352809011936188, 0.0441909097135067, 0.10524028539657...
I am currently working on a project with five other developers and we are using subversion for our revision control system. We have established that we have 12 milestones leading up to the first release of our software. We have labeled the milestones using version numbers (0.1 through 0.12) and descriptive labels. For ...
[ 0.29751965403556824, 0.14776325225830078, 0.43050697445869446, 0.1170390397310257, 0.17941659688949585, -0.055137310177087784, 0.17055396735668182, 0.027603376656770706, -0.23425635695457458, -0.6764707565307617, 0.016782574355602264, 0.5177773237228394, 0.031705740839242935, 0.14125612378...
- Alpha 1 Each of these milestones can be developed in parallel, but they also need to be QA'd in parallel too. We are doing this by making branches in subversion for each milestone labeled simply with the version number for the milestone. An automated system builds each milestone independently and version the applica...
[ 0.5409929752349854, 0.04011428356170654, 0.09977974742650986, 0.018464695662260056, -0.20111392438411713, 0.0768953487277031, 0.06703227758407593, -0.26211366057395935, -0.18200622498989105, -0.16523267328739166, -0.0032277603168040514, -0.005623309873044491, -0.42835733294487, -0.14838573...
to be QA'd and what doesn't. Once a milestone passes QA it will be merged into the trunk and any ongoing development will be updated with the latest code. However, there is an assumption (rightly so) that an increase in version numbers includes all previous versions. Unfortunately with the scheme described above this ...
[ 0.33110862970352173, 0.12830208241939545, 0.3947834074497223, 0.05941897630691528, 0.04102318733930588, -0.20139242708683014, 0.35640549659729004, -0.07866594940423965, -0.10739694535732269, -0.4753023087978363, -0.05738727003335953, 0.47627976536750793, 0.01577821560204029, 0.389308720827...
parallel releases (internal or otherwise) may be completed non-sequentially? I don't think that you can because you have conflicting goals - parallel development and sequential milestones. Either you hold off making the 0.3 release until 0.1 and 0.2 are completed or you have to think of another way of assigning miles...
[ 0.5765848159790039, -0.08539175242185593, 0.22092564404010773, 0.4035896956920624, 0.03165874257683754, 0.008457951247692108, -0.1804964393377304, 0.12967713177204132, -0.4861569106578827, -0.20217618346214294, 0.04277933016419411, 0.46122732758522034, -0.17073988914489746, 0.3572952151298...
Is there a way to test the type of an element in JavaScript? The answer may or may not require the prototype library, however the following setup does make use of the library. ``` function(event) { var element = event.element(); // if the element is an anchor ... // if the element is a td ... } ``` You ca...
[ 0.0937986820936203, -0.16579526662826538, 0.13233476877212524, -0.1226455420255661, 0.14852547645568848, -0.1387593150138855, 0.15695153176784515, -0.4873666763305664, -0.236188605427742, -0.34384629130363464, -0.15345387160778046, 0.6117737889289856, -0.3258114457130432, 0.039248567074537...
can use a dictionary of tagnames and anonymous closures instead if a switch or if/else.
[ 0.11712303012609482, -0.18629957735538483, 0.05678985267877579, 0.1911817193031311, 0.2383190542459488, -0.29884856939315796, 0.1493551880121231, 0.03939041495323181, -0.050230491906404495, -0.5469971299171448, -0.3381846845149994, 0.4099612236022949, -0.1584048867225647, -0.02290867641568...
**Environment:** Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1) I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's *properly* installed, because the "ASP.NET" tab isn't added to any of the sites in ...
[ -0.1541902869939804, 0.18156033754348755, 0.3098691701889038, -0.13820068538188934, 0.061106037348508835, -0.2656137943267822, 0.7587850093841553, 0.03094458393752575, -0.31390002369880676, -0.6777876615524292, -0.1992012858390808, 0.5989159941673279, -0.4660708010196686, 0.043428461998701...
not a valid Win32 application. Have you tried running: ``` aspnet_regiis -i ``` from the command line?
[ 0.21796514093875885, 0.07568701356649399, 0.01688395068049431, -0.01714697666466236, 0.1467103362083435, -0.310945600271225, 0.3211623430252075, 0.3354519307613373, -0.20017041265964508, -0.2951369881629944, -0.0892261266708374, 0.5368973612785339, -0.28943362832069397, -0.0706768855452537...
It is often handy to have a canonical representation of a language (in my case they are usually domain specific languages); however, I believe there are strict limits on the expressiveness of the languages involved that determine whether a canonical form can be determined and/or created for an arbitrary program in that...
[ 0.2522580027580261, 0.3258204758167267, 0.1065753698348999, 0.2781836986541748, -0.2589818239212036, -0.47152745723724365, 0.32217296957969666, 0.08466115593910217, -0.405823677778244, -0.6343787908554077, -0.4254171550273895, 0.46390968561172485, -0.29028409719467163, -0.1453169733285904,...
compilers like gcc, yhc, and ghc use intermediate representations to generate outputs in various formats (assembly, javascript, etc.), so this is at least in some forms, a solved problem. When is it possible to determine / generate a canonical form for a given language? (How expressive can that language be, and how d...
[ 0.16116826236248016, 0.16768287122249603, -0.13264279067516327, 0.2167602777481079, -0.3597067892551422, -0.056982606649398804, 0.3054773509502411, -0.052312061190605164, -0.06495118886232376, -0.5002726316452026, -0.2982119619846344, 0.45998963713645935, -0.5151219367980957, -0.3481585979...
can't write a web server in a regular language, but you can with lambda calculus). My question is about the theoretical possibilities, and does have a specific answer relating to complexity theory. If I have a DSL that needs to be transmitted to another system, it will often be beneficial to generate a canonical form o...
[ 0.2768917977809906, -0.005533989053219557, 0.3099009096622467, 0.271822065114975, -0.2929760217666626, -0.2088666409254074, 0.423431932926178, 0.08452906459569931, -0.2658666670322418, -0.6899874210357666, -0.18927544355392456, 0.293183833360672, -0.4299144148826599, 0.07572446018457413, ...
canonical form -- either find another way to do it, or reduce the language complexity to something that *can* be canonicalized in polynomial time. By "canonical representation" I assume you mean the following: Call programs *P* and *Q* *equivalent* if they "do the same thing" on the same inputs. "Doing the same thing" ...
[ 0.07090956717729568, -0.12431958317756653, 0.09185729175806046, 0.21461477875709534, -0.33666810393333435, -0.13860966265201569, 0.26248231530189514, -0.15392401814460754, -0.01096899900585413, -0.7521410584449768, -0.3506898283958435, 0.4146537184715271, -0.48017603158950806, 0.0671789124...
the same equivalence class, and you require that all members of the same equivalence class have the same canonical representation. For Turing-complete languages, a Turing-computable canonical representation would enable you to solve the [Halting Problem](http://en.wikipedia.org/wiki/Halting_problem) as follows: first...
[ -0.018974121659994125, -0.06709276884794235, 0.011872696690261364, 0.06957210600376129, -0.2792879641056061, 0.2515336871147156, 0.32521530985832214, -0.07801911234855652, -0.07524868845939636, -0.6130309700965881, -0.32746827602386475, 0.3829832971096039, -0.5571111440658569, 0.1144958734...
therefore neither does *P*. Otherwise, *P*0 halts, and so does *P*. For even more fun, read some of [Gregory Chaitin's](http://en.wikipedia.org/wiki/Gregory_Chaitin) work on what he calls "elegant" programs.
[ -0.3111339807510376, 0.30597883462905884, -0.10550173372030258, -0.08478853106498718, -0.17171722650527954, 0.1271144598722458, 0.2715565860271454, -0.01867864839732647, -0.054264187812805176, -0.4181196689605713, -0.5352379083633423, -0.07332079857587814, -0.5938600301742554, -0.022923061...
I was wondering if its possible to inject a thread into a remote app domain running in a separate process. My guess is that I could do this using the debugging interfaces (ICorDebug) but I was wondering if there is any other way? This can be done there is sample code in [snoop](http://blois.us/Snoop/) It sets up a ho...
[ 0.48080864548683167, -0.03129679709672928, 0.0028377247508615255, -0.1062222495675087, 0.10426583886146545, 0.12524287402629852, 0.21801339089870453, -0.1865399330854416, -0.49442151188850403, -0.43555566668510437, 0.03516000136733055, 0.36932528018951416, -0.5477972030639648, -0.038468349...
I have a bit of html like so: ``` <a href="#somthing" id="a1"><img src="something" /></a> <a href="#somthing" id="a2"><img src="something" /></a> ``` I need to strip off the links so I'm just left with a couple of image tags. What would be the most efficient way to do this with jQuery? ``` $("a > img").parent() //...
[ 0.22178715467453003, 0.08878891170024872, 0.4003352224826813, -0.12672951817512512, -0.07470808178186417, -0.047737132757902145, 0.18064682185649872, -0.054750751703977585, -0.13624729216098785, -0.8815387487411499, 0.0010504855308681726, 0.12931106984615326, -0.2430673986673355, 0.2074514...
$(this).children().remove() ); // with its detached children. }); ```
[ 0.08009178191423416, 0.20925547182559967, 0.10113797336816788, -0.20476801693439484, 0.472537636756897, 0.27454307675361633, 0.1408434361219406, -0.23903043568134308, -0.03758956864476204, -0.23714986443519592, -0.5585694313049316, 0.49379655718803406, -0.4765656590461731, 0.49431023001670...
I have a module in the parent directory of my script and I would like to 'use' it. If I do ``` use '../Foo.pm'; ``` I get syntax errors. I tried to do: ``` push @INC, '..'; use EPMS; ``` and .. apparently doesn't show up in @INC I'm going crazy! What's wrong here? `use` takes place at compile-time, so this wou...
[ 0.2821028232574463, 0.023415973410010338, 0.4900590777397156, -0.01819448545575142, 0.10641220957040787, -0.38843297958374023, 0.4363395869731903, -0.005151995457708836, -0.06785930693149567, -0.5690362453460693, -0.28233131766319275, 0.7154126167297363, -0.5972724556922913, -0.03878762200...
# locate this script use lib "$FindBin::RealBin/.."; # use the parent directory use EPMS; ```
[ 0.004441893193870783, 0.04462842270731926, 0.39467185735702515, 0.049535058438777924, 0.29729318618774414, -0.09748583287000656, 0.3529699742794037, 0.3965309262275696, 0.14182059466838837, -0.8471802473068237, -0.3316859304904938, 0.5730698704719543, -0.2182653248310089, 0.054960064589977...
I have created a common library at work, and it is installed in the GAC on our test server. I've recently updated it and I want all of our applications to be using the update. I created a publisher policy assembly and installed it in the GAC along with the update, but when a web app loads Leggett.Common, 1.0.0.0, it is...
[ 0.32681918144226074, 0.1838878095149994, 0.5858969688415527, -0.04120014235377312, 0.03973770514130592, -0.16130448877811432, -0.1355670541524887, -0.3738730251789093, -0.04075391963124275, -0.7248680591583252, 0.21776306629180908, 0.6757171154022217, -0.4400375485420227, 0.215449526906013...
publisher policy assembly in the same folder. After that I put the updated assembly in the GAC and then put the publisher policy assembly in the GAC. The common assembly is 'Leggett.Common.dll', the publisher policy file is '1.1.Leggett.Common.policy', and the publisher policy assembly is 'policy.1.1.Leggett.Common.dl...
[ -0.22557508945465088, 0.10757920145988464, 0.8898086547851562, -0.14337724447250366, -0.29979875683784485, -0.17461390793323517, -0.378775417804718, -0.2915884554386139, -0.19890213012695312, -0.7515891194343567, -0.2854418456554413, 0.43893828988075256, -0.5252165198326111, 0.262431263923...
publicKeyToken="32cd8f1a53a4c744" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0"
[ -0.115800641477108, -0.1144474521279335, 0.13407698273658752, -0.15955857932567596, -0.0006201412761583924, -0.1465534120798111, 0.430312842130661, -0.2789563238620758, -0.07711953669786453, -0.4998014271259308, 0.09501302987337112, 0.15680459141731262, -0.612248420715332, 0.49381273984909...
newVersion="1.1.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> ``` What am I doing wrong? **Clarification** I'm testing this on my local dev machine since developers don't have access to the test server. You're talking about code that would be shared library stu...
[ 0.622541069984436, -0.046888284385204315, 0.32226526737213135, 0.10744158923625946, -0.22953380644321442, -0.43488436937332153, 0.5337941646575928, -0.2541719377040863, -0.3152688145637512, -0.7203167080879211, 0.2983943819999695, 0.462770015001297, -0.2872520089149475, 0.02955421060323715...
because they are naturally stateless (behavior only depend on parameters). If they aren't naturally stateless, then you should be making a proper class to manage that state. * Cover these with Unit Tests. If you don't Unit Test anything else, Unit Test these. This should be very very easy to do. If this isn't easy, thi...
[ 0.27306094765663147, -0.14814187586307526, -0.4047601819038391, 0.27289432287216187, -0.08489548414945602, -0.15598580241203308, 0.42893725633621216, 0.016634617000818253, -0.15412737429141998, -0.5860502123832703, -0.08786164969205856, 0.753292441368103, -0.31242552399635315, -0.016312697...
I'm programming something that allows users to store documents and pictures on a webserver, to be stored and retrieved later. When users upload files to my server, PHP tells me what filetype it is based on the extension. However, I'm afraid that users could rename a zip file as somezipfile.png and store it, thus keepin...
[ 0.7615599036216736, 0.009393062442541122, 0.317852646112442, 0.048736561089754105, 0.034026890993118286, -0.14848126471042633, 0.04943622276186943, 0.09897088259458542, -0.40231770277023315, -0.42135563492774963, 0.1589188128709793, 0.03849555552005768, -0.04542285203933716, 0.323403447866...
of file it is.
[ -0.10992225259542465, 0.2936772406101227, 0.3223555088043213, 0.24853914976119995, 0.45373663306236267, -0.2730787694454193, -0.2983182966709137, 0.1347152441740036, -0.07032626867294312, -0.35728639364242554, -0.18982549011707306, 0.2925804555416107, 0.2387493997812271, 0.2786372900009155...