text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
need to walk through... But Big O notation says that halving the size of the problem doesn't make things more efficient (if I've understood it correctly). I could cache the state of the list at every 100th or 1000th change... but again, big O says that dividing the number of items by 'n' doesn't make things more eff...
[ 0.18520058691501617, 0.29864805936813354, 0.299886554479599, 0.04289498180150986, 0.11543257534503937, 0.06323034316301346, 0.07781455665826797, -0.23528458178043365, -0.671332597732544, -1.0060243606567383, 0.050737164914608, 0.30832988023757935, -0.06842844188213348, 0.11908984929323196,...
I'd like to know what is currently allocated after (e.g) 9'000 events. My first idea was to store, for each id, the event it was allocated and the event it was deallocated. Then to walk this list up to the first allocation whose alloc event is greater than 9000. But like I said, this would only halve the number of ite...
[ 0.38203591108322144, -0.1794058382511139, 0.12368949502706528, 0.24815982580184937, -0.08894956111907959, 0.41859397292137146, -0.15247419476509094, -0.07652229815721512, -0.5249473452568054, -0.757924497127533, -0.04454299062490463, 0.03261260315775871, 0.022463101893663406, 0.02030433528...
to get down to two cached states bounding the change you're looking for, then you walk at most X items to get to the item itself. That's O(log N), more-or-less. But more generally, reducing big O complexity is the means, not the end. If your list is generally 10,000 items then you should worry about making it fast for...
[ 0.16267487406730652, -0.05139891430735588, 0.1588255912065506, 0.1924917846918106, -0.01227000541985035, 0.3209492564201355, 0.30146393179893494, -0.08565129339694977, -0.5275862812995911, -0.8173262476921082, -0.1727948784828186, 0.0826079472899437, -0.05477974936366081, 0.083102121949195...
you just jump directly to the closest cached state and walk at most 100 items to get to the item itself. So that's a constant-time algorithm no?
[ 0.26557835936546326, -0.08493834733963013, 0.01252718735486269, 0.4759710729122162, 0.09602781385183334, 0.1513742208480835, 0.3878927230834961, 0.026577705517411232, -0.31982937455177307, -0.39010486006736755, 0.009346100501716137, 0.10181333869695663, -0.14246447384357452, -0.01688165776...
I have an Oracle table which contains event log messages for an application. We don't want this table to grow out of control and eat up too much space, so we'd like to set a cap on the number of rows that it can contain to some big number like one million. So we'd like to tell Oracle that when the table grows too larg...
[ 0.31422293186187744, 0.10814710706472397, -0.07325303554534912, 0.29170989990234375, 0.31560948491096497, -0.010720978491008282, -0.08052933216094971, -0.05261142551898956, -0.2616639733314514, -0.30368077754974365, 0.399563193321228, 0.35772648453712463, -0.2604673206806183, 0.06451942771...
but is there anything simpler? EDIT: A couple of answers have suggested solutions that involve partitions. We do not currently partition this table, although we have the ability to do so if necessary. However, from looking into the matter, it seems that even if we partition the table, we'd still need for some kind of ...
[ 0.37895628809928894, 0.016669869422912598, 0.17256534099578857, 0.4378998875617981, 0.36206209659576416, 0.03618573769927025, 0.08367621153593063, 0.06688833981752396, -0.43282440304756165, -0.7032350897789001, 0.2123694270849228, 0.2136804312467575, -0.022657612338662148, 0.18114382028579...
be to schedule a job that runs periodically (say, nightly) in order to delete the oldest rows. If you expect that you could generate a million event logs in a single day, you may want the job to run more frequently, but nightly is generally sufficient for most people. This has the advantage of being asynchronous so tha...
[ 0.3621920049190521, -0.19671784341335297, -0.011752726510167122, 0.04213272035121918, 0.15608343482017517, -0.03546791151165962, 0.22925053536891937, -0.06795338541269302, -0.37794172763824463, -0.663807213306427, -0.12427133321762085, 0.6509072780609131, -0.1888246238231659, -0.1541050374...
Is it possible to reference system environment variables (as opposed to Java system properties) in a log4j xml configuration file? I'd like to be able to do something like: ``` <level value="${env.LOG_LEVEL}" /> ``` and have it get that from the system environment variables, so I can avoid having to pass in so many...
[ 0.31141093373298645, -0.0405397042632103, 0.29832935333251953, -0.05103704333305359, -0.009686232544481754, -0.28942838311195374, 0.1586327999830246, 0.10597875714302063, -0.1101778894662857, -1.0949838161468506, 0.0009691104642115533, 0.37545788288116455, -0.3250022232532501, -0.347541123...
<Pattern>%d %p %c{1.} [%t] %m %ex%n</Pattern> </PatternLayout> </File> </Appenders> ```
[ 0.23991690576076508, -0.08149006217718124, 0.3612099885940552, -0.37902697920799255, -0.04241006076335907, 0.066899873316288, 0.1871775984764099, -0.12508516013622284, -0.20974396169185638, -0.5873411893844604, -0.21542273461818695, 0.1187492236495018, -0.5676714777946472, 0.23880091309547...
I'm an MFC programmer. I just had my first taste of Vista (on a VPC... Yup, I'm late). I should be evaluating things in depth in the coming days. On taking a casual look, I noticed two major changes: * The shell is new * User Access Control * Event Viewer has changed (would like more info on this) What other new feat...
[ 0.4391707479953766, 0.01798817329108715, 0.5639603137969971, -0.17145459353923798, 0.00247019762173295, -0.370890349149704, 0.1296655386686325, 0.2538865804672241, -0.505634605884552, -0.8081811666488647, -0.023023612797260284, 0.6769247651100159, 0.19185538589954376, 0.3082614839076996, ...
I have a "settings file" in my Winforms application called Settings.settings with a partial class for custom methods, etc. Is there a way to load / save dynamic settings based on arbitrary keys? For example, I have some ListViews in my application in which I want to save / load the column widths; Instead of creating a...
[ 0.30295416712760925, -0.1843346655368805, 0.5129818320274353, -0.0976891741156578, -0.07537072151899338, 0.05890798568725586, 0.13125808537006378, -0.17408084869384766, -0.2811289429664612, -0.8526620864868164, 0.20293894410133362, 0.782987654209137, -0.2844758629798889, 0.0574732795357704...
{ String baseKey = listView.Name; foreach (ColumnHeader h in listView.Columns) { String key = String.Format("{0}-{1}", baseKey, h.Index); this[key] = h.Width; } } } ``` When running that code I get the error **"The settings property 'TestsListView-0' was not...
[ 0.07729578018188477, 0.01733173057436943, 0.5754378437995911, -0.3412093222141266, 0.013711770065128803, 0.002773778513073921, 0.5406617522239685, -0.4747784435749054, -0.21810273826122284, -0.5056751370429993, 0.013780629262328148, 0.6625419855117798, -0.14294806122779846, 0.0822894945740...
settings in an Xml Serializable object. Ie, something that implements [IXmlSerializable](http://msdn.microsoft.com/en-us/library/system.xml.serialization.ixmlserializable.aspx) then create a single setting entry of that type in Settings.settings. A good option would probably be an Xml Serializable Dictionary. A quick ...
[ -0.10864399373531342, -0.12638413906097412, 0.6245688199996948, 0.35834741592407227, 0.09320633858442307, -0.1149570494890213, 0.13824178278446198, -0.0958988219499588, -0.1883147805929184, -0.7798179984092712, -0.1771736741065979, 0.36931371688842773, -0.3739619851112366, 0.10661990940570...
you want these settings to persist between assembly versions (ie, be upgradable) you will need to upgrade the settings on application startup. This is described in detail on [Miha Markič's](http://cs.rthand.com/blogs/blog_with_righthand/archive/2005/12/09/246.aspx) blog and [Raghavendra Prabhu's](http://blogs.msdn.com/...
[ 0.10718759149312973, 0.3321215510368347, 0.025620533153414726, -0.227207750082016, 0.6327731609344482, 0.19432158768177032, 0.24026267230510712, -0.5272783637046814, -0.5416691303253174, -0.32236331701278687, -0.5126767754554749, 0.5090972185134888, -0.23984430730342865, 0.2334633022546768...
I need to import all ad groups in a few OUs into a table in SQL Server 2008. Once I have those I need to import all the members of those groups to a different table. I can use c# to do the work and pass the data to SQL server or do it directly in SQL server. Suggestions on the best way to approach this? Arry, I don't...
[ 0.15595297515392303, 0.5656417012214661, 0.5141314268112183, -0.1431266963481903, -0.4829113781452179, -0.081746406853199, 0.15901745855808258, -0.24546335637569427, -0.01890392042696476, -0.4574175775051117, 0.28709176182746887, 0.37572407722473145, -0.40699321031570435, 0.118623420596122...
more or less sure the filter can easily be applied to your query. I'm sorry, but I cannot test it, because I have no AD around here. This one could also be a bit (but less) interesting: <http://forge.novell.com/pipermail/cldap-dev/2004-April/000042.html> Hope this helps, cheers, Matthias
[ 0.18586693704128265, 0.040230680257081985, 0.5064300894737244, 0.19675076007843018, -0.31947582960128784, -0.23780158162117004, 0.3296944499015808, -0.21737661957740784, 0.019430100917816162, -0.44617506861686707, 0.3463049829006195, 0.10107184201478958, -0.048278722912073135, 0.0570470355...
Using C#, does anyone know how to get the MarshalAsAttribute's Sizeconst value in runtime ? Eg. I would like to retrieve the value of 10. ``` [StructLayout[LayoutKind.Sequential, Pack=1] Class StructureToMarshalFrom { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)] public byte[] _value1; } ``` Yup, wit...
[ 0.05013113468885422, 0.34184104204177856, 0.35886117815971375, -0.03685920685529709, 0.2901749610900879, -0.23531204462051392, 0.3915308713912964, -0.8110945224761963, -0.24656857550144196, -0.39955243468284607, -0.2602948248386383, 0.3597135543823242, -0.16314822435379028, -0.036607805639...
Microsoft SQL Server and MySQL have an INFORMATION\_SCHEMA table that I can query. However it does not exist in an MS Access database. Is there an equivalent I can use? To build on Ilya's answer try the following query: ``` SELECT MSysObjects.Name AS table_name FROM MSysObjects WHERE (((Left([Name],1))<>"~") ...
[ -0.4478095769882202, 0.1226620301604271, 0.38422173261642456, 0.13630886375904083, -0.1901952028274536, -0.005450481548905373, -0.016364198178052902, 0.04415176063776016, -0.09593779593706131, -0.6320149898529053, -0.08958815783262253, 0.12941884994506836, -0.3662682771682739, 0.3639847934...
AND ((MSysObjects.Type) In (1,4,6)) AND ((MSysObjects.Flags)=0)) order by MSysObjects.Name ``` As there is an extra table is included that appears to be a system table of some sort.
[ -0.2644723057746887, 0.06806738674640656, 0.540800154209137, -0.05130143091082573, 0.329060822725296, 0.039092693477869034, 0.21315883100032806, -0.15519672632217407, -0.3831052780151367, -0.6232218146324158, -0.6153806447982788, 0.14004598557949066, -0.44721534848213196, 0.233840554952621...
By default if you connect to a remote SQL Server via an account that has access to say 1 of the 10 databases. You will still see in the Object Explorer all other databases, obviously due to permissions you cannot actually query them, but you can see their names. I have heard that there is a method that disable this be...
[ 0.4533829689025879, -0.009929364547133446, 0.40190184116363525, 0.3921120762825012, 0.18187423050403595, -0.3658788502216339, 0.4492388069629669, 0.34453004598617554, -0.4894687235355377, -0.6078318357467651, 0.026469741016626358, 0.5958727598190308, -0.41883185505867004, 0.263983279466629...
that only has permissions to "YourDatabse" you will still see a listing of all other databases, attempts to query will grant "select" permission denied or a similar error. For security resons, we DO NOT want users to see any database other than the ones they are mapped to. [This blog](https://web.archive.org/web/20061...
[ 0.1559743583202362, 0.024277720600366592, -0.15916530787944794, 0.16838698089122772, 0.012365227565169334, -0.3675149083137512, 0.26539984345436096, -0.12988491356372833, -0.2600913643836975, -0.2413056641817093, -0.07729383558034897, 0.2608984410762787, -0.4473891854286194, 0.241850033402...
In my javascript experience, I found that is a very common task "searching the nearest ancestor of an element with some condition (tag name, class,...)". Can the parents() method of jquery do the job? The order of returned elements of parents() is predictable? Is top-to-bottom or bottom-to-top? For the moment I use t...
[ -0.25220516324043274, -0.0673607587814331, -0.1501396894454956, -0.214406818151474, 0.2914694547653198, 0.023257331922650337, 0.19757066667079926, -0.4694349467754364, 0.0177485141903162, -0.6965135931968689, -0.15200966596603394, 0.4730360209941864, -0.2778039872646332, 0.2462667375802993...
} return null; } ``` Can someone tell me if there is a clever way to do the job? **Edit**: Since jQuery 1.3, this has been built in as the [`closest()`](http://api.jquery.com/closest) function. eg: `$('#foo').closest('.bar');` --- yep - parents() traverses up the tree. ``` <div id="a"> <div id="b"> <...
[ 0.11222540587186813, 0.32999545335769653, 0.3754635155200958, -0.4211430847644806, 0.17379797995090485, -0.07461349666118622, 0.14837045967578888, -0.02976725995540619, 0.2685055136680603, -0.6821693181991577, -0.05650792270898819, 0.2773059010505676, -0.4195893406867981, 0.144062668085098...
Over the years I have slowly developed a [regular expression](http://en.wikipedia.org/wiki/Regular_expression) that validates *most* email addresses correctly, assuming they don't use an IP address as the server part. I use it in several PHP programs, and it works most of the time. However, from time to time I get con...
[ 0.3929888606071472, 0.18799564242362976, 0.43467873334884644, 0.04296177625656128, -0.2282821387052536, -0.04892918840050697, 0.3072361946105957, 0.22944194078445435, -0.19603320956230164, -0.49198266863822937, -0.13087590038776398, 0.40281128883361816, -0.10598141700029373, -0.22939251363...
several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function. The [fully RFC 822 compliant regex](http://ex-parrot.com/%7Epdw/Mail-RFC822-Address.html) is inefficient and obscure because of its length. Fortunately, RFC 8...
[ 0.004902562126517296, 0.01550329476594925, 0.5170085430145264, 0.10299406945705414, -0.013935980387032032, -0.07128334045410156, 0.5052750706672668, 0.029227936640381813, -0.24670755863189697, -0.6704264879226685, -0.3959163725376129, 0.13012032210826874, -0.4341820180416107, -0.1440320611...
floating around the internet with a bug that allows `00` for any of the unsigned byte decimal values in a dot-delimited address, which is illegal. The rest of it appears to be consistent with the RFC 5322 grammar and passes several tests using `grep -Po`, including cases domain names, IP addresses, bad ones, and accoun...
[ -0.057893503457307816, 0.09959910064935684, 0.7432626485824585, 0.34955114126205444, 0.04739317670464516, -0.13790467381477356, 0.0884765163064003, -0.014940273016691208, -0.31817102432250977, -0.506148099899292, 0.12885507941246033, 0.09214483946561813, -0.2913135290145874, 0.439720183610...
regexp itself [![enter image description here](https://i.stack.imgur.com/YI6KR.png)](https://i.stack.imgur.com/YI6KR.png) The more sophisticated patterns in Perl and PCRE (regex library used e.g. in PHP) can [correctly parse RFC 5322 without a hitch](https://stackoverflow.com/questions/201323/what-is-the-best-regular-...
[ -0.07112357020378113, -0.2586442232131958, 0.6057530641555786, 0.21593604981899261, -0.11591470241546631, -0.16768775880336761, 0.39738115668296814, 0.04066665470600128, -0.22310735285282135, -0.21311260759830475, -0.32243210077285767, 0.5388582944869995, -0.403891384601593, -0.36780634522...
owner. People sign others up to mailing lists this way all the time. Fixing that requires a fancier kind of validation that involves sending that address a message that includes a confirmation token meant to be entered on the same web page as was the address. Confirmation tokens are the only way to know you got the ad...
[ 0.6463120579719543, 0.11557240784168243, 0.24687694013118744, 0.1443166434764862, 0.11449544131755829, -0.3802099823951721, 0.059702903032302856, -0.24332676827907562, -0.7508546710014343, -0.5320129990577698, -0.09628541022539139, -0.035469669848680496, -0.3702130913734436, 0.456580668687...
end. For PHP, you should *not* use the pattern given in [Validate an E-Mail Address with PHP, the Right Way](http://www.linuxjournal.com/article/9585) from which I quote: > There is some danger that common usage and widespread sloppy coding will establish a de facto standard for e-mail addresses that is more restrict...
[ 0.1450890153646469, 0.26046106219291687, 0.5234107375144958, 0.01715991646051407, -0.15550078451633453, -0.5737106204032898, 0.6398302912712097, 0.07560288161039352, -0.08206666260957718, -0.3598684072494507, -0.28907111287117004, 0.18454265594482422, -0.26636841893196106, 0.12781281769275...
filter. The problem with regular expressions is that telling someone that their perfectly valid e-mail address is invalid (a false positive) because your regular expression can't handle it is just rude and impolite from the user's perspective. A state engine for the purpose can both validate and even correct e-mail add...
[ 0.28806376457214355, 0.005084583070129156, 0.14965687692165375, 0.19161474704742432, -0.3355392515659332, -0.1539701670408249, 0.7678331732749939, -0.18342407047748566, 0.0018391902558505535, -0.6680870056152344, -0.02901419624686241, 0.42501100897789, -0.5943573713302612, -0.0098759634420...
Expressions](http://fightingforalostcause.net/misc/2006/compare-email-regex.php). [![Regular expression visualization](https://i.stack.imgur.com/SrUwP.png)](https://i.stack.imgur.com/SrUwP.png) [Debuggex Demo](https://www.debuggex.com/r/aH_x42NflV8G-GS7)
[ -0.3883472979068756, -0.08028175681829453, 0.21128995716571808, -0.01824851520359516, -0.19461046159267426, 0.20640498399734497, 0.6588077545166016, -0.3789129853248596, -0.19254064559936523, -0.35831716656684875, -0.7372649312019348, 0.8173364400863647, -0.43921953439712524, -0.6432676315...
I have a web application which provides Excel files via IE 7. It requests the files with an HTTP GET from a URL which returns the data with a content type of 'application/vnd.ms-excel'. It then opens the spreadsheets in an IFrame. This all works fine unless Excel is already open when a spreadsheet is downloaded. In th...
[ 0.3656628131866455, 0.2833925783634186, 0.6310859322547913, 0.06396041065454483, -0.1738831251859665, -0.32137760519981384, 0.14536933600902557, -0.06302519142627716, 0.07878406345844269, -0.6701719760894775, -0.21999415755271912, 0.25207647681236267, -0.1689489483833313, 0.413594841957092...
type. I've tried turning on the 'Ignore other applications' setting under Tools | Options | General but it didn't solve the problem. I've also tried following the steps in [this answer](https://stackoverflow.com/questions/213110/make-excel-2003-open-spreadsheets-in-new-instances/213187#213187) (as the [linked referen...
[ 0.11595115065574646, 0.1258729100227356, 0.4533276855945587, -0.13165615499019623, -0.3606792092323303, -0.17489250004291534, 0.35070714354515076, -0.3708020746707916, -0.6271288394927979, -0.20766210556030273, -0.08415339142084122, 0.642039954662323, -0.7713707089424133, -0.12037492543458...
'response' is an HttpServletResponse] However, it forces the spreadsheet to be loaded into an Excel window rather than being displayed in the IFrame... **Update:** Resetting the URL of the IFrame to blank forces the Excel instance to be disposed and fixes this problem (without requiring the `Content-Disposition` chan...
[ -0.29299256205558777, -0.27072611451148987, 0.40601471066474915, -0.04689154401421547, -0.3041304647922516, -0.04509248211979866, 0.21807922422885895, -0.11962433159351349, -0.10445887595415115, -0.6337623596191406, -0.37803494930267334, 0.3627203702926636, -0.5268226861953735, -0.01767226...
I'm trying to get the following code working: ``` string url = String.Format(@"SOMEURL"); string user = "SOMEUSER"; string password = "SOMEPASSWORD"; FtpWebRequest ftpclientRequest = (FtpWebRequest)WebRequest.Create(new Uri(url)); ftpclientRequest.Method = WebRequestMethods.Ftp.ListDirectory; ftpclientRe...
[ 0.05685221403837204, -0.058217085897922516, 0.9513623714447021, -0.24863985180854797, 0.0641215369105339, -0.07807882875204086, 0.7366169691085815, -0.20419622957706451, -0.1347796469926834, -0.863795816898346, -0.11725803464651108, 0.4617176055908203, -0.34195834398269653, 0.2680484652519...
Is that true? Is there a way to disable that? EDIT: When I login from a command line I am in the correct directory: ftp> pwd 257 "/" is current directory I just tested this on one of our dev servers and indeed there is a CWD issued by the .NET FtpWebRequest: ``` new connection from 172.16.3.210 on 172.16.3.21...
[ 0.45881661772727966, 0.03525709733366966, 0.42544862627983093, -0.011899387463927269, -0.18501581251621246, -0.057631999254226685, 0.6626179218292236, -0.2631262242794037, -0.16638144850730896, -0.7579387426376343, -0.016187164932489395, 0.5082666873931885, -0.2539963722229004, 0.191493213...
current directory. testuser, CWD / testuser, change directory '/' -> 'D:\testfolder' --> Access allowed. testuser, 250 CWD command successful. "/" is current directory.** testuser, TYPE I testuser, 200 Type set to I. testuser, PORT 172,16,3,210,4,127 testuser, 200 Port command successful. testuser, NLST testuser, 150 O...
[ 0.06614960730075836, -0.06042300909757614, 0.7293001413345337, -0.16408608853816986, 0.36034151911735535, 0.19883401691913605, 0.26200297474861145, -0.16675111651420593, -0.12437436729669571, -0.6563698053359985, -0.23450417816638947, 0.5438870787620544, 0.01414219755679369, 0.396865129470...
readInitalResponseOnConnect = true) Line 143 C# System.dll!System.Net.FtpWebRequest.TimedSubmitRequestHelper(bool async) Line 1122 + 0x13 bytes C# System.dll!System.Net.FtpWebRequest.SubmitRequest(bool async = false) Line 1042 + 0xc bytes C# System.dll!System.Net.FtpWebRequest.GetResponse() Line 649 C# ``` There's...
[ -0.03322873264551163, -0.1624850332736969, 0.8920059204101562, -0.05647144094109535, -0.011631937697529793, 0.18960942327976227, 0.4913090467453003, -0.19502674043178558, -0.21166165173053741, -0.8042311668395996, -0.12805622816085815, 0.5195719003677368, -0.4892128109931946, 0.08879123628...
= m_LoginDirectory+newServerPath; } m_NewServerPath = newServerPath; commandList.Add(new PipelineEntry(FormatFtpCommand("CWD", newServerPath), PipelineEntryFlags.UserCommand)); } ``` Upon the first connection to the server m\_PreviousServerPath is always null, the value of newServerPath is "/" and is ...
[ 0.12310314178466797, -0.38662952184677124, 0.873572051525116, -0.42227521538734436, 0.19461330771446228, 0.16559532284736633, 0.5120713710784912, 0.01095819566398859, -0.19907046854496002, -0.6622055172920227, -0.331438273191452, 0.7917008399963379, -0.2219810038805008, 0.2817029654979706,...
unfortunately you can't override this behaviour because it's burned in the source.
[ 0.7851179838180542, 0.49377843737602234, -0.03842348977923393, -0.10315757989883423, -0.18019843101501465, -0.46062761545181274, 0.552256166934967, -0.01670799031853676, 0.24394123256206512, -0.2091401219367981, 0.14338409900665283, 0.5320203304290771, 0.043516650795936584, 0.1684875786304...
I am getting the following error when I get to the line that invokes a REALLY BASIC web service I have running on Tomcat/Axis. ``` Element or attribute do not match QName production: QName::=(NCName':')?NCName ``` Have I got something wrong with QName?- I can't even find any useful information about it. My client c...
[ 0.5340330004692078, 0.09652164578437805, 0.073270782828331, -0.16817159950733185, -0.04145383462309837, -0.15813513100147247, 0.7874147891998291, -0.11144333332777023, 0.326677143573761, -0.6447429060935974, -0.032561447471380234, 0.5236465930938721, -0.468031108379364, 0.27284690737724304...
Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName( new QName("http://testPackage.fc.com/, doBasicStuff") ); String ret = (String) call.invoke( new Object[] {"some ...
[ 0.009029586799442768, -0.3319029211997986, 0.5463542938232422, -0.5712817311286926, 0.056385308504104614, 0.31352144479751587, 0.7119906544685364, -0.4119276702404022, 0.0048626866191625595, -0.7241964340209961, -0.6582549214363098, 0.17184093594551086, -0.4602550268173218, 0.3156737983226...
}catch(Exception e){ System.err.println(e.toString()); } } } ``` My web serivce code is really basic - just a simple class that returns your input string with a bit of concat text: ``` public String doBasicStuff(String message) { return "This is your message: " + message; } ...
[ 0.12381382286548615, -0.01826215349137783, 0.13893112540245056, -0.19024331867694855, -0.047730304300785065, -0.260922372341156, 0.5014678835868835, -0.14759907126426697, 0.17173083126544952, -0.5706354975700378, 0.035194553434848785, 0.46417197585105896, -0.41780710220336914, 0.1091930791...
the namespace, one the localname. The documentation will typically contain a description on how to use that class.
[ -0.07430784404277802, -0.2762451767921448, -0.135769784450531, 0.3670612871646881, 0.02082529477775097, -0.05377917364239693, -0.007882850244641304, -0.026909057050943375, -0.014683128334581852, -0.6797305345535278, -0.42727065086364746, 0.3429861068725586, -0.07250925153493881, 0.31853166...
I would like to control options on the debugger without using the debugging GUI's, preferably from inside the code being debugged. I would think that would be quite difficult, but maybe my debugged code can request a service from independent code that will communicate with the debugger. This relates to [another questi...
[ 0.3989946246147156, 0.054457519203424454, -0.20669600367546082, 0.08172350376844406, -0.12494108080863953, -0.3117732107639313, 0.2729819715023041, -0.19645318388938904, -0.5497347712516785, -0.2942892611026764, -0.2706930935382843, 0.7767488956451416, -0.25232285261154175, -0.084478490054...
definitely need some new form of communication with VS, maybe a custom add-in. I don't think an independent service would fundamentally help here. The biggest problem is that your code will stop running when the debugger breaks.
[ 0.5975878238677979, 0.1227453351020813, 0.10059621185064316, 0.5339275002479553, 0.014374074526131153, -0.21833039820194244, 0.6248477697372437, 0.377421498298645, -0.10558242350816727, -0.4312715232372284, 0.17539294064044952, 0.5636865496635437, -0.03148847818374634, 0.14453727006912231,...
Our Test DB is suddenly missing rows. We want them back. Is there a way to sift through everything that has happened to the database today? Each SQL statement? I presume this kind of stuff is in the transaction log, but am not sure how to view it. Is there a way to undo delete operations? BTW: Yes, we do have a back...
[ 0.3280390202999115, 0.19572332501411438, 0.19158855080604553, 0.08628269284963608, 0.0257254708558321, -0.13114286959171295, 0.4803396761417389, -0.09742125123739243, -0.14547553658485413, -0.5458356142044067, -0.05585473030805588, 0.6404352188110352, -0.13887418806552887, 0.21427199244499...
I've done this a **million** times ... setting up a developer work station. Is there a best practices, or installation checklist for installing Microsoft development software on a work station? What about applying updates and/or service packs? Is there a specific order for doing this, in hopes of minimizing any insta...
[ 0.4409653842449188, 0.48960956931114197, 0.1395415961742401, -0.08671867102384567, -0.02550126612186432, -0.0888037383556366, 0.1531389206647873, 0.14822998642921448, -0.02487429603934288, -0.56354159116745, -0.06619653105735779, 0.8191139101982117, 0.09184884279966354, -0.1635430008172989...
another topic! =) Also, do you use any software like [Ghost](http://www.symantec.com/norton/ghost) to create images of work station? Some easy way to restore your work station. I would use the following and this order IS KEY if you want to do ASP.NET Development without issue. * Operating System * IIS for the OS <- I...
[ 0.25854894518852234, 0.1363796889781952, 0.44028884172439575, 0.37375590205192566, -0.00374875171110034, -0.3041572570800781, 0.2108025997877121, 0.08001205325126648, -0.45929741859436035, -0.782968282699585, -0.06172097846865654, 0.4927879273891449, -0.06128009781241417, 0.137341171503067...
third party tools for development environments (Telerik, DevExpress, etc) I have found that with this format, you will NOT have any issues, but if you change the order, I have had bad things happen before. Especially important is the IIS setup piece!
[ 0.42062851786613464, -0.18377797305583954, -0.07382409274578094, 0.3167598843574524, -0.15428441762924194, -0.7293838858604431, 0.14193977415561676, -0.08614790439605713, -0.03605449199676514, -0.9792330265045166, -0.10885701328516006, 0.651340126991272, -0.28650158643722534, -0.2566029727...
I need to add multiple empty divs to a container element using jQuery. At the moment I am generating a string containing the empty html using a loop ``` divstr = '<div></div><div></div>...<div></div>'; ``` and then injecting that into my container: ``` $('#container').html(divstr); ``` Is there a more elegant wa...
[ 0.10331717133522034, -0.08416204899549484, 0.2842804789543152, -0.15149855613708496, -0.10142180323600769, -0.13236603140830994, 0.2631952166557312, -0.6452458500862122, -0.1570555865764618, -0.6954663991928101, -0.32805076241493225, 0.45837217569351196, -0.3839370906352997, 0.173355042934...
10, fragment = document.createDocumentFragment(), div = document.createElement('div'); while (i--) { fragment.appendChild(div.cloneNode(true)); } $('#container').append(fragment); ``` I realise it's not making a lot of use of jQuery in building up the fragment, but I've run a few tests and I can't see...
[ 0.11335795372724533, 0.24866949021816254, 0.3461228311061859, -0.24480833113193512, 0.08322431892156601, -0.0022260898258537054, 0.4166114330291748, -0.23472435772418976, -0.17435885965824127, -0.6829700469970703, -0.28265252709388733, 0.37588417530059814, -0.22914104163646698, 0.297055333...
I've been working on database-driven web applications for a few years now and recently took on a project involving a CMS that is XML-capable. This has led me to think about the usage of XML/XSLT in general and in what situations it would be more useful than the approach I've always used, which is storing all of my data...
[ 0.37119510769844055, 0.3275434672832489, 0.1661476045846939, 0.1884135901927948, 0.0984078124165535, -0.15838976204395294, -0.2718055248260498, 0.08456254750490189, -0.3509810268878937, -0.5612275004386902, 0.09751152247190475, 0.38297903537750244, -0.10105093568563461, 0.1169741302728653,...
database would be preferable? To quote [This Book](http://www.amazon.com/exec/obidos/tg/detail/-/0321150406/102-0503816-7711357) (Effective XML: 50 Specific Ways to Improve Your XML): > “XML is not a database. It was never > meant to be a database. It is never > going to be a database. Relational > databases are pr...
[ -0.02825869992375374, 0.10856829583644867, 0.12926733493804932, 0.5219289660453796, 0.1526743471622467, -0.31191036105155945, -0.021810870617628098, -0.06941206753253937, -0.22572438418865204, -0.7088136672973633, 0.1304093897342682, 0.5108242630958557, -0.334186851978302, 0.16082046926021...
like > one.“ I think this sums it up, if a little bluntly. XML is a data interchange format. One can have XML parsing libraries that can query a DOM with XPath expressions but that is not the same thing as a DBMS. You can build a DBMS with a DOM/XPath interface but to get ACID properties or scale to large data sets y...
[ 0.35144945979118347, -0.0950036272406578, 0.3630005121231079, 0.306256502866745, -0.4286288619041443, -0.41077545285224915, 0.12703873217105865, 0.029627660289406776, -0.07213123887777328, -0.6059721112251282, -0.10539395362138748, 0.4358013868331909, -0.5479586124420166, 0.136914238333702...
I am using wordpress and use custom permalink structure: /%category%/%postname%/ My problem is that a decent number of people link to the site without including the trailing slash in the URL, so users get a 404 page. I'm using the default .htaccess file that comes with wordpress because no solution I've tried has wor...
[ 0.42933398485183716, 0.3471008241176605, 0.19913843274116516, -0.0661262646317482, -0.17494013905525208, -0.196245014667511, 0.48488086462020874, 0.5226670503616333, -0.0887954980134964, -0.6684842705726624, -0.0014920171815901995, 0.28846150636672974, -0.16703788936138153, 0.3728617429733...
much! A very good reference for all things .htaccess is PerishablePress.com <http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/>
[ 0.44770339131355286, -0.04882131889462471, 0.39212724566459656, 0.3125467002391815, 0.0550554133951664, -0.3556341230869293, 0.4740429222583771, 0.3692450523376465, -0.24171018600463867, -0.03917733207345009, 0.11707674711942673, 0.447943776845932, 0.33684423565864563, 0.23724281787872314,...
I'd like to do something like this: ``` Dim Foo as String = "a,b,c,d,e" Dim Boo as List(of String) = Foo.Split(","c) ``` Of course `Foo.Split` returns a one-dimensional array of `String`, not a generic `List`. Is there a way to do this without iterating through the array to turn it into a generic `List`? If you don'...
[ 0.507110595703125, -0.019549919292330742, 0.5819055438041687, -0.11366939544677734, 0.0030827608425170183, -0.15157000720500946, -0.127784863114357, -0.2953689694404602, -0.31561875343322754, -0.2169729322195053, -0.1582231968641281, 0.7080915570259094, -0.43715202808380127, 0.236615762114...
We have a C# service that is deployed to a remote customer system. The application writes a substantial amount of "diagnostic" information to the console (i.e. Console.WriteLine()). The service isn't "doing what it should." How can we capture the console output from the service in another application? A WinForm versio...
[ 0.28230246901512146, -0.16393861174583435, 0.544849693775177, 0.18437325954437256, 0.16233159601688385, -0.18759725987911224, 0.35156136751174927, 0.0950504019856453, 0.03592142462730408, -0.6459770798683167, -0.17292897403240204, 0.5645690560340881, -0.2805473506450653, -0.033766333013772...
operations. Or, at least, it should. The service doesn't seem to be pulling items from MSMQ when the WinForm version does. So, writing the messages that are going to the console could be problematic. Are you able to change the service code *at all*? If so, using Console.SetOut to write to a file instead would be the mo...
[ 0.0177072212100029, -0.4244177043437958, 0.42604073882102966, 0.09348565340042114, 0.22677980363368988, -0.03882916271686554, 0.4828656017780304, 0.006790969055145979, -0.35304102301597595, -0.7129129767417908, -0.4019533097743988, 0.7489790320396423, -0.42844125628471375, -0.0457588061690...
What is the best jQuery status message plugin? I like [jGrowl](http://plugins.jquery.com/project/jgrowl) and [Purr](http://plugins.jquery.com/project/purr), but jGrowl doesn't have the feature to remain sticky (not close automatially) and Purr doesn't seem to work right in IE 6. I would like to show messages like... ...
[ -0.022889338433742523, -0.1796419769525528, 0.3984909653663635, -0.24954195320606232, -0.5096893310546875, -0.261538565158844, 0.23785434663295746, 0.46037182211875916, 0.09257141500711441, -0.4865625500679016, -0.07886509597301483, 0.7575910687446594, -0.13800662755966187, -0.275814116001...
notice each time any page is visited.
[ 0.22500820457935333, 0.2196362316608429, 0.28976762294769287, -0.07831252366304398, -0.06457741558551788, -0.41486334800720215, 0.26130205392837524, 0.6513345837593079, -0.4864996671676636, -0.6948294639587402, -0.449980765581131, -0.054709624499082565, 0.032287925481796265, 0.124774105846...
In ASP.NET, I'm looking for a way to audit a user leaving my application. To be specific, I'd like to insert a 'logout' record in an audit table in SQL Server when the user's session is abandoned/destroyed for any reason (not necessarily because of a call to session.abandon) I have a 'SessionHelper' class that manages...
[ 0.1338614821434021, -0.02259225957095623, 0.12545470893383026, -0.001595888170413673, -0.1147797629237175, -0.420584499835968, 0.19589942693710327, 0.20750920474529266, -0.46958211064338684, -0.8196694254875183, 0.21754831075668335, 0.38484346866607666, -0.09281214326620102, 0.162729829549...
implementing IDisposable in the SessionHelper, but I don't know where to call it so that it always gets called. What is the proper way to audit a user leaving your ASP.NET application? Thank you! The Session\_End event is only fired if you have InProc sessions. SQL or state server session management will not fire thi...
[ 0.2967401444911957, 0.014533307403326035, 0.21015794575214386, 0.20203222334384918, 0.057212669402360916, -0.6653181314468384, 0.5204269289970398, -0.25310075283050537, -0.24927359819412231, -0.6252445578575134, 0.09504401683807373, 0.7005314826965332, -0.3241688013076782, -0.0213402155786...
I already asked the question), so you can't use a job to check when they are destroyed. The next best thing would be to have a "last access time" stored somewhere for your users and use that to detect a timeout of the session. The implementation of such a job is complicated though (you can miss logout events if a user...
[ 0.15449975430965424, 0.04033888131380081, 0.09836138039827347, 0.15036629140377045, 0.17571163177490234, -0.25573039054870605, 0.39460256695747375, 0.03757443279027939, -0.2691688537597656, -0.6797301769256592, 0.135949969291687, 0.441179484128952, -0.04290387034416199, 0.19474120438098907...
I have a Java applet that runs inside a forms-authenticated aspx page. In the .NET 1.1 version of my site, the applet has access to the session cookie and is able to retrieve a file from the server, but in the .NET 2.0 version it fails to authenticate. I have seen a couple of forum posts elsewhere that state that 2.0 ...
[ 0.2065158486366272, 0.2170916199684143, 0.13494639098644257, -0.1575508713722229, -0.22059156000614166, -0.4542183578014374, 0.4770580232143402, -0.0034897616133093834, -0.17199137806892395, -0.7916758060455322, 0.14714711904525757, 0.33128419518470764, -0.30300891399383545, -0.02691677026...
I figured it was valuable to have the correct answer here. Filip is confusing server-side Java with client-side Java. He is correct that you cannot share sessions between two server-side platforms, such as Java (J2EE) and ASP.Net without using a custom approach. However, applets are client-side and therefore should b...
[ 0.3007103204727173, 0.05909255892038345, 0.2802497148513794, 0.004041507374495268, -0.2534141540527344, -0.2507774531841278, 0.45761850476264954, 0.09766086935997009, -0.37539470195770264, -0.9110926985740662, -0.08793778717517853, 0.43695589900016785, -0.3705402612686157, 0.20840607583522...
it in the configuration in newer versions of ASP.Net, in previous versions the solution was to add the following code to your Global.asax file: ``` protected void Application_EndRequest(object sender, EventArgs e) { /** * @note Remove the HttpOnly attribute from session cookies, otherwise the * Java ...
[ -0.3046030104160309, -0.1936958134174347, 0.5018113255500793, -0.19615155458450317, -0.0027900959830731153, -0.21390430629253387, 0.5043030977249146, 0.05990472435951233, -0.39387843012809753, -0.8384893536567688, -0.04754225164651871, 0.35686787962913513, -0.2728079557418823, 0.1674818843...
For more information on the HttpOnly attribute see: * * http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/aspnet.aspx * http://msdn2.microsoft.com/en-us/library/system.web.httpcookie.httponly.aspx */ if (Response.Cookies.Count > 0) { foreach (string lNa...
[ -0.23111188411712646, -0.3498683571815491, 0.5771439671516418, -0.21669045090675354, 0.17138852179050446, 0.06886197626590729, 0.11729983240365982, -0.32163533568382263, -0.012842661701142788, -0.7287400364875793, -0.16709603369235992, 0.3167858123779297, -0.11512181907892227, 0.0326827429...
lName.ToLower() == "asp.net_sessionid") { Response.Cookies[lName].HttpOnly = false; } } } } ``` Note that even with this fix, not all browser/OS/Java combinations can access cookies. I'm currently researching an issue with session cookies not being accessible on Fir...
[ 0.23920027911663055, -0.0022608009167015553, 0.6008619070053101, -0.4037031829357147, 0.0453389473259449, -0.32137900590896606, 0.524665892124176, -0.10781379044055939, -0.12582361698150635, -0.9490455389022827, -0.08293978869915009, 0.7989983558654785, -0.3574140667915344, 0.0140781030058...
the session ID gets passed to the applet as a parameter, and then either gets embedded into the request URL (requires URL sessions to be turned on in the server-side configuration) or sent as a manually-set cookie.
[ 0.0403410941362381, -0.11874718964099884, 0.35928335785865784, 0.2468591034412384, 0.14887647330760956, -0.09528416395187378, 0.12115785479545593, 0.18344485759735107, 0.06593562662601471, -0.5134438872337341, -0.5285101532936096, 0.4329814016819, -0.02540070377290249, 0.3891233801841736, ...
I've got an image library on Amazon S3. For each image, I md5 the source URL on my server plus a timestamp to get a unique filename. Since S3 can't have subdirectories, I need to store all of these images in a single flat folder. Do I need to worry about collisions in the MD5 hash value that gets produced? Bonus: How...
[ 0.08192306756973267, 0.07978595793247223, 0.2849957346916199, 0.014826967380940914, -0.35186636447906494, 0.31725144386291504, 0.4665087163448334, -0.2518785297870636, -0.32287731766700745, -0.6236714720726013, 0.0305697713047266, 0.41752952337265015, -0.13020294904708862, 0.08667880296707...
sextillion 463 quintillion 374 quadrillion 607 trillion 431 billion 768 million 211 thousand 456. However if you keep all the hashes then the probability is a bit higher thanks to [birthday paradox](http://en.wikipedia.org/wiki/Birthday_paradox). To have a 50% chance of any hash colliding with any other hash you need ...
[ 0.011520002968609333, -0.1127239465713501, 0.6217668056488037, 0.1845533400774002, -0.2758592963218689, 0.2985425889492035, 0.403885155916214, 0.3372392952442169, -0.4506647288799286, -0.32137855887413025, -0.012608440592885017, 0.18083108961582184, -0.22649610042572021, 0.5950208902359009...
I have a one-dimensional array of strings in JavaScript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety JavaScript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only way...
[ 0.12025627493858337, 0.1918095201253891, 0.3291439712047577, -0.2971053719520569, -0.015490577556192875, 0.027191532775759697, 0.23149044811725616, -0.24152925610542297, -0.3621225357055664, -0.4246041774749756, -0.09260784089565277, 0.4044029414653778, -0.6115474700927734, 0.1522037237882...
I would like to look at some examples of some good form layouts (web-based) that have a lot of input fields. I do a lot of web application development and a lot of my forms are input element heavy so I am always looking for good ideas on how to display my forms. For example I have a few list boxes and a lot of text box...
[ 1.0943619012832642, 0.22250083088874817, -0.027329551056027412, -0.098078653216362, -0.17188353836536407, -0.1593029499053955, -0.09534728527069092, 0.21044650673866272, -0.2548654079437256, -0.6958927512168884, 0.2887706160545349, 0.2064232975244522, 0.12982434034347534, 0.036650817841291...
When manually generating a JSON object or array, it's often easier to leave a trailing comma on the last item in the object or array. For example, code to output from an array of strings might look like (in a C++ like pseudocode): ``` s.append("["); for (i = 0; i < 5; ++i) { s.appendF("\"%d\",", i); } s.append("]"...
[ -0.011599204502999783, -0.17917312681674957, 0.43198198080062866, -0.2881042957305908, -0.10940592736005783, -0.06864148378372192, 0.17712309956550598, -0.06970978528261185, -0.2209659069776535, -0.23895637691020966, -0.4073876142501831, 0.1949501484632492, -0.6764271259307861, -0.02436256...
before the actual value, so you end up with code that looks like this: ``` s.append("["); for (i = 0; i < 5; ++i) { if (i) s.append(","); // add the comma only if this isn't the first entry s.appendF("\"%d\"", i); } s.append("]"); ``` That extra one line of code in your for loop is hardly expensive... Another a...
[ 0.13936582207679749, 0.11369535326957703, 0.5059478878974915, -0.40596967935562134, -0.05852358415722847, 0.05604178085923195, 0.3993193209171295, -0.4353595972061157, -0.2691567838191986, -0.48572421073913574, -0.2560521364212036, 0.491301029920578, -0.3503936231136322, 0.0594125948846340...
;->). Doesn't work well with an array unfortunately.
[ 0.017428729683160782, 0.0035541558172553778, 0.26593801379203796, -0.23339688777923584, -0.26936742663383484, -0.0996200293302536, 0.27092626690864563, -0.016643576323986053, 0.0769546627998352, -0.604813814163208, -0.1777183562517166, 0.4499368965625763, -0.21171434223651886, 0.0202484242...
We are using standard asp.net forms authentication. Certain pages require a user to be logged in; and least some of these pages are delivered by https. There is a search control at the top of each page. When this is used, we don't care whether the user's session has expired, even if the current page requires a log in. ...
[ 0.37795159220695496, 0.02715601585805416, 0.7128643989562988, 0.08307918906211853, 0.05970194935798645, -0.3806891143321991, 0.3138519525527954, -0.11096668988466263, -0.17037728428840637, -0.7258754968643188, -0.2034425437450409, 0.12623870372772217, 0.008916227146983147, -0.0219600237905...
best way of bypassing the security here? I have considered posting to a different page using the PostBackUrl property, but if this is not https you get the "you are posting data to an unsecure connection" message, which users don't like. Thanks for any help. Edit: thanks Nick for your suggestion of using a GET on the...
[ 0.4569668173789978, -0.0837193951010704, 0.10939215868711472, 0.46501272916793823, -0.25726431608200073, -0.27413409948349, 0.6416680216789246, 0.10366149246692657, -0.22320891916751862, -0.8402108550071716, -0.1512477993965149, 0.46326032280921936, -0.07509467750787735, 0.1758039444684982...
mechanism.) As suggested in other answers the most correct way to do this would be to have the search input control in a separate form which has a method of get and an action of searchresults.aspx. However this is difficult with aspx as you can only have one server-side form on a page. In the end the solution I came t...
[ 0.04865570366382599, -0.27966630458831787, 0.6426138281822205, 0.33059296011924744, -0.17028698325157166, -0.11856184899806976, 0.32223063707351685, -0.5257743000984192, -0.4063149392604828, -0.5342843532562256, -0.045288778841495514, 0.44502946734428406, -0.15815255045890808, -0.050045039...
and redirected to the search results page. This means that all the authentication / authorisation modules are bypassed as we have already called a redirect to the (unsecured) search results page before they are triggered. It's slightly brittle but for us it works very well.
[ 0.11349991708993912, 0.0384259931743145, 0.4969053864479065, 0.13225840032100677, 0.2067451775074005, -0.40275800228118896, 0.49693235754966736, -0.1957276612520218, -0.18766000866889954, -0.21500158309936523, -0.26325860619544983, 0.6052396893501282, -0.09495756030082703, -0.0055288476869...
I'm trying to run a particular JUnit test by hand on a Windows XP command line, which has an unusually high number of elements in the class path. I've tried several variations, such as: ``` set CLASS_PATH=C:\path\a\b\c;C:\path\e\f\g;.... set CLASS_PATH=%CLASS_PATH%;C:\path2\a\b\c;C:\path2\e\f\g;.... ... C:\apps\jdk1.6...
[ 0.08490344882011414, -0.013493022881448269, 0.10359514504671097, -0.19964450597763062, -0.12238327413797379, -0.05007113143801689, 0.4392385482788086, -0.08316268771886826, 0.2845863997936249, -0.8812234401702881, 0.03452281653881073, 0.5081909894943237, -0.22760669887065887, -0.1000962331...
my directory structure to something more reasonable, those types of solutions are out for now. I was just trying to gen up a quick test against this project and run it on the command line, and the console is stonewalling me. Help! The Windows command line is very limiting in this regard. A workaround is to create a "pa...
[ 0.24065154790878296, 0.15963824093341827, 0.14544536173343658, 0.14880475401878357, 0.061163514852523804, -0.3644147515296936, 0.42672035098075867, 0.13651689887046814, -0.1105005070567131, -0.8952118158340454, 0.3094986379146576, 0.7344092130661011, -0.24942646920681, 0.04907700791954994,...
actual resources together. As I recall, the disk paths can be relative to the *pathing jar* itself. So the `Manifest.mf` might look something like this: ``` Class-Path: this.jar that.jar ../lib/other.jar ``` If your *pathing jar* contains mainly foundational resources, then it won't change too frequently, but you w...
[ -0.000559033767785877, -0.10374247282743454, 0.008588645607233047, 0.38455304503440857, 0.10881149023771286, -0.10826800763607025, -0.14380094408988953, 0.09248855710029602, -0.48940572142601013, -1.018271565437317, 0.011283759959042072, 0.7283434867858887, -0.08725534379482269, -0.0469284...
**ASPX Code** ``` <asp:RadioButtonList ID="rbServer" runat="server" > <asp:ListItem Value=<%=ServerDeveloper%>> Developer </asp:ListItemv <asp:ListItem Value="dev.ahsvendor.com"> dev.test.com</asp:ListItem> <asp:ListItem Value="staging.ahsvendor.com"> staging.test.com</asp:ListItem> </asp:RadioButtonList> `...
[ 0.43426698446273804, 0.10931243002414703, 0.4081283509731293, -0.15943226218223572, 0.1456749588251114, -0.40378209948539734, 0.7356533408164978, -0.5694642663002014, 0.02467361092567444, -0.3949158489704132, -0.01161267515271902, 0.7051388025283813, -0.15224462747573853, 0.121404536068439...
ServerDeveloper)); %> <asp:RadioButtonList ID="rbServer" runat="server"> <asp:ListItem Value="Blah">Blah</asp:ListItem> </asp:RadioButtonList> </div> ``` Note that the code block has to be *above* the markup - if you put it below, it doesn't seem to work. Note also that the const will have to be protected in orde...
[ 0.13937315344810486, 0.017432190477848053, 0.7085044980049133, -0.18695206940174103, -0.20121343433856964, -0.5953993201255798, 0.7085661888122559, -0.23833081126213074, -0.09520840644836426, -0.4119276702404022, 0.046306345611810684, 0.5581536293029785, -0.2745683491230011, 0.355284780263...
Ok, strange setup, strange question. We've got a Client and an Admin web application for our SaaS app, running on asp.net-2.0/iis-6. The Admin application can change options displayed on the Client application. When those options are saved in the Admin we call a Webservice on the Client, from the Admin, to flush our ca...
[ 0.3058450222015381, 0.010721017606556416, 0.18404066562652588, 0.17570379376411438, 0.17245186865329742, 0.003998651169240475, 0.06240489333868027, 0.0964704230427742, -0.5159979462623596, -0.7112244367599487, 0.06043066084384918, 0.15492114424705505, -0.03917146101593971, 0.20415577292442...
is appreciated), but **my question is:** is there any way to target/iterate through each Worker Processes via a web request? Would it be: ``` rbServer.Items.Add(ServerDeveloper) ``` Ok, so since you want to do it from presentation...It is possible, but horribly ugly: ``` <div> <% rbServer.Items.Add(new ListItem("De...
[ 0.21164605021476746, 0.2081013172864914, 0.44491511583328247, -0.29008612036705017, -0.08676087111234665, -0.335534006357193, 0.5874701142311096, -0.3141150176525116, -0.07840139418840408, -0.566897451877594, -0.000027897991458303295, 0.5559800863265991, -0.28858864307403564, 0.35031160712...
I just asked [this question](https://stackoverflow.com/questions/201686/linq-to-sql-select-optimization). Which lead me to a new question :) Up until this point, I have used the following pattern of selecting stuff with Linq to SQL, with the purpose of being able to handle 0 "rows" returned by the query: ``` var pers...
[ -0.31294673681259155, 0.037609368562698364, 0.3693424165248871, -0.16653850674629211, -0.03456219658255577, 0.05228776857256889, 0.04929999262094498, -0.5223645567893982, -0.17605212330818176, -0.4344636797904968, -0.22930482029914856, 0.470755934715271, -0.15238885581493378, 0.04250637814...
person = from p in [DataContextObject].Persons where p.PersonsID == 1 select new { p.PersonsID, p.PersonsAdress, p.PersonsZipcode }; // Under the hood, this pattern generates a query which selects specific // columns which will be faster than selecting all columns as the above // snippet of c...
[ -0.3428976237773895, -0.07297652214765549, 0.3240097761154175, 0.16979780793190002, -0.16149230301380157, 0.30964553356170654, 0.36273878812789917, -0.39924564957618713, -0.1804370880126953, -0.6664078235626221, -0.06348554790019989, 0.5318616032600403, -0.06559333950281143, -0.10773608088...
the result of the query to a variable (`this._user`) declared with the type of `[DataContext].User`. ``` this._user = (from u in [DataContextObject].Users where u.UsersID == [Int32] select new { u.UsersID }).FirstOrDefault(); ``` *Compilation error: Cannot implicitly convert type "Anonymo...
[ -0.08973973989486694, -0.09721802175045013, 0.3452357053756714, -0.16587522625923157, 0.04600552096962929, 0.13393600285053253, 0.2312605082988739, -0.305867075920105, -0.07190001010894775, -0.5948562026023865, -0.22810757160186768, 0.6127404570579529, -0.48331087827682495, 0.2389876842498...
only specific columns.
[ -0.006097530014812946, 0.3015643358230591, 0.08561151474714279, 0.0906067043542862, -0.2934586703777313, 0.007864894345402718, -0.02926611714065075, 0.045744530856609344, -0.07010164856910706, -0.35401540994644165, -0.1537315398454666, -0.01742219366133213, -0.5171105265617371, -0.23994299...
i have the following script ``` import getopt, sys opts, args = getopt.getopt(sys.argv[1:], "h:s") for key,value in opts: print key, "=>", value ``` if i name this getopt.py and run it doesn't work as it tries to import itself is there a way around this, so i can keep this filename but specify on import that i ...
[ 0.24091878533363342, 0.08894775062799454, 0.31375664472579956, -0.1766199767589569, 0.025988664478063583, 0.07811786979436874, 0.30908462405204773, -0.16379795968532562, -0.3393703103065491, -0.7945775985717773, -0.2925281226634979, 0.7162796258926392, -0.5610473155975342, -0.2809668481349...
sys.path to modify the library loading order ``` ~# cat getopt.py print "HI" ~# python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> import getopt HI ~# python Python 2.5.2 (r252:...
[ -0.09309867024421692, 0.1712116152048111, 0.5247619152069092, -0.10551992803812027, 0.20860756933689117, 0.1250646561384201, -0.06423244625329971, -0.2523933947086334, -0.2570483088493347, -0.4446351230144501, -0.6031684279441833, 0.6879065036773682, -0.5833454728126526, -0.096800550818443...
print key, "=>", value ```
[ -0.1289600133895874, 0.26730433106422424, 0.2195831686258316, 0.03314852714538574, 0.34773045778274536, 0.05560554563999176, 0.13045381009578705, -0.13144643604755402, 0.056944478303194046, -0.17170298099517822, -0.3997909724712372, 0.5033494830131531, -0.39811110496520996, 0.0766378715634...
How to hide the default toolbar and to disallow the default context menu of the `DocumentViewer` control? You can prevent the default context menu from appearing by handling the `ContextMenuOpening` event, and setting `ContextMenuEventArgs.Handled` to true. As for the toolbar, I'm not sure - maybe you could somehow ch...
[ 0.30622005462646484, -0.07300835847854614, 0.35423749685287476, 0.14898286759853363, 0.13384494185447693, -0.2871687114238739, 0.5064802169799805, -0.03834531456232071, -0.00391375832259655, -0.5104666352272034, 0.05461834371089935, 1.0974704027175903, -0.08854863047599792, -0.204859152436...
I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance. [Getting Started with Panda](http://pandastream.com/docs/getting_started) I'm...
[ 0.31030499935150146, 0.3363795876502991, 0.45934194326400757, -0.18045228719711304, -0.11059737950563431, -0.2813396155834198, 0.20766356587409973, -0.1041017472743988, -0.40290239453315735, -0.5376769304275513, -0.029058730229735374, 0.7546255588531494, 0.02833460457623005, -0.02076680772...
to 600 in order to get into my personal instance last night, and experimented at length setting the permissions to 0 and even generating new key strings, but nothing seems to be working. Any help at all would be a great help! --- Hm, it seems as though unless permissions are set to 777 on the directory, the ec2-run-...
[ 0.1728522777557373, 0.06502032279968262, 0.7859846949577332, -0.04607661813497543, 0.07481032609939575, -0.04664013162255287, 0.40292567014694214, -0.20060378313064575, -0.39198872447013855, -0.6298322081565857, 0.12977127730846405, 0.743807852268219, -0.050671644508838654, 0.2498389780521...
documentation](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html) we have *"If you're using OpenSSH (or any reasonably paranoid SSH client) then you'll probably need to set the permissions of this file so that it's only readable by you."* The Panda documentation you link to links to Amazon...
[ 0.4135913550853729, 0.252279132604599, 0.32469046115875244, 0.06743405014276505, 0.08007930219173431, -0.1719580888748169, 0.04197825863957405, -0.37661993503570557, -0.24386900663375854, -0.517614483833313, 0.10343516618013382, 0.7126035094261169, 0.0843527615070343, -0.1038656011223793, ...