text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I have the pattern User/{domain}/{username} set up via Routing. Everything works except for one thing. I can't figure out how to get the domain and username variables passed to my redirected page. Below is my GetHttpHandler method from my IRouteHandler implementation.
```
public IHttpHandler GetHttpHandler(Request... | [
0.10797391831874847,
-0.05793163552880287,
0.6823760271072388,
-0.26802247762680054,
-0.11503463983535767,
0.026813795790076256,
0.3767637312412262,
-0.4056633412837982,
-0.12731848657131195,
-0.8482919335365295,
0.09692753106355667,
0.3316698670387268,
-0.5267577171325684,
0.2861753702163... | |
string virtualPath =
string.Format(basePath + "?domain={0}&username={1}", domain, username);
return (Page)BuildManager.CreateInstanceFromVirtualPath(virtualPath, typeof(Page));
}
```
I get the error from the last line of code:
UserPage.aspx?domain=SOMEDOMAIN&username=SOMEUSER is not a valid v... | [
0.16837471723556519,
-0.2423887699842453,
0.47205185890197754,
0.11901146173477173,
-0.021912993863224983,
-0.16782616078853607,
0.71095871925354,
0.06799721717834473,
-0.39723846316337585,
-0.769843578338623,
0.1693834811449051,
0.5064022541046143,
-0.43159040808677673,
0.3189135789871216... | |
afaik something like:
```
HttpCookie mycookie = new HttpCookie("ASP.NET_SessionId");
mycookie.Expires = DateTime.Now.AddDays(-1);
Response.Cookies.Add(mycookie);
``` | [
-0.07354991137981415,
-0.07559770345687866,
0.7592887282371521,
-0.22081045806407928,
0.1830810010433197,
-0.2504509389400482,
0.3650599718093872,
0.20150312781333923,
-0.19876670837402344,
-0.6934822201728821,
-0.0712021067738533,
0.2482023537158966,
-0.20104162395000458,
0.31872555613517... | |
I've been learning some new features of ASP.NET beyond my current level of comfort, and I'm trying to figure out exactly how custom events can fit in, from a design standpoint. I know how they work, and the observer/subscriber pattern, but it seems that custom events aren't talked about much. It seems like an entire ap... | [
0.5737555027008057,
-0.3665262460708618,
0.4382314383983612,
0.32360541820526123,
-0.11187148839235306,
-0.062378328293561935,
0.15956102311611176,
0.22238785028457642,
-0.5485529899597168,
-0.6321613788604736,
0.13042744994163513,
0.20181120932102203,
0.13221979141235352,
0.08942285180091... | |
it best to use events? Are there certain scenarios that they are very handy for, but not much else? Or is it possible to create an app that relies heavily on them, and a programmer can use them as much or as little as they want?
Mostly I'm just curious as to where they fall into "proper" design, as I can easily re-ima... | [
0.3289972245693207,
-0.4281030595302582,
-0.16131772100925446,
0.517845094203949,
-0.09714039415121078,
-0.18541942536830902,
0.22883263230323792,
-0.041410498321056366,
-0.6076263785362244,
-0.36752426624298096,
0.04465043544769287,
0.5171222686767578,
-0.08166337758302689,
-0.25908738374... | |
that can trigger an "event" tend to be things the user did on the client via one of the built-in controls like a button or what-not. The server itself doesn't really "interact" with the code as it executes in an event-driven way though.
One you get a postback goind via one of the regular controls. The execution on th... | [
0.20730642974376678,
-0.4044628441333771,
0.036684222519397736,
0.3389463424682617,
-0.13277675211429596,
-0.3155132532119751,
0.29702407121658325,
0.14210642874240875,
-0.4302518665790558,
-0.4155028760433197,
-0.13642705976963043,
0.35244059562683105,
-0.24000386893749237,
-0.12934069335... | |
may fire those OO like aspects are really just supporting what is by its very nature a highly procedural and linear execution path.
Custom Server controls expose custom events just like the built-in controls do so that page developers have a mechanism by which they can interact with the control without tight coupling... | [
0.344347208738327,
0.08799730241298676,
0.32935187220573425,
0.41211166977882385,
-0.13977277278900146,
-0.2049526423215866,
0.21736425161361694,
0.007841846905648708,
-0.45859187841415405,
-0.48648136854171753,
0.05162154510617256,
0.6568000912666321,
-0.2157808393239975,
-0.0215178895741... | |
you can treat a user control very similarly to a server control, generally user controls tend to be weak in terms of OO design principals. With user controls, you are usually just trying to gain a little bit of a separation of concern and some encapsulation, but you'll tend to still have a fairly tight coupling between... | [
0.1287541687488556,
-0.0384385921061039,
0.403825581073761,
0.2573336064815521,
0.08437413722276688,
-0.27754130959510803,
0.09409025311470032,
0.07615493983030319,
-0.12576824426651,
-0.7196947932243347,
-0.16575463116168976,
0.4271850883960724,
-0.3001263737678528,
0.12572748959064484,
... | |
less coupling than directly calling a method on the hosting page. | [
-0.03736591339111328,
-0.13901542127132416,
0.0295157041400671,
0.056592535227537155,
-0.4274621903896332,
-0.32593491673469543,
0.2695648670196533,
-0.12913575768470764,
0.2247707098722458,
-0.7343846559524536,
-0.25808340311050415,
0.5074805021286011,
-0.20567554235458374,
0.006038395687... | |
Lately I'm interested in the topic of genetic algorithms, but I couldn't find any good resource. If you know any good resource, book or a site I would appreciate it. I have solid knowledge of algorithms and Artificial Intelligence but I'm looking for something with good introduction in Genetic Programming.
Best referen... | [
0.24865226447582245,
0.39296141266822815,
-0.513436496257782,
0.12969917058944702,
-0.31703659892082214,
0.09841304272413254,
-0.05405442789196968,
0.07200062274932861,
0.21145814657211304,
-0.7164989113807678,
-0.05698483809828758,
0.453363835811615,
-0.082552969455719,
0.0870183929800987... | |
Langdon, McPhee: this is more of a hands on guide and is getting very good reviews.
Also if you're an absolute beginner I'd suggest you to start with the [Hello World of Genetics Algorithms](http://www.generation5.org/content/2003/gahelloworld.asp). There's nothing like a nice clean example to get started. | [
0.3816811144351959,
-0.043523143976926804,
-0.26713964343070984,
0.14973965287208557,
-0.16667087376117706,
-0.207971453666687,
0.17070399224758148,
0.22101004421710968,
0.02161368355154991,
-0.5826604962348938,
-0.26323315501213074,
0.41713112592697144,
-0.0364777147769928,
0.121463276445... | |
I have a set of some classes which are all capable of being constructored with an argument being an instance of a particular interface. Since they all can be constructed by this same object (and the process during which this construction happens is largely the same in all cases), I figured perhaps templating would work... | [
-0.067405104637146,
-0.1404685378074646,
0.2807517647743225,
0.01955658569931984,
-0.12412137538194656,
0.08890917152166367,
0.2308627814054489,
-0.15891675651073456,
-0.08530162274837494,
-0.6558387875556946,
-0.25845733284950256,
0.6368795037269592,
-0.38552990555763245,
0.32118588685989... | |
is templated and thus lacks `SpecialMember` as well as the `T` constructor.
Basically, any given implementation of the inteface `T` has certain features. `U` is an implementation of `T which has an additional feature that is needed *and* which can be constructed from an any instance of`U`.
Advice?
Unfortunately while... | [
0.10071290284395218,
-0.10390499979257584,
0.2749094069004059,
-0.09330680221319199,
-0.0357348769903183,
-0.2112504541873932,
0.47893351316452026,
-0.07095412164926529,
-0.0019528999691829085,
-0.562339723110199,
-0.028735557571053505,
0.3544548451900482,
-0.4457344710826874,
0.0474225692... | |
the moment the best you'll get is a type factory or reflection - or possibly a parameterless constructor *and* an "Init" method in the interface. None of these are nice options, frankly. | [
0.21236078441143036,
-0.19540368020534515,
0.22876478731632233,
0.40054789185523987,
-0.08075612038373947,
0.10453612357378006,
0.12406007945537567,
0.37856683135032654,
-0.29037895798683167,
-0.8492966294288635,
-0.1084202378988266,
0.40462443232536316,
0.0596599318087101,
0.1000939607620... | |
I want to prevent users from going to say example.com and only go to www.example.com, we are using IIS 6. So say they go to example.com it could tack on the www.example.com, etc.
Is this a setting somewhere or will I have to code it to check for the subdomain when they land and redirect accordingly?
EDIT: I know the ... | [
0.775746762752533,
0.038749732077121735,
0.2458285391330719,
0.17559009790420532,
0.04302315041422844,
-0.2790508270263672,
0.33945906162261963,
0.19062693417072296,
-0.3135226368904114,
-0.5051813721656799,
0.3471919298171997,
0.4688257873058319,
-0.29093459248542786,
0.10689166188240051,... | |
I am trying to force the 'www' because if some people don't have it then they wonder why the tracking does not work.
As both records already point to the correct server...
...you could simply set up a new website in IIS (server version needed) and have it respond only to example.com (the host header setting) and have ... | [
0.6363145112991333,
0.06442379206418991,
0.4464413523674011,
0.07079537957906723,
-0.12780749797821045,
-0.1642652451992035,
0.33220311999320984,
0.05557241290807724,
-0.19687815010547638,
-0.712845504283905,
0.13264378905296326,
0.37306511402130127,
-0.2677210569381714,
0.4048528373241424... | |
web server, your publishing firewall should be able to, or you might consider replacing it. Your DNS provider might also provide (pun not intended) a redirect service (doing basically the same thing as above for you I guess). | [
0.3640422523021698,
0.019650379195809364,
0.3803941011428833,
0.4740328788757324,
-0.08039850741624832,
-0.393929123878479,
0.2280091941356659,
0.25072458386421204,
-0.41626718640327454,
-0.6856623291969299,
-0.2662835419178009,
0.3723715841770172,
-0.2181050181388855,
0.09095747023820877,... | |
I need a good explanation (references are a plus) on Python slicing.
The syntax is:
```
a[start:stop] # items start through stop-1
a[start:] # items start through the rest of the array
a[:stop] # items from the beginning through stop-1
a[:] # a copy of the whole array
```
There is also the `ste... | [
0.23678119480609894,
0.1819857954978943,
0.4791618287563324,
-0.1935129463672638,
-0.110160693526268,
-0.07799337804317474,
0.30693066120147705,
-0.14232204854488373,
0.04838935285806656,
-0.35847604274749756,
-0.24900740385055542,
0.5167512893676758,
-0.3133707046508789,
0.067473955452442... | |
is *not* in the selected slice. So, the difference between `stop` and `start` is the number of elements selected (if `step` is 1, the default).
The other feature is that `start` or `stop` may be a *negative* number, which means it counts from the end of the array instead of the beginning. So:
```
a[-1] # last item... | [
-0.3216729462146759,
-0.6414557695388794,
0.1228136271238327,
-0.23363274335861206,
-0.1443815529346466,
0.3188405930995941,
0.18925397098064423,
-0.5486036539077759,
-0.37995684146881104,
-0.5167442560195923,
-0.6233319044113159,
0.1265878528356552,
-0.3756066560745239,
-0.101868331432342... | |
two items, reversed
a[:-3:-1] # the last two items, reversed
a[-3::-1] # everything except the last two items, reversed
```
Python is kind to the programmer if there are fewer items than you ask for. For example, if you ask for `a[:-2]` and `a` only contains one element, you get an empty list instead of an error. S... | [
-0.07810577005147934,
-0.13970689475536346,
0.3628215491771698,
-0.2985585927963257,
-0.33692148327827454,
0.2622204124927521,
0.10169381648302078,
-0.194657102227211,
-0.3226318955421448,
-0.5422216653823853,
-0.2639009952545166,
0.5522648692131042,
-0.3675682246685028,
-0.160110026597976... | |
to `range()`, i.e. both `slice(stop)` and `slice(start, stop[, step])` are supported.
To skip specifying a given argument, one might use `None`, so that e.g. `a[start:]` is equivalent to `a[slice(start, None)]` or `a[::-1]` is equivalent to `a[slice(None, None, -1)]`.
While the `:`-based notation is very helpful for s... | [
0.10166659206151962,
-0.08242113143205643,
0.10697019845247269,
-0.48462238907814026,
-0.15352202951908112,
0.2528999447822571,
0.14845895767211914,
-0.26762282848358154,
0.10722329467535019,
-0.4816455543041229,
-0.6975303888320923,
0.6450743675231934,
-0.07724839448928833,
-0.14526726305... | |
I'm trying to get console input in my Clojure program, but when it gives me this error when it gets to that part of the program.
```
Exception in thread "main" java.lang.ClassCastException:
clojure.lang.LineNumberingPushbackReader cannot be cast to java.io.BufferedReader
```
the 'read' function works, but it's not w... | [
-0.06861662119626999,
0.21362634003162384,
0.5683763027191162,
-0.3071909546852112,
0.18521597981452942,
-0.18110957741737366,
0.23554345965385437,
-0.08647715300321579,
-0.05230306461453438,
-0.7432721257209778,
0.10450642555952072,
0.6176239252090454,
-0.38331007957458496,
-0.12414491176... | |
for me. What version of Clojure are you using and how are you calling prompt-read? Here's what I'm getting back (here `goo` is my response):
```
user=> (defn prompt-read [prompt]
(print (format "%s: " prompt))
(flush )
(read-line))
#'user/prompt-read
user=> (prompt-read "foo")
foo: goo
"goo"
``` | [
-0.003175569698214531,
0.14196369051933289,
0.7485870718955994,
-0.04725820943713188,
0.11639322340488434,
-0.13153092563152313,
0.03776808828115463,
0.010387485846877098,
-0.1970946192741394,
-0.39072877168655396,
-0.11260532587766647,
0.7578556537628174,
-0.6719678044319153,
-0.145310252... | |
In a rails app, I using the :finder\_sql option in a has\_many declaration. The rails docs say that when I do this, "find\_in\_collection is not added." What does this mean?
Try `svnversion --help`
```
4123:4168 mixed revision working copy
4168M modified working copy
4123S switched working copy
412... | [
-0.3238776624202728,
0.037085600197315216,
0.210553377866745,
-0.010900846682488918,
0.12109925597906113,
0.06535312533378601,
0.33852657675743103,
-0.13071195781230927,
0.1258309781551361,
-0.8921602368354797,
-0.23894329369068146,
0.5443611741065979,
-0.47347328066825867,
-0.165475174784... | |
i use the command line in windows to compile and then execute my java programs. i've gone to <http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html> and tried compiling the HelloWorldSwing.java class. it worked, but when i try "java HelloWorldSwing" it gives me a bunch of erros and says something along the... | [
0.16151604056358337,
0.38793638348579407,
0.25336843729019165,
-0.35961154103279114,
-0.1666782945394516,
-0.11918307840824127,
0.39467284083366394,
-0.08381006121635437,
-0.14522677659988403,
-0.5682721734046936,
0.1871379166841507,
0.6690438985824585,
-0.21318958699703217,
-0.02211439609... | |
the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
*/
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setDefaultCloseOperation(JFrame.EXIT_ON... | [
0.04684020206332207,
-0.054511941969394684,
0.7826040387153625,
-0.12391996383666992,
0.13976244628429413,
-0.16182012856006622,
0.2726547420024872,
0.051517561078071594,
-0.12882675230503082,
-0.7501905560493469,
-0.19372829794883728,
0.6059406995773315,
-0.5141739845275879,
0.48930799961... | |
frame.getContentPane().add(label);
//Display the window.
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities... | [
0.4782257080078125,
-0.17304526269435883,
0.4777684807777405,
-0.27772057056427,
0.1303841471672058,
-0.015410332009196281,
0.25538623332977295,
-0.5790867209434509,
-0.4454205334186554,
-0.4337514638900757,
-0.33863189816474915,
0.3853594958782196,
-0.690108597278595,
0.1093686893582344,
... | |
createAndShowGUI();
}
});
}
}
```
EDIT: used javaw
window pops up
"a java exception has occurred"
another window
"error: could not find the main class.
error: a jni error has occurred, please check your installation and try again."
never had any problems running any java programs, am i mi... | [
0.37433478236198425,
0.014441299252212048,
0.11115974187850952,
-0.17412622272968292,
0.03592095151543617,
-0.5296093225479126,
0.6724199652671814,
0.12529604136943817,
-0.3082931339740753,
-0.9244133830070496,
0.18764518201351166,
0.6859632730484009,
-0.305749773979187,
0.2485946714878082... | |
is no folder start in the path where i compiled the program.
EDIT2
I tried both start/HelloWorldSwing and HelloWorldSwing with java.
I don't get any errors with javac also. I get 2 pop up windows with the messages I've typed previously when I use javaw and java gives me the NoClassDefFoundException, then talks about ... | [
0.07900019735097885,
-0.025807630270719528,
0.11775868386030197,
-0.23600216209888458,
-0.4390442371368408,
-0.2726396322250366,
0.456012487411499,
-0.019935961812734604,
-0.12328540533781052,
-0.6105148792266846,
0.12870007753372192,
0.5810183882713318,
-0.3746546804904938,
0.029088785871... | |
instructions the package is not used
You can do two things:
a) Drop the package name (delete the line `pacakge start;`) and run as indicated
Or
b) Leave the `package start;` line in the code and append the `-d` option to `javac` and use the full class name.
I hope this helps. | [
0.37491312623023987,
-0.052435502409935,
-0.1685924082994461,
-0.023826727643609047,
0.19518232345581055,
-0.3480943441390991,
0.6408329606056213,
-0.11374164372682571,
0.14279425144195557,
-0.27451565861701965,
-0.3918801248073578,
0.7813214063644409,
-0.3794786036014557,
-0.3606354296207... | |
I have a rails app moving along fairly well, but the fact that I'm doing this myself means that some poor sod is eventually going to see this and say, "What the hell were you thinking? Why did you put this here?!?!"
Where is that poor, sorry soul going to expect to see a series of classes that aren't used by anything ... | [
0.374405175447464,
0.12850411236286163,
-0.01598120480775833,
0.1753220409154892,
-0.0002121855941368267,
-0.10976999253034592,
0.7447950839996338,
0.481753408908844,
-0.09976404905319214,
-0.4852723479270935,
0.2500680983066559,
0.25869885087013245,
0.03275381028652191,
0.2665535807609558... | |
you.
My predecessor thanks you.
Leave them in `the_model.rb` until you need them in more than one place. If you refactor needlessly, you're not doing the simplest thing that could possibly work. [You aren't gonna need it](http://c2.com/cgi/wiki?YouArentGonnaNeedIt).
At that point, the general pattern is to create a ... | [
0.44019007682800293,
0.40786975622177124,
0.0068718078546226025,
0.07168826460838318,
-0.18419714272022247,
0.07623401284217834,
0.09827586263418198,
-0.2908899486064911,
-0.5473793745040894,
-0.5119050741195679,
0.274371474981308,
0.5570425391197205,
-0.33167967200279236,
-0.0480575151741... | |
I'm trying to test this out on my site but it doesn't quite work because I have to be logged in to go to this page.
Is there a configuration setting that I haven't set or set incorrectly?
EDIT: rm's answer led me to this [link from Microsoft](http://msdn.microsoft.com/en-us/library/ms178335.aspx).
adding to Arjan's ... | [
0.10960772633552551,
0.04249800741672516,
0.33334165811538696,
0.14851002395153046,
0.21439379453659058,
-0.1520444005727768,
0.36672353744506836,
-0.2182309776544571,
-0.42005911469459534,
-0.30025172233581543,
-0.08613120764493942,
0.1726977378129959,
-0.2226630449295044,
0.0062485700473... | |
</authorization>
</system.web>
</location>
</configuration>
``` | [
0.416412353515625,
0.2459716945886612,
0.29311448335647583,
0.13697732985019684,
0.38531315326690674,
-0.3722117245197296,
0.11393141001462936,
-0.07266227155923843,
-0.21169070899486542,
-0.46705162525177,
-0.5105734467506409,
0.4593651592731476,
-0.18268755078315735,
0.2996380627155304,
... | |
**Question:** I have a question that is [apparently not answered by this already-asked Bash completion question](https://stackoverflow.com/questions/342969) on Stack Overflow. The question is, how to get Bash alias completion (for any alias) on a partial substring.
**Example:**
For example, assume I have the following... | [
0.16039744019508362,
0.11456909030675888,
0.1917368322610855,
-0.4175071716308594,
0.06642814725637436,
0.000958855205681175,
0.5025507807731628,
-0.47300001978874207,
-0.2623833119869232,
-0.519561231136322,
-0.1754394918680191,
0.8844841718673706,
-0.193678081035614,
-0.1880691796541214,... | |
optimal).
.. OR ..
I would like to lazily just type "home" and then repeatedly press {{TAB}} until the specific alias I want shows up, then press {{ENTER}} to execute it.
**Feel free to be creative:**
If you have a way to do this, even if it requires resorting to extreme guru hackery, please feel free to share it an... | [
0.061700399965047836,
0.18166005611419678,
0.3638298213481903,
0.14796064794063568,
0.2625117003917694,
-0.04748861864209175,
0.28105470538139343,
-0.10278277099132538,
0.2722446024417877,
-0.7633336782455444,
-0.033984094858169556,
0.8278651833534241,
-0.1633141189813614,
-0.1122134402394... | |
this in bash autocompletion you can create a .bash\_completion file in your home directory containing something like this:
```
_comp() {
local cur
cur=${COMP_WORDS[$COMP_CWORD]}
COMPREPLY=( $( compgen -c -X '!*'$cur'*' ) )
}
complete -F _comp $nospace eval
```
This match function will run when you pre... | [
0.09636383503675461,
0.17020393908023834,
0.38938218355178833,
-0.3102297782897949,
-0.27945050597190857,
-0.0762147605419159,
0.2713265120983124,
-0.40481969714164734,
-0.1404017060995102,
-0.5739761590957642,
0.01703876443207264,
0.8673515915870667,
-0.32916000485420227,
-0.0907261967658... | |
this is... There is no easy way to select which match you want from the list. | [
0.35538291931152344,
0.15847787261009216,
0.14758993685245514,
0.20239856839179993,
0.25936245918273926,
-0.1392919421195984,
-0.18511180579662323,
-0.13320200145244598,
0.1270039677619934,
-0.5347613096237183,
0.23199817538261414,
0.5097229480743408,
-0.2990644574165344,
0.147487401962280... | |
I'm attempting to access member variables in a child class via the parent class without instantiation.
This is one of my attempts but `B::getStatic()` fails with `Access to undeclared static property`.
Is there another solution to this, possibly without static?
```
class A {
static public function getStatic() {... | [
0.35017380118370056,
-0.12731635570526123,
0.47199591994285583,
0.043011318892240524,
0.018678098917007446,
0.06465230137109756,
0.16102354228496552,
-0.005262951832264662,
-0.08411826938390732,
-0.019698001444339752,
-0.21408821642398834,
0.4742138385772705,
-0.2610468864440918,
0.4728167... | |
support for this.
If you're running 5.3.0 or higher, update the getStatic() method:
> static public function getStatic() {
>
>
>
> ```
> return static::$myStatic;
>
> ```
>
> } | [
0.31589338183403015,
-0.4666776657104492,
0.612033486366272,
0.4248729646205902,
0.2528402805328369,
-0.1287393867969513,
-0.03472473472356796,
0.30709177255630493,
-0.07879581302404404,
-0.312680184841156,
-0.1668301671743393,
0.667008101940155,
-0.2882041931152344,
0.09515352547168732,
... | |
When Microsoft gets around to releasing the DLR and related languages are you planning on utilising those languages (such as Iron Ruby or Iron Python)?
If so, what are your motivations for doing so?
Yes in some cases.
Main motivation is to reuse existing code and libraries already implemented in Ruby and Python with ... | [
0.48822250962257385,
0.11280828714370728,
-0.24239172041416168,
0.17151924967765808,
-0.32726165652275085,
-0.07078862190246582,
-0.0658760592341423,
0.39873406291007996,
-0.14305657148361206,
-0.4790741503238678,
-0.09460914880037308,
0.55095374584198,
-0.15783515572547913,
-0.20562548935... | |
I have a relation mapping table like this:
attributeid bigint
productid bigint
To clean relations that are not used any more, I want to delete all recors where productid = x and attributeid not in (@includedIds), like the following example:
```
@attributetypeid bigint,
@productid bigint,
@includedids varchar(MAX... | [
0.14680832624435425,
-0.18067915737628937,
0.2114335596561432,
-0.15901124477386475,
-0.3899259865283966,
0.13329540193080902,
0.18930794298648834,
-0.22559797763824463,
-0.2340788096189499,
-0.5610476136207581,
0.06808549910783768,
0.5900595784187317,
-0.5141248106956482,
0.32950770854949... | |
should I construct my delete statement to make it work?
```
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[ListToTable] (
/*
FUNCTION ListToTable
Usage: select entry from listtotable('abc,def,ghi') order by entry desc
PURPOSE: Takes a comma-delimited list as a parameter and returns the values of that ... | [
0.13559122383594513,
0.0785001665353775,
0.34488949179649353,
-0.3099643886089325,
-0.1239391416311264,
0.16779519617557526,
0.359180212020874,
-0.615408718585968,
-0.12171045690774918,
-0.47842052578926086,
-0.1449217051267624,
0.5074414610862732,
-0.5960592031478882,
0.22474779188632965,... | |
@rest varchar(8000),
@pos int,
@seqid int
SET @this = ' '
SET @seqid = 1
SET @rest = @mylist
SET @pos = PATINDEX('%,%', @rest)
WHILE (@pos > 0)
BEGIN
set @this=substring(@rest,1,@pos-1) | [
0.14087367057800293,
-0.39654311537742615,
0.6558375954627991,
-0.4484550952911377,
0.07894936203956604,
0.08281195163726807,
0.15673407912254333,
-0.6177915334701538,
0.028325263410806656,
-0.5762585401535034,
-0.2881454527378082,
0.5254080891609192,
-0.39562106132507324,
-0.3475840091705... | |
set @rest=substring(@rest,@pos+1,len(@rest)-@pos)
INSERT INTO @ListTable (seqid,entry) VALUES (@seqid,@this)
SET @pos= PATINDEX('%,%', @rest)
SET @seqid=@seqid+1
END
set @this=@rest
INSERT INTO @ListTable (seqid,entry) VALUES (@seqid,@this)
RETURN
END
```
Run ... | [
0.024431882426142693,
-0.13319630920886993,
0.7532208561897278,
-0.24822402000427246,
-0.011782770045101643,
-0.12832002341747284,
0.0031879558227956295,
-0.5581794381141663,
-0.05633614957332611,
-0.5760515332221985,
-0.19246603548526764,
0.3682757019996643,
-0.6304857134819031,
-0.086967... | |
like so:
```
@attributetypeid bigint,
@productid bigint,
@includedids varchar(MAX)
DELETE FROM reltable
WHERE productid = @productid AND
attributetypeid = @attributetypeid AND
attributeid NOT IN (SELECT entry FROM ListToTable(@includedids));
```
Where @includedids is a comma delimited list that you provide. I... | [
0.11276479065418243,
-0.28141143918037415,
0.08591014891862869,
-0.18401020765304565,
-0.12142043560743332,
0.13636034727096558,
0.12529127299785614,
-0.15886607766151428,
-0.36725184321403503,
-0.6835289001464844,
-0.12471088767051697,
0.45425572991371155,
-0.5110947489738464,
0.112845413... | |
I am trying to right align a control in a [`StatusStrip`](http://msdn.microsoft.com/en-us/library/system.windows.forms.statusstrip.aspx). How can I do that?
I don't see a property to set on `ToolStripItem` controls that specifies their physical alignment on the parent `StatusStrip`.
[How do I get Messages drop down t... | [
0.20091289281845093,
-0.06034022197127342,
0.6277873516082764,
0.0555313304066658,
0.28134089708328247,
-0.01931372657418251,
0.2533402144908905,
-0.30153748393058777,
0.05071662366390228,
-0.3064034581184387,
-0.006193006411194801,
0.5237140655517578,
-0.1142439991235733,
0.24757166206836... | |
I'm not certain that this is the right venue for this question, but a programmer friend of mine said I should try this here.
My company's main application is hosted on a terminal server running Windows Server 2008. Since last Thursday we have seen this server crash and reboot 3 times, and we just went live with this s... | [
0.1923401802778244,
0.39745184779167175,
0.22076787054538727,
-0.0597977377474308,
-0.01575656607747078,
-0.3106164336204529,
0.1591697782278061,
0.3384547829627991,
-0.2515769898891449,
-0.4740622043609619,
0.5193805694580078,
0.4189361035823822,
0.2500339448451996,
0.299508273601532,
0... | |
that appears to me to be at fault is winoac.exe which is the executable for SmartWare 4.5 (www.smartware4.com). This is the platform that our application runs on. If this application is at fault, is there anything that I can do about it, other than complaining to SmartWare?
Thanks a million to anybody that can help.
... | [
-0.2466219812631607,
0.5732806921005249,
0.13241875171661377,
0.019797302782535553,
0.10238218307495117,
-0.21016046404838562,
0.39313092827796936,
0.09948325157165527,
-0.06135224923491478,
-0.3385709524154663,
-0.2748591899871826,
0.45489493012428284,
-0.30045297741889954,
0.410721391439... | |
(Service Pack 1) MP (8 procs) Free x86 compatible
Product: Server, suite: TerminalServer
Built by: 6001.18145.x86fre.vistasp1_gdr.080917-1612
Machine Name:
Kernel base = 0x81c41000 PsLoadedModuleList = 0x81d4e930
Debug session time: Thu Jan 29 12:49:43.870 2009 (GMT-6)
System Uptime: 0 days 11:18:08.929
Loading Kernel ... | [
-0.5465257167816162,
-0.12727411091327667,
0.5339022874832153,
-0.17672258615493774,
-0.4208326041698456,
0.13387885689735413,
0.6698199510574341,
-0.2846916615962982,
-0.3695026934146881,
-0.7346211671829224,
-0.5035378336906433,
0.6959059238433838,
-0.33874770998954773,
-0.23284712433815... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 8E, {c0000005, 81c88043, 9cef0840, 0}
Page bd1f2 not present in the dump file. Type ".hh dbgerr004" for details
Page bc9c3 not present in the dump file. Type ".hh | [
-0.18774621188640594,
0.15678319334983826,
0.029889147728681564,
0.23239457607269287,
-0.05740667134523392,
0.023737723007798195,
0.5506131649017334,
-0.3516688048839569,
0.14030419290065765,
-0.5304693579673767,
-0.00611462676897645,
0.3663041889667511,
-0.6115492582321167,
0.174566343426... | |
dbgerr004" for details
PEB is paged out (Peb.Ldr = 7ffd400c). Type ".hh dbgerr001" for details
PEB is paged out (Peb.Ldr = 7ffd400c). Type ".hh dbgerr001" for details
Probably caused by : RDPDD.dll ( RDPDD!OE2_TableEncodeOrderFields+11e )
Followup: MachineOwner
---------
7: kd> !analyze -v
*************************... | [
-0.4867967665195465,
0.0921226292848587,
0.18330536782741547,
0.00018448595074005425,
-0.6828643083572388,
0.14098012447357178,
0.44811779260635376,
-0.49318233132362366,
0.003424903377890587,
-0.7775895595550537,
-0.02539152279496193,
0.496921569108963,
-0.2078505903482437,
-0.06258522719... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
KERNEL_MODE_EXCEPTION_NOT_HANDLED (8e)
This is a very common bugcheck. Usually the exception address pinpoints
the driver/function that caused the problem. Always note this address
as well as the link date of the driver/image that cont... | [
-0.29468420147895813,
0.13183514773845673,
0.015683133155107498,
0.06333457678556442,
-0.03966188430786133,
0.05965478718280792,
0.09026624262332916,
0.4569266438484192,
-0.5567070841789246,
-0.7611023783683777,
-0.17963069677352905,
0.5351619124412537,
-0.46695825457572937,
0.164374396204... | |
assertion was hit, but this system was booted
/NODEBUG. This is not supposed to happen as developers should never have
hardcoded breakpoints in retail code, but ...
If this happens, make sure a debugger gets connected, and the
system is booted /DEBUG. This will let us see why this breakpoint is
happening.
Arguments:
... | [
-0.048654425889253616,
0.1429532766342163,
0.3373050391674042,
0.26099586486816406,
0.13730010390281677,
-0.12196239829063416,
0.6262316703796387,
-0.3596164286136627,
0.05431945249438286,
-0.1988140493631363,
-0.2511528432369232,
0.8439366221427917,
-0.18757407367229462,
0.046555407345294... | |
0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
FAULTING_IP:
nt!RtlInitUnicodeString+1b
81c88043 f266af repne scas word ptr es:[edi]
TRAP_FRAME: 9cef0840 -- (.trap 0xffffffff9cef0840)
ErrCode = 00000000
eax=00000000 ebx=fe414fd8 ecx=ffffffec edx=9cef0914 esi=fe40fcf0 edi=fe415000
eip=81c8... | [
-0.5123556852340698,
0.18405230343341827,
0.5214483737945557,
0.03257768228650093,
0.026820022612810135,
0.4214211702346802,
0.6001506447792053,
-0.49727416038513184,
-0.22385719418525696,
-0.3593350648880005,
-0.16979193687438965,
0.8311359882354736,
-0.2578556537628174,
-0.08038925379514... | |
0x8E
PROCESS_NAME: WINOAC.EXE
CURRENT_IRQL: 0
LAST_CONTROL_TRANSFER: from 81c72fbe to 81cfc759
STACK_TEXT:
9cef0400 81c72fbe 0000008e c0000005 81c88043 nt!KeBugCheckEx+0x1e
9cef07d0 81c9953a 9cef07ec 00000000 9cef0840 nt!KiDispatchException+0x1a9
9cef0838 81c994ee 9cef0924 81c88043 badb0d00 nt!CommonDispatchEx... | [
-0.7742689251899719,
0.22894126176834106,
0.4219669699668884,
0.02848496474325657,
0.08142848312854767,
0.11465798318386078,
0.321711003780365,
-0.45438477396965027,
-0.10628408193588257,
-0.6431655287742615,
-0.1114732176065445,
0.5316824913024902,
-0.2495087832212448,
0.31351354718208313... | |
Following frames may be wrong.
0012d7cc 00000000 00000000 00000000 00000000 0x77089a94
STACK_COMMAND: kb
FOLLOWUP_IP:
RDPDD!OE2_TableEncodeOrderFields+11e
9976011a 8b4518 mov eax,dword ptr [ebp+18h]
SYMBOL_STACK_INDEX: 4
SYMBOL_NAME: RDPDD!OE2_TableEncodeOrderFields+11e
FOLLOWUP_NAME: MachineOwne... | [
-0.501438319683075,
0.4124482274055481,
0.5882700085639954,
0.10101405531167984,
0.021004028618335724,
0.14514489471912384,
0.19614490866661072,
-0.33940935134887695,
-0.35003021359443665,
-0.5887949466705322,
-0.37135958671569824,
0.5948788523674011,
-0.2909039258956909,
0.164644494652748... | |
6001.18145.x86fre.vistasp1_gdr.080917-1612
Machine Name:
Kernel base = 0x81c41000 PsLoadedModuleList = 0x81d4e930
Debug session time: Thu Jan 29 12:49:43.870 2009 (GMT-6)
System Uptime: 0 days 11:18:08.929
Loading Kernel Symbols
...............................................................
.............................. | [
-0.7467259764671326,
-0.07183638960123062,
0.5334767699241638,
-0.022905763238668442,
-0.1339568942785263,
0.29527410864830017,
0.6232719421386719,
0.036006417125463486,
-0.3967398405075073,
-0.7800415754318237,
-0.44046321511268616,
0.857557475566864,
-0.0732630118727684,
-0.0051519968546... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 8E, {c0000005, 81c88043, 9cef0840, 0}
Page bd1f2 not present in the dump file. Type ".hh dbgerr004" for details
Page bc9c3 not present in the dump file. Type ".hh dbgerr00... | [
-0.27693015336990356,
0.12739989161491394,
0.06886596977710724,
0.17888705432415009,
-0.16715286672115326,
0.13571295142173767,
0.48984602093696594,
-0.48143240809440613,
0.18995726108551025,
-0.7365226745605469,
-0.1473357081413269,
0.31097251176834106,
-0.5144369602203369,
0.088809445500... | |
for details
PEB is paged out (Peb.Ldr = 7ffd400c). Type ".hh dbgerr001" for details
Probably caused by : RDPDD.dll ( RDPDD!OE2_TableEncodeOrderFields+11e )
Followup: MachineOwner
---------
7: kd> !analyze -v
*******************************************************************************
* | [
-0.22052150964736938,
0.18937766551971436,
0.2520398795604706,
0.15091170370578766,
-0.0863543301820755,
0.17460757493972778,
0.09854764491319656,
-0.059177983552217484,
-0.03114289604127407,
-0.9025335311889648,
-0.013562086038291454,
0.3869902491569519,
0.024879587814211845,
-0.016313649... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
KERNEL_MODE_EXCEPTION_NOT_HANDLED (8e)
This is a very common bugcheck. Usually the exception address pinpoints
the driver/function that caused the problem. Always note this address
as well as the link date of the driver/image that cont... | [
-0.20888462662696838,
0.08013367652893066,
0.03175180032849312,
0.09127448499202728,
-0.11121372878551483,
-0.08025990426540375,
0.21117191016674042,
0.40639665722846985,
-0.5778625011444092,
-0.7061175107955933,
-0.060437966138124466,
0.6026855111122131,
-0.3844006359577179,
0.14229895174... | |
to happen as developers should never have
hardcoded breakpoints in retail code, but ...
If this happens, make sure a debugger gets connected, and the
system is booted /DEBUG. This will let us see why this breakpoint is
happening.
Arguments:
Arg1: c0000005, The exception code that was not handled
Arg2: 81c88043, The ad... | [
-0.20442098379135132,
0.15039274096488953,
0.4201599359512329,
0.018621686846017838,
0.2498806118965149,
0.14605648815631866,
0.4500155746936798,
-0.341736376285553,
-0.052847761660814285,
-0.46031495928764343,
-0.3827907145023346,
0.4864487946033478,
-0.34476521611213684,
0.09842351078987... | |
repne scas word ptr es:[edi]
TRAP_FRAME: 9cef0840 -- (.trap 0xffffffff9cef0840)
ErrCode = 00000000
eax=00000000 ebx=fe414fd8 ecx=ffffffec edx=9cef0914 esi=fe40fcf0 edi=fe415000
eip=81c88043 esp=9cef08b4 ebp=9cef0924 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 ... | [
-0.7672595381736755,
-0.4017859995365143,
1.0460786819458008,
-0.1271776705980301,
0.05615422874689102,
0.6642385125160217,
0.4033249616622925,
-0.5606666803359985,
-0.46500611305236816,
-0.29319268465042114,
-0.5856742262840271,
0.8987113237380981,
-0.21657083928585052,
-0.103818818926811... | |
81c72fbe 0000008e c0000005 81c88043 nt!KeBugCheckEx+0x1e
9cef07d0 81c9953a 9cef07ec 00000000 9cef0840 nt!KiDispatchException+0x1a9
9cef0838 81c994ee 9cef0924 81c88043 badb0d00 nt!CommonDispatchException+0x4a
9cef085c 9976011a 99771680 997708e8 00000000 nt!Kei386EoiHelper+0x186
9cef0924 9959efab 5d0102bb 00000006 000000... | [
-0.6629949808120728,
0.2543352246284485,
0.4130643904209137,
0.06824217736721039,
0.04533126577734947,
0.033627960830926895,
0.4930739998817444,
-0.4172589182853699,
-0.18265867233276367,
-0.6941983103752136,
-0.18318383395671844,
0.7269033193588257,
-0.26421403884887695,
0.086206436157226... | |
8b4518 mov eax,dword ptr [ebp+18h]
SYMBOL_STACK_INDEX: 4
SYMBOL_NAME: RDPDD!OE2_TableEncodeOrderFields+11e
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: RDPDD
IMAGE_NAME: RDPDD.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 4791923e
FAILURE_BUCKET_ID: 0x8E_RDPDD!OE2_TableEncodeOrderFields+11e
BUCKET_ID: 0x8E_RDP... | [
-0.594627320766449,
0.31255462765693665,
0.62176513671875,
-0.016069447621703148,
0.08505213260650635,
0.08263347297906876,
0.2747069001197815,
-0.18764273822307587,
-0.379469096660614,
-0.4707697927951813,
-0.4969508945941925,
0.7786346673965454,
-0.20195052027702332,
0.13194167613983154,... | |
3 14:20:03.117 2009 (GMT-6)
System Uptime: 0 days 2:00:33.869
Loading Kernel Symbols
...............................................................
................................................................
.............
Loading User Symbols
PEB is paged out (Peb.Ldr = 7ffdc00c). Type ".hh dbgerr001" for detail... | [
-0.6302537322044373,
0.1824754923582077,
0.7095270752906799,
-0.2434224635362625,
-0.3290298879146576,
0.4204225540161133,
0.49331551790237427,
-0.19100333750247955,
-0.25229009985923767,
-0.8770546317100525,
-0.3785799741744995,
0.5086307525634766,
-0.05109676346182823,
-0.074544250965118... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 8E, {c0000005, 81c5a043, d60a5840, 0}
Page bce51 not present in the dump file. Type ".hh dbgerr004" for details
Page bce22 not present in the dump file. Type ".hh dbgerr00... | [
-0.28108155727386475,
0.26046252250671387,
-0.09663686901330948,
0.27829253673553467,
0.0416920930147171,
0.16545554995536804,
0.43031835556030273,
-0.41519856452941895,
-0.05174439027905464,
-0.6410018801689148,
-0.18494051694869995,
0.31450146436691284,
-0.48077940940856934,
0.1812787950... | |
for details
Page bce5a not present in the dump file. Type ".hh dbgerr004" for details
Page bce5a not present in the dump file. Type ".hh dbgerr004" for details
PEB is paged out (Peb.Ldr = 7ffdc00c). Type ".hh dbgerr001" for details
PEB is paged out (Peb.Ldr = 7ffdc00c). Type ".hh dbgerr001" for details
Probably cause... | [
-0.032375797629356384,
0.3305463194847107,
0.14374378323554993,
0.2841569483280182,
-0.18251945078372955,
0.14936019480228424,
0.17910361289978027,
-0.3022271394729614,
-0.16903431713581085,
-0.7764760255813599,
0.0466490238904953,
0.3981744349002838,
0.1411391645669937,
0.1875877827405929... | |
*
* Bugcheck Analysis *
* | [
0.02123308554291725,
0.2426413744688034,
0.08735783398151398,
-0.013977338559925556,
0.17398890852928162,
0.12293525040149689,
0.18555396795272827,
0.15571612119674683,
-0.18136581778526306,
-0.558603048324585,
-0.12881384789943695,
0.4225604832172394,
0.02766522206366062,
-0.2369469255208... | |
*
*******************************************************************************
KERNEL_MODE_EXCEPTION_NOT_HANDLED (8e)
This is a very common bugcheck. Usually the exception address pinpoints
the driver/function that caused the problem. Always note this address
as well as | [
-0.3116969168186188,
0.06648354977369308,
0.04559280350804329,
0.00944424606859684,
0.03725896030664444,
0.08064355701208115,
0.13519394397735596,
0.42011311650276184,
-0.5185889005661011,
-0.6291272640228271,
-0.2032051682472229,
0.633461058139801,
-0.5110671520233154,
0.07606522738933563... | |
the link date of the driver/image that contains this address.
Some common problems are exception code 0x80000003. This means a hard
coded breakpoint or assertion was hit, but this system was booted
/NODEBUG. This is not supposed to happen as developers should never have
hardcoded breakpoints in retail code, but ...
I... | [
-0.2710477113723755,
0.1710660308599472,
0.2481241226196289,
0.2741517424583435,
0.03258860483765602,
-0.061401598155498505,
0.28541815280914307,
0.044240228831768036,
-0.267313152551651,
-0.48890945315361023,
-0.19428686797618866,
0.6220633387565613,
-0.30930042266845703,
0.22764399647712... | |
Type ".hh dbgerr004" for details
Page bce5a not present in the dump file. Type ".hh dbgerr004" for details
Page bce5a not present in the dump file. Type ".hh dbgerr004" for details
Page bce5a not present in the dump file. Type ".hh dbgerr004" for details
PEB is paged out (Peb.Ldr = 7ffdc00c). Type ".hh dbgerr001" for ... | [
-0.32865917682647705,
0.30996841192245483,
0.01936205103993416,
-0.05346669256687164,
-0.013444444164633751,
0.4087642431259155,
0.7192750573158264,
-0.3735821843147278,
0.11657442897558212,
-0.49201685190200806,
-0.302375853061676,
0.31503501534461975,
-0.25395768880844116,
0.009192768484... | |
-- (.trap 0xffffffffd60a5840)
ErrCode = 00000000
eax=00000000 ebx=fe41afd8 ecx=ffffffec edx=d60a5914 esi=fe40f5e0 edi=fe41b000
eip=81c5a043 esp=d60a58b4 ebp=d60a5924 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00010246
nt!RtlInitUnicodeString+0x1b:
81c5a04... | [
-0.5296944975852966,
0.04143179580569267,
0.5441908836364746,
0.2373970001935959,
0.08854908496141434,
0.31813570857048035,
0.39699631929397583,
-0.4900906980037689,
-0.0877223014831543,
-0.6672247052192688,
-0.30987033247947693,
0.713665783405304,
-0.2981843650341034,
0.17190749943256378,... | |
ff888010 00000000 00000000 nt!Kei386EoiHelper+0x186
d60a5924 999befab 1401009b 00000006 00000002 win32k!OffBitBlt+0x97
d60a5a0c 999ceaf8 1401009b 00000006 00000002 win32k!xxxRealDrawMenuItem+0x80b
d60a5abc 999a455b 1401009b 0110007e d60a5b04 win32k!xxxDrawState+0x1c9
d60a5b2c 999a53e1 1401009b fe40d168 00c8d0d4 win32k!... | [
-0.5226832032203674,
0.45550671219825745,
0.6517722010612488,
0.13446028530597687,
-0.13887682557106018,
0.15253496170043945,
0.40781524777412415,
-0.5532732009887695,
-0.21795536577701569,
-0.559049129486084,
-0.05157103389501572,
0.681331992149353,
-0.17319674789905548,
0.410149097442626... | |
ptr [ebp+20h]
SYMBOL_STACK_INDEX: 4
SYMBOL_NAME: win32k!OffBitBlt+97
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: win32k
IMAGE_NAME: win32k.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 48d1b9ef
FAILURE_BUCKET_ID: 0x8E_win32k!OffBitBlt+97
BUCKET_ID: 0x8E_win32k!OffBitBlt+97
Followup: MachineOwner
---------
```
Found it v... | [
-0.01920178346335888,
-0.07064485549926758,
0.7618537545204163,
0.045573774725198746,
0.2756557762622833,
0.05205485224723816,
0.23286372423171997,
-0.5183666944503784,
-0.13849423825740814,
-0.3333602547645569,
-0.2498714029788971,
0.5111742615699768,
-0.07258816808462143,
0.1317749023437... | |
I have attempted to use this CSS to set the width of my form elements:
```
input[type="text"], textarea { width:250px; }
```
If you look at this Firefox screenshot you'll see that the fields are not the same width. I get a similar effect in Safari.
[alt text http://screamingv.com/ss.png](http://screamingv.com/ss.pn... | [
0.3373854160308838,
0.032249804586172104,
0.6000179648399353,
-0.283989816904068,
-0.289951354265213,
-0.023992078378796577,
0.38595616817474365,
-0.3971751034259796,
-0.20918819308280945,
-0.778200626373291,
0.17252852022647858,
0.57441246509552,
-0.20505158603191376,
-0.2348705530166626,... | |
makes no sense.
Browser bug?
Try removing padding and borders. Or try making them the same for both elements
```
input[type="text"],
textarea {
width:250px;
padding: 3px;
border: none;
}
```
Or:
```
input[type="text"],
textarea {
width:250px;
padding: 0;
border: 1px solid #ccc;
}
`... | [
0.0898798331618309,
0.044908639043569565,
0.5955401659011841,
0.12295711040496826,
0.08523514866828918,
-0.05975579097867012,
0.27990859746932983,
-0.2027735561132431,
-0.3222672641277313,
-0.7450740933418274,
-0.26042088866233826,
0.2120051085948944,
-0.3372410535812378,
0.000582471082452... | |
into rather than add onto. See: <http://www.paulirish.com/2012/box-sizing-border-box-ftw/> | [
0.6247462034225464,
-0.27687710523605347,
0.2819029986858368,
-0.3844798803329468,
0.09668868780136108,
0.2522873878479004,
0.2575971484184265,
-0.18095597624778748,
-0.20135906338691711,
-0.2885845899581909,
-0.19126823544502258,
-0.29548558592796326,
-0.4603385925292969,
0.16851891577243... | |
So I was playing around the other day just to see exactly how mass assignment works in JavaScript.
First I tried this example in the console:
```
a = b = {};
a.foo = 'bar';
console.log(b.foo);
```
The result was "bar" being displayed in an alert. That is fair enough, `a` and `b` are really just aliases to the same ... | [
0.13313505053520203,
-0.04755127429962158,
0.07850731909275055,
-0.32254865765571594,
-0.275768518447876,
-0.21147042512893677,
0.1627817004919052,
0.02494586817920208,
-0.16032075881958008,
-0.4711211621761322,
0.04866636544466019,
0.5329278707504272,
-0.7144668102264404,
0.05976246297359... | |
This example could be simplified even more with the following code:
```js
a = {};
b = a;
a.foo = 'bar';
console.log(b.foo);
a = 'foo';
b = a;
a = 'bar';
console.log(b);
```
(I suspect that JavaScript treats primitives such as strings and integers differently to hashes. Hashes return a pointer while "core" pri... | [
0.008606351912021637,
0.19944056868553162,
-0.033717408776283264,
-0.25900429487228394,
0.10394623130559921,
-0.18385811150074005,
0.1309928148984909,
-0.3238281309604645,
-0.05503648892045021,
-0.4987686276435852,
-0.1313478946685791,
0.3377143144607544,
-0.4399336278438568,
0.37231841683... | |
the same object.
*However!*
If you do this instead:
```
a = 'bar';
```
you are saying that `a` points to a different object now. This has no effect on what `a` pointed to before.
In JavaScript, assigning a variable and assigning a property are 2 different operations. It's best to think of variables as pointers to... | [
0.20938506722450256,
0.35183313488960266,
-0.08755158632993698,
-0.3653200566768646,
-0.16714473068714142,
-0.10651445388793945,
0.2643046975135803,
-0.1476430743932724,
-0.036190278828144073,
-0.5156970620155334,
-0.29929062724113464,
0.5138824582099915,
-0.5475571155548096,
0.06396259367... | |
because they all point to the same object. | [
0.4371373951435089,
0.4043291211128235,
-0.06387678533792496,
0.15997283160686493,
-0.2717801630496979,
0.0380106121301651,
0.08523845672607422,
0.048042163252830505,
-0.23247605562210083,
-0.4470226466655731,
-0.05170213058590889,
-0.05907577648758888,
-0.3550122082233429,
0.4676387310028... | |
My compiler (VC++ 6.0 sp6) has apparently gone insane. In certain pieces of code I'm seeing that '`bool mybool = true;`' evalutes to and assigns false, and vice versa for true. Changing the true/false keywords to 1/0 makes it work fine. The same code compiles elsewhere fine without changing the true/false keywords.
Wh... | [
0.28377091884613037,
0.4479224979877472,
0.11060110479593277,
-0.061735790222883224,
0.06126979738473892,
-0.10609498620033264,
0.7103213667869568,
0.16754524409770966,
-0.11630508303642273,
-0.42875680327415466,
-0.10398422926664352,
0.6030256152153015,
-0.2243707925081253,
0.271816432476... | |
to screw up the meaning of '`true`' and '`false`'?
UPDATE:
Mystery solved. An environment variable flag on my machine was set to 'false' and the way this was interpolated by some preprocessor code redefined the keyword.
A preprocessor macro could certainly do it, although that would be pretty surprising. One way to ch... | [
0.304782897233963,
0.16670459508895874,
-0.024367399513721466,
-0.09856598824262619,
0.014389208517968655,
-0.11782532930374146,
0.7191643118858337,
-0.08172886073589325,
-0.23663584887981415,
-0.45074665546417236,
0.04572048410773277,
0.8311545848846436,
-0.47828322649002075,
-0.061533570... | |
#error directives.
if the error trips you know it's in the first half of includes, if it doesn't it's in the second half. Split the half in half and repeat. When you narrow it down to one header, open that header. If that header includes any headers repeat the process for the list of headers it includes. Eventually yo... | [
0.7353748679161072,
-0.1689395308494568,
-0.14016836881637573,
0.26663273572921753,
-0.04991946369409561,
-0.24661515653133392,
0.43313509225845337,
-0.2766975164413452,
-0.080562062561512,
-0.6820380091667175,
0.11426085233688354,
0.726320207118988,
-0.3625113070011139,
-0.015731533989310... | |
I am considering porting a small portion of the code in a C# project of mine to C/ASM for performance benefits. (This section of code uses many bitwise operations and is one of the few places where there may exist a real performance increase by using native code.) I then plan to simply call the native function in the s... | [
0.2645639181137085,
-0.031804416328668594,
-0.019374877214431763,
0.023313939571380615,
-0.03702544420957565,
-0.01837395690381527,
0.24867260456085205,
0.019079266116023064,
0.09103766083717346,
-0.591279149055481,
-0.23923426866531372,
0.7359405159950256,
-0.24000737071037292,
-0.0099550... | |
simply with primitive types? I am aware that there is a substatial overhead when using more complex types, since they need to be marshalled (pinned/copied), but perhaps in my situation it will be relatively efficient (compared to calling the code from within the native DLL itself even)? If someone could clarify this ma... | [
0.6099758744239807,
-0.10594839602708817,
-0.004795910324901342,
0.06162165850400925,
-0.08091818541288376,
-0.1446840614080429,
0.24284368753433228,
-0.25552621483802795,
-0.24836145341396332,
-0.3731124699115753,
-0.18344871699810028,
0.7336924076080322,
-0.45061197876930237,
-0.17174783... | |
has an overhead of between 10 and 30 x86 instructions per call. In addition to this fixed cost, marshaling creates additional overhead. There is no marshaling cost between blittable types that have the same representation in managed and unmanaged code. For example, there is no cost to translate between int and Int32."
... | [
0.1617843359708786,
0.17027677595615387,
0.055303905159235,
0.1165250763297081,
-0.06561648845672607,
0.08231329172849655,
0.14606007933616638,
-0.3430310785770416,
-0.022818103432655334,
-0.7007763385772705,
-0.36480867862701416,
0.7982000708580017,
-0.024056432768702507,
-0.3510143756866... | |
The python 2.6 docs state that `x % y` is defined as the remainder of x / y (<http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex>). I am not clear on what is really occurring though, as:
```
for i in range(2, 11):
print 1.0 % i
```
prints "1.0" ten times, rather than "0.5, 0.333333... | [
0.1742045283317566,
0.17312660813331604,
0.27390578389167786,
-0.5295363664627075,
-0.17425963282585144,
0.055395372211933136,
0.09113558381795883,
-0.5386093258857727,
-0.11429151892662048,
0.05233166366815567,
-0.02546779252588749,
0.3872535526752472,
-0.3071504831314087,
-0.082451321184... | |
the fractional part of the quotient.
Note that I multiply the result of the modulo operation by 1.0 to ensure that a floating point division operation is done (rather than integer division, which will result in 0). | [
-0.26640942692756653,
-0.06581836193799973,
0.22958175837993622,
-0.24699831008911133,
0.12639105319976807,
-0.03430326282978058,
-0.14514602720737457,
-0.5876303315162659,
0.08869536966085434,
-0.15244674682617188,
-0.16891659796237946,
0.18240253627300262,
-0.031875815242528915,
0.058799... | |
diff fails as the assembly listing is filled with slightly different labels.
Instead of directly comparing the assembly listings produced by the `-S` option, you could instead compile down to object files, disassemble the object files, and then compare those. (Or, you could just do a straight out diff of the hexdump of... | [
0.16253642737865448,
0.2694641351699829,
0.3772895634174347,
-0.03831131011247635,
-0.3956291079521179,
0.01242780964821577,
0.44467201828956604,
-0.4377654194831848,
0.07999561727046967,
-0.5958359837532043,
-0.054442472755908966,
0.5631964206695557,
-0.49252206087112427,
0.38077607750892... | |
I have been able to find methods like `-[NSString stringWithCString:encoding:]` but they do not seem to play well when the cstring is a pointer.
First up, don't use `initWithCString`, it has been deprecated.
Couple of ways you can do this:
```
const *char cString = "Hello";
NSString *myNSString = [NSString stringWith... | [
0.000567871262319386,
0.25792235136032104,
0.09075210988521576,
-0.028318103402853012,
0.07618236541748047,
-0.06359385699033737,
0.42497992515563965,
0.042759716510772705,
-0.2575104832649231,
-0.8343175649642944,
-0.18268439173698425,
0.61639004945755,
-0.4266306459903717,
0.181084036827... | |
encoding types. Bit quicker than trying to find it in the documentation.
Some other ones you might need:
```
NSASCIIStringEncoding
NSUnicodeStringEncoding // same as NSUTF16StringEncoding
NSUTF32StringEncoding
```
Checkout Apple's [NSString Class Reference](http://developer.apple.com/mac/library/documentation/cocoa... | [
-0.03760422021150589,
0.11098241060972214,
-0.040748026221990585,
0.18576198816299438,
0.09859059751033783,
0.13176627457141876,
0.18844634294509888,
0.0743379071354866,
-0.333003968000412,
-0.924907922744751,
-0.34774020314216614,
0.14864468574523926,
-0.35311704874038696,
-0.156272470951... | |
So I've become a reasonably proficient Rails developer, and I'm finding that my bottleneck is now my lack of understanding of more complex Ruby constructs. I'm trying to build some plugins, and looking at some complex ones out there, their OOP wizardry is Greek to me. (I never had much formal OOP training so that's par... | [
0.47810038924217224,
0.21119128167629242,
-0.2638780474662781,
0.14334627985954285,
-0.17351262271404266,
-0.24266543984413147,
0.6029140949249268,
0.26026350259780884,
-0.2219715267419815,
-0.46079444885253906,
-0.22200195491313934,
0.29107865691185,
-0.08485975116491318,
-0.1495329588651... | |
my powers without overwhelming me in the inner workings of the language?
This [Peepcode plugin patterns pdf](http://peepcode.com/products/rails-2-plugin-patterns) actually answered all my questions; what I was trying to do was write a plug-in so it was exactly the information I needed. | [
0.38222503662109375,
-0.17253072559833527,
-0.17247477173805237,
0.13536439836025238,
-0.17552880942821503,
-0.09737607836723328,
0.7548027038574219,
-0.011085646227002144,
-0.14476259052753448,
-0.4128175675868988,
0.19970370829105377,
0.3417864441871643,
-0.10091258585453033,
-0.45656996... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.