text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
For my theory of computing languages class, we got a homework assignment to implement a piece of code in a language that only has while statements for flow control (no if statements). This is mainly to prove that you can write a Turing-complete language with only a while loop. For those of you who can understand langu...
[ -0.10745906829833984, 0.14881311357021332, 0.07132045179605484, 0.10182911157608032, -0.00015794619685038924, 0.006535133346915245, 0.08587436378002167, -0.03682753071188927, -0.06725391745567322, -0.20881864428520203, -0.0648573786020279, 0.44920918345451355, -0.3329199254512787, -0.03532...
-> E = E | E > E | E < E | E >= E | E <= E | E != E | C and C | C or C | not(C) ``` This is copied from my class notes, so don't blame me if something is missing or incorrect! The piece of code to implement is this: ``` if d = 0 do x := 1 else x := a / d ``` At any rate, if you want to go ahead and write ...
[ 0.15965445339679718, 0.3202485144138336, -0.016748525202274323, -0.013319139368832111, 0.1146397590637207, -0.3034723699092865, 0.47521957755088806, -0.16030673682689667, 0.15734617412090302, -0.6353695392608643, -0.2532857656478882, 0.6169153451919556, -0.23948562145233154, -0.12220282852...
whatever language you're most comfortable in. But there are a few caveats! * No if statements or any other kind of flow control other than while loops. * No cheating: the grammar above doesn't include any break statements, return statements, or exceptions. Don't use them. I've got my piece of code written for this (w...
[ 0.3680771589279175, 0.31807973980903625, 0.2301725298166275, 0.10268789529800415, -0.005875405855476856, -0.14239278435707092, 0.7947145104408264, 0.25832173228263855, -0.09932044893503189, -0.3603116273880005, -0.26781708002090454, 0.4531433582305908, -0.1090717762708664, -0.1613117605447...
0 and continue do x := a/d continue := False od ```
[ 0.27877917885780334, 0.0006315750069916248, 0.3457205891609192, -0.37993311882019043, 0.4604226052761078, -0.18861882388591766, 0.3884437680244446, -0.09185691177845001, 0.31942835450172424, 0.04690521955490112, -0.5372369289398193, 0.5153942704200745, -0.1713259369134903, 0.27842846512794...
I am trying to create unittests that can be shared amongst my development team so I need to have all paths in the project be relative. Where this is giving me trouble is with the HttpWebRequest class. I want it to serve static testdata from a file in the local filesystem. I'd like to do something like this: ``` fil...
[ 0.24825336039066315, 0.04895107075572014, 0.4729819893836975, 0.1734241247177124, -0.23434393107891083, -0.2847283184528351, 0.11398372799158096, -0.13713914155960083, 0.1346835345029831, -1.0125102996826172, -0.132820725440979, 0.4540151059627533, -0.24903228878974915, 0.3787503242492676,...
trying to server have a relative path compared to any of the assemblies in your project? If so then you could build a non-relative URL based on the path of one of the assemblies and return that to the caller. For Example: ``` var basePath = Path.GetDirectoryName(typeof(MyType).Assembly.Location); var fullPath = Path...
[ 0.3980392813682556, -0.2972491383552551, 0.20623286068439484, -0.1293669492006302, -0.023527219891548157, 0.1325562298297882, 0.6879488229751587, -0.23870785534381866, 0.13948269188404083, -0.7402324080467224, -0.017379410564899445, 0.2192685753107071, -0.6625080704689026, 0.15545709431171...
I have PHP 5.1.6 (cli) installed and whenever the GET query string is more than 128 characters it fails with HTTP 406 Not Acceptable error. Any suggestions how I can fix this so can use more than 128 characters? POST is not an option. The error is being returned by the server so don't think it's browser issue. And the...
[ 0.14980044960975647, 0.03949693962931633, 0.6195010542869568, 0.003452047472819686, 0.0840398520231247, -0.19345596432685852, 0.7847229838371277, -0.34262940287590027, -0.31916627287864685, -0.5233895778656006, -0.1905931681394577, 0.39926809072494507, -0.3464779257774353, 0.14326316118240...
2009 12:05:33 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.1.6 Content-Length: 0 Connection: close Content-Type: text/html ``` --- ``` GET /test.html?phptestof129characterstring-NEW-WOVEN-FENCE-PANELS-GARDEN_W0QQitemZ200303392512QQihZ010QQcategoryZ139954QQtcZphotoQQcmdZViewItem HTTP/1.1 Host: ***** User-A...
[ -0.33399268984794617, 0.45351752638816833, 0.9919019341468811, 0.017667511478066444, -0.3032134473323822, -0.011075790971517563, 0.6674933433532715, -0.23744003474712372, -0.3069893419742584, -0.31863513588905334, -0.05027297884225845, 0.43140125274658203, -0.035601984709501266, 0.10293557...
assigned as value, so array must have 128 character limit for index name.
[ -0.18158888816833496, 0.12450246512889862, 0.5020557045936584, 0.10079609602689743, -0.0005610054358839989, 0.16032350063323975, -0.1735815703868866, -0.3657655715942383, -0.26274439692497253, -0.27482879161834717, -0.07706471532583237, 0.28057533502578735, -0.09070926904678345, 0.39096143...
I am thinking about using [Gears](http://gears.google.com/) in a project, but I have doubts about it. Do you think that Gears will really be (or already were) accepted by the community as the state-of-art solution for what it purposes? Although Gears seems to be awesome, I think that the community is kind of [scared...
[ 0.11239257454872131, 0.04734693467617035, 0.3725212812423706, 0.05699818581342697, 0.1883929967880249, -0.10522990673780441, 0.13566981256008148, 0.37807872891426086, 0.005480991210788488, -0.3487115204334259, 0.12157539278268814, 0.4843013286590576, -0.1887444704771042, 0.1802948713302612...
I'm working on a Windows Form in VB.NET 2005 and I would like to have some buttons with images (I'm talking about the plain, vanilla System.Windows.Forms.Button). I have everything set up the way I want it but the images are displaying too low on the button, such that the bottom of the icon is almost right on the botto...
[ -0.014209837652742863, -0.09076163917779922, 0.4984927475452423, -0.14418652653694153, -0.2798294723033905, 0.3356200158596039, 0.003406068542972207, -0.22445344924926758, -0.3486727178096771, -0.8392921090126038, 0.5212113261222839, 0.29060596227645874, -0.2312041074037552, -0.07552497088...
and the image is a 16 x 16 icon (converted to a bitmap so that it can be assigned to the button's Image property). I've tried setting the button's Margin.All property to 0, and verified that the Padding.All property is 0. I've also tried changing the button's ImageAlign to TopLeft, MiddleLeft, and BottomLeft, but none...
[ 0.11886119842529297, -0.05783488228917122, 0.9396524429321289, 0.15452715754508972, 0.00166207121219486, 0.48933422565460205, -0.05316158011555672, -0.18229207396507263, -0.42614343762397766, -0.8982803225517273, 0.13527846336364746, 0.5490233898162842, -0.08043483644723892, 0.114090040326...
preferred size and I would like to keep them that way if possible. Typically, we'll set the following properties (for an image on the right, for example): ``` ImageAlign: MiddleRight TextAlign: MiddleLeft ``` You'll want to align both the text and image in a similar fashion. Outside of that, make sure that you are s...
[ 0.02662164531648159, -0.1775994449853897, 0.7859342694282532, 0.026708442717790604, 0.05445283278822899, -0.033159948885440826, -0.22616204619407654, -0.17486178874969482, -0.19512689113616943, -0.9264276027679443, -0.09964735060930252, 1.0318069458007812, -0.010847065597772598, -0.3329220...
Does anyone know how to get the browser height in IE7+ with javascript? I've seen several ways to get the document or the body height but this is not the same. window.innerHeight works fine in firefox and other browsers, but ie doesnt seem to support it. Thanks ``` var windowWidth = -1, windowHeight = -1; if(typeof(wi...
[ 0.08385242521762848, 0.16130776703357697, 0.905674934387207, -0.09725316613912582, -0.08549060672521591, -0.14643879234790802, 0.4353138506412506, -0.3548055589199066, -0.11515642702579498, -0.8657916188240051, -0.06768456101417542, 0.8843876123428345, 0.053965989500284195, -0.154712855815...
As a follow on from [this question.](https://stackoverflow.com/questions/492115/c-enums-as-function-parameters) How can I call a function and pass in an Enum? For example I have the following code: ``` enum e1 { //... } public void test() { myFunc( e1 ); } public void myFunc( Enum e ) { var names = Enu...
[ 0.36767250299453735, -0.06930682063102722, 0.1771126687526703, -0.11799591034650803, 0.10333852469921112, -0.1841953694820404, 0.4857867956161499, -0.42083096504211426, 0.1009010449051857, -0.7554278373718262, -0.34981977939605713, 0.5142237544059753, -0.34336769580841064, 0.12365084141492...
to keep the function generic to work on any Enum not just a specific type? Is this even possible?... How about using a generic function? would this work? You can use a generic function: ``` public void myFunc<T>() { var names = Enum.GetNames(typeof(T)); foreach (var name in names) { ...
[ 0.3790284991264343, -0.279427170753479, 0.17220768332481384, -0.010686337016522884, 0.03939231112599373, -0.11722200363874435, 0.307897686958313, -0.1264660358428955, -0.036348555237054825, -0.4399167597293854, -0.1659826785326004, 0.5107922554016113, -0.5621052980422974, 0.462393730878829...
call like: ``` myFunc<e1>(); ``` **(EDIT)** The compiler complains if you try to constraint `T` to `Enum` or `enum`. So, to ensure type safety, you can change your function to: ``` public static void myFunc<T>() { Type t = typeof(T); if (!t.IsEnum) throw new InvalidOperatio...
[ 0.322889119386673, -0.1227421686053276, 0.39512747526168823, -0.21487616002559662, 0.25855228304862976, -0.14100439846515656, 0.38170766830444336, -0.09024085849523544, -0.09374859929084778, -0.47183486819267273, -0.39837950468063354, 0.652545154094696, -0.6288463473320007, 0.4191809296607...
{ // do something! } } ```
[ 0.5089743733406067, 0.4532029330730438, -0.045219168066978455, -0.008588451892137527, 0.056736987084150314, -0.2604648470878601, 0.38688936829566956, 0.27082741260528564, -0.10377073287963867, -0.47733330726623535, -0.39873161911964417, 0.3831244111061096, -0.1559564471244812, 0.2176438719...
I have the following code. ``` from xml.dom.minidom import Document doc = Document() root = doc.createElement('root') doc.appendChild(root) main = doc.createElement('Text') root.appendChild(main) text = doc.createTextNode('Some text here') main.appendChild(text) print doc.toprettyxml(indent='\t') ``` The result ...
[ 0.2271089106798172, 0.16168469190597534, 0.5236672163009644, -0.2417140007019043, -0.048979051411151886, -0.07270178943872452, 0.25727352499961853, -0.36050185561180115, -0.10116321593523026, -0.7568135261535645, -0.1319749653339386, 0.5859482884407043, -0.2818967401981354, 0.1059828698635...
your own walker. The DOM Level 3 LS parameter format-pretty-print in [pxdom](http://www.doxdesk.com/software/py/pxdom.html) comes pretty close to your example. Its rule is that if an element contains only a single TextNode, no extra whitespace will be added. However it (currently) uses two spaces for an indent rather ...
[ -0.10413265973329544, -0.3271290063858032, 0.5657277703285217, -0.39740225672721863, 0.0286405049264431, 0.2011176496744156, 0.4097142219543457, -0.49027469754219055, -0.5506750345230103, -0.8295149803161621, 0.15811647474765778, 0.15839870274066925, -0.5115376114845276, -0.319680064916610...
'', newl= ''): ... if len(self.childNodes)==1 and self.firstChild.nodeType==3: ... writer.write(indent) ... self.oldwritexml(writer) # cancel extra whitespace ... writer.write(newl) ... else: ... self.oldwritexml(writer, indent, addindent, newl) ... >>> minidom.Element.oldwritex...
[ -0.007308115717023611, 0.05466029420495033, 0.22723302245140076, -0.3860359489917755, 0.3869536221027374, 0.1776314526796341, 0.4584652781486511, -0.306986927986145, -0.4193544387817383, -0.5643491744995117, -0.4143202304840088, 0.2655694782733917, -0.49695339798927307, 0.1933562457561493,...
Using VBA, how do I retrieve custom shape information from a Visio 2003 diagram. To get custom shape information from a Visio shape: ``` Function GetCustomPropertyValue(TheShape As Visio.Shape, ThePropertyName As String) As String On Error Resume Next GetCustomPropertyValue = TheShape.CellsU("Prop." & ThePrope...
[ -0.10086096078157425, -0.052193533629179, 0.6415121555328369, -0.2502923905849457, -0.1256921887397766, 0.07568240165710449, 0.22320346534252167, -0.6826774477958679, -0.20069532096385956, -0.5780403017997742, -0.021325111389160156, 0.6377463936805725, -0.06073235347867012, 0.1361123174428...
= TheShape.CellsU("Prop." & THePropertyName).ResultStr(VisNone) ```
[ -0.10455535352230072, 0.05030268058180809, 0.37194693088531494, -0.11654878407716751, -0.08458239585161209, 0.2636370062828064, 0.12246286869049072, -0.9984089732170105, -0.13970723748207092, 0.007101667579263449, -0.23852743208408356, 0.6619071364402771, -0.032392971217632294, 0.285821557...
I have the following string: ``` "Look on http://www.google.com". ``` I need to convert it to: > "Look on <http://www.google.com>" The original string can have more than 1 URL string. How do I do this in php? Thanks You can use the following: ``` $string = "Look on http://www.google.com"; $string = preg_replace...
[ 0.26257598400115967, 0.2541849613189697, 0.7755331993103027, -0.06217791512608528, -0.038212984800338745, -0.047633495181798935, 0.31573042273521423, -0.22294855117797852, 0.13305291533470154, -0.8105735778808594, -0.1203850656747818, 0.39818111062049866, -0.31397712230682373, 0.1656435430...
I am wondering why the following contrived example code works perfectly fine in Visual Studio 2005, but generates an error in GCC ("no matching function to call" when calling Interpolate() as shown below). Also, how do I work around this? It seems that the error message is just a generic message because GCC did not h...
[ 0.13691236078739166, -0.03272030130028725, -0.0600874088704586, -0.2687924802303314, -0.2168794721364975, -0.18703556060791016, 0.23372387886047363, -0.011885160580277443, -0.19934622943401337, -0.5656506419181824, 0.13890904188156128, 0.767844021320343, -0.5609546899795532, 0.281718969345...
class TMyPointTemplate { T X,Y; public: inline TMyPointTemplate(): X(0), Y(0) {} inline TMyPointTemplate(T _X,T _Y): X(_X), Y(_Y) {} inline T GetX ()const { return X; } inline T GetY ()const { return Y; } //... template<T> TMyPointTemplate<T> Interpolate(c...
[ 0.05016767233610153, -0.4711112678050995, 0.3745802938938141, 0.10382231324911118, -0.0006895908154547215, 0.22885707020759583, 0.1495106965303421, -0.27375444769859314, 0.32773077487945557, -0.6805769801139832, -0.03516419976949692, 0.5027531385421753, -0.4981272220611572, -0.016044083982...
{ return TMyPointTemplate((X+OtherPoint.GetX())/2,(Y+OtherPoint.GetY())/2); } }; typedef TMyPointTemplate<int> IntegerPoint; } Geo::IntegerPoint Point1(0,0); Geo::IntegerPoint Point2(10,10); Geo::IntegerPoint Point3=Point1.Interpolate(Point2); //GCC PRODUCES ERROR: no matching fu...
[ -0.26134192943573, -0.0783502534031868, 0.9048876166343689, 0.12484163790941238, -0.1021290123462677, 0.14804089069366455, 0.19810689985752106, -0.29515594244003296, 0.015173996798694134, -0.3900635838508606, -0.17891009151935577, 0.3341204822063446, -0.3356096148490906, 0.1377702206373214...
href=\"\\0\">\\0</a>", $string); ``` **PHP versions < 5.3 (ereg\_replace) otherwise (preg\_replace)**
[ -0.09805130958557129, 0.18714040517807007, 0.8991636037826538, -0.20563331246376038, 0.13438569009304047, 0.15627071261405945, 0.2956291735172272, -0.6484100222587585, 0.10880833864212036, -0.4111747145652771, -0.40955018997192383, 0.7555629014968872, -0.3100317716598511, -0.00978538393974...
I need to connect to an MS SQL Server database from a PHP script running on a Linux server. I'm looking at using FreeTDS as there is no official MS SQL Server driver for Linux. Is this my best option? Is it ok in a production environment? Are there other options, perhaps ODBC? See the MSDN documentation on the [Except ...
[ 0.33646437525749207, -0.08588630706071854, 0.1322273463010788, 0.2283964306116104, 0.14121176302433014, -0.1792314350605011, 0.3419100344181061, 0.29898983240127563, -0.124350905418396, -0.8661158680915833, -0.005787159316241741, 0.49086835980415344, -0.056435439735651016, 0.19028481841087...
Assume two lists, A and B so that A = (1,2,3) and B = (4,5,6). Will A.Concat(B) preserve the order so that the result is (1,2,3,4,5,6)? Yes. IEnumerable.Concat will simply turn two list into a single list by attaching one to the end of the other. Order within each list will be preserved.
[ -0.07483948767185211, -0.11597761511802673, 0.19895151257514954, -0.28110209107398987, 0.05213075876235962, -0.023741450160741806, 0.08217233419418335, -0.3806924521923065, -0.06307553499937057, -0.35711154341697693, -0.3545718789100647, 0.3719513416290283, -0.6020606756210327, -0.06915128...
I'm trying to do some simple data retrieval with C# and Directory Services, but for some reason it doesn't work on any XP machines. If I run my code on a Server 2003 machine, there are no problems. I've spent a fair bit of time trying to find out if maybe there's some redistributable I need on XP or if the functionalit...
[ 0.24849320948123932, 0.4426397681236267, 0.057903315871953964, 0.04733927547931671, -0.19360452890396118, -0.14849340915679932, 0.2008993923664093, 0.25949591398239136, -0.3584975600242615, -0.6824761033058167, 0.11281242221593857, 0.5648728013038635, -0.3611942231655121, 0.218734458088874...
System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Directory...
[ -0.23349407315254211, -0.22553786635398865, 0.8676470518112183, -0.3378000259399414, 0.33262908458709717, 0.20942683517932892, 0.0336947962641716, 0.060861434787511826, -0.27872222661972046, -1.011075496673584, -0.45774954557418823, 0.30104345083236694, -0.24869529902935028, 0.538736999034...
//Do some data processing } } } } ``` Running this under XP gives me the folowing error with an HRESULT of -2147463168: ``` System.Runtime.InteropServices.COMException was unhandled Message="Unknown error (0x80005000)" Source="System.DirectoryServices" ErrorCode=-2147463168 StackTrace...
[ -0.24107885360717773, 0.11163745075464249, 0.6581217646598816, -0.19199460744857788, 0.2736890912055969, -0.15743716061115265, 0.6665565967559814, -0.39657872915267944, -0.2043853998184204, -0.6695037484169006, -0.151952862739563, 0.7027212977409363, -0.13432973623275757, 0.048191700130701...
container) at System.DirectoryServices.DirectoryEntries.GetEnumerator() ... ``` Googling the various pieces of information in the error lead me to think that it's a pretty generic COM interop error, and I'm out of ideas at this point. Any help is appreciated! Based on the stack trace and reflector it lo...
[ -0.030447369441390038, 0.19192646443843842, 0.4720901548862457, 0.062067605555057526, 0.2744998037815094, -0.1980946958065033, 0.4444829523563385, -0.015854550525546074, -0.311288446187973, -0.7486512064933777, -0.1328476518392563, 0.4749021828174591, -0.47314926981925964, 0.41882967948913...
machine. See this SO question for more details: [ADSI will not connect to IIS from XP Workstation](https://stackoverflow.com/questions/117379/adsi-will-not-connect-to-iis-from-xp-workstation)
[ -0.03141253814101219, -0.01582658290863037, 0.5959417819976807, 0.13737601041793823, 0.09111535549163818, -0.12463780492544174, 0.47181740403175354, -0.5515298247337341, -0.32500651478767395, -0.60246741771698, -0.11694803833961487, 0.30403050780296326, -0.5335431694984436, 0.0758856162428...
Java Newbie question : I need to capture the text being written to a printStream by a 3rd party component. The PrintStream is defaulted to System.err, but can be changed to another PrintStream. Looking through the docs, I couldn't find an easy way to direct the contents of a PrintStream to a string writer / buffer. ...
[ 0.08140222728252411, -0.09198471158742905, 0.38135582208633423, -0.3542660176753998, 0.2721223831176758, -0.06770239770412445, 0.39364129304885864, -0.27545204758644104, -0.18894489109516144, -0.8967325687408447, -0.017259126529097557, 0.4591737985610962, -0.6302828788757324, -0.1174044311...
I have a menu of links on the left, and content in the middle. If the content is longer than the links, it will wrap below them instead of staying neatly to the right. Adding `float:left` to my `content` div fixes this, except in IE, where it causes the menu (and the footer) to disappear entirely. I need to either fi...
[ 0.2347496747970581, -0.019379571080207825, 0.4517165422439575, -0.15682707726955414, -0.0920424610376358, -0.09308932721614838, 0.25173208117485046, 0.01255881879478693, -0.08658288419246674, -0.7987321019172668, -0.10965318977832794, 0.2708399295806885, -0.32965925335884094, 0.11879935115...
`#content {}` to see the original wrapping problem. `content {margin:200px;}` ALMOST solves this problem -- but the lines that previously would have wrapped are now about 3 pixels further left than those above them, again only in IE. html: ``` <HTML><HEAD> <TITLE>Index</TITLE> <LINK rel="stylesheet" type="text/css" ...
[ 0.06450719386339188, -0.31016814708709717, 0.9290847182273865, -0.010005302727222443, -0.4002865254878998, -0.13177525997161865, 0.15066079795360565, -0.43698248267173767, -0.15150704979896545, -0.8708528280258179, -0.13415920734405518, 0.03830043971538544, -0.17983967065811157, 0.05673504...
Content<br> goes<br> here<br> and<br> sometimes<br> wraps<br> under<br> links
[ 0.09452525526285172, 0.09094677120447159, 0.7112639546394348, 0.11613793671131134, -0.24541932344436646, -0.5712593793869019, -0.366085410118103, 0.2334059327840805, -0.7341949343681335, -0.49070826172828674, -0.694688081741333, 0.1856827288866043, 0.07708219438791275, 0.26563289761543274,...
</DIV> <DIV id="footer"> Footer<BR> </DIV> </DIV> </BODY> </HTML> ``` css: ``` * { padding: 0; margin: 0; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #fff; } img { border:0px; } body { background-color:#454547; pad...
[ -0.3552691340446472, -0.06230244040489197, 0.6902165412902832, -0.032734502106904984, -0.30271121859550476, 0.5102905035018921, 0.03768107295036316, -0.30822834372520447, -0.30618974566459656, -0.708823025226593, -0.3422980308532715, 0.014820048585534096, -0.06508053839206696, 0.1929219961...
float: left; font-weight: bold; padding: .25em; line-height: 1.25em; font-size: 1em; } #nav a { display: block; height: 35px; padding: 3px; color:#FFFFFF; } #nav a:hover { background-color:#CCCCCC; color:#333; } #footer { width: 100%; clear: both; margin: 0px 0px 10px 0px; padding: 10px; font-size:10px;...
[ -0.13606040179729462, 0.1044469028711319, 0.7178162932395935, -0.25058335065841675, -0.19099952280521393, 0.19852840900421143, 0.4244231581687927, -0.254766583442688, -0.007937422953546047, -0.608028769493103, -0.4086900055408478, 0.3617252707481384, -0.06447538733482361, -0.08971904218196...
I've been trying to use decimal values as params for a field attribute but I get a compiler error. I found this blog post [link](http://salamakha.com/blog/2007/09/21/decimal-in-c-attributes/) saying it wasn't possible in .NET to use then, does anybody know why they choose this or how can I use decimal params? This is ...
[ 0.16839748620986938, 0.31066447496414185, -0.18777123093605042, 0.1612359881401062, -0.2817060351371765, 0.08777043223381042, -0.03901202231645584, -0.3039332926273346, -0.40367913246154785, 0.2028217315673828, -0.013868951238691807, 0.40671223402023315, -0.19401326775550842, 0.18250559270...
be used. In the current version of the CLR, metadata values are limited to primitives, null, types and arrays of primitives (may have missed a minor one). Decimals while a basic type are not a primitive type and hence cannot be represented in metadata which prevents it from being an attribute parameter.
[ 0.1681840568780899, 0.1706489473581314, 0.5196395516395569, 0.39830291271209717, 0.22714616358280182, -0.24685220420360565, -0.2917518615722656, -0.1878814995288849, -0.11034426093101501, 0.29528748989105225, -0.21196705102920532, 0.4800250828266144, -0.19273161888122559, 0.220075935125350...
I have an ASP.NET website. Very huge! The latest addition I've made, everything is JavaScript/AJAX enabled. I send HTML and JavaScript code back from the server to the client, and the client will inject the HTML into a DIV - and inject the JavaScript into the DOM using this: ``` $('<script type="text/javascript">' +...
[ 0.49416831135749817, 0.09254497289657593, 0.4080137610435486, -0.14858409762382507, -0.26394933462142944, 0.0744561031460762, 0.5842195153236389, -0.395783007144928, -0.11130005866289139, -0.718700647354126, -0.09701460599899292, 0.4760948419570923, -0.227677583694458, -0.19882537424564362...
the problem into a small page, where I inject alert("sfdfdf"); at the bottom of the page, and that works fine. Is there any policy settings that prohibits this? Don't appendChild to 'document'; <script> can't go there and you should get a HIERARCHY\_REQUEST\_ERR DOMException according to the DOM Level 1 Core spec. The...
[ -0.17820031940937042, 0.06489376723766327, 0.5884932279586792, 0.03232087939977646, 0.2521381974220276, 0.0298024732619524, 0.3483271300792694, -0.25912463665008545, -0.30320706963539124, -0.5950614213943481, -0.22928720712661743, 0.509479284286499, -0.1887497454881668, 0.0630994588136673,...
I'd like to put two columns on the side of the content div. The part I have problems with is that I want the columns being built from 3 parts. The top and bottom should have fixed heights, but the middle one would adjust depending on the content height. Look at the sample with one column: ``` <html> <head> <s...
[ 0.36024239659309387, -0.03868004307150841, 0.5679287314414978, 0.022164350375533104, -0.2226736694574356, 0.20955680310726166, -0.011201067827641964, -0.34302958846092224, -0.02365678735077381, -0.7006727457046509, 0.17621801793575287, 0.07941053807735443, -0.31244194507598877, 0.162882179...
#leftColumn { width:100px; float: left; } #leftColumnTop { width:100px; height:50px; background-color: gray; } #leftColumnMiddle { background-color: red; } #leftColumnBottom
[ -0.5304533243179321, -0.3214322626590729, 0.5002513527870178, -0.12310826778411865, 0.6133043169975281, 0.015574903227388859, -0.38003620505332947, 0.24044764041900635, -0.19575130939483643, -0.27638205885887146, -0.4897209703922272, 0.36368536949157715, 0.015326197259128094, -0.4025942087...
{ width: 100px; height:50px; background-color: gray; } #content { width: 300px; float: left; } #footer { width: 400px; clear: both; }
[ 0.09007634222507477, -0.2893805205821991, 0.5872355103492737, 0.1204182431101799, 0.2697707712650299, 0.10992591083049774, -0.027354998514056206, 0.028678208589553833, -0.03520500287413597, -0.46331334114074707, -0.4316433370113373, 0.33706000447273254, 0.10093668103218079, -0.000595636374...
</style> </head> <body> <div id="contentWrapper"> <div id="leftColumn"> <div id="leftColumnTop"> </div> <div id="leftColumnMiddle"> </div> <div id="leftColumnBottom"> </div> </div> <div id="content">content<br> here <br>more <br>more <br>more <br>more <b...
[ -0.0009506959468126297, -0.24894754588603973, 0.43620821833610535, -0.08949531614780426, -0.2555205523967743, -0.21666844189167023, -0.3999926447868347, -0.14575186371803284, -0.2593251168727875, -0.5785852074623108, -0.5157721638679504, 0.30287665128707886, -0.12091031670570374, -0.084990...
</div> <div id="footer">footer text</div> </div> </body> </html> ``` What I want is the `#leftColumnBottom` stick at the top of the footer and red `#leftColumnMiddle` to fill the space between top and bottom part. This works in everything except IE6; for that you'll need a conditional comment and c...
[ -0.016707010567188263, -0.2807523012161255, 0.9406382441520691, -0.04920324310660362, -0.10429175943136215, 0.015385601669549942, -0.0647025853395462, -0.1883392333984375, -0.12928223609924316, -0.6572561264038086, -0.05799557641148567, 0.34075677394866943, 0.09381336718797684, -0.12965643...
} #leftColumnTop { position: absolute; width: 100px; height: 50px; left: 0; background-color: gray; } #leftColumnMiddle { position: absolute; width: 100px; top: 50px; bottom: 50px; left: 0; background-color: red; } #leftColumnBottom { position: absolute; width: 100px; height: 50px; left: 0; bottom: 0; backgrou...
[ -0.3436591625213623, -0.35249578952789307, 0.9586896896362305, 0.132393017411232, 0.4245034456253052, 0.05714300647377968, -0.17706234753131866, -0.05273302644491196, -0.12526610493659973, -0.505294144153595, -0.5443758964538574, 0.47246280312538147, -0.014199425466358662, -0.2457511276006...
<div id="leftColumnBottom"> </div> <div id="content">content<br> here<br>more<br>more<br>more<br>more<br>more<br>more<br> </div> </div> <div id="footer">footer text</div> </body> </html> ``` And to the commenter - it nearly worked, so that's why. ;)
[ 0.10263264924287796, -0.26995909214019775, 0.7501299977302551, 0.004141279961913824, -0.28937527537345886, -0.02845609374344349, -0.15537422895431519, -0.1985161155462265, -0.2714206576347351, -0.6190845966339111, -0.23174141347408295, 0.21666063368320465, -0.06655745953321457, -0.05631986...
I'm securing the DB by only allowing interaction with the DB through a series of Sprocs; pretty common fare. I've dug up and modified a script which loops through and assigns the user EXECUTE permission for all non-system SProcs. It works a treat except that I'd ideally like to add it to the Master DB so that I can ea...
[ 0.29010894894599915, 0.3096678555011749, 0.3479982912540436, -0.037294551730155945, -0.1270492821931839, -0.28278958797454834, 0.38029128313064575, -0.010182751342654228, -0.21579377353191376, -0.4368171989917755, -0.191159188747406, 0.549809455871582, -0.23964345455169678, 0.1067208647727...
query on MyDB.dbo.INFORMATION\_SCHEMA.ROUTINES, but if the DB name is dynamic (e.g. @MyDBName), how can I query the objects in this DB? Edit: Thanks to the posters below, I now have a working solution: ``` USE [master] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[spGrantExec] @User sy...
[ -0.23220594227313995, 0.2117701917886734, 0.6950197815895081, -0.1808568388223648, -0.36186373233795166, 0.0005270360270515084, 0.3287576138973236, -0.4461682140827179, -0.10812506079673767, -0.4592970013618469, -0.1019991934299469, 0.4138978123664856, -0.45283374190330505, 0.2816132903099...
@Target + '%'' AND ROUTINE_TYPE = ''PROCEDURE'' -- 4 - Capture the @MAXOID value SELECT @MAXOID = MAX(OID) FROM #StoredProcedures -- 5 - WHILE loop WHILE @MAXOID > 0 BEGIN -- 6 - Initialize the variables SELECT @OwnerName = StoredProcOwner, @ObjectName = StoredProcName FROM #StoredProcedures W...
[ 0.29066771268844604, -0.045549094676971436, 0.465489000082016, -0.10049544274806976, 0.12131642550230026, 0.2166074812412262, -0.01958089880645275, -0.42618757486343384, 0.2016005963087082, -0.6032958626747131, -0.0963791161775589, 0.5242602229118347, -0.26469990611076355, -0.0939607471227...
-- 8 - Execute the string Print @CMD1 EXEC(@CMD1) -- 9 - Decrement @MAXOID SET @MAXOID = @MAXOID - 1 END -- 10 - Drop the temporary table DROP TABLE #StoredProcedures' Set @SQL = REPLACE(REPLACE(REPLACE(@SQL, '@DB', @DB), '@User', @User), '@Target', @Target) --Select @SQL --Print @SQL Exec (@SQL) SE...
[ 0.040818385779857635, -0.0078611234202981, 0.6536533832550049, 0.14278455078601837, -0.1285252869129181, 0.14570188522338867, 0.1683068573474884, -0.1860201060771942, 0.012074270285665989, -0.3425574004650116, -0.22933484613895416, 0.48740628361701965, -0.5726651549339294, 0.33287921547889...
have to do the replace). Also Cursors are normally considered evil for performance reasons, however using one in this case makes sense. For one, it would greatly simplify the procedure, plus since you're only going to run this once during application updates, you probably won't notice a performance hit, even if it add...
[ -0.12435589730739594, 0.08916215598583221, 0.593563973903656, -0.20825134217739105, -0.04270819202065468, -0.11673568934202194, 0.33325713872909546, -0.6830941438674927, -0.17034833133220673, -0.3431060314178467, -0.15444184839725494, 0.6993584632873535, -0.5605381727218628, 0.062240276485...
= ''PROCEDURE'' OPEN ProcCursor FETCH NEXT FROM ProcCursor INTO @OwnerName, @ObjectName WHILE @@FETCH STATUS = 0 BEGIN SET @CMD1 = ''GRANT EXEC ON '' + ''['' + @OwnerName + '']'' + ''.'' + ''['' + @ObjectName + '']'' + '' TO '' + ''@user'' EXEC (@CMD1) FETCH NEXT FROM ProcCursor INTO @OwnerName, @ObjectName END CLOSE ...
[ -0.22756700217723846, -0.23886898159980774, 0.9662098288536072, -0.38130292296409607, -0.22304508090019226, -0.007931317202746868, 0.1226884126663208, -0.5492486357688904, -0.4300575852394104, -0.2683294117450714, -0.022847719490528107, 0.3390825092792511, -0.2629396319389343, -0.032804924...
I am maintaining a public website (no authorization required) that uses web services over https to perform various operations. Most of the calls to the web services are invoked from javascript. What has recently occurred to me is that a malicious hacker could, if he/she chose to, call the webservices directly in an a...
[ 0.7393348217010498, 0.4205048084259033, 0.2598159611225128, -0.24889220297336578, 0.035043198615312576, -0.2076476812362671, 0.39992836117744446, -0.11643094569444656, -0.10496416687965393, -0.41230112314224243, -0.04450954869389534, 0.5342338681221008, -0.18552587926387787, 0.034903872758...
best approach I could use to prevent unauthorized and/or malicious access to the web services. Sadly, I can't just restrict access by IP, as there are windows forms-based client applications out there which also interact with the web services. Using windows authentication may be difficult, as these client apps can be...
[ 0.30344539880752563, 0.18425169587135315, 0.2491079717874527, 0.1304597705602646, 0.017531532794237137, -0.40615352988243103, 0.30113810300827026, 0.010601204819977283, -0.024418657645583153, -0.4524419605731964, 0.04771961271762848, 0.6613984704017639, -0.03186701983213425, -0.12893159687...
a malicious user who has the right to use that javascript. I would suggest modifying the page to use a more server-side solution. Leave AJAX to stuff that can't be easily exploited. Preventing an unauthorized user is MUCH easier than supporting full public access. If you drop a time-expiring guid on the user's cookies...
[ 0.3831947445869446, 0.29964926838874817, 0.03798859566450119, 0.13309359550476074, -0.21485655009746552, -0.3468407988548279, 0.297115683555603, 0.02391294576227665, -0.24477741122245789, -0.5384160876274109, -0.14661598205566406, 0.5527366399765015, -0.35374680161476135, 0.082621902227401...
to the javascript can probably be kept from accessing the Web Service easily.
[ 0.15779471397399902, 0.14521872997283936, 0.18275608122348785, 0.14367423951625824, -0.14721426367759705, -0.3829484283924103, 0.38507840037345886, 0.3772963285446167, -0.02674175426363945, -0.7641876935958862, -0.05734289065003395, 0.3816591203212738, -0.15373627841472626, -0.003332440974...
How can I assign a set of text values to an array? Nothing I tried is working! ``` Months = Array("Jan", "Feb", ..., "Dec") ``` and others I tried do not work! Here's something about VB: <http://www.devx.com/vb2themax/Tip/18322> > Visual Basic doesn't provide any way > to declare an array and initialize its > ele...
[ 0.24068564176559448, 0.06568535417318344, 0.1669722944498062, -0.33666616678237915, -0.36840394139289856, 0.09349507093429565, 0.7363620400428772, -0.7075484395027161, -0.29606133699417114, -0.3605436086654663, -0.20685848593711853, 0.36451247334480286, -0.35249266028404236, -0.08624099195...
create > an array of Variants on the fly, using > the Array() function: ``` Dim varArray() As Variant varArray() = Array("Spring", "Summer", "Fall", "Winter") ``` > but there is no similar function to > create arrays of data types other than > Variant. If you're using VB6, however, > you can create String ...
[ 0.406991571187973, -0.5571704506874084, 0.324256956577301, 0.028406212106347084, -0.24574027955532074, 0.10097651928663254, 0.3328395187854767, -0.46141520142555237, -0.20699527859687805, -0.41341161727905273, -0.13121962547302246, 0.2387775182723999, -0.45614683628082275, 0.25527313351631...
I just want to verify that I'm not missing something here... so bear with me. I'm rewriting a lot of old stored procedures and keep seeing IF statements formatted similar to this: ``` begin if @someParameter <> 'ThisType' set @someCode = right(cast(@pYear as varchar(6)),2) + 'THIS' end ``` So the Begin...En...
[ 0.36513182520866394, 0.1718401312828064, 0.047238487750291824, -0.06483101099729538, -0.014378845691680908, -0.3771396577358246, 0.13624443113803864, -0.1054292619228363, -0.045655153691768646, -0.3172928988933563, 0.13895052671432495, 0.39076054096221924, -0.24652010202407837, 0.088296592...
so he accidentally wrote it this way (by habit)? This is SQL Server 2005 (code was written on/for SQL Server 2000), btw Like I said, I'm just trying to wrap my brain around this spaghetti. Any thoughts/comments/illuminating insights are welcome Thanks In T-SQL Begin and END should wrap the contained statements of an...
[ 0.34779006242752075, 0.16493836045265198, 0.5462873578071594, -0.21869461238384247, -0.21427440643310547, -0.37302395701408386, 0.5134310126304626, -0.22223347425460815, -0.3384050726890564, -0.41090601682662964, 0.24310478568077087, 0.34157270193099976, -0.7445021867752075, -0.13707523047...
expected** ``` if @someParameter <> 'ThisType' Begin set @someCode = right(cast(@pYear as varchar(6)),2) + 'THIS' {...do other stuff} End ``` **Would not work as expected** (if you expected the both statements to only execute if the IF condition is me) ``` if @someParameter <> 'ThisType' set @someCode =...
[ 0.24386551976203918, -0.07985743135213852, 0.27057743072509766, -0.2771483361721039, -0.10497647523880005, -0.12988433241844177, 0.5450531840324402, -0.22235940396785736, 0.26129773259162903, -0.4548097252845764, -0.2104133516550064, 0.600212812423706, -0.24326984584331512, -0.302726566791...
I have an object and in that object I start my thread (for loading doing some URL loading). When I have a return of my data I call a selector to perform on the main thread. Works fine if I call it the first time, but the second time it crashes (no specific error). ``` [NSThread detachNewThreadSelector:@selector(doTh...
[ 0.14429451525211334, -0.07951986789703369, 0.38708698749542236, -0.26571160554885864, 0.12469367682933807, -0.10024017840623856, 0.47797325253486633, -0.13087016344070435, -0.16773588955402374, -0.8363088369369507, 0.17214858531951904, 0.732132077217102, -0.1488112062215805, 0.379528999328...
withObject:@"lala"]; -(void) doThread:(NSString *)poststring { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; DataModelLocator *mydelegate = [DataModelLocator instance]; NSData *postData = [poststring dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:NO]; NSURL *url = [NSURL URLWithString:[my...
[ -0.3143378496170044, -0.2754550576210022, 0.5172792077064514, -0.2584785521030426, -0.2054702639579773, 0.1124890074133873, 0.5316065549850464, -0.69186931848526, -0.24119797348976135, -0.40918049216270447, -0.4877128601074219, 0.5142930746078491, -0.19130489230155945, 0.24068303406238556,...
//[self loadDidFinishWithData:data]; } else { [self performSelectorOnMainThread:@selector(loadDidFinishWithError:) withObject:data waitUntilDone:YES]; } [pool release]; } } ``` It crashes when I call `performSelectorOnMaintThread`... Could it be that it crashes...
[ -0.028041142970323563, -0.05306036025285721, 0.12248370051383972, -0.05958156660199165, 0.1691061109304428, -0.11009026318788528, 0.5423812866210938, 0.019228333607316017, -0.4180621802806854, -0.5042548179626465, 0.03820342198014259, 0.6647431254386902, -0.3830169141292572, 0.307217925786...
causing fun crashes. Use alloc/init and release on all objects involved, making sure to retain all objects that you take in on methods that are called from another thread using performSelectorOnMainThread or detachNewThreadSelector. Garbage collection on the Mac effectively solves these problems, but the iPhone is not...
[ -0.19613449275493622, -0.015693536028265953, 0.07671552896499634, 0.5210020542144775, -0.01478538941591978, -0.40081360936164856, 0.391323059797287, 0.22419606149196625, -0.43716946244239807, -0.3737657964229584, -0.25189587473869324, 0.6949810981750488, -0.4401661455631256, -0.18328796327...
Where can I get started writing a media server in C# like PlayOn <http://www.themediamall.com/playon> UPDATE: I have learned that PlayOn is a is a DLNA/UPnP media server but I am still looking for C# example implementation of this type of server. I am placing a bounty and will award it if you can point me to some ...
[ 0.4170529842376709, -0.3579627275466919, 0.5710274577140808, 0.3960818648338318, -0.12317433953285217, -0.41450273990631104, -0.3645683228969574, -0.045314814895391464, -0.643108606338501, -0.5844452381134033, 0.12546612322330475, 0.3971496522426605, -0.09734491258859634, 0.023079816251993...
not lots of information on it but there are a few. If anyone can reference an example that would be awesome. here some links I found after discovering I was looking for [DLNA](http://www.dlna.org/industry/certification/guidelines/)/[UPnP](http://en.wikipedia.org/wiki/UPnP_AV_MediaServers) [Creating a DLNA server/serv...
[ 0.21382540464401245, -0.37307873368263245, 0.5428346991539001, 0.035714101046323776, -0.3509233593940735, -0.25490638613700867, -0.11459923535585403, 0.0031932450365275145, -0.7592513561248779, -0.6641393303871155, -0.09589208662509918, 0.3182695508003235, -0.1545865684747696, 0.4032078385...
I created a user control in WPF: ``` <UserControl x:Class="TestUserControl.Controls.GetLatest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <TextBlock Name="theTextBlock"/> </UserControl> ``` The code behind has a parameter ...
[ -0.6041771173477173, -0.1041029542684555, 0.41067615151405334, -0.018254894763231277, -0.19092698395252228, -0.006180370692163706, 0.06193239241838455, -0.3469640016555786, 0.12162056565284729, -0.6406592726707458, -0.2598187327384949, 0.2431224137544632, -0.28661230206489563, -0.030190715...
user control with intellisense: ``` <Window x:Class="TestUserControl.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" xmlns:controls="clr-namespace:TestUserControl.Controls" > ...
[ -0.5846728682518005, -0.05511624738574028, 0.4549350440502167, 0.20780029892921448, 0.0016609346494078636, -0.23695926368236542, -0.14843277633190155, -0.3308752477169037, 0.014932828955352306, -0.5858342051506042, -0.14535458385944366, 0.502697765827179, -0.2513867914676666, 0.11664599925...
GetLatest : UserControl { public static readonly DependencyProperty FirstMessageProperty = DependencyProperty.Register("FirstMessage", typeof(string), typeof(GetLatest)); public string FirstMessage { get { return (string)GetValue(FirstMessageProperty); } set { SetValue(FirstMessageProperty,...
[ -0.5009067058563232, -0.35450783371925354, 0.6666232943534851, -0.04357422888278961, -0.15326112508773804, -0.27472159266471863, 0.32678332924842834, -0.5122101902961731, -0.1845235973596573, -0.6647523641586304, -0.6349353194236755, 0.35431092977523804, -0.24610650539398193, -0.1291234940...
update itself.
[ 0.5195505619049072, 0.0193023718893528, 0.3469941318035126, 0.12724295258522034, -0.1542651653289795, -0.1293695718050003, -0.03108510561287403, 0.46982356905937195, 0.1802242547273636, -0.8871585130691528, -0.3414371609687805, 0.37254947423934937, -0.3499394953250885, -0.1630149930715561,...
We have a few Win32 applications (coded in Delphi 2006) where sometimes the user gets an error message saying **"System Error. Code: 8. Not enough storage is available to process this command."**. From the stacktrace it looks like it is always during CreateWnd call ``` Main ($1edc): 004146cc +070 app.exe SysUtils ...
[ -0.22673536837100983, 0.0777566134929657, 0.5462943315505981, -0.10763312876224518, 0.019506700336933136, 0.1223263144493103, 0.6103772521018982, -0.3500032424926758, -0.42951732873916626, -0.5274564623832703, -0.15002231299877167, 0.49629703164100647, -0.39621055126190186, 0.2379449605941...
cxControls TcxControl.CreateWnd 004ce82a +016 app.exe Controls TWinControl.CreateHandle 00553d21 +005 app.exe cxContainer TcxContainer.CreateHandle 00586ef1 +005 app.exe cxEdit TcxCustomEdit.CreateHandle 005c331d +005 app.exe cxDropDownEdit TcxCustomDropDownE...
[ -0.08279061317443848, -0.12693479657173157, 0.7556604743003845, 0.3827569782733917, -0.019917897880077362, 0.14715208113193512, 0.42205533385276794, -0.31961628794670105, -0.24206137657165527, -0.4649520218372345, -0.2054852694272995, 0.6675090193748474, -0.6148262023925781, 0.445071607828...
TWinControl.UpdateShowing 004cebdc +03c app.exe Controls TWinControl.UpdateControlState 004d118a +026 app.exe Controls TWinControl.CMVisibleChanged 004cb713 +2bb app.exe Controls TControl.WndProc 004cf569 +499 app.exe Controls TWinControl.WndProc 004b727d +4c1 app...
[ -0.3555745482444763, -0.22835397720336914, 0.8438233733177185, 0.3728370666503906, 0.003730138996616006, 0.32532185316085815, 0.5030266046524048, -0.3067847788333893, -0.1323682814836502, -0.6718319058418274, -0.2548355758190155, 0.4541046917438507, -0.48290959000587463, 0.5285733938217163...
TCustomForm.WndProc 004cb3a0 +024 app.exe Controls TControl.Perform 004c9f6a +026 app.exe Controls TControl.SetVisible 004b6c46 +03a app.exe Forms TCustomForm.SetVisible 004baf1b +007 app.exe Forms TCustomForm.Show 004bb151 +14d app.exe Forms
[ -0.17822712659835815, -0.10808156430721283, 1.0160948038101196, 0.05902408808469772, -0.03725116699934006, 0.2248838096857071, 0.09656807780265808, -0.6815863251686096, -0.21815502643585205, -0.3857325315475464, -0.15574108064174652, 0.615768551826477, -0.44335514307022095, 0.1676196455955...
TCustomForm.ShowModal 007869c7 +0d3 app.exe UfrmPrice 770 +19 TfrmPrice.EditPrice 0078655d +009 app.exe UfrmPrice 628 +0 TfrmPrice.actNewBidExecute 00431ce7 +00f app.exe Classes TBasicAction.Execute 004c2cb5 +031 app.exe ActnList TContainedAction.Execute 004c397c +050 app.exe Act...
[ -0.3817676603794098, -0.05968007817864418, 0.7270379662513733, 0.1527264565229416, -0.12486990541219711, 0.16002783179283142, 0.3614156246185303, -0.40823784470558167, -0.06357765197753906, -0.5459484457969666, -0.12421273440122604, 0.6906648874282837, -0.6734198927879333, 0.21935398876667...
TBasicActionLink.Execute 004af384 +090 app.exe Menus TMenuItem.Click 004b059f +013 app.exe Menus TMenu.DispatchCommand 004b16fe +082 app.exe Menus TPopupList.WndProc 004b164d +01d app.exe Menus TPopupList.MainWndProc 004329a8 +014 app.exe Classes
[ -0.2718406021595001, -0.17137226462364197, 0.05668683722615242, 0.1043718233704567, 0.0949011817574501, 0.5400701761245728, 0.6332788467407227, -0.17361198365688324, 0.036023352295160294, -0.673508882522583, -0.25130343437194824, 0.7265150547027588, -0.7787907719612122, -0.0313097536563873...
StdWndProc 7e4196b2 +00a USER32.dll DispatchMessageA 004bea60 +0fc app.exe Forms TApplication.ProcessMessage 004bea9a +00a app.exe Forms TApplication.HandleMessage 004becba +096 app.exe Forms TApplication.Run 008482c5 +215 app.exe AppName
[ -0.5628637075424194, -0.07946894317865372, 0.668293297290802, 0.16728216409683228, 0.01340894028544426, 0.5840772390365601, 0.6748397946357727, -0.4182608425617218, -0.3199370205402374, -0.5908265113830566, -0.31839120388031006, 0.3183264434337616, -0.4081849455833435, 0.14881682395935059,...
129 +42 initialization ``` I've never been able to get to the bottom of what causes this and as it happens fairly seldom I haven't been to concerned, but I would like to find out what causes it and hopefully rectify it... **EDIT:** Full Stacktrace **EDIT 2:** More info... The client who experienced this today has h...
[ 0.16156554222106934, 0.5356774926185608, 0.5416922569274902, -0.1966993361711502, 0.24002869427204132, 0.09587262570858002, 0.5427000522613525, -0.20966923236846924, -0.23602092266082764, -0.5100604295730591, -0.1393602192401886, 0.7416995167732239, -0.3679913878440857, 0.02144097350537777...
strangely. After a reboot the problem goes away completely. Does this point towards the heap shortage that Steve mentions? **EDIT 3:** Interesting msdn blog post [here](http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx) and [here](http://blogs.msdn.com/ntdebugging/archive/2007/07/05/deskt...
[ 0.038796938955783844, 0.28910571336746216, 0.2528854012489319, 0.07857650518417358, -0.0728747695684433, -0.06479714810848236, 0.3195485472679138, 0.25117260217666626, -0.5397534966468811, -0.5999596118927002, 0.10157530009746552, 0.6104398369789124, -0.0378044992685318, 0.2394073754549026...
is documented in the [MS Knowledge Base](http://support.microsoft.com/kb/126962) (or search for "Out of Memory"). Additional details concerning the parameter values may be found in article [KB184802](http://support.microsoft.com/kb/184802). I suggest you read the knowledgebase article but the basic info on the change ...
[ -0.19795939326286316, -0.08262599259614944, 0.6419568061828613, 0.11931406706571579, 0.3901386559009552, 0.03134056180715561, 0.043358154594898224, 0.05473052337765694, -0.32508596777915955, -0.6616352796554565, -0.25232237577438354, 0.4887394905090332, -0.20158982276916504, 0.412155717611...
System and desktop heaps using the following format: `SharedSection=xxxx,yyyy,zzz` where `xxxx` defines the maximum size of the system-wide heap (in kilobytes), `yyyy` defines the size of the per desktop heap, and `zzz` defines the size of the desktop heap for a "non-interactive" window station. 6. Change ONLY the `yyy...
[ -0.13603420555591583, -0.1455737203359604, 0.6069671511650085, 0.19043314456939697, 0.2501344382762909, 0.03689323365688324, 0.16937968134880066, 0.17685426771640778, -0.4606825113296509, -0.8516501188278198, -0.43665456771850586, 0.6645742058753967, -0.17614220082759857, 0.303161025047302...
Do you know if there's a quick way in sql server (via transact-sql) that I could trim all the database string fields. No cursors. Copy and paste the output. Works also for SQL 2000, which doesn't have varchar(max). This can be easily extended to add a GO line to the end of each UPDATE if desired. ``` SELECT SQL FROM ...
[ 0.09820153564214706, -0.1552131325006485, 0.4209328889846802, 0.11164463311433792, 0.1273116171360016, -0.20286224782466888, -0.01981307752430439, 0.016666779294610023, -0.31311506032943726, -0.6199077367782593, 0.08985085040330887, 0.7678963541984558, -0.4420475959777832, -0.1913207769393...
, t.TABLE_NAME , 0 SORT , 'UPDATE ' + QUOTENAME(t.TABLE_CATALOG) + '.' + QUOTENAME(t.TABLE_SCHEMA) + '.' + QUOTENAME(t.TABLE_NAME) SQL
[ -0.07606399059295654, -0.1505022794008255, 0.4076499938964844, 0.13939283788204193, -0.20529069006443024, 0.0984114482998848, -0.221740260720253, -0.2626744210720062, -0.19502359628677368, -0.016768967732787132, -0.14268271625041962, 0.5123769640922546, -0.3757982850074768, 0.3293363153934...
FROM INFORMATION_SCHEMA.TABLES t JOIN INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_CATALOG = c.TABLE_CATALOG AND t.TABLE_SCHEMA = c.TABLE_SCHEMA
[ -0.27207836508750916, 0.2735840380191803, 0.49634841084480286, 0.05115213245153427, 0.09061156213283539, 0.13407990336418152, -0.4148883521556854, -0.22926278412342072, -0.46150898933410645, -0.7608068585395813, -0.31513711810112, 0.11126286536455154, -0.3813110291957855, 0.115693129599094...
AND t.TABLE_NAME = c.TABLE_NAME WHERE t.TABLE_TYPE = 'BASE TABLE' AND c.DATA_TYPE IN ('char','nchar','varchar','nvarchar') GROUP BY t.TABLE_CATALOG
[ -0.5042853355407715, 0.24515213072299957, 0.3230501413345337, 0.013030195608735085, 0.23419257998466492, 0.263202965259552, -0.2344122976064682, -0.27741739153862, -0.3419760763645172, -0.3899088501930237, -0.3195284605026245, 0.10885374993085861, -0.30359378457069397, 0.38980841636657715,...
, t.TABLE_SCHEMA , t.TABLE_NAME UNION ALL SELECT x.TABLE_CATALOG
[ -0.20935313403606415, 0.1576855331659317, 0.21124377846717834, 0.1163719967007637, 0.26026132702827454, 0.11087339371442795, -0.3978882133960724, -0.02083824947476387, -0.526792585849762, -0.7799879908561707, -0.18627917766571045, -0.057499103248119354, -0.5249829292297363, 0.4033702909946...
, x.TABLE_SCHEMA , x.TABLE_NAME , CASE WHEN x.COLUMN_NAME_MIN = y.COLUMN_NAME
[ -0.5880459547042847, 0.08662499487400055, 0.5193491578102112, 0.005892266985028982, 0.03976619243621826, 0.3806043565273285, -0.18287178874015808, 0.012045402079820633, -0.257257342338562, -0.49877792596817017, -0.2532914876937866, 0.19436301290988922, -0.2402636855840683, 0.19049872457981...
THEN 1 ELSE 2 END
[ 0.09205801784992218, 0.44315674901008606, 0.1641029268503189, 0.04521838575601578, -0.3067852258682251, -0.3156619071960449, 0.5308557152748108, -0.04891195520758629, 0.02016414701938629, -0.5130601525306702, -0.14712461829185486, 0.12049759924411774, -0.20613588392734528, 0.08470976352691...
SORT , CASE WHEN x.COLUMN_NAME_MIN = y.COLUMN_NAME
[ -0.5443369150161743, -0.2135075330734253, 0.22779476642608643, -0.14242234826087952, 0.09495937079191208, 0.35371947288513184, -0.08131103217601776, 0.004944810643792152, -0.26078352332115173, -0.5504473447799683, -0.17656324803829193, -0.13380321860313416, -0.208272784948349, 0.3424604833...
THEN 'SET ' ELSE ' , ' END + y.SQL
[ 0.22017917037010193, 0.13750992715358734, 0.4814659357070923, 0.016085490584373474, -0.1639784723520279, -0.18316946923732758, 0.03055991791188717, -0.11727358400821686, 0.2037496268749237, -0.013119569048285484, -0.1607930064201355, 0.2601950168609619, -0.3550381362438202, 0.1693844497203...
SQL FROM ( SELECT t.TABLE_CATALOG , t.TABLE_SCHEMA
[ -0.049978915601968765, 0.06115001440048218, 0.2508355975151062, 0.0360780768096447, 0.012296999804675579, -0.31862443685531616, -0.2054625302553177, -0.28316545486450195, -0.10925424844026566, -0.14580899477005005, -0.08158054202795029, 0.36995649337768555, -0.34377285838127136, 0.25063067...
, t.TABLE_NAME , MIN(c.COLUMN_NAME) COLUMN_NAME_MIN
[ -0.38406243920326233, 0.34017646312713623, 0.17046542465686798, 0.03309274837374687, 0.0005661929026246071, 0.5894494652748108, 0.09566569328308105, 0.20325103402137756, -0.3830527365207672, -0.3807583749294281, -0.2627372443675995, 0.22353999316692352, -0.14812429249286652, 0.384020090103...
FROM INFORMATION_SCHEMA.TABLES t JOIN INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_CATALOG
[ -0.1773320734500885, 0.25935786962509155, 0.40864038467407227, 0.1878795176744461, 0.17055819928646088, 0.11865875124931335, -0.41822096705436707, -0.15893393754959106, -0.4812108874320984, -0.813256025314331, -0.35167795419692993, -0.09574849158525467, -0.26502731442451477, 0.327895611524...